1 2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
4 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
5 * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
6 LIB_SPEC for darwin10 and later since it always uses the unwinder in
7 libSystem which is derived from the gcc 4.2.1 unwinder.
9 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
12 * varasm.c (default_encode_section_info): Copy TLS model into
13 sym_ref flags regardless of backend support for TLS, for all
14 model types except TLS_MODEL_EMULATED.
16 2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
19 * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
20 we can handle it correctly.
22 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
24 * doc/install.texi (os2): Remove section.
26 2009-09-21 Gerald Pfeifer <gerald@pfeifer.com>
28 * doc/standards.texi (Objective-C): Adjust two URLs.
30 2009-09-21 Giuseppe Scrivano <gscrivano@gnu.org>
32 * tree-tailcall.c (process_assignment): Don't check if a multiplication
33 or an addition are already present.
34 (find_tail_calls): Combine multiple additions and multiplications.
35 (adjust_accumulator_values): Emit accumulators.
37 2009-09-21 Kai Tietz <kai.tietz@onevision.com>
39 * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
42 2009-09-21 Jan Hubicka <jh@suse.cz>
44 * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
45 (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
48 2009-09-21 Eric Botcazou <ebotcazou@adacore.com>
50 * stor-layout.c (layout_type): Remove obsolete code.
52 2009-09-20 H.J. Lu <hongjiu.lu@intel.com>
55 * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
57 2009-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
60 * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
61 (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
62 (fold_builtin_2, do_mpc_arg1): Update accordingly.
63 * fold-const.c (const_binop): Likewise.
64 * real.h (do_mpc_arg2): Update prototype.
66 2009-09-20 Jan Hubicka <jh@suse.cz>
68 * dwarf2out.c (add_const_value_attribute): Return true if successful.
69 (add_location_or_const_value_attribute): Rewrite using loc_list_from_tree.
70 (tree_add_const_value_attribute): Return true if successful.
71 (tree_add_const_value_attribute_for_decl): Likewise.
73 * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
74 (loc_descriptor): ... here;
75 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
76 (cst_pool_loc_descr): Break out from ...; do not reffer constant
77 pool items that was not marked for output.
78 (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
79 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
80 (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
81 handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
82 IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
83 CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
84 DW_OP_stack_value to get address of items that are not available
86 (dw_loc_list): Handle single element lists correctly.
88 2009-09-20 Kai Tietz <kai.tietz@onevision.com>
89 Pascal Obry <obry@adacore.com>
91 * unwind-dw2-fde.c (classify_object_over_fdes):
92 Cast the constant 1 to _Unwind_Ptr.
94 (linear_search_fdes): Likewise.
96 2009-09-20 Eric Botcazou <ebotcazou@adacore.com>
98 * stor-layout.c (set_sizetype): Avoid useless type copy.
100 2009-09-20 Richard Sandiford <rdsandiford@googlemail.com>
102 * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
104 (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
105 * configure, config.in: Regenerate.
106 * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
108 * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
109 (ASM_PREFERRED_EH_DATA_FORMAT): Define. Use MIPS_EH_INDIRECT
110 for global data if the output could be used in a shared library.
111 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
112 to 0 if TARGET_WRITABLE_EH_FRAME.
114 2009-09-20 Paolo Bonzini <bonzini@gnu.org>
116 PR rtl-optimization/39886
117 * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
118 just when insn is equal to BB_END (bb).
120 2009-09-19 Adam Nemet <anemet@caviumnetworks.com>
122 * config/mips/mips.opt (mrelax-pic-calls): New option.
123 * config/mips/mips.c (mips_strip_unspec_address): Move it up in
125 (mips_unspec_call): Change "unspec_call" expander into this.
126 (mips_strip_unspec_call): New function.
127 (mips_got_load): Call mips_unspec_call instead of
128 gen_unspec_call<mode>.
129 (mips16_build_call_stub): Fix comment for fp_code. Adjust call to
131 (mips_cfg_in_reorg): New function.
132 (mips16_lay_out_constants): Use it to decide whether to call
133 CFG-aware insn splitting.
134 (r10k_insert_cache_barriers): Move CFG set-up code from here to
135 mips_reorg. Move DF set-up code from here ...
136 (mips_df_reorg): ... to here. Call r10k_insert_cache_barriers
138 (mips_reorg): Call mips_df_reorg instead of
139 r10k_insert_cache_barriers. Move CFG set-up code here from
140 r10k_insert_cache_barriers.
141 (mips_call_expr_from_insn): New function.
142 (mips_pic_call_symbol_from_set): Likewise.
143 (mips_find_pic_call_symbol): Likewise.
144 (mips_annotate_pic_call_expr): Likewise.
145 (mips_get_pic_call_symbol): Likewise.
146 (mips_annotate_pic_calls): Likewise.
147 (mips_override_options): Disable -mrelax-pic-calls unless PIC
149 (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
150 * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
151 * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
153 * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
154 (unspec_call<mode>): Remove it.
155 (sibcall_internal, sibcall_value_internal,
156 sibcall_value_multiple_internal, call_internal, call_split,
157 call_value_internal, call_value_split,
158 call_value_multiple_internal, call_value_multiple_split): Pass
159 SIZE_OPNO to MIPS_CALL.
160 (call_internal_direct, call_direct_split,
161 call_value_internal_direct, call_value_direct_split): Pass -1 as
162 SIZE_OPNO to MIPS_CALL.
163 * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
164 * configure: Regenerate.
165 * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
166 and -mno-relax-pic-calls.
167 (MIPS Options): Document -mrelax-pic-calls
168 and -mno-relax-pic-calls.
170 2009-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
173 * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
174 in the directory this rule is called from, rather than the
175 toplevel 'gcc' directory, to fix in-tree build.
177 2009-09-19 Chris Demetriou <cgd@google.com>
179 PR preprocessor/28435:
180 * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
181 to cpplib that the preprocessor output is needed.
183 2009-09-19 Jakub Jelinek <jakub@redhat.com>
185 * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
186 *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
187 *return_and_restore_fpregs_<mode>,
188 *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
191 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
192 instead of assuming it has always a REG inside of it.
194 2009-09-18 Gerald Pfeifer <gerald@pfeifer.com>
196 * config/freebsd.h: Update comment on types.
199 2009-09-18 Jason Merrill <jason@redhat.com>
201 * c.opt: Add -fno-deduce-init-list.
203 2009-09-18 Neil Vachharajani <nvachhar@google.com>
205 * value-prof.c (interesting_stringop_to_profile_p): Added output
206 argument to indicate which parameter is the size parameter.
207 * value-prof.c (gimple_stringop_fixed_value): Use
208 INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
209 * value-prof.c (gimple_stringops_transform): Update call sites to
210 INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
211 * testsuite/gcc.dg/tree-prof/val-prof-7.c: Added test case.
213 2009-09-18 Uros Bizjak <ubizjak@gmail.com>
216 From David Binderman <dcb314@hotmail.com>:
217 * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
218 local variable f. Remove stale comments.
219 (ix86_compute_frame_layout): Remove useless local variable total_size.
221 (legitimate_address_p): Remove useless local variables
222 reason_rtx and reason.
223 (ix86_split_copysign_const): Remove useless local variable op1.
224 (scale_counter): Remove useless local variable piece_size_mask.
226 2009-09-18 Jakub Jelinek <jakub@redhat.com>
228 * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
231 2009-09-17 Michael Haubenwallner <michael.haubenwallner@salomon.at>
234 * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
236 2009-09-17 Jakub Jelinek <jakub@redhat.com>
238 * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
241 2009-09-17 Alexandre Oliva <aoliva@redhat.com>
243 * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
244 DW_OP_implicit_value even without dwarf_version 4.
246 2009-09-17 Jan Hubicka <jh@suse.cz>
248 * dwarf2out.c: Include tree-pass.h and gimple.h.
249 (loc_list_plus_const): New function.
250 (loc_descriptor_from_tree_1): Rename to ...
251 (loc_descriptor_from_tree): ... remove original.
252 (loc_list_from_tree): New function.
253 (add_AT_location_description): Accept location list.
254 (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
255 (concatn_mem_loc_descriptor): Remove.
256 (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
258 (secname_for_decl): Move up.
259 (hidden_reference_p): New function; break out from ...
260 (loc_by_refernece): ... here; move up.
261 (dw_loc_list): New function.
262 (single_element_loc_list): New function.
263 (single_element_loc_list_p): New function.
264 (add_loc_descr_to_each): New function.
265 (add_loc_list): New function.
266 (loc_descr_from_tree): Make wraper of loc_list_from_tree.
267 (loc_list_from_tree): Reroganized from loc_descr_from_tree;
268 add diagnostics why expansion failed.
269 (add_location_or_const_value_attribute): Support location lists.
270 (add_bound_info): Likewise.
271 (descr_info_loc): Update call of loc_descriptor_from_tree.
272 (gen_variable_die): Work on location lists.
273 * final.c (pass_final): Add dump file.
274 * Makefile.in (dwarf2out.o): Add new dependencies.
276 2009-09-17 Janis Johnson <janis187@us.ibm.com>
279 * real.c decimal_from_integer, decimal_integer_string): New.
280 (real_from_integer): Use them as special case for decimal float.
281 * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
282 (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
283 Do not append zero after the decimal point in string to convert.
285 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
287 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
288 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
290 2009-09-17 Martin Jambor <mjambor@suse.cz>
292 * common.opt (fipa-sra): New switch.
293 * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
294 * timevar.def (TV_IPA_SRA): New timevar.
295 * params.def (ipa-sra-ptr-growth-factor): New parameter.
296 * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
297 * tree-sra.c: Include cgraph.c.
298 (enum sra_mode): Added SRA_MODE_EARLY_IPA.
299 (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
300 and grp_not_necessarilly_dereferenced.
301 (func_param_count): New variable.
302 (encountered_apply_args): New variable.
303 (bb_dereferences): New variable.
304 (final_bbs): New variable.
305 (no_accesses_representant): New variable.
306 (no_accesses_p): New function.
307 (dump_access): Dump the new fields.
308 (sra_initialize): Set encountered_apply_args to false.
309 (get_ssa_base_param): New function.
310 (mark_parm_dereference): New function.
311 (create_access): Caring for INIDRECT_REFs and different handling of
312 varialble length accesses in early IPA SRA. Store the stmt - a new
313 parameter - to the new access.
314 (build_access_from_expr_1): New parameter stmt, passed to
315 create_access. Handle INDIRECT_REFs.
316 (build_access_from_expr): Pass the current statement to
317 build_access_from_expr_1.
318 (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
320 (build_accesses_from_assign): Pass the current statement to
321 build_access_from_expr_1. Do not create assign links in IPA-SRA.
322 (scan_function): Call handle_ssa_defs on phi nodes. Set bits in
323 final_bbs when necessary. Check for calls to __builtin_apply_args.
324 Fixup EH info if anythng was changed.
325 (is_unused_scalar_param): New function.
326 (ptr_parm_has_direct_uses): New function.
327 (find_param_candidates): New function.
328 (mark_maybe_modified): New function.
329 (analyze_modified_params): New function.
330 (propagate_dereference_distances): New function.
331 (dump_dereferences_table): New function.
332 (analyze_caller_dereference_legality): New function.
333 (unmodified_by_ref_scalar_representative): New function.
334 (splice_param_accesses): New function.
335 (decide_one_param_reduction): New function.
336 (enum ipa_splicing_result): New type.
337 (splice_all_param_accesses): New function.
338 (get_param_index): New function.
339 (turn_representatives_into_adjustments): New function.
340 (analyze_all_param_acesses): New function.
341 (get_replaced_param_substitute): New function.
342 (get_adjustment_for_base): New function.
343 (replace_removed_params_ssa_names): New function.
344 (sra_ipa_reset_debug_stmts): New function.
345 (sra_ipa_modify_expr): New function.
346 (sra_ipa_modify_assign): New function.
347 (convert_callers): New function.
348 (modify_function): New function.
349 (ipa_sra_preliminary_function_checks): New function.
350 (ipa_early_sra): New function.
351 (ipa_early_sra_gate): New function.
352 (pass_early_ipa_sra): New variable.
353 * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
355 2009-09-17 Michael Matz <matz@suse.de>
358 * tree.c (build_type_attribute_qual_variant): Export.
359 * tree.h (build_type_attribute_qual_variant): Declare.
360 * tree-inline.c (remap_type_1): Use it to build variants with
361 the original qualifiers and attributes.
363 2009-09-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
365 * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
366 without a fallthrough edge.
368 2009-09-16 DJ Delorie <dj@redhat.com>
370 * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
371 chip and ignore the "fast_interrupt" attribute if so.
373 2009-09-16 Richard Henderson <rth@redhat.com>
376 * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
379 2009-09-16 Richard Henderson <rth@redhat.com>
382 * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
383 is set only if DECL_NO_STATIC_CHAIN is unset.
384 * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
385 (FOR_EACH_NEST_INFO): New.
386 (walk_all_functions): Use it.
387 (finalize_nesting_tree): Likewise.
388 (unnest_nesting_tree): Likewise.
389 (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
390 (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
391 (convert_gimple_call): Early out if gimple_call_chain already set.
392 (convert_all_function_calls): Iterate until no new functions
393 require a static chain.
394 (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
395 when building a trampoline. Use dump_function_to_file instead
397 (lower_nested_functions): Open dump_file. Validate that decls
398 that have DECL_NO_STATIC_CHAIN from the front end don't have that
399 bit reset by this pass.
401 2009-09-16 Michael Matz <matz@suse.de>
404 * tree.h (struct tree_decl_common): Add decl_restricted_flag,
405 shorten decl_common_unused.
406 (DECL_RESTRICTED_P): New accessor.
407 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
408 to disambiguate marked decls and restrict pointers.
410 2009-09-16 Richard Henderson <rth@redhat.com>
413 * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
415 2009-09-16 Jakub Jelinek <jakub@redhat.com>
417 * integrate.c (set_block_abstract_flags): Call
418 set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
420 2009-09-16 Richard Guenther <rguenther@suse.de>
423 * tree-flow-inline.h (may_be_aliased): Compute readonly variables
426 2009-09-16 DJ Delorie <dj@redhat.com>
427 Kaz Kojima <kkojima@gcc.gnu.org>
429 * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
430 (sh_expand_prologue): Update calls to output_stack_adjust.
431 (sh_expand_epilogue): Likewise.
433 2009-09-15 Adam Nemet <anemet@caviumnetworks.com>
436 * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
437 trying to limit the extent of searches in the insn stream.
439 2009-09-15 Nathan Froyd <froydnj@codesourcery.com>
440 Jakub Jelinek <jakub@redhat.com>
444 * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
446 (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
447 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
448 (rs6000_savres_strategy): Always save FP registers inline if the
449 target doesn't support hardware double-precision. Set the above
450 bits in return value when needed.
451 (rs6000_savres_routine_sym): Fix computation for cache selector.
452 Mark the generated symbol as a function. Rename exitp argument to
453 lr. Move code for determining the name of the symbol...
454 (rs6000_savres_routine_name): ...here. New function. Add cases for
455 getting the names right on AIX and 64-bit Linux.
456 (savres_routine_name): New variable.
457 (rs6000_make_savres_rtx): Rename exitp argument to lr. Don't assert
458 lr isn't set when savep. Use r12 resp. r1 instead of r11 depending
459 on what the target routine uses as a base register. If savep && lr
460 describe saving of r0 into memory slot.
461 (rs6000_emit_prologue): Correct use of call_used_regs. Fix out of
462 line calls for AIX ABI.
463 (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
464 determine FP save/restore functions.
465 (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
466 frame_reg_rtx != sp_reg_rtx. Use gen_add3_insn instead of
468 (rs6000_emit_epilogue): Adjust computation of restore_lr.
469 Duplicate restoration of LR and execute the appropriate one
470 depending on whether GPRs are being restored inline. Set r11 from
471 offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
472 r11, adjust sp_offset. Use gen_add3_insn instead of gen_addsi3.
473 Fix out of line calls for AIX ABI.
474 * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
476 * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
478 (*restore_gpregs_spe): Likewise.
479 (*return_and_restore_gpregs_spe): Likewise.
480 * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
481 Define to empty string unconditionally.
482 * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
483 Define to empty string unconditionally.
484 (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
487 2009-09-15 Jan Hubicka <jh@suse.cz>
489 * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
490 * params.def (inline-insns-auto): Likewise.
492 2009-09-15 Martin Jambor <mjambor@suse.cz>
494 * ipa-inline.c (estimate_function_body_sizes): Dump info about
495 individual statements only at TDF_DETAILS dump level. Format
496 source for 80 characters per line.
498 2009-09-15 Christian Bruel <christian.bruel@st.com>
500 * regrename.c (do_replace): Update REG_DEAD notes.
502 2009-09-15 Revital Eres <eres@il.ibm.com>
504 * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
505 * targhooks.c (default_builtin_support_vector_misalignment):
506 New builtin function.
507 * targhooks.h (default_builtin_support_vector_misalignment):
509 * target.h (builtin_support_vector_misalignment):
510 New field in struct gcc_target.
511 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
512 new builtin function.
513 * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
515 * config/rs6000/rs6000.c
516 (rs6000_builtin_support_vector_misalignment): New function.
517 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
519 2009-09-15 Jie Zhang <jie.zhang@analog.com>
521 * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
523 (bfin_optimize_loop): Likewise.
524 (bfin_gen_bundles): Likewise.
525 (workaround_speculation): Likewise.
526 (find_load): Return NULL_RTX for debug_insn.
528 2009-09-15 Uros Bizjak <ubizjak@gmail.com>
530 * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
533 2009-09-14 DJ Delorie <dj@redhat.com>
535 * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
536 * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
539 2009-09-14 Richard Henderson <rth@redhat.com>
540 Jakub Jelinek <jakub@redhat.com>
542 * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
543 * cfgbuild.c (make_edges): Handle asm goto.
544 * cfglayout.c (fixup_reorder_chain): Likewise.
545 * cfgrtl.c (patch_jump_insn): Likewise.
546 * gimple-pretty-print.c (dump_gimple_asm): Likewise.
547 * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
548 (gimple_build_asm_vec): Add and use labels parameter.
549 (gimple_build_asm): Remove.
550 (walk_gimple_asm): Walk labels too.
551 * gimple.def (GIMPLE_ASM): Update docs.
552 * gimple.h: Update decls.
553 (struct gimple_statement_asm): Change nc to use unsigned char;
555 (gimple_asm_nlabels): New.
556 (gimple_asm_label_op, gimple_asm_set_label_op): New.
557 * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
558 into gimple_build_asm_vec.
559 * jump.c (mark_jump_label_asm): New.
560 (mark_jump_label): Use it.
561 (redirect_jump_1): Handle asm goto.
562 (invert_jump_1): Soft fail if X is null.
563 * recog.c (extract_asm_operands): New.
564 (asm_noperands): Use it; handle asm labels.
565 (decode_asm_operands): Use extract_asm_operands.
566 (asm_operand_ok): Properly handle empty string.
567 * reg-stack.c (get_asm_operands_in_out): Rename from
568 get_asm_operand_n_inputs; use extract_asm_operands; return both
569 inputs and outputs by reference; update all callers.
570 * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
571 * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
572 (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
573 (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
574 (extract_asm_operands): Declare.
575 * stmt.c (expand_asm_operands): Add and use labels parameter.
576 (check_unique_operand_names): Likewise.
577 (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
578 (expand_asm_stmt): Handle asm labels.
579 * tree-cfg.c (make_gimple_asm_edges): New.
580 (make_edges): Use it.
581 (cleanup_dead_labels): Handle asm labels.
582 (is_ctrl_altering_stmt): Likewise.
583 (gimple_redirect_edge_and_branch): Likewise.
584 * tree.def (ASM_EXPR): Add 5th operand.
585 * tree.h (ASM_LABELS): New.
586 (resolve_asm_operand_names): Update decl.
588 * c-parser.c (c_parser_asm_statement): Parse asm goto.
589 (c_parser_asm_goto_operands): New.
590 * c-tree.h (build_asm_expr): Update decl.
591 * c-typeck.c (build_asm_expr): Add and use labels parameter.
592 * doc/extend.texi: Document asm goto.
594 2009-09-14 Richard Henderson <rth@redhat.com>
596 * except.h: Update declarations.
597 (struct pointer_map_t): Forward declare.
598 (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
599 (struct eh_landing_pad_d, eh_landing_pad): New.
600 (struct eh_catch_d, eh_catch): New.
601 (struct eh_region_d): Remove next_region_sharing_label, aka,
602 label, tree_label, landing_pad, post_landing_pad, resume,
603 may_contain_throw. Rename region_number to index. Remove
604 u.eh_catch, u.eh_throw. Rename u.eh_try.eh_catch to first_catch.
605 Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
606 (VEC(eh_landing_pad,gc)): New.
607 (struct eh_status): Remove last_region_number. Add lp_array,
608 throw_stmt_table, ttype_data, ehspec_data.
609 (ehr_next, FOR_ALL_EH_REGION_AT): New.
610 (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
611 * except.c (lang_protect_cleanup_actions): Return tree.
612 (struct ehl_map_entry): Remove.
613 (init_eh_for_function): Push zero entries for region and lp_array.
614 (gen_eh_region): Add to region_array immediately.
615 (gen_eh_region_catch): Operate on eh_catch objects.
616 (gen_eh_landing_pad): New.
617 (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
618 (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
619 (get_eh_region_from_number, get_eh_region_from_number_fn): New.
620 (get_eh_landing_pad_from_number_fn): New.
621 (get_eh_landing_pad_from_number): New.
622 (get_eh_region_from_lp_number_fn): New.
623 (get_eh_region_from_lp_number): New.
624 (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
625 (get_exception_pointer, get_exception_filter): Remove.
626 (collect_eh_region_array, can_be_reached_by_runtime): Remove.
627 (current_function_has_exception_handlers): Simplify.
628 (bring_to_root, eh_region_replaceable_by_p): Remove.
629 (replace_region, hash_type_list, hash_eh_region): Remove.
630 (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
631 (label_to_region_map, num_eh_regions): Remove.
632 (get_next_region_sharing_label, must_not_throw_labels): Remove.
633 (find_exception_handler_labels): Remove.
634 (duplicate_eh_regions_0, find_prev_try): Remove.
635 (struct duplicate_eh_regions_data): New.
636 (duplicate_eh_regions_1): Rewrite.
637 (duplicate_eh_regions): Return a pointer map instead of an
639 (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
640 (redirect_eh_edge_to_label): Remove.
641 (eh_region_outermost): Rewrite using eh_region pointers
643 (add_ttypes_entry): Update for ttype_data move to eh_status.
644 (add_ehspec_entry): Rewrite with VEC instead of varray.
645 (assign_filter_values): Likewise. Export.
646 (build_post_landing_pads, connect_post_landing_pads): Remove.
647 (dw2_build_landing_pads): Rewrite to use lp_array.
648 (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
649 (sjlj_assign_call_site_values): Rewrite to use lp_array.
650 (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
651 (sjlj_mark_call_sites): Update for landing pad numbers.
652 (finish_eh_generation): Rewrite.
653 (gate_handle_eh): Do nothing for no eh tree.
654 (pass_rtl_eh): Move up near finish_eh_generation.
655 (remove_eh_landing_pad): New.
656 (remove_eh_handler): Export.
657 (remove_eh_region, remove_eh_handler_and_replace): Remove.
658 (for_each_eh_label): Rewrite to use lp_array.
659 (make_reg_eh_region_note): New.
660 (make_reg_eh_region_note_nothrow_nononlocal): New.
661 (insn_could_throw_p): New.
662 (copy_reg_eh_region_note_forward): New.
663 (copy_reg_eh_region_note_backward): New.
664 (check_handled, add_reachable_handler): Remove.
665 (reachable_next_level, foreach_reachable_handler): Remove.
666 (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
667 (get_eh_region_and_lp_from_rtx): New.
668 (get_eh_region_from_rtx): New.
669 (can_throw_internal_1, can_throw_external_1): Remove.
670 (can_throw_internal): Use get_eh_region_from_rtx.
671 (can_throw_external): Use get_eh_region_and_lp_from_rtx.
672 (insn_nothrow_p, can_nonlocal_goto): New.
673 (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
674 (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
675 (add_action_record): Use VEC not varray.
676 (collect_one_action_chain): Update for eh_region changes.
677 (convert_to_eh_region_ranges): Make static. Use VEC not varray.
678 Use get_eh_region_and_lp_from_rtx.
679 (gate_convert_to_eh_region_ranges): New.
680 (pass_convert_to_eh_region_ranges): Use it.
681 (push_uleb128, push_sleb128): Use VEC not varray.
682 (output_one_function_exception_table): Likewise.
683 (dump_eh_tree): Update for eh_region changes.
684 (verify_eh_tree): Likewise.
685 (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
686 * tree-eh.c: Include target.h.
687 (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
688 Don't disallow GIMPLE_RESX; adjust argument check.
689 (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
690 (record_stmt_eh_region): Update for landing pad numbers;
691 generate a landing pad if necessary.
692 (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
693 (remove_stmt_from_eh_lp_fn): Similarly.
694 (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
695 Update for lp numbers; don't special case missing throw_stmt_table.
696 (lookup_expr_eh_lp): Similarly.
697 (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
698 (eh_seq, eh_region_may_contain_throw): New.
699 (struct leh_state): Add ehp_region.
700 (struct leh_tf_state): Remove eh_label.
701 (emit_post_landing_pad): New.
702 (emit_resx, emit_eh_dispatch): New.
703 (note_eh_region_may_contain_throw): New.
704 (frob_into_branch_around): Take eh_region not eh label;
705 emit eh code into eh_seq.
706 (honor_protect_cleanup_actions): Early exit for no actions. Don't
707 handle EXC_PTR_EXPR, FILTER_EXPR. Use gimple_build_eh_must_not_throw,
708 lower_eh_must_not_throw. Emit code to eh_seq.
709 (lower_try_finally_nofallthru): Emit eh code to eh_seq.
710 (lower_try_finally_onedest): Likewise.
711 (lower_try_finally_copy): Likewise.
712 (lower_try_finally_switch): Likewise.
713 (lower_try_finally): Initialize ehp_region.
714 (lower_catch): Update for eh_catch objects.
715 (lower_eh_filter): Don't handle must_not_throw.
716 (lower_eh_must_not_throw): New.
717 (lower_cleanup): Don't set eh_label.
718 (lower_eh_constructs_2): Resolve eh builtins.
719 Handle GIMPLE_EH_MUST_NOT_THROW.
720 (lower_eh_constructs): Initialize eh_region_may_contain_throw.
721 Add eh_seq to the end of the function body.
722 (make_eh_dispatch_edges): New.
723 (make_eh_edge): Remove.
724 (make_eh_edges): Simplify for landing pads.
725 (redirect_eh_edge_1): New.
726 (redirect_eh_edge): Use it.
727 (redirect_eh_dispatch_edge): New.
728 (stmt_could_throw_p): Use a switch. Allow RESX.
729 (stmt_can_throw_external): Use lookup_stmt_eh_lp.
730 (stmt_can_throw_internal): Likewise.
731 (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
732 (maybe_clean_or_replace_eh_stmt): Update for landing pads.
733 (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
734 (gate_refactor_eh): New.
735 (pass_refactor_eh): Use it.
736 (lower_resx, execute_lower_resx, pass_lower_resx): New.
737 (lower_eh_dispatch, execute_lower_eh_dispatch): New.
738 (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
739 (remove_unreachable_handlers): Rename from
740 tree_remove_unreachable_handlers; rewrite for landing pads;
741 call remove_eh_handler directly.
742 (remove_unreachable_handlers_no_lp): New.
743 (unsplit_eh, unsplit_all_eh): New.
744 (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
745 (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
746 (cleanup_empty_eh_unsplit): New.
747 (cleanup_empty_eh): Rewrite.
748 (cleanup_all_empty_eh): New.
749 (execute_cleanup_eh): Rename from cleanup_eh. Remove unreachable
750 handlers first. Use unsplit_all_eh, cleanup_all_empty_eh.
751 (gate_cleanup_eh): New.
752 (pass_cleanup_eh): Use it.
753 (verify_eh_edges): Move later in file. Expect one EH edge.
754 (verify_eh_dispatch_edge): New.
756 * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
757 (gtype-desc.o): Add TARGET_H.
758 (tree.o): Use EXCEPT_H, not except.h.
759 (cfgbuild.o): Add EXPR_H.
760 (GTFILES): Add vecprim.h.
761 * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
762 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
763 * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
764 BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
765 * calls.c (emit_call_1): Use make_reg_eh_region_note.
766 * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
767 calls to can_throw_internal.
768 (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
769 (make_edges): Don't handle RESX; use can_nonlocal_goto.
770 * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
771 (expand_gimple_stmt): Use make_reg_eh_region_note.
772 (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
773 (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
774 or find_exception_handler_labels.
775 * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX. Assert
776 there is exacly one EH edge. Use can_nonlocal_goto and
778 * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
779 (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
780 * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
781 * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
782 * dce.c (deletable_insn_p_1): Don't test may_trap_p.
783 (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
784 * dse.c (scan_insn): Use insn_could_throw_p.
785 * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
786 * expr.c (expand_expr_real): Use make_reg_eh_region_note.
787 (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
788 * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
789 EXC_PTR_EXPR or FILTER_EXPR.
790 (tree_expr_nonzero_warnv_p): Likewise.
791 * function.h: Include vecprim.h, not varray.h
792 (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
793 move ttype_data and ehspec_data members to struct eh_status; change
794 action_record_data member to a VEC.
795 * gcse.c (hash_scan_set): Use can_throw_internal.
796 * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
797 * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
798 * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
799 (block_may_fallthru): Don't handle RESX_EXPR.
800 * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
801 (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
802 (dump_gimple_stmt): Dump landing pad information with TDF_EH;
803 handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
804 * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
805 GIMPLE_EH_DISPATCH, GIMPLE_RESX.
806 (gimple_size): Likewise.
807 (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
808 (gimple_build_resx): Use gimple_build_with_ops.
809 (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
810 (is_gimple_val): Likewise.
811 (is_gimple_stmt): Remove RESX_EXPR.
812 * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
813 (GIMPLE_RESX): Reorder with other EH constructs.
814 * gimple.h (struct gimple_statement_eh_mnt): New.
815 (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
816 (gimple_eh_filter_must_not_throw): Remove.
817 (gimple_eh_filter_set_must_not_throw): Remove.
818 (gimple_eh_must_not_throw_fndecl): New.
819 (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
820 (is_gimple_resx): New.
821 * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
822 Don't copy EH_FILTER_MUST_NOT_THROW.
823 * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
824 * ipa-inline.c (estimate_function_body_sizes): Don't try to
825 handle must_not_throw_labels specially.
826 * ipa-pure-const.c (check_call): Update debug statement for LP.
827 * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
828 * ipa-utils.c (get_base_var): Likewise.
829 * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
830 * lower-subreg.c (move_eh_region_note): Remove.
831 (resolve_simple_move): Use copy_reg_eh_region_note_forward.
832 * omp-low.c (new_omp_context): Update for eh_lp_nr.
833 (create_task_copyfn): Likewise.
834 (maybe_catch_exception): Use gimple_build_eh_filter.
835 * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
836 REG_EH_REGION. Use make_reg_eh_region_note_nothrow_nononlocal.
837 * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
839 * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
840 * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
841 can_throw_internal, can_nonlocal_goto.
842 * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
843 copy_reg_eh_region_note_forward.
844 (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
845 (emit_output_reload_insns): Likewise.
846 (copy_eh_notes): Remove.
847 * rtl.def (RESX): Remove.
848 * rtl.h: Update declarations.
849 * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
850 * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
851 (update_eh_label): Remove.
852 (cleanup_dead_labels_eh): New.
853 (cleanup_deal_labels): Use it instead of update_eh_label.
854 (gimple_merge_blocks): Update landing pad data structure when
855 removing a landing pad label.
856 (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
857 test; handle GIMPLE_EH_MUST_NOT_THROW.
858 (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
859 (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
860 (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
861 (verify_stmt): Likewise. Verify landing pads.
862 (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
863 (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
864 (struct move_stmt_d): Add eh_map.
865 (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
866 (move_stmt_r): Remap eh region numbers in builtin calls,
867 resx and eh_dispatch.
868 (move_block_to_fn): Remove eh_offset parameter. Use
869 maybe_duplicate_eh_stmt_fn.
870 (find_outermost_region_in_block): Operate on eh_region pointers
871 instead of region numbers.
872 (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
873 duplicate_eh_regions.
874 * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
875 test earlier. Disallow EH landing pads.
876 * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
877 * tree-flow.h: Update declarations.
878 (struct tree_ann_common_d): Replace rn with lp_nr.
879 * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
880 (remap_eh_region_nr, remap_eh_region_tree_nr): New.
881 (remap_gimple_stmt): Remap eh region numbers in builtin calls,
882 resx and eh_dispatch.
883 (copy_bb): Use maybe_duplicate_eh_stmt_fn.
884 (copy_edges_for_bb): Use make_eh_dispatch_edges.
885 (copy_cfg_body): Expect eh_map instead of eh_region_offset
886 from duplicate_eh_regions.
887 (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
888 update RESX; handle EH_DISPATCH.
889 (expand_call_inline): Set eh_lp_nr, not eh_region.
890 (maybe_inline_call_in_expr): Likewise.
891 * tree-inline.h (struct copy_body_data): Replace eh_region with
892 eh_lp_nr, eh_region_offset with eh_map.
893 * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
894 * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
895 * tree-pretty-print.c (dump_generic_node): Don't handle
896 EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
897 * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
898 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
899 EXC_PTR_EXPR, FILTER_EXPR.
900 * tree-ssa-operands.c (get_expr_operands): Likewise.
901 * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
902 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
903 (ao_ref_init_from_vn_reference): Likewise.
904 * tree-ssa-sink.c (statement_sink_location): Likewise.
905 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
906 (mark_virtual_phi_result_for_renaming): Export. Tidy.
907 * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
908 EXC_PTR_EXPR, FILTER_EXPR.
909 (is_exception_related): Remove.
910 (compute_avail): Don't call it.
911 * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
912 * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
913 (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
914 (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
916 (build_resx): Remove.
917 * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
918 * tree.h: Update declarations.
919 (EH_FILTER_MUST_NOT_THROW): Remove.
920 (struct tree_label_decl): Add eh_landing_pad_nr.
921 (EH_LANDING_PAD_NR): New.
922 * value-prof.c (gimple_ic): Tidy variable names. Update for
924 (gimple_stringop_fixed_value): Tidy variable names. Assert
925 that neither call stmt can throw.
926 * vecprim.h (uchar): New.
927 (VEC(uchar,heap), VEC(uchar,gc)): New.
929 * c-common.c (c_define_builtins): Update call to
930 build_common_builtin_nodes.
931 * c-parser.c (c_parse_file): Don't call
932 default_init_unwind_resume_libfunc.
934 2009-09-14 Richard Sandiford <rdsandiford@googlemail.com>
936 * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
937 (mips_cprestore_address_p): Likewise.
938 (mips_save_gp_to_cprestore_slot): Likewise.
939 (mips_restore_gp): Rename to...
940 (mips_restore_gp_from_cprestore_slot): ...this.
941 (mips_must_initialize_gp_p): Declare.
942 (mips_emit_save_slot_move): Likewise.
943 (mips_output_load_label): Return nothing.
944 (mips_eh_uses): Declare.
945 * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
946 (TARGET_CPRESTORE_DIRECTIVE): New macro.
947 (TARGET_ABSOLUTE_JUMPS): Likewise.
949 (FIRST_PSEUDO_REGISTER): Update comment.
950 (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
951 (MIPS_CALL): ...here.
952 (REGISTER_NAMES): Add $cprestore.
953 * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
954 Add load_label_length, has_inflexible_gp_insn_p,
955 has_flexible_gp_insn_p, must_initialize_gp_p and
956 must_restore_gp_when_clobbered_p.
957 (mips_expand_call): Don't generate split instructions here.
958 (mips_split_call): Update the call to mips_restore_gp after
959 the above name change.
960 (mips16_cfun_returns_in_fpr_p): Move earlier in file.
961 (mips_find_gp_ref): New function.
962 (mips_insn_has_inflexible_gp_ref_p): Likewise.
963 (mips_cfun_has_inflexible_gp_ref_p): Likewise.
964 (mips_insn_has_flexible_gp_ref_p): Likewise.
965 (mips_cfun_has_flexible_gp_ref_p): Likewise.
966 (mips_function_has_gp_insn): Delete.
967 (mips_global_pointer): Drop the df_regs_ever_live_p check.
968 Use the new functions above. Only return INVALID_REGNUM
969 for TARGET_ABSOLUTE_JUMPS.
970 (mips_must_initialize_gp_p): New function.
971 (mips_get_cprestore_base_and_offset): New function, extracted from...
972 (mips_cprestore_slot): ...here. Take a bool parameter.
973 (mips_cfun_has_cprestore_slot_p): New function.
974 (mips_cprestore_address_p): Likewise.
975 (mips_save_gp_to_cprestore_slot): Likewise.
976 (mips_restore_gp): Rename to...
977 (mips_restore_gp_from_cprestore_slot): ...this. Assert
978 epilogue_completed. Update the call to mips_cprestore_slot.
979 Test cfun->machine->must_restore_gp_when_clobbered_p.
980 (mips_direct_save_slot_move_p): New function.
981 (mips_emit_save_slot_move): Likewise.
982 (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
983 of cfun->machine->global_pointer.
984 (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
985 (mips_save_reg): Use mips_emit_save_slot_move.
986 (mips_expand_prologue): Set must_initialize_gp_p.
987 Use mips_cfun_has_cprestore_slot_p. Use gen_potential_cprestore
988 for all cprestore saves. Emit a use_cprestore instruction after
989 setting up the cprestore slot.
990 (mips_restore_reg): Use mips_emit_save_slot_move.
991 (mips_process_load_label): New function.
992 (mips_load_label_length): Likewise.
993 (mips_output_load_label): Don't return asm: output it here instead.
994 Use mips_process_load_label.
995 (mips_adjust_insn_length): Adjust the length of branch instructions
996 that have length MAX_PIC_BRANCH_LENGTH.
997 (mips_output_conditional_branch): Update the call to
998 mips_output_load_label. Assume the branch target is OPERANDS[0]
999 rather than OPERANDS[1]. Use MIPS_ABSOLUTE_JUMP for absolute jumps.
1000 (mips_output_order_conditional_branch): Swap the meaning of
1001 OPERANDS[0] and OPERANDS[1].
1002 (mips_variable_issue): Don't count ghost instructions.
1003 (mips_expand_ghost_gp_insns): New function.
1004 (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
1005 (mips_output_mi_thunk): Set must_initialize_gp_p.
1006 (mips_eh_uses): New function.
1007 * config/mips/predicates.md (cprestore_save_slot_operand)
1008 (cprestore_load_slot_operand): New predicates.
1009 * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
1010 (UNSPEC_MOVE_GP): Likewise.
1011 (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
1012 (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
1013 (CPRESTORE_SLOT_REGNUM): New register.
1014 (MAX_PIC_BRANCH_LENGTH): New constant.
1015 (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
1016 (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
1017 branches. Fix commentary.
1018 (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
1019 Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
1020 Change type to "ghost".
1021 (loadgp_absolute_<mode>): Likewise.
1022 (loadgp_rtp_<mode>): Likewise.
1023 (copygp_mips16): Likewise.
1024 (loadgp_blockage): Remove redundant mode attribute.
1025 (potential_cprestore): New instruction.
1026 (cprestore): Turn into an unspec set.
1027 (use_cprestore): New instruction.
1028 (*branch_fp): Swap operands 0 and 1. Remove redundant mode attribute.
1029 (*branch_fp_inverted): Likewise.
1030 (*branch_order<mode>): Likewise.
1031 (*branch_order<mode>_inverted): Likewise.
1032 (*branch_equality<mode>): Likewise.
1033 (*branch_equality<mode>_inverted): Likewise.
1034 (*branch_bit<bbv><mode>): Likewise.
1035 (*branch_bit<bbv><mode>_inverted): Likewise.
1036 (*branch_equality<mode>_mips16): Remove redundant mode.
1037 (jump): Turn into a define_expand.
1038 (*jump_absolute): New instruction.
1039 (*jump_pic): Likewise.
1040 (*jump_mips16): Rename previously-unnamed pattern. Remove
1041 redundant mode attribute.
1042 (restore_gp): Split on epilogue_completed rather than
1043 reload_completed. Change type to "ghost".
1044 (move_gp<mode>): New instruction.
1045 * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
1046 Remove redundant mode attribute.
1047 * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
1048 (bc1any4f, bc1any2t, bc1any2f): Likewise.
1049 (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
1051 2009-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1054 * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
1055 are returned in the same register (vs34 or v2) that Altivec vector
1056 types are returned in.
1057 (rs6000_libcall_value): Ditto.
1060 * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
1061 instead of explicit addsi3/adddi3 calls.
1062 (rs6000_split_multireg_move): Ditto.
1063 (rs6000_emit_allocate_stack): Ditto.
1064 (rs6000_emit_prologue): Ditto.
1065 (rs6000_output_mi_thunk): Ditto.
1067 * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
1068 size is 64 bits if we can use 64-bit registers.
1070 2009-09-14 Bernd Schmidt <bernd.schmidt@analog.com>
1072 * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
1075 From Jie Zhang <jie.zhang@analog.com>:
1076 * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
1077 save FP and RETS with saveall attribute.
1078 (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
1079 with saveall attribute.
1081 * config/bfin/bfin.c (bfin_expand_builtin,
1082 case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
1085 From Jie Zhang <jie.zhang@analog.com>:
1086 * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
1087 before use in two places.
1088 * config/bfin/bfin.md (AREG): Define mode iterator.
1089 (reload_in, reload_out): Use mode iterator AREG.
1091 2009-09-14 Richard Guenther <rguenther@suse.de>
1094 * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
1095 EH personality path.
1097 2009-09-13 Richard Guenther <rguenther@suse.de>
1098 Rafael Avila de Espindola <espindola@google.com>
1100 * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
1101 (LANG_HOOKS_EH_PERSONALITY): Likewise.
1102 (LANG_HOOKS_INITIALIZER): Adjust.
1103 (lhd_pass_through_t): Declare.
1104 * langhooks.h (struct lang_hooks): Add eh_runtime_type and
1106 * langhooks.c (lhd_pass_through_t): New function.
1107 * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
1108 dwarf2out_begin_prologue): Use personality from current_function_decl.
1109 * expr.h (get_personality_function): Declare.
1110 * expr.c (get_personality_function): New function.
1111 (build_personality_function): Likewise.
1112 * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
1113 (eh_personality_libfunc): Remove.
1114 * optabs.c (build_libfunc_function): New function split out from ...
1115 (init_one_libfunc): ... here.
1116 * tree.h (DECL_FUNCTION_PERSONALITY): New.
1117 (tree_function_decl): Add personality.
1118 (lhd_gcc_personality): Declare.
1119 (build_personality_function): Likewise.
1120 * tree.c (gcc_eh_personality_decl): New.
1121 (lhd_gcc_personality): New function.
1122 * except.h (lang_eh_runtime_type): Remove.
1123 (enum eh_personality_kind): New.
1124 (build_personality_function): Declare.
1125 (function_needs_eh_personality): Declare.
1126 * except.c (lang_eh_runtime_type): Remove.
1127 (function_needs_eh_personality): New function.
1128 (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
1129 (sjlj_emit_function_enter, output_function_exception_table):
1130 Use personality from current_function_decl.
1131 * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
1132 * tree-inline.c (tree_can_inline_p): Do not inline across different
1134 (expand_call_inline): Likewise. Adjust the callers EH personality.
1135 (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
1136 * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
1137 * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
1138 (c-parser.o): Likewise
1139 * c-tree.h (c_eh_initialized_p): Remove.
1140 (c_maybe_initialize_eh): Likewise.
1141 * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
1142 (finish_decl): Don't call c_maybe_initialize_eh.
1143 (c_eh_initialized_p): Remove.
1144 (c_maybe_initialize_eh): Likewise.
1145 * c-parser.c (c_parser_omp_construct): Likewise.
1146 (c_parse_file): Initialize exception handling.
1148 2009-09-13 Kai Tietz <kai.tietz@onevision.com>
1150 * config.gcc (tm_file): Remove i386/biarch32.h
1151 for i?86-w64-mingw* case.
1152 (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
1154 * config.host: Set for x64 mingw the option
1155 use_long_long_for_widest_fast_int to yes.
1157 2009-09-13 Eric Botcazou <ebotcazou@adacore.com>
1159 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
1160 * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
1161 (dbxout_begin_function): Likewise.
1162 * final.c (dwarf2_debug_info_emitted_p): New predicate.
1163 (final_start_function): Do not emit debug info if DECL_IGNORED_P is
1164 set on the function.
1165 (final_end_function): Likewise.
1166 (final_scan_insn): Likewise.
1167 (rest_of_handle_final): Likewise.
1168 * varasm.c (assemble_start_function): Likewise.
1169 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
1171 2009-09-12 Jason Merrill <jason@redhat.com>
1173 * dbgcnt.c (dbg_cnt_process_single_pair): constify.
1174 * opts.c (common_handle_option): constify.
1176 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
1178 * doc/install.texi (avr): Remove obsolete reference site.
1180 2009-09-12 Gerald Pfeifer <gerald@pfeifer.com>
1182 * doc/install.texi (Binaries): Adjust AIX link.
1184 2009-09-12 Akim Demaille <demaille@gostai.com>
1186 * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
1187 Use an imperative sentence.
1189 2009-09-11 Richard Henderson <rth@redhat.com>
1191 * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
1192 structure-name and has-tree-operands arguments; update all entries.
1193 * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
1195 * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
1196 (gsstruct_code_size): New.
1197 (gss_for_code_): New.
1198 (gss_for_code): Remove.
1199 (gimple_size): Rewrite using gsstruct_code_size.
1200 (gimple_statement_structure): Move to gimple.h.
1201 * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
1202 (gss_for_code, gimple_statement_structure): New.
1203 (gimple_ops): Use new arrays; tidy.
1205 2009-09-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1207 * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
1208 operand to be a PLUS expression.
1209 * config/pa/pa.c (pa_secondary_reload): Likewise.
1211 2009-09-11 Jakub Jelinek <jakub@redhat.com>
1213 * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
1215 * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
1218 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
1220 From Jie Zhang <jie.zhang@analog.com>:
1221 * doc/extend.texi (node Function Attributes): Document l2
1223 (node Blackfin Variable Attributes): Document l2 variable attributes.
1225 2009-09-11 Loren J. Rittle <ljrittle@acm.org>
1227 * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
1228 to match the system compiler's configuration at inflection point.
1229 Add comment to remark a remaining difference with system compiler.
1231 * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
1232 * configure: Regenerate.
1234 2009-09-11 Bernd Schmidt <bernd.schmidt@analog.com>
1236 From Jie Zhang <jie.zhang@analog.com>:
1237 * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
1238 (bfin_handle_l2_attribute): New.
1239 (bfin_attribute_table): Add l2 attribute.
1241 2009-09-11 Michael Matz <matz@suse.de>
1244 * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
1245 on the local_decls list.
1247 2009-09-11 Alexandre Oliva <aoliva@redhat.com>
1251 * cselib.c (cselib_expand_value_rtx_cb): Document callback
1253 (cselib_expand_value_rtx_1): Use callback for SUBREGs. Adjust
1254 for VALUEs, to implement the documented interface.
1255 * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
1256 Adjust for VALUEs and anything else, to implement the
1257 documented interface.
1259 2009-09-10 Nathan Froyd <froydnj@codesourcery.com>
1261 * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
1262 with actual SPE/paired vector modes before using 64-bit alignment.
1263 Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
1265 2009-09-10 DJ Delorie <dj@redhat.com>
1267 * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
1270 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
1271 * config/mep/mep.c (mep_legitimate_constant_p): New.
1272 * config/mep/mep-protos.h: Prototype it.
1274 2009-09-10 Richard Henderson <rth@redhat.com>
1276 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
1278 2009-09-10 Jason Merrill <jason@redhat.com>
1280 * tree.c (chain_index): New fn.
1281 * tree.h: Declare it.
1283 2009-09-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1285 * config/sol2-c.c (cmn_err_length_specs): Initialize
1286 scalar_identity_flag.
1288 2009-09-10 Richard Henderson <rth@redhat.com>
1290 * tree.h (struct tree_decl_common): Move align member earlier;
1291 move label_decl_uid member ...
1292 (struct tree_label_decl): ... here.
1293 (LABEL_DECL_UID): Update to match.
1295 * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
1298 * tree-cfg.c (gimple_redirect_edge_and_branch): Do
1299 gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
1301 * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
1302 dest_prev if the edge is complex.
1304 * tree-cfg.c (is_ctrl_stmt): Use a switch.
1306 * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
1307 loop latch tests earlier.
1309 * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
1310 before GIMPLE_RETURN, not after its predecessor; insert
1313 * gimple-iterator.c (gimple_find_edge_insert_loc): Use
1314 gimple_seq_empty_p to test for no PHI nodes.
1315 * tree-cfg.c (split_critical_edges): Likewise.
1317 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
1319 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
1321 * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
1322 introduced by the VTA branch merge.
1324 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
1326 * ira-conflicts.c: Use fputs or putc instead of fprintf
1330 * tree-switch-conversion.c: Ditto.
1332 2009-09-10 Hariharan Sandanagobalane <hariharan@picochip.com>
1334 * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
1335 introduced by the VTA branch merge.
1337 2009-09-10 Uros Bizjak <ubizjak@gmail.com>
1340 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
1342 PR rtl-optimization/39779
1343 * expr.c (convert_modes): Return when mode == oldmode after
1344 CONST_INTs are processed.
1346 2009-09-10 Nick Clifton <nickc@redhat.com>
1348 * config/mep/mep.c (mep_encode_section_info): Copy weakness
1349 attribute and referring decl when creating renamed symbol.
1351 2009-09-10 Richard Guenther <rguenther@suse.de>
1354 * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
1356 (cgraph_finalize_compilation_unit): Compute reachability
1357 before emitting thunks. Properly process aliases before
1358 possibly removing unreachable nodes.
1360 2009-09-10 Richard Guenther <rguenther@suse.de>
1363 * tree.c (struct free_lang_data_d): Add worklist member.
1364 (find_decls_types_r): Push onto the worklist instead of recursing.
1365 Handle TREE_BINFOs properly.
1366 (find_decls_types): New function wrapped around find_decls_types_r
1367 to process the worklist.
1368 (find_decls_types_in_eh_region): Use it.
1369 (find_decls_types_in_node): Likewise.
1370 (find_decls_types_in_var): Likewise.
1371 (free_lang_data_in_cgraph): Likewise. Free the worklist.
1372 * tree.h (RECORD_OR_UNION_TYPE_P): New.
1373 (AGGREGATE_TYPE_P): Adjust.
1375 2009-09-09 Jason Merrill <jason@redhat.com>
1377 * configure.ac: Check glibc version even if we have an in-tree
1380 2009-09-09 Anthony Green <green@moxielogic.com>
1382 * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
1383 the constant 0 when appropriate.
1384 * config/moxie/constraints.md: Add constraint O.
1386 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
1387 to pass up to 6 32-bit argument values in registers.
1388 (moxie_function_arg): Ditto.
1389 (moxie_arg_partial_bytes): Ditto.
1390 * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
1391 (REG_PARM_STACK_SPACE): Ditto.
1392 (FUNCTION_ARG_REGNO_P): Ditto.
1394 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
1395 instruction to allocate stack space.
1397 2009-09-09 Segher Boessenkool <segher@kernel.crashing.org>
1399 * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
1400 unnecessarily stringent constraints. Fix address
1401 calculation in the splitters.
1403 2009-09-09 Uros Bizjak <ubizjak@gmail.com>
1405 PR rtl-optimization/39779
1406 * expr.c (convert_modes): Return when mode == oldmode after
1407 CONST_INTs are processed.
1409 2009-09-09 Kai Tietz <kai.tietz@onevision.com>
1412 * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
1413 (ix86_expand_prologue): Take frame.padding0 into logic of
1415 (ix86_expand_epilogue): Likewise.
1417 2009-09-09 Jakub Jelinek <jakub@redhat.com>
1419 * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
1421 (SHLIB_LINK, SHLIB_INSTALL): Use them.
1422 * config/t-slibgcc-libgcc: New file.
1423 * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
1425 2009-09-09 Martin Jambor <mjambor@suse.cz>
1427 PR tree-optimization/41089
1428 * tree-sra.c (find_var_candidates): Do not consider va_lists in
1431 2009-09-09 Richard Henderson <rth@redhat.com>
1433 * gimple.h (CASE_GIMPLE_OMP): New.
1434 (is_gimple_omp): Use it.
1435 * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
1436 (verify_gimple_debug): Likewise.
1438 2009-09-09 Richard Guenther <rguenther@suse.de>
1440 PR tree-optimization/41101
1441 * tree-ssa-pre.c (maximal_set): Remove.
1442 (compute_antic_aux): Treat the maximal set as implicitly all ones.
1443 Defer all blocks we didn't visit at least one successor.
1444 (add_to_exp_gen): Do not add to the maximal set.
1445 (make_values_for_phi): Likewise.
1446 (compute_avail): Likewise.
1447 (init_pre): Do not allocate the maximal set.
1448 (execute_pre): Do not dump it.
1450 2009-09-09 Martin Jambor <mjambor@suse.cz>
1452 * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
1453 an SSA_NAME rather than a is_gimple_variable.
1455 2009-09-09 Richard Guenther <rguenther@suse.de>
1458 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
1459 code dealing with plain pointer bases.
1460 (maybe_fold_offset_to_reference): Likewise.
1461 (maybe_fold_stmt_addition): Adjust.
1463 2009-09-09 Richard Guenther <rguenther@suse.de>
1465 * tree.c (free_lang_data_in_type): Do not free the type variant
1467 (free_lang_data): Merge char_type_node with its properly signed
1469 (pass_ipa_free): Collect after freeing language specific data.
1471 2009-09-09 Michael Matz <matz@suse.de>
1474 * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
1475 SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
1476 * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
1479 2009-09-08 DJ Delorie <dj@redhat.com>
1481 * config/mep/mep.c (conversions[]): Add "ml" pattern.
1483 2009-09-04 Jason Merrill <jason@redhat.com>
1485 * tree.c (tree_find_value): Remove.
1486 * tree.h: Remove prototype.
1487 * varasm.c (assemble_external): Use value_member instead.
1489 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
1491 * toplev.c (process_options): Choose default debugging type when
1492 gtoggle enables debug info and type is unset.
1494 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
1498 * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
1501 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
1503 * configure: Rebuilt with modified libtool.m4.
1505 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
1510 * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
1512 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
1514 * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
1515 (remove_statement): Likewise.
1516 (rewrite_use_nonlinear_expr): Adjust.
1517 (remove_unused_ivs): Collect SSA NAMEs to remove and call...
1518 * tree-ssa.c (release_defs_bitset): ... this. New.
1519 * tree-flow.h (release_defs_bitset): Declare.
1521 2009-09-08 Alexandre Oliva <aoliva@redhat.com>
1524 * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
1525 in the middle block.
1527 2009-09-08 Kai Tietz <kai.tietz@onevision.com>
1529 * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
1530 via intptr_t to long type.
1531 (insert_operand_rank): Cast long type via intptr_t to
1533 * genattrtab.c (RTL_HASH): Use intptr_t to cast from
1535 * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
1536 from pointer to unsigned via uintptr_t.
1538 * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
1539 uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
1541 * configure: Regenerated.
1542 * config.in: Regenerated
1543 * system.h (stdint.h): Add include.
1544 (inttypes.h): Likewise.
1545 * Makefile.in (aclocal): Add config/stdint.m4.
1546 * aclocal.m4: Regenerated.
1548 2009-09-08 Bernd Schmidt <bernd.schmidt@analog.com>
1550 * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
1552 (note_np_check_stores): New function.
1553 (harmless_null_pointer_p): New function.
1554 (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH. Callers
1555 changed. Take into account whether we're in the shadow of a condjump
1556 that tested NP_REG for NULL.
1557 Lose all code that tested for SEQUENCEs.
1558 (workaround_speculation): Avoid inserting NOPs for loads that are
1559 either always executed or a NULL pointer.
1561 2009-09-08 Jan Hubicka <jh@suse.cz>
1563 * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
1564 * params.def (early-inlining-insns): Likewise.
1566 2009-09-08 Jakub Jelinek <jakub@redhat.com>
1568 PR rtl-optimization/41239
1569 * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
1570 * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
1572 * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
1573 across calls, as the calls might not always return normally.
1574 (call_may_noreturn_p): New function.
1575 (deps_analyze_insn): Update last_function_call_may_noreturn list.
1576 (init_deps): Initialize it.
1577 (remove_from_deps): Also remove calls from
1578 last_function_call_may_noreturn list.
1580 2009-09-07 Richard Henderson <rth@redhat.com>
1582 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
1583 more VR->OPERANDS than LHS operands. Free LHS before returning.
1585 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
1587 * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
1588 (attr "addrtype"): New member "spreg".
1589 Use it if mem_spfp_address_operand is true for the address.
1590 (attr "type"): New entry "stall".
1591 (cpu_unit "load"): New.
1592 (insn_reservations "load32", "loadp", "loadi"): Add reservation of
1594 (insn_reservation "loadsp"): New.
1595 (insn_reservation "load_stall1"): New.
1596 (insn_reservation "load_stall3"): New.
1598 * config/bfin/predicates.md (const1_operand, const3_operand): New.
1599 (mem_p_address_operand): Exclude stack and frame pointer based
1601 (mem_spfp_address_operand): New; match them here.
1602 * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
1603 (bfin_reorg): Call it if scheduling insns.
1604 (bfin_gen_bundles): Remove dummy insns created by
1605 add_sched_insns_for_speculation.
1607 From Jie Zhang <jie.zhang@analog.com>:
1608 * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
1609 bfin_si_revision, bfin_workarounds): Move these ...
1610 * config/bfin/bfin.h: ... here.
1612 From Mike Frysinger <michael.frysinger@analog.com>
1613 * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
1614 BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
1615 * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
1616 bf547m, bf548m, and bf549m.
1617 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
1618 for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
1619 __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
1620 BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
1621 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1622 bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
1623 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1624 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1625 * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
1626 bf542m, bf544m, bf547m, bf548m, and bf549m.
1628 From Jie Zhang <jie.zhang@analog.com>:
1629 * config/bfin/predicates.md (p_register_operand): New predicate.
1630 (dp_register_operand): New predicate.
1631 * config/bfin/bfin-protos.h (WA_05000074): Define.
1632 (ENABLE_WA_05000074): Define.
1633 * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
1634 (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
1635 * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
1636 (define_attr addrtype): Allow load/store register to be P register.
1637 (define_attr storereg): New.
1638 (define_cpu_unit anomaly_05000074): New.
1639 (define_insn_reservation dsp32shiftimm): New.
1640 (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
1641 (define_insn_reservation loadp): Cannot use slot2.
1642 (define_insn_reservation loadsp): Cannot use slot2.
1643 (define_insn_reservation storep): Cannot use slot2. Does not
1644 apply when working around 05000074.
1645 (define_insn_reservation storep_anomaly_05000074): New.
1646 (define_insn_reservation storei): Does not apply when working
1648 (define_insn_reservation storei_anomaly_05000074): New.
1649 (define_attr length): Add dsp32shiftimm case.
1650 (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
1651 ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
1652 movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
1653 ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
1654 Set type as dsp32shiftimm for dsp32shiftimm alternatives.
1656 2009-09-07 Martin Jambor <mjambor@suse.cz>
1659 * tree-sra.c (create_artificial_child_access): Return NULL if
1660 build_ref_for_offset fails.
1661 (propagate_subacesses_accross_link): Allow build_ref_for_offset
1662 and create_artificial_child_access to fail.
1664 2009-09-06 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
1667 * unwind-dw2.c (uw_init_context_1): Mark noinline.
1668 * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
1669 * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
1671 2009-09-07 Bernd Schmidt <bernd.schmidt@analog.com>
1673 * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
1674 block, ensure it has an exit edge. Emit a barrier after a jump.
1676 2009-09-07 Nick Clifton <nickc@redhat.com>
1678 * gcc.c (this_is_linker_script): New variable. Like
1679 this_is_library_file but for the %T constructor.
1680 (end_going_arg): If this_is_linker_script is set then locate the
1681 script and insert a --script switch before it
1682 (do_spec_2): Initialise this_is_linker_script.
1683 (do_spec_1): Likewise. Handle %T construct.
1684 (eval_spec_function): Preserve this_is_linker_script.
1685 * doc/invoke.texi: Document %T construct in spec files.
1686 * config/m32c/m32c.h (LIB_SPEC): Use it.
1688 2009-09-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1690 * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
1691 * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
1692 when volatile flag is set.
1693 * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
1695 2009-09-06 Eric Botcazou <ebotcazou@adacore.com>
1698 * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
1699 (combine_stack_adjustments_for_block): Allow insns between stack
1700 adjustments and stores with corresponding pre-(dec|inc)rement or
1701 pre-modify operation.
1703 2009-09-06 Jakub Jelinek <jakub@redhat.com>
1706 * combine-stack-adj.c (struct csa_memlist): Rename to...
1707 (struct csa_reflist): ... this. Rename mem field to ref.
1708 (free_csa_memlist): Rename to...
1709 (free_csa_reflist): ... this.
1710 (record_one_stack_memref): Rename to...
1711 (record_one_stack_ref): ... this. Handle also REG_P.
1712 (try_apply_stack_adjustment): Handle also REG_P.
1713 (struct record_stack_memrefs_data): Rename to...
1714 (struct record_stack_refs_data): ... this. Rename memlist field to
1716 (record_stack_memrefs): Rename to...
1717 (record_stack_refs): ... this. For DEBUG_INSNs keep traversing
1718 subexpressions instead of failing when a MEM contains SP references.
1719 For SP itself in DEBUG_INSNs queue it also onto reflist chain.
1720 (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
1722 2009-09-06 Richard Guenther <rguenther@suse.de>
1725 * tree.c (build_array_type): Do not record types marked
1726 with structural equality in the canonical type hashtable.
1728 2009-09-06 Richard Guenther <rguenther@suse.de>
1731 * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
1733 2009-09-05 Richard Guenther <rguenther@suse.de>
1736 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
1738 2009-09-05 Richard Guenther <rguenther@suse.de>
1741 * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
1743 2009-09-05 Richard Guenther <rguenther@suse.de>
1746 * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
1747 before comparing function argument types.
1749 2009-09-05 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1752 * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
1755 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
1758 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
1760 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
1761 locators before emit_insn is called.
1763 2009-09-04 Vladimir Makarov <vmakarov@redhat.com>
1766 * ira.c (update_equiv_reg): Revert my previous patch for the PR.
1767 * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
1768 (reginfo_init): Don't call allocate_reg_info.
1770 2009-09-04 Uros Bizjak <ubizjak@gmail.com>
1773 * config/alpha/alpha.c (alpha_does_function_need_gp): Use
1774 NONDEBUG_INSN_P instead of INSN_P.
1776 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
1779 * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
1781 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
1784 * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
1785 pattern of the split.
1787 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
1789 * toplev.c (process_options): Move setter of flag_var_tracking
1790 before other tests that depend on it. Move down setter of
1791 flag_rename_registers. Don't enable var-tracking-assignments
1792 by default if selective scheduling is enabled. Warn if both
1795 2009-09-04 Alexandre Oliva <aoliva@redhat.com>
1797 * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
1798 comment. Use switch statement to catch overlaps between rtx
1799 and tree codes. Accept FUNCTION_DECLs in addition to those in...
1800 (IS_DECL_CODE): ... here. Remove.
1801 (check_value_is_not_decl): Remove.
1802 (dv_from_decl, dv_from_value): Check after conversion.
1804 2009-09-04 Richard Guenther <rguenther@suse.de>
1807 * (cgraph_finalize_compilation_unit): Move finalizing aliases
1808 after emitting tunks. Move emitting thunks and ctors from ...
1809 (cgraph_optimize): ... here. Remove redundant
1810 cgraph_analyze_functions.
1811 * varasm.c (find_decl_and_mark_needed): Remove no longer
1813 (finish_aliases_1): Adjust check for thunk aliases.
1815 2009-09-04 Daniel Gutson <dgutson@codesourcery.com>
1817 * config/arm/arm.md (ctzsi2): Added braces
1818 to avoid warning that broke booststrap.
1820 2009-09-04 Martin Jambor <mjambor@suse.cz>
1822 PR tree-optimization/41112
1823 * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
1824 handle variable-bounded arrays.
1825 (expr_with_var_bounded_array_refs_p): New function.
1826 (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
1828 2009-09-04 Wolfgang Gellerich <gellerich@de.ibm.com>
1830 * config/s390/2097.md: Removed two incorrect bypasses.
1831 (z10_fsimpdf): Fixed latency.
1832 (z10_fhex): New insn_reservation.
1833 (z10_floaddf): Fixed latency.
1834 (z10_floadsf): Fixed latency.
1835 (z10_ftrunctf): Fixed latency.
1836 (z10_ftruncdf): Fixed latency.
1837 * config/s390/s390.c (z10_cost): Fixed values.
1838 (s390_adjust_priority): Added z10 path.
1839 * config/s390/s390.md (type): Added fhex.
1840 (*mov<mode>_64dfp): Updated type attribute.
1841 (*mov<mode>_64): Updated type attribute.
1842 (*mov<mode>_31): Updated type attribute.
1843 (*mov<mode>"): Likewise.
1844 * config/s390/2084.md (x_fsimpdf): Updated condition.
1846 2009-09-04 Andreas Krebbel <krebbel1@de.ibm.com>
1848 * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
1849 RTXs in the predicate for operand 1.
1851 2009-09-03 Daniel Gutson <dgutson@codesourcery.com>
1853 * config/arm/arm.md (UNSPEC_RBIT): New constant.
1854 (rbitsi2): New insn.
1855 (ctzsi2): New expand.
1856 * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
1858 2009-09-03 Martin Jambor <mjambor@suse.cz>
1860 * tree-sra.c (duplicate_expr_for_different_base): Removed.
1861 (create_artificial_child_access): Use build_ref_for_offset instead
1862 of duplicate_expr_for_different_base.
1863 (propagate_subacesses_accross_link): Likewise.
1865 2009-09-03 Richard Sandiford <rdsandiford@googlemail.com>
1867 * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
1869 (mips16e_collect_argument_saves): Skip debug instructions.
1870 (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
1871 (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
1872 (r10k_insert_cache_barriers): Likewise.
1873 (mips_reorg_process_insns): Likewise.
1875 2009-09-03 Vladimir Makarov <vmakarov@redhat.com>
1878 * ira.c (update_equiv_reg): Remove check on class likely spill.
1880 2009-09-03 Jakub Jelinek <jakub@redhat.com>
1883 * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
1884 SIGN_EXTEND or ZERO_EXTEND. Don't assume there is a REG inside of
1888 * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
1889 the stack slot if it is passed by invisible reference.
1890 * var-tracking.c (vt_add_function_parameters): Handle arguments passed
1891 by invisible reference.
1893 2009-09-03 Bernd Schmidt <bernd.schmidt@analog.com>
1895 * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
1896 * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
1897 * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
1899 * config/bfin/sync.md: New file.
1900 * config/bfin/bfin.md: Include it.
1901 (UNSPEC_ATOMIC): New.
1902 (UNSPEC_ONES): Provide a unique number.
1904 From Jie Zhang <jie.zhang@analog.com>:
1905 * config/bfin/bfin.c (ret_regs): New.
1906 (must_save_fp_p): Don't return true because of frame_pointer_needed.
1907 (must_save_rets_p): New.
1908 (n_regs_saved_by_prologue): Use must_save_rets_p instead of
1909 current_function_is_leaf.
1910 (do_link): Likewise.
1911 (do_unlink): Likewise.
1912 (expand_interrupt_handler_prologue): Use ret_regs array.
1913 (expand_interrupt_handler_epilogue): Use ret_regs array and
1914 pass return register to gen_return_internal.
1915 (bfin_expand_epilogue): Pass return register to
1916 gen_return_internal.
1917 (bfin_expand_call): Explicitly clobber RETS.
1918 * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
1919 * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
1920 call_insn_fdpic, call_value_insn_fdpic, call_symbol,
1921 call_value_symbol, call_insn, call_value_insn): Explicitly clobber
1923 (return_internal): Take a reg rtx rather than the register number.
1925 2009-09-03 H.J. Lu <hongjiu.lu@intel.com>
1927 * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
1928 when comparing against estimated_loop_iterations_int return.
1930 2009-09-03 Richard Guenther <rguenther@suse.de>
1932 * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
1933 eh_personality_libfunc.
1935 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
1937 * tree-parloops.c (separate_decls_in_region): Add space.
1939 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
1941 * tree-parloops.c (separate_decls_in_region): Change the condition
1942 checking if there are reductions in the loop.
1944 2009-09-03 Razya Ladelsky <razya@il.ibm.com>
1946 PR tree-optimization/38275
1947 * tree-parloops.c (parallelize_loops): Replace profitability condition
1948 for expected number of iterations.
1950 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
1952 * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
1953 (bootstrap-debug): Explain conditions in which it becomes default.
1954 (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
1957 2009-09-03 Namhyung Kim <namhyung@gmail.com>
1959 * doc/invoke.texi (Optimize Options): Move
1960 -finline-small-functions to the -O2 list.
1962 2009-09-03 Alexandre Oliva <aoliva@redhat.com>
1964 * toplev.c (process_options): Enable var-tracking-assignments
1965 by default if var-tracking is enabled.
1967 2009-09-02 David Daney <ddaney@caviumnetworks.com>
1969 * cfgbuild.c (find_bb_boundaries): Split blocks containing a
1971 * emit-rtl.c (prev_nonnote_insn_bb): New function.
1972 * rtl.h (prev_nonnote_insn_bb): Declare it.
1974 2009-09-03 Diego Novillo <dnovillo@google.com>
1976 * cgraph.c (cgraph_node_for_decl): New.
1977 * cgraph.h (cgraph_node_for_decl): Declare.
1978 * tree.c (host_integerp): Return 0 if T is NULL.
1980 2009-09-03 Diego Novillo <dnovillo@google.com>
1982 * tree.h (struct alias_pair): Move from varasm.c.
1983 (alias_pairs): Likewise.
1984 (TYPE_MAXVAL): Define.
1985 (TYPE_MINVAL): Define.
1986 (iterative_hash_host_wide_int): Declare.
1987 (remove_unreachable_alias_pairs): Declare.
1988 * tree-pass.h (pass_ipa_free_lang_data): Declare.
1989 * diagnostic.c (default_diagnostic_starter): Make extern.
1990 (default_diagnostic_finalizer): Make extern.
1991 * diagnostic.h (default_diagnostic_starter): Declare.
1992 (default_diagnostic_finalizer): Declare.
1993 (default_tree_printer): Declare.
1994 * toplev.c (default_tree_printer): Make extern.
1996 2009-09-03 Richard Guenther <rguenther@suse.de>
1997 Diego Novillo <dnovillo@google.com>
1999 * cgraph.c (cgraph_add_new_function): Remove gimplification.
2000 * cgraphunit.c (cgraph_expand_function): Do not emit
2001 associated thunks from here.
2002 (cgraph_emit_thunks): New.
2003 (cgraph_optimize): Call it.
2004 Return if any IPA pass finds an error.
2005 * varasm.c (finish_aliases_1): Ignore errorneous aliases used
2008 2009-09-03 Simon Baldwin <simonb@google.com>
2009 Rafael Espindola <espindola@google.com>
2010 Richard Guenther <rguenther@suse.de>
2011 Doug Kwan <dougkwan@google.com>
2012 Diego Novillo <dnovillo@google.com>
2014 * tree.c: Include tree-pass.h, langhooks-def.h,
2015 diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
2016 (free_lang_data_in_type): New.
2017 (need_assembler_name_p): New.
2018 (free_lang_data_in_block): New.
2019 (free_lang_data_in_decl): New.
2020 (struct free_lang_data_d): New.
2021 (add_tree_to_fld_list): New.
2022 (find_decls_types_r): New.
2023 (get_eh_types_for_runtime): New.
2024 (find_decls_types_in_eh_region): New.
2025 (find_decls_types_in_node): New.
2026 (find_decls_types_in_var): New.
2027 (free_lang_data_in_cgraph): New.
2028 (free_lang_data): New.
2029 (gate_free_lang_data): New.
2030 (pass_ipa_free_lang_data): New.
2032 2009-09-03 Diego Novillo <dnovillo@google.com>
2034 * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
2035 * langhooks.h (struct lang_hooks): Add field free_lang_data.
2036 (lang_hooks): Remove const qualifier.
2037 * ipa.c (cgraph_remove_unreachable_nodes): Call
2038 remove_unreachable_alias_pairs.
2039 * except.c (add_type_for_runtime): Check if TYPE has
2040 already been converted.
2041 (lookup_type_for_runtime): Likewise.
2042 (check_handled): Handle converted types.
2043 * varasm.c (remove_unreachable_alias_pairs): New.
2044 * gimple.c: Include demangle.h.
2045 (gimple_decl_printable_name): New.
2046 (gimple_fold_obj_type_ref): New.
2047 * gimple.h (gimple_decl_printable_name): Declare.
2048 (gimple_fold_obj_type_ref): Declare.
2049 * passes.c (init_optimization_passes): Add pass
2050 pass_ipa_free_lang_data.
2051 * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
2052 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
2054 2009-09-03 Diego Novillo <dnovillo@google.com>
2056 * c-lang.c (lang_hooks): Remove const qualifier.
2058 2009-09-02 Loren James Rittle <ljrittle@acm.org>
2060 * doc/install.texi (*-*-freebsd*): Update target information.
2062 2009-09-02 Anatoly Sokolov <aesok@post.ru>
2064 * hard-reg-set.h (call_fixed_regs): Remove.
2065 * reginfo.c (call_fixed_regs): Remove.
2066 (init_reg_sets_1): Remove initialization of call_fixed_regs.
2067 (globalize_reg): Don't use call_fixed_regs.
2068 * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
2071 2009-09-01 Michael Matz <matz@suse.de>
2073 * expr.h (emit_storent_insn, expand_expr_real_1,
2074 expand_expr_real_2): Declare.
2075 * expr.c (emit_storent_insn, expand_expr_real_1,
2076 expand_expr_real_2): Export.
2077 (store_expr): Setting and evaluating dont_return_target is useless.
2078 (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
2079 LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
2080 * except.c (expand_resx_expr): Rename to ...
2081 (expand_resx_stmt): ... this. Rewrite to take gimple statement.
2082 * except.h (expand_resx_stmt): Declare.
2083 * stmt.c: Add include gimple.h
2084 (expand_asm_expr): Rename to ...
2085 (expand_asm_stmt): ... this. Rewrite to take gimple statement.
2086 (expand_case): Rewrite to take gimple statement.
2087 * tree.h (expand_asm_stmt): Declare.
2088 (expand_case): Change prototype.
2089 * Makefile.in (stmt.o): Depend on gimple.h.
2090 * builtins.c (expand_builtin_synchronize): Build gimple asm
2091 statement, not an ASM_EXPR.
2092 * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
2093 gimple_to_tree, release_stmt_tree): Remove.
2094 (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
2095 ggc_free, but hold comparison code and operands separately.
2096 Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
2097 (expand_call_stmt, expand_gimple_stmt_1,
2098 expand_gimple_stmt): New helpers.
2099 (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
2100 release_stmt_tree. Call expand_gimple_stmt instead.
2101 (expand_gimple_basic_block): Ditto.
2103 * calls.c (emit_call_1): Don't look at EH regions here, make
2104 fntree parameter useless.
2105 (expand_call): New local rettype for TREE_TYPE(exp), use it
2106 throughout. Remove local p, use addr instead.
2107 Don't look at EH regions here.
2109 2009-09-02 Vladimir Makarov <vmakarov@redhat.com>
2111 * doc/invoke.texi (-fsched-pressure): Document it.
2112 (-fsched-reg-pressure-heuristic): Remove it.
2114 * reload.c (ira.h): Include.
2115 (find_reloads): Add choosing reload on number of small spilled
2118 * haifa-sched.c (ira.h): Include.
2119 (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
2120 saved_reg_pressure, curr_reg_live, saved_reg_live,
2121 region_ref_regs): New variables.
2122 (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
2123 initiate_reg_pressure_info, setup_ref_regs,
2124 initiate_bb_reg_pressure_info, save_reg_pressure,
2125 restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
2127 (setup_insn_reg_pressure_info): New function.
2128 (rank_for_schedule): Add pressure checking and insn issue time.
2129 Remove comparison of insn reg weights.
2130 (ready_sort): Set insn reg pressure info.
2131 (update_register_pressure, setup_insn_max_reg_pressure,
2132 update_reg_and_insn_max_reg_pressure,
2133 sched_setup_bb_reg_pressure_info): New functions.
2134 (schedule_insn): Add code for printing and updating reg pressure info.
2135 (find_set_reg_weight, find_insn_reg_weight): Remove.
2136 (ok_for_early_queue_removal): Do nothing if pressure_only_p.
2137 (debug_ready_list): Print reg pressure info.
2138 (schedule_block): Ditto. Check insn issue time.
2139 (sched_init): Set up sched_pressure_p. Allocate and set up some
2140 reg pressure related info.
2141 (sched_finish): Free some reg pressure related info.
2142 (fix_tick_ready): Make insn always ready if pressure_p.
2143 (init_h_i_d): Don't call find_insn_reg_weight.
2144 (haifa_finish_h_i_d): Free insn reg pressure info.
2146 * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
2147 ira_memory_move_cost, ira_class_hard_regs,
2148 ira_class_hard_regs_num, ira_no_alloc_regs,
2149 ira_available_class_regs, ira_reg_class_cover_size,
2150 ira_reg_class_cover, ira_class_translate): Move to ira.h.
2152 * ira-lives.c (single_reg_class): Check mode to find how many
2153 registers are necessary for operand.
2154 (ira_implicitly_set_insn_hard_regs): New.
2156 * common.opt (fsched-pressure): New options.
2157 (fsched-reg-pressure-heuristic): Remove.
2159 * ira.c (setup_eliminable_regset): Rename to
2160 ira_setup_eliminable_regset. Make it external.
2161 (expand_reg_info): Pass cover class to setup_reg_classes.
2162 (ira): Call resize_reg_info instead of allocate_reg_info.
2164 * sched-deps.c: Include ira.h.
2165 (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
2166 (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
2167 reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
2168 mark_insn_hard_regno_birth, mark_insn_reg_birth,
2169 mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
2170 mark_insn_reg_store, mark_insn_reg_clobber,
2171 setup_insn_reg_pressure_info): New.
2172 (sched_analyze_1): Update implicit_reg_pending_uses.
2173 (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
2174 Use them to create dependencies. Set insn reg uses and pressure
2175 info. Process reg_pending_uses in one place.
2176 (free_deps): Free implicit sets.
2177 (remove_from_deps): Remove implicit sets if necessary. Check
2178 implicit sets when clearing reg_last_in_use.
2179 (init_deps_global): Clear implicit_reg_pending_clobbers and
2180 implicit_reg_pending_uses.
2182 * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
2183 ira_memory_move_cost, ira_class_hard_regs,
2184 ira_class_hard_regs_num, ira_no_alloc_regs,
2185 ira_available_class_regs, ira_reg_class_cover_size,
2186 ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
2187 (ira_setup_eliminable_regset, ira_set_pseudo_classes,
2188 ira_implicitly_set_insn_hard_regs): New prototypes.
2190 * ira-costs.c (pseudo_classes_defined_p, allocno_p,
2191 cost_elements_num): New variables.
2192 (allocno_costs, total_costs): Rename to costs and
2193 total_allocno_costs.
2194 (COSTS_OF_ALLOCNO): Rename to COSTS.
2195 (allocno_pref): Rename to pref.
2196 (allocno_pref_buffer): Rename to pref_buffer.
2197 (common_classes): Rename to regno_cover_class.
2199 (record_reg_classes): Set allocno attributes only if allocno_p.
2200 (record_address_regs): Ditto. Use COST_INDEX instead of ALLOCNO_NUM.
2201 (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
2202 and COSTS_OF_ALLOCNO.
2203 (print_costs): Rename to print_allocno_costs.
2204 (print_pseudo_costs): New.
2205 (process_bb_node_for_costs): Split into 2 functions with new
2206 function process_bb_for_costs. Pass BB to process_bb_for_costs.
2207 (find_allocno_class_costs): Rename to find_costs_and_classes. Add
2208 new parameter dump_file. Use cost_elements_num instead of
2209 ira_allocnos_num. Make one iteration if preferred classes were
2210 already calculated for scheduler. Make 2 versions of code
2211 depending on allocno_p.
2212 (setup_allocno_cover_class_and_costs): Check allocno_p. Use
2213 regno_cover_class and COSTS instead of common_classes and
2215 (init_costs, finish_costs): New.
2216 (ira_costs): Set up allocno_p and cost_elements_num. Call
2217 init_costs and finish_costs.
2218 (ira_set_pseudo_classes): New.
2220 * rtl.h (allocate_reg_info): Remove.
2221 (resize_reg_info): Change return type.
2222 (reg_cover_class): New.
2223 (setup_reg_classes): Add new parameter.
2225 * sched-int.h (struct deps_reg): New member implicit_sets.
2226 (sched_pressure_p, sched_regno_cover_class): New external definitions.
2227 (INCREASE_BITS): New macro.
2228 (struct reg_pressure_data, struct reg_use_data): New.
2229 (struct _haifa_insn_data): Remove reg_weight. Add members
2230 reg_pressure, reg_use_list, reg_set_list, and
2231 reg_pressure_excess_cost_change.
2232 (struct deps): New member implicit_sets.
2233 (pressure_p): New variable.
2234 (COVER_CLASS_BITS, INCREASE_BITS): New macros.
2235 (struct reg_pressure_data, struct reg_use_data): New.
2236 (INSN_REG_WEIGHT): Remove.
2237 (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
2238 INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
2239 (sched_init_region_reg_pressure_info,
2240 sched_setup_bb_reg_pressure_info): New prototypes.
2242 * reginfo.c (struct reg_pref): New member coverclass.
2243 (reg_cover_class): New function.
2244 (reginfo_init, pass_reginfo_init): Move after free_reg_info.
2245 (reg_info_size): New variable.
2246 (allocate_reg_info): Make static. Setup reg_info_size.
2247 (resize_reg_info): Use reg_info_size. Return flag of resizing.
2248 (setup_reg_classes): Add a new parameter. Setup cover class too.
2250 * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
2253 * sched-rgn.c (deps_join): Set up implicit_sets.
2254 (schedule_region): Set up region and basic blocks pressure
2257 * passes.c (init_optimization_passes): Move
2258 pass_subregs_of_mode_init before pass_sched.
2260 2009-09-02 Martin Jambor <mjambor@suse.cz>
2262 * tree-sra.c (struct access): New field grp_hint.
2263 (dump_access): Dump grp_hint.
2264 (sort_and_splice_var_accesses): Set grp_hint if a group is read
2266 (analyze_access_subtree): Only scalarize accesses with grp_hint set or
2267 those which have been specifically read and somehow written to.
2268 (propagate_subacesses_accross_link): Set grp_hint of right child and
2269 also possibly of the left child.
2271 2009-09-02 Jakub Jelinek <jakub@redhat.com>
2273 * tree-object-size.c (addr_object_size): Always use object_size_type
2274 0 or 2 when determining the pointer pointed object size.
2276 2009-09-02 Richard Guenther <rguenther@suse.de>
2279 2009-08-31 Richard Guenther <rguenther@suse.de>
2281 * builtins.c (fold_builtin_memory_op): Use the alias oracle
2282 to query if the memory regions for memmove overlap.
2283 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
2284 asserts on pointers, instead deal with odd trees.
2285 (ptr_derefs_may_alias_p): Likewise.
2286 (refs_may_alias_p_1): Constructor bases also never alias.
2288 2009-08-01 Christian Bruel <christian.bruel@st.com>
2291 2009-07-31 Christian Bruel <christian.bruel@st.com>
2292 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
2294 2009-09-01 Alexandre Oliva <aoliva@redhat.com>
2296 * doc/invoke.texi (-fvar-tracking-assignments): New.
2297 (-fvar-tracking-assignments-toggle): New.
2298 (-fdump-final-insns=file): Mark filename as optional.
2299 (--param min-nondebug-insn-uid): New.
2300 (-gdwarf-@{version}): Mention version 4.
2301 * opts.c (common_handle_option): Accept it.
2302 * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
2303 * regrename.c (regrename_optimize): Drop last. Don't count debug
2304 insns as uses. Don't reject change because of debug insn.
2305 (do_replace): Reject DEBUG_INSN as chain starter. Take base_regno
2306 from the chain starter, and check for inexact matches in DEBUG_INSNS.
2307 (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
2308 (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
2309 * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
2310 * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
2311 * doc/gimple.texi (is_gimple_debug): New.
2312 (gimple_debug_bind_p): New.
2313 (is_gimple_call, gimple_assign_cast_p): End sentence with period.
2314 * doc/install.texi (bootstrap-debug): More details.
2315 (bootstrap-debug-big, bootstrap-debug-lean): Document.
2316 (bootstrap-debug-lib): More details.
2317 (bootstrap-debug-ckovw): Update.
2318 (bootstrap-time): New.
2319 * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
2320 (insert_phi_nodes_for): Insert debug stmts.
2321 (rewrite_stmt): Take iterator. Insert debug stmts.
2322 (rewrite_enter_block): Adjust.
2323 (maybe_replace_use_in_debug_stmt): New.
2324 (rewrite_update_stmt): Use it.
2325 (mark_use_interesting): Return early for debug stmts.
2326 * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
2327 stmts before replacing stmt.
2328 (move_computations_stmt): Likewise.
2329 * ira-conflicts.c (add_copies): Skip debug insns.
2330 * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
2331 (regstat_bb_compute_ri): Skip debug insns.
2332 * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
2333 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
2334 check_loop_closed_ssa_stmt): Skip debug stmts.
2335 * tree-tailcall.c (find_tail_calls): Likewise.
2336 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
2337 * tree.h (MAY_HAVE_DEBUG_STMTS): New.
2338 (build_var_debug_value_stat): Declare.
2339 (build_var_debug_value): Define.
2340 (target_for_debug_bind): Declare.
2341 * reload.c (find_equiv_reg): Skip debug insns.
2342 * rtlanal.c (reg_used_between_p): Skip debug insns.
2343 (side_effects_p): Likewise.
2344 (canonicalize_condition): Likewise.
2345 * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
2346 insns never depend on debug insns.
2347 (create_ddg_dep_no_link): Likewise.
2348 (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
2349 Don't add inter-loop dependencies for debug insns.
2350 (build_intra_loop_deps): Likewise.
2351 (create_ddg): Count debug insns.
2352 * ddg.h (struct ddg::num_debug): New.
2353 (num_backargs): Pair up with previous int field.
2354 * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
2355 -fcompare-debug-second.
2356 * final.c (get_attr_length_1): Skip debug insns.
2357 (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
2358 * gcc.c (invoke_as): Call compare-debug-dump-opt.
2359 (driver_self_specs): Map -fdump-final-insns to
2360 -fdump-final-insns=..
2361 (get_local_tick): New.
2362 (compare_debug_dump_opt_spec_function): Test for . argument and
2363 compute output name. Compute temp output spec without flag name.
2364 Compute -frandom-seed.
2365 (OPT): Undef after use.
2366 * cfgloopanal.c (num_loop_insns): Skip debug insns.
2367 (average_num_loop_insns): Likewise.
2368 * params.h (MIN_NONDEBUG_INSN_UID): New.
2369 * gimple.def (GIMPLE_DEBUG): New.
2370 * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
2371 * auto-inc-dec.c (merge_in_block): Skip debug insns.
2372 (merge_in_block): Fix whitespace.
2373 * toplev.c (flag_var_tracking): Update comment.
2374 (flag_var_tracking_assignments): New.
2375 (flag_var_tracking_assignments_toggle): New.
2376 (process_options): Don't open final insns dump file if we're not
2377 going to write to it. Compute defaults for var_tracking.
2378 * df-scan.c (df_insn_rescan_debug_internal): New.
2379 (df_uses_record): Handle debug insns.
2380 * haifa-sched.c (ready): Initialize n_debug.
2381 (contributes_to_priority): Skip debug insns.
2382 (dep_list_size): New.
2384 (rank_for_schedule): Likewise. Schedule debug insns as soon as
2385 they're ready. Disregard previous debug insns to make decisions.
2386 (queue_insn): Never queue debug insns.
2387 (ready_add, ready_remove_first, ready_remove): Count debug insns.
2388 (schedule_insn): Don't reject debug insns because of issue rate.
2389 (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
2390 (queue_to_ready): Skip and discount debug insns.
2391 (choose_ready): Let debug insns through.
2392 (schedule_block): Check boundary debug insns. Discount debug
2393 insns, schedule them early. Adjust whitespace.
2394 (set_priorities): Check for boundary debug insns.
2395 (add_jump_dependencies): Use dep_list_size.
2396 (prev_non_location_insn): New.
2397 (check_cfg): Use it.
2398 * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
2400 (remove_unused_ivs): Reset debug stmts.
2401 * modulo-sched.c (const_iteration_count): Skip debug insns.
2402 (res_MII): Discount debug insns.
2403 (loop_single_full_bb_p): Skip debug insns.
2404 (sms_schedule): Likewise.
2405 (sms_schedule_by_order): Likewise.
2406 (ps_has_conflicts): Likewise.
2407 * caller-save.c (refmarker_fn): New.
2408 (save_call_clobbered_regs): Replace regs with saved mem in
2410 (mark_referenced_regs): Take pointer, mark and arg. Adjust.
2411 Call refmarker_fn mark for hardregnos.
2412 (mark_reg_as_referenced): New.
2413 (replace_reg_with_saved_mem): New.
2414 * ipa-pure-const.c (check_stmt): Skip debug stmts.
2415 * cse.c (cse_insn): Canonicalize debug insns. Skip them when
2417 (cse_extended_basic_block): Skip debug insns.
2418 (count_reg_usage): Likewise.
2419 (is_dead_reg): New, split out of...
2420 (set_live_p): ... here.
2421 (insn_live_p): Use it for debug insns.
2422 * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
2423 (execute_optimize_stdarg): Likewise.
2424 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
2425 * tree-ssa-propagate.c (substitute_and_fold): Don't regard
2426 changes in debug stmts as changes.
2427 * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
2428 (moveup_expr): Don't move across debug insns. Don't move
2429 debug insn if it would create a bookkeeping block.
2430 (moveup_expr_cached): Don't use cache for debug insns that
2431 are heads of blocks.
2432 (compute_av_set_inside_bb): Skip debug insns.
2433 (sel_rank_for_schedule): Schedule debug insns first. Remove
2435 (block_valid_for_bookkeeping_p); Support lax searches.
2436 (create_block_for_bookkeeping): Adjust block numbers when
2437 encountering debug-only blocks.
2438 (find_place_for_bookkeeping): Deal with debug-only blocks.
2439 (generate_bookkeeping_insn): Accept no place to insert.
2440 (remove_temp_moveop_nops): New argument full_tidying.
2441 (prepare_place_to_insert): Deal with debug insns.
2442 (advance_state_on_fence): Debug insns don't start cycles.
2443 (update_boundaries): Take fence as argument. Deal with
2445 (schedule_expr_on_boundary): No full_tidying on debug insns.
2446 (fill_insns): Deal with debug insns.
2447 (track_scheduled_insns_and_blocks): Don't count debug insns.
2448 (need_nop_to_preserve_insn_bb): New, split out of...
2449 (remove_insn_from_stream): ... this.
2450 (fur_orig_expr_not_found): Skip debug insns.
2451 * rtl.def (VALUE): Move up.
2453 * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
2454 (nearest_common_dominator_of_uses): Take debug_stmts argument.
2455 Set it if debug stmts are found.
2456 (statement_sink_location): Skip debug stmts. Propagate
2457 moving defs into debug stmts.
2458 * ifcvt.c (first_active_insn): Skip debug insns.
2459 (last_active_insns): Likewise.
2460 (cond_exec_process_insns): Likewise.
2461 (noce_process_if_block): Likewise.
2462 (check_cond_move_block): Likewise.
2463 (cond_move_convert_if_block): Likewise.
2464 (block_jumps_and_fallthru_p): Likewise.
2465 (dead_or_predicable): Likewise.
2466 * dwarf2out.c (debug_str_hash_forced): New.
2467 (find_AT_string): Add comment.
2468 (gen_label_for_indirect_string): New.
2469 (get_debug_string_label): New.
2470 (AT_string_form): Use it.
2471 (mem_loc_descriptor): Handle non-TLS symbols. Handle MINUS , DIV,
2472 MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING. Accept but
2473 discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
2474 several operations that cannot be represented with DWARF opcodes.
2475 (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND. Require
2476 dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
2477 (dwarf2out_var_location): Take during-call mark into account.
2478 (output_indirect_string): Update comment. Output if there are
2479 label and references.
2480 (prune_indirect_string): New.
2481 (prune_unused_types): Call it if debug_str_hash_forced.
2482 More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
2483 (dw_long_long_const): Remove.
2484 (struct dw_val_struct): Change val_long_long type to rtx.
2485 (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
2486 val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
2487 (output_die): Likewise. Use HOST_BITS_PER_WIDE_INT size of each
2488 component instead of HOST_BITS_PER_LONG.
2489 (output_loc_operands): Likewise. For const8* assert
2490 HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
2491 (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
2492 rather than HOST_BITS_PER_LONG is >= 64.
2493 (add_AT_long_long): Remove val_hi and val_lo arguments, add
2495 (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
2496 HOST_BITS_PER_LONG for dw_val_class_long_long.
2497 (add_const_value_attribute): Adjust add_AT_long_long caller. Don't
2498 handle TLS SYMBOL_REFs. If CONST wraps a constant, tail recurse.
2499 (dwarf_stack_op_name): Handle DW_OP_implicit_value and
2501 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
2502 Handle DW_OP_implicit_value.
2503 (extract_int): Move prototype earlier.
2504 (mem_loc_descriptor): For SUBREG punt if inner
2505 mode size is wider than DWARF2_ADDR_SIZE. Handle SIGN_EXTEND
2506 and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}. Handle
2507 EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
2508 UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
2509 (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
2510 instead of Pmode size.
2511 (loc_descriptor): Add MODE argument. Handle CONST_INT, CONST_DOUBLE,
2512 CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
2513 attempt to handle other expressions. Don't handle TLS SYMBOL_REFs.
2514 (concat_loc_descriptor, concatn_loc_descriptor,
2515 loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
2516 (add_location_or_const_value_attribute): Likewise. For single
2517 location loc_lists attempt to use add_const_value_attribute
2518 for constant decls. Add DW_AT_const_value even if
2519 NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
2521 * cfgbuild.c (inside_basic_block_p): Handle debug insns.
2522 (control_flow_insn_p): Likewise.
2523 * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
2524 (separate_decls_in_region_debug_bind): New.
2525 (separate_decls_in_region): Process debug bind stmts afterwards.
2526 * recog.c (verify_changes): Handle debug insns.
2527 (extract_insn): Likewise.
2528 (peephole2_optimize): Skip debug insns.
2529 * dse.c (scan_insn): Skip debug insns.
2530 * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
2532 (setup_id_for_insn): Handle debug insns.
2533 (maybe_tidy_empty_bb): Adjust whitespace.
2534 (tidy_control_flow): Skip debug insns.
2535 (sel_remove_insn): Adjust for debug insns.
2536 (sel_estimate_number_of_insns): Skip debug insns.
2537 (create_insn_rtx_from_pattern): Handle debug insns.
2538 (create_copy_of_insn_rtx): Likewise.
2539 * sel-sched-.h (sel_bb_end): Declare.
2540 (sel_bb_empty_or_nop_p): New.
2541 (get_all_loop_exits): Use it.
2542 (_eligible_successor_edge_p): Likewise.
2543 (return_nop_to_pool): Adjust.
2544 * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
2545 * ira-lives.c (process_bb_node_lives): Skip debug insns.
2546 * gimple-pretty-print.c (dump_gimple_debug): New.
2547 (dump_gimple_stmt): Use it.
2548 (dump_bb_header): Skip gimple debug stmts.
2549 * regmove.c (optimize_reg_copy_1): Discount debug insns.
2550 (fixup_match_2): Likewise.
2551 (regmove_backward_pass): Likewise. Simplify combined
2552 replacement. Handle debug insns.
2553 * function.c (instantiate_virtual_regs): Handle debug insns.
2554 * function.h (struct emit_status): Add x_cur_debug_insn_uid.
2555 * print-rtl.h: Include cselib.h.
2556 (print_rtx): Print VALUEs. Split out and recurse for VAR_LOCATIONs.
2557 * df.h (df_inns_rescan_debug_internal): Declare.
2558 * gcse.c (alloc_hash_table): Estimate n_insns.
2559 (cprop_insn): Don't regard debug insns as changes.
2560 (bypass_conditional_jumps): Skip debug insns.
2561 (one_pre_gcse_pass): Adjust.
2562 (one_code_hoisting_pass): Likewise.
2563 (compute_ld_motion_mems): Skip debug insns.
2564 (one_cprop_pass): Adjust.
2565 * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
2566 (if_convertible_stmt_p): Handle debug stmts.
2567 * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
2568 * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
2569 * ira-build.c (create_bb_allocnos): Skip debug insns.
2570 * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
2571 (has_single_use): Likewise.
2572 (single_imm_use): Likewise.
2573 (num_imm_uses): Likewise.
2574 * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
2575 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
2576 (create_outofssa_var_map): Likewise.
2577 * lower-subreg.c (adjust_decomposed_uses): New.
2578 (resolve_debug): New.
2579 (decompose_multiword_subregs): Use it.
2580 * tree-dfa.c (find_referenced_vars): Skip debug stmts.
2581 * emit-rtl.c: Include params.h.
2582 (cur_debug_insn_uid): Define.
2583 (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
2584 (copy_rtx_if_shared_1): Handle debug insns.
2585 (reset_used_flags): Likewise.
2586 (set_used_flags): LIkewise.
2587 (get_max_insn_count): New.
2588 (next_nondebug_insn): New.
2589 (prev_nondebug_insn): New.
2590 (make_debug_insn_raw): New.
2591 (emit_insn_before_noloc): Handle debug insns.
2592 (emit_jump_insn_before_noloc): Likewise.
2593 (emit_call_insn_before_noloc): Likewise.
2594 (emit_debug_insn_before_noloc): New.
2595 (emit_insn_after_noloc): Handle debug insns.
2596 (emit_jump_insn_after_noloc): Likewise.
2597 (emit_call_insn_after_noloc): Likewise.
2598 (emit_debug_insn_after_noloc): Likewise.
2599 (emit_insn_after): Take loc from earlier non-debug insn.
2600 (emit_jump_insn_after): Likewise.
2601 (emit_call_insn_after): Likewise.
2602 (emit_debug_insn_after_setloc): New.
2603 (emit_debug_insn_after): New.
2604 (emit_insn_before): Take loc from later non-debug insn.
2605 (emit_jump_insn_before): Likewise.
2606 (emit_call_insn_before): Likewise.
2607 (emit_debug_insn_before_setloc): New.
2608 (emit_debug_insn_before): New.
2609 (emit_insn): Handle debug insns.
2610 (emit_debug_insn): New.
2611 (emit_jump_insn): Handle debug insns.
2612 (emit_call_insn): Likewise.
2614 (init_emit): Take min-nondebug-insn-uid into account.
2615 Initialize cur_debug_insn_uid.
2616 (emit_copy_of_insn_after): Handle debug insns.
2617 * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
2618 location of single rhs in place.
2619 (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
2620 (floor_sdiv_adjust): New.
2621 (cell_sdiv_adjust): New.
2622 (cell_udiv_adjust): New.
2623 (round_sdiv_adjust): New.
2624 (round_udiv_adjust): New.
2625 (wrap_constant): Moved from cselib.
2626 (unwrap_constant): New.
2627 (expand_debug_expr): New.
2628 (expand_debug_locations): New.
2629 (expand_gimple_basic_block): Drop hiding redeclaration. Expand
2631 (gimple_expand_cfg): Expand debug locations.
2632 * cselib.c: Include tree-pass.h.
2633 (struct expand_value_data): New.
2634 (cselib_record_sets_hook): New.
2635 (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
2636 (cselib_clear_table): Move, and implemnet in terms of...
2637 (cselib_reset_table_with_next_value): ... this.
2638 (cselib_get_next_unknown_value): New.
2639 (discard_useless_locs): Don't discard preserved values.
2640 (cselib_preserve_value): New.
2641 (cselib_preserved_value_p): New.
2642 (cselib_preserve_definitely): New.
2643 (cselib_clear_preserve): New.
2644 (cselib_preserve_only_values): New.
2645 (new_cselib_val): Take rtx argument. Dump it in details.
2646 (cselib_lookup_mem): Adjust.
2647 (expand_loc): Take regs_active in struct. Adjust. Silence
2648 dumps unless details are requested.
2649 (cselib_expand_value_rtx_cb): New.
2650 (cselib_expand_value_rtx): Rename and reimplment in terms of...
2651 (cselib_expand_value_rtx_1): ... this. Adjust. Silence dumps
2652 without details. Copy more subregs. Try to resolve values
2653 using a callback. Wrap constants.
2654 (cselib_subst_to_values): Adjust.
2655 (cselib_log_lookup): New.
2656 (cselib_lookup): Call it.
2657 (cselib_invalidate_regno): Don't count preserved values as useless.
2658 (cselib_invalidate_mem): Likewise.
2659 (cselib_record_set): Likewise.
2660 (struct set): Renamed to cselib_set, moved to cselib.h.
2661 (cselib_record_sets): Adjust. Call hook.
2662 (cselib_process_insn): Reset table when it would be cleared.
2663 (dump_cselib_val): New.
2664 (dump_cselib_table): New.
2665 * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
2666 (remove_forwarder_block): Support moving debug stmts.
2667 * cselib.h (cselib_record_sets_hook): Declare.
2668 (cselib_expand_callback): New type.
2669 (cselib_expand_value_rtx_cb): Declare.
2670 (cselib_reset_table_with_next_value): Declare.
2671 (cselib_get_next_unknown_value): Declare.
2672 (cselib_preserve_value): Declare.
2673 (cselib_preserved_value_p): Declare.
2674 (cselib_preserve_only_values): Declare.
2675 (dump_cselib_table): Declare.
2676 * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
2677 (try_crossjump_to_edge): Likewise.
2678 (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
2679 dominated blocks when debug stmts are present.
2680 * simplify-rtx.c (delegitimize_mem_from_attrs): New.
2681 * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
2682 (set_var_live_on_entry): Likewise.
2683 * loop-invariant.c (find_invariants_bb): Skip debug insns.
2684 * cfglayout.c (curr_location, last_location): Make static.
2685 (set_curr_insn_source_location): Don't avoid bouncing.
2686 (get_curr_insn_source_location): New.
2687 (get_curr_insn_block): New.
2688 (duplicate_insn_chain): Handle debug insns.
2689 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
2691 * common.opt (fcompare-debug): Move to sort order.
2692 (fdump-unnumbered-links): Likewise.
2693 (fvar-tracking-assignments): New.
2694 (fvar-tracking-assignments-toggle): New.
2695 * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
2696 because of debug stmts.
2697 (mark_stmt_if_obviously_necessary): Mark debug stmts.
2698 (eliminate_unnecessary_stmts): Walk dominated blocks before
2700 * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
2701 * ira.c (memref_used_between_p): Skip debug insns.
2702 (update_equiv_regs): Likewise.
2703 * sched-deps.c (sd_lists_size): Accept empty list.
2704 (sd_init_insn): Mark debug insns.
2705 (sd_finish_insn): Unmark them.
2706 (sd_add_dep): Reject non-debug deps on debug insns.
2707 (fixup_sched_groups): Give debug insns group treatment.
2709 (sched_analyze_reg): Don't mark debug insns for sched before call.
2710 (sched_analyze_2): Handle debug insns.
2711 (sched_analyze_insn): Compute next non-debug insn. Handle debug
2713 (deps_analyze_insn): Handle debug insns.
2714 (deps_start_bb): Skip debug insns.
2715 (init_deps): Initialize last_debug_insn.
2716 * tree-ssa.c (target_for_debug_bind): New.
2717 (find_released_ssa_name): New.
2718 (propagate_var_def_into_debug_stmts): New.
2719 (propagate_defs_into_debug_stmts): New.
2720 (verify_ssa): Skip debug bind stmts without values.
2721 (warn_uninialized_vars): Skip debug stmts.
2722 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
2723 * rtl.c (rtx_equal_p_cb): Handle VALUEs.
2724 (rtx_equal_p): Likewise.
2725 * ira-costs.c (scan_one_insn): Skip debug insns.
2726 (process_bb_node_for_hard_reg_moves): Likewise.
2727 * rtl.h (DEBUG_INSN_P): New.
2728 (NONDEBUG_INSN_P): New.
2729 (MAY_HAVE_DEBUG_INSNS): New.
2730 (INSN_P): Accept debug insns.
2731 (RTX_FRAME_RELATED_P): Likewise.
2732 (INSN_DELETED_P): Likewise
2733 (PAT_VAR_LOCATION_DECL): New.
2734 (PAT_VAR_LOCATION_LOC): New.
2735 (PAT_VAR_OCATION_STATUS): New.
2736 (NOTE_VAR_LOCATION_DECL): Reimplement.
2737 (NOTE_VAR_LOCATION_LOC): Likewise.
2738 (NOTE_VAR_LOCATION_STATUS): Likewise.
2739 (INSN_VAR_LOCATION): New.
2740 (INSN_VAR_LOCATION_DECL): New.
2741 (INSN_VAR_LOCATION_LOC): New.
2742 (INSN_VAR_LOCATION_STATUS): New.
2743 (gen_rtx_UNKNOWN_VAR_LOC): New.
2744 (VAR_LOC_UNKNOWN_P): New.
2745 (NOTE_DURING_CALL_P): New.
2746 (SCHED_GROUP_P): Accept debug insns.
2747 (emit_debug_insn_before): Declare.
2748 (emit_debug_insn_before_noloc): Declare.
2749 (emit_debug_insn_beore_setloc): Declare.
2750 (emit_debug_insn_after): Declare.
2751 (emit_debug_insn_after_noloc): Declare.
2752 (emit_debug_insn_after_setloc): Declare.
2753 (emit_debug_insn): Declare.
2754 (make_debug_insn_raw): Declare.
2755 (prev_nondebug_insn): Declare.
2756 (next_nondebug_insn): Declare.
2757 (delegitimize_mem_from_attrs): Declare.
2758 (get_max_insn_count): Declare.
2759 (wrap_constant): Declare.
2760 (unwrap_constant): Declare.
2761 (get_curr_insn_source_location): Declare.
2762 (get_curr_insn_block): Declare.
2763 * tree-inline.c (insert_debug_decl_map): New.
2764 (processing_debug_stmt): New.
2765 (remap_decl): Don't create new mappings in debug stmts.
2766 (remap_gimple_op_r): Don't add references in debug stmts.
2767 (copy_tree_body_r): Likewise.
2768 (remap_gimple_stmt): Handle debug bind stmts.
2769 (copy_bb): Skip debug stmts.
2770 (copy_edges_for_bb): Likewise.
2771 (copy_debug_stmt): New.
2772 (copy_debug_stmts): New.
2773 (copy_body): Copy debug stmts at the end.
2774 (insert_init_debug_bind): New.
2775 (insert_init_stmt): Take id. Skip and emit debug stmts.
2776 (setup_one_parameter): Remap variable earlier, register debug mapping.
2777 (estimate_num_insns): Skip debug stmts.
2778 (expand_call_inline): Preserve debug_map.
2779 (optimize_inline_calls): Check for no debug_stmts left-overs.
2780 (unsave_expr_now): Preserve debug_map.
2781 (copy_gimple_seq_and_replace_locals): Likewise.
2782 (tree_function_versioning): Check for no debug_stmts left-overs.
2783 Init and destroy debug_map as needed. Split edges unconditionally.
2784 (build_duplicate_type): Init and destroy debug_map as needed.
2785 * tree-inline.h: Include gimple.h instead of pointer-set.h.
2786 (struct copy_body_data): Add debug_stmts and debug_map.
2787 * sched-int.h (struct ready_list): Add n_debug.
2788 (struct deps): Add last_debug_insn.
2789 (DEBUG_INSN_SCHED_P): New.
2790 (BOUNDARY_DEBUG_INSN_P): New.
2791 (SCHEDULE_DEBUG_INSN_P): New.
2792 (sd_iterator_cond): Accept empty list.
2793 * combine.c (create_log_links): Skip debug insns.
2794 (combine_instructions): Likewise.
2795 (cleanup_auto_inc_dec): New. From Jakub Jelinek: Make sure the
2796 return value is always unshared.
2797 (struct rtx_subst_pair): New.
2798 (auto_adjust_pair): New.
2799 (propagate_for_debug_subst): New.
2800 (propagate_for_debug): New.
2801 (try_combine): Skip debug insns. Propagate removed defs into
2803 (next_nonnote_nondebug_insn): New.
2804 (distribute_notes): Use it. Skip debug insns.
2805 (distribute_links): Skip debug insns.
2806 * tree-outof-ssa.c (set_location_for_edge): Likewise.
2807 * resource.c (mark_target_live_regs): Likewise.
2808 * var-tracking.c: Include cselib.h and target.h.
2809 (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
2811 (micro_operation_type_name): New.
2812 (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
2813 (struct micro_operation_def): Update comments.
2814 (decl_or_value): New type. Use instead of decls.
2815 (struct emit_note_data_def): Add vars.
2816 (struct attrs_def): Use decl_or_value.
2817 (struct variable_tracking_info_def): Add permp, flooded.
2818 (struct location_chain_def): Update comment.
2819 (struct variable_part_def): Use decl_or_value.
2820 (struct variable_def): Make var_part a variable length array.
2822 (scratch_regs): New.
2823 (cselib_hook_called): New.
2824 (dv_is_decl_p): New.
2825 (dv_is_value_p): New.
2828 (dv_as_opaque): New.
2829 (dv_onepart_p): New.
2831 (IS_DECL_CODE): New.
2832 (check_value_is_not_decl): New.
2833 (dv_from_decl): New.
2834 (dv_from_value): New.
2835 (dv_htab_hash): New.
2836 (variable_htab_hash): Use it.
2837 (variable_htab_eq): Support values.
2838 (variable_htab_free): Free from the right pool.
2839 (attrs_list_member, attrs_list_insert): Use decl_or_value.
2840 (attrs_list_union): Adjust.
2841 (attrs_list_mpdv_union): New.
2842 (tie_break_pointers): New.
2843 (canon_value_cmp): New.
2844 (unshare_variable): Return possibly-modified slot.
2845 (vars_copy_1): Adjust.
2846 (var_reg_decl_set): Adjust. Split out of...
2847 (var_reg_set): ... this.
2848 (get_init_value): Adjust.
2849 (var_reg_delete_and_set): Adjust.
2850 (var_reg_delete): Adjust.
2851 (var_regno_delete): Adjust.
2852 (var_mem_decl_set): Split out of...
2853 (var_mem_set): ... this.
2854 (var_mem_delete_and_set): Adjust.
2855 (var_mem_delete): Adjust.
2859 (variable_union): Adjust. Speed up merge of 1-part vars.
2860 (variable_canonicalize): Use unshared slot.
2861 (VALUED_RECURSED_INTO): New.
2862 (find_loc_in_1pdv): New.
2863 (struct dfset_merge): New.
2864 (insert_into_intersection): New.
2865 (intersect_loc_chains): New.
2867 (canonicalize_loc_order_check): New.
2868 (canonicalize_values_mark): New.
2869 (canonicalize_values_star): New.
2870 (variable_merge_over_cur): New.
2871 (variable_merge_over_src): New.
2872 (dataflow_set_merge): New.
2873 (dataflow_set_equiv_regs): New.
2874 (remove_duplicate_values): New.
2875 (struct dfset_post_merge): New.
2876 (variable_post_merge_new_vals): New.
2877 (variable_post_merge_perm_vals): New.
2878 (dataflow_post_merge_adjust): New.
2879 (find_mem_expr_in_1pdv): New.
2880 (dataflow_set_preserve_mem_locs): New.
2881 (dataflow_set_remove_mem_locs): New.
2882 (dataflow_set_clear_at_call): New.
2883 (onepart_variable_different_p): New.
2884 (variable_different_p): Use it.
2885 (dataflow_set_different_1): Adjust. Make detailed dump more verbose.
2886 (track_expr_p): Add need_rtl parameter. Don't generate rtl
2888 (track_loc_p): Pass it true.
2889 (struct count_use_info): New.
2890 (find_use_val): New.
2891 (replace_expr_with_values): New.
2893 (use_type): New, partially split out of...
2894 (count_uses): ... this. Count new micro-ops.
2895 (count_uses_1): Adjust.
2896 (count_stores): Adjust.
2897 (count_with_sets): New.
2898 (VAL_NEEDS_RESOLUTION): New.
2899 (VAL_HOLDS_TRACK_EXPR): New.
2900 (VAL_EXPR_IS_COPIED): New.
2901 (VAL_EXPR_IS_CLOBBERED): New.
2902 (add_uses): Adjust. Generate new micro-ops.
2903 (add_uses_1): Adjust.
2904 (add_stores): Generate new micro-ops.
2905 (add_with_sets): New.
2906 (find_src_status): Adjust.
2907 (find_src_set_src): Adjust.
2908 (compute_bb_dataflow): Use dataflow_set_clear_at_call.
2909 Handle new micro-ops. Canonicalize value equivalances.
2910 (vt_find_locations): Compute total size of hash tables for
2911 dumping. Perform merge for var-tracking-assignments. Don't
2912 disregard single-block loops.
2913 (dump_attrs_list): Handle decl_or_value.
2914 (dump_variable): Take variable. Deal with decl_or_value.
2915 (dump_variable_slot): New.
2916 (dump_vars): Use it.
2917 (dump_dataflow_sets): Adjust.
2918 (set_slot_part): New, extended to support one-part variables
2919 after splitting out of...
2920 (set_variable_part): ... this.
2921 (clobber_slot_part): New, split out of...
2922 (clobber_variable_part): ... this.
2923 (delete_slot_part): New, split out of...
2924 (delete_variable_part): .... this.
2925 (check_wrap_constant): New.
2926 (vt_expand_loc_callback): New.
2927 (vt_expand_loc): New.
2928 (emit_note_insn_var_location): Adjust. Handle values. Handle
2929 EMIT_NOTE_AFTER_CALL_INSN.
2930 (emit_notes_for_differences_1): Adjust. Handle values.
2931 (emit_notes_for_differences_2): Likewise.
2932 (emit_notes_for_differences): Adjust.
2933 (emit_notes_in_bb): Take pointer to set. Emit AFTER_CALL_INSN notes.
2934 Adjust. Handle new micro-ops.
2935 (vt_add_function_parameters): Adjust. Create and bind values.
2936 (vt_initialize): Adjust. Initialize scratch_regs and
2937 valvar_pool, flooded and perm.. Initialize and use cselib. Log
2938 operations. Move some code to count_with_sets and add_with_sets.
2939 (delete_debug_insns): New.
2940 (vt_debug_insns_local): New.
2941 (vt_finalize): Release permp, valvar_pool, scratch_regs. Finish
2943 (var_tracking_main): If var-tracking-assignments is enabled
2944 but var-tracking isn't, delete debug insns and leave. Likewise
2945 if we exceed limits or fail the stack adjustments tests, and
2946 after all var-tracking processing.
2947 More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
2948 (dataflow_set): Add traversed_vars.
2949 (value_chain, const_value_chain): New typedefs.
2950 (value_chain_pool, value_chains): New variables.
2951 (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
2952 add_value_chains, add_cselib_value_chains, remove_value_chain,
2953 remove_value_chains, remove_cselib_value_chains): New functions.
2954 (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
2955 shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
2957 (shared_hash_find_slot_unshare, shared_hash_find_slot,
2958 shared_hash_find_slot_noinsert, shared_hash_find): Update.
2959 (dst_can_be_shared): New variable.
2960 (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
2961 Clear dst_can_be_shared. If set->traversed_vars is non-NULL and
2962 different from set->vars, look up slot again instead of using the
2964 (dataflow_set_init): Initialize traversed_vars.
2965 (variable_union): Use shared_hash_*. Use initially NO_INSERT
2966 lookup if set->vars is shared. Don't keep slot cleared before
2967 calling unshare_variable. Unshare set->vars if needed. Adjust
2968 unshare_variable callers. Clear dst_can_be_shared if needed.
2969 Even ->refcount == 1 vars must be unshared if set->vars is shared
2970 and var needs to be modified.
2971 (dataflow_set_union): Set traversed_vars during canonicalization.
2972 (VALUE_CHANGED, DECL_CHANGED): Define.
2973 (set_dv_changed, dv_changed_p): New static inlines.
2974 (track_expr_p): Clear DECL_CHANGED.
2975 (dump_dataflow_sets): Set it.
2976 (variable_was_changed): Call set_dv_changed.
2977 (emit_note_insn_var_location): Likewise.
2978 (changed_variables_stack): New variable.
2979 (check_changed_vars_1, check_changed_vars_2): New functions.
2980 (emit_notes_for_changes): Do nothing if changed_variables is
2981 empty. Traverse changed_variables with check_changed_vars_1,
2982 call check_changed_vars_2 on each changed_variables_stack entry.
2983 (emit_notes_in_bb): Add SET argument. Just clear it at the
2984 beginning, use it instead of local &set, don't destroy it at the end.
2985 (vt_emit_notes): Call dataflow_set_clear early on all
2986 VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
2987 computed set, dataflow_set_clear also VTI(bb)->in when we are
2988 done with the basic block. Initialize changed_variables_stack,
2989 free it afterwards. If ENABLE_CHECKING verify that after noting
2990 differences to an empty set value_chains hash table is empty.
2991 (vt_initialize): Initialize value_chains and value_chain_pool.
2992 (vt_finalize): Delete value_chains htab, free value_chain_pool.
2993 (variable_tracking_main): Call dump_dataflow_sets before calling
2994 vt_emit_notes, not after it.
2995 * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
2996 (propagate_var_def_into_debug_stmts): Declare.
2997 * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
2998 (df_set_note): Reject debug insns.
2999 (df_whole_mw_reg_dead_p): Take added_notes_p argument. Don't
3000 add notes to debug insns.
3001 (df_note_bb_compute): Adjust. Likewise.
3002 (df_simulate_uses): Skip debug insns.
3003 (df_simulate_initialize_backwards): Likewise.
3004 * reg-stack.c (subst_stack_regs_in_debug_insn): New.
3005 (subst_stack_regs_pat): Reject debug insns.
3006 (convert_regs_1): Handle debug insns.
3007 * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
3008 (print-rtl.o): Depend on cselib.h.
3009 (cselib.o): Depend on TREE_PASS_H.
3010 (var-tracking.o): Depend on cselib.h and TARGET_H.
3011 * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
3012 (init_ready_list): Skip boundary debug insns.
3013 (add_branch_dependences): Skip debug insns.
3014 (free_block_dependencies): Check for blocks with only debug insns.
3015 (compute_priorities): Likewise.
3016 * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
3017 (gimple_build_with_ops_stat): Take subcode as unsigned. Adjust
3019 (gimple_build_debug_bind_stat): New.
3020 (empty_body_p): Skip debug stmts.
3021 (gimple_has_side_effects): Likewise.
3022 (gimple_rhs_has_side_effects): Likewise.
3023 * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
3024 (gimple_build_debug_bind_stat): Declare.
3025 (gimple_build_debug_bind): Define.
3026 (is_gimple_debug): New.
3027 (gimple_debug_bind_p): New.
3028 (gimple_debug_bind_get_var): New.
3029 (gimple_debug_bind_get_value): New.
3030 (gimple_debug_bind_get_value_ptr): New.
3031 (gimple_debug_bind_set_var): New.
3032 (gimple_debug_bind_set_value): New.
3033 (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
3034 (gimple_debug_bind_reset_value): New.
3035 (gimple_debug_bind_has_value_p): New.
3036 (gsi_next_nondebug): New.
3037 (gsi_prev_nondebug): New.
3038 (gsi_start_nondebug_bb): New.
3039 (gsi_last_nondebug_bb): New.
3040 * sched-vis.c (print_pattern): Handle VAR_LOCATION.
3041 (print_insn): Handle DEBUG_INSN.
3042 * tree-cfg.c (remove_bb): Walk stmts backwards. Let loc
3043 of first insn prevail.
3044 (first_stmt): Skip debug stmts.
3045 (first_non_label_stmt): Likewise.
3046 (last_stmt): Likewise.
3047 (has_zero_uses_1): New.
3048 (single_imm_use_1): New.
3049 (verify_gimple_debug): New.
3050 (verify_types_in_gimple_stmt): Handle debug stmts.
3051 (verify_stmt): Likewise.
3052 (debug_loop_num): Skip debug stmts.
3053 (remove_edge_and_dominated_blocks): Remove dominators last.
3054 * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
3055 (linearize_expr): Likewise.
3056 * config/i386/i386.c (ix86_delegitimize_address): Call
3057 default implementation.
3058 * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
3059 (group_barrier_needed): Skip debug insns.
3060 (emit_insn_group_barriers): Likewise.
3061 (emit_all_insn_group_barriers): Likewise.
3062 (ia64_variable_issue): Handle debug insns.
3063 (ia64_dfa_new_cycle): Likewise.
3064 (final_emit_insn_group_barriers): Skip debug insns.
3065 (ia64_dwarf2out_def_steady_cfa): Take frame argument. Don't
3066 def cfa without frame.
3067 (process_set): Likewise.
3068 (process_for_unwind_directive): Pass frame on.
3069 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
3070 (rs6000_delegitimize_address): New.
3071 (rs6000_debug_adjust_cost): Handle debug insns.
3072 (is_microcoded_insn): Likewise.
3073 (is_cracked_insn): Likewise.
3074 (is_nonpipeline_insn): Likewise.
3075 (insn_must_be_first_in_group): Likewise.
3076 (insn_must_be_last_in_group): Likewise.
3077 (force_new_group): Likewise.
3078 * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
3079 contains only debug insns.
3080 (rtl_merge_blocks): Skip debug insns.
3081 (purge_dead_edges): Likewise.
3082 (rtl_block_ends_with_call_p): Skip debug insns.
3083 * dce.c (deletable_insn_p): Handle VAR_LOCATION.
3084 (mark_reg_dependencies): Skip debug insns.
3085 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
3086 * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
3087 * tree-ssa-threadedge.c
3088 (record_temporary_equivalences_from_stmts): Skip debug stmts.
3089 * regcprop.c (replace_oldest_value_addr): Skip debug insns.
3090 (replace_oldest_value_mem): Use ALL_REGS for debug insns.
3091 (copyprop_hardreg_forward_1): Handle debug insns.
3092 * reload1.c (reload): Skip debug insns. Replace unassigned
3093 pseudos in debug insns with their equivalences.
3094 (eliminate_regs_in_insn): Skip debug insns.
3095 (emit_input_reload_insns): Skip debug insns at first, adjust
3097 * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
3098 (get_indirect_ref_operands): Pass opf_no_vops on.
3099 (get_expr_operands): Likewise. Skip debug stmts.
3100 (parse_ssa_operands): Scan debug insns with opf_no_vops.
3102 2009-09-01 Richard Henderson <rth@redhat.com>
3104 * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
3105 stmt_ends_pp_p statements at least once.
3106 * tree-vrp.c (vrp_initialize): Likewise.
3107 (vrp_visit_stmt): Be prepared for non-interesting stmts.
3109 2009-09-01 Dodji Seketeli <dodji@redhat.com>
3112 Fix AIX bootstrap after PR debug/30161
3113 * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
3114 that is a GNU extension.
3115 (tmpl_value_parm_die_table): Move the definition of this global
3116 outside #ifdef DWARF2_DEBUGGING_INFO region.
3118 2009-09-01 Richard Guenther <rguenther@suse.de>
3120 * tree.c (tree_expr_size): New function.
3121 * tree.h (tree_expr_size): Declare.
3122 * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
3123 * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
3124 * langhooks.c (lhd_expr_size): Remove.
3125 * langhooks.h (struct lang_hooks): Remove expr_size.
3126 * explow.c (expr_size): Use tree_expr_size.
3127 (int_expr_size): Likewise.
3128 * langhooks-def.h (lhd_expr_size): Remove.
3129 (LANG_HOOKS_EXPR_SIZE): Likewise.
3130 (LANG_HOOKS_INITIALIZER): Adjust.
3132 2009-09-01 Richard Guenther <rguenther@suse.de>
3134 * tree-flow.h (mark_addressable): Move declaration ...
3135 * tree.h (mark_addressable): ... here.
3136 * stmt.c (expand_asm_operands): Use mark_addressable, not
3137 lang_hooks.mark_addressable.
3138 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
3139 LANG_HOOKS_MARK_ADDRESSABLE.
3140 * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
3141 * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
3143 2009-08-31 Chris Demetriou <cgd@google.com>
3145 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
3146 vectorize if not TARGET_SSE2.
3148 2009-08-31 DJ Delorie <dj@redhat.com>
3150 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
3151 registers if no coprocessor is enabled.
3153 2009-08-31 Dodji Seketeli <dodji@redhat.com>
3156 * cgraph.h (cgraph_get_node): Declare ...
3157 * cgraph.c (cgraph_get_node): ... new function.
3158 * dwarf2out.c (gen_generic_params_dies,
3159 generic_parameter_die, tree_add_const_value_attribute_for_decl,
3160 make_ith_pack_parameter_name,
3161 append_entry_to_tmpl_value_parm_die_table,
3162 gen_remaining_tmpl_value_param_die_attribute): New functions.
3163 (gen_subprogram_die): Generate debug info for template parameters
3164 if debug info level is higher than DINFO_LEVEL_TERSE.
3165 Use tree_add_const_value_attribute_for_decl instead of
3166 tree_add_const_value_attribute.
3167 (gen_const_die): Use tree_add_const_value_attribute_for_decl
3168 instead of tree_add_const_value_attribute.
3169 (gen_struct_or_union_type_die): Generate debug
3170 info for template parameters if debug info level is higher than
3172 (tree_add_const_value_attribute): Handle integral and pointer
3173 constants. Update comment.
3174 (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
3175 (dwarf_attr_name): Support DW_AT_GNU_template_name.
3176 (reference_to_unused): Fix thinko. Remove redundant predicates from
3178 (tree_add_const_value_attribute): Make this work for constant
3180 tree_add_const_value_attribute_for_decl is to be used for variable
3182 (add_location_or_const_value_attribute): Use
3183 tree_add_const_value_attribute_for_decl now.
3184 (dwarf2out_finish): Emit the DW_AT_const_value attribute of
3185 DW_TAG_template_value_param DIEs after function DIEs have been
3187 * langhooks.h (lang_hooks_for_types): Add
3188 get_argument_pack_elems.
3189 (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
3190 (lang_hooks): Added get_innermost_generic_parms,
3191 get_innermost_generic_args.
3192 * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
3193 LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
3194 LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
3195 LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
3197 2009-08-31 DJ Delorie <dj@redhat.com>
3199 * config/mep/mep.c (machine_function): Add frame_locked flag. Set
3200 it once we start generating the prologue or epilogue.
3201 (mep_call_saves_register): If the frame is locked, re-use
3203 (mep_assign_save_slots): New, broken out from mep_expand_prologue.
3204 (mep_expand_prologue): Call it.
3205 (mep_expand_epilogue): Likewise.
3206 (mep_start_function): Use the same logic as mep_expand_prologue.
3207 (mep_pass_by_reference): Make logic more readable.
3208 (mep_return_in_memory): Zero-sized objects are passed in memory.
3209 (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
3211 2009-08-31 Richard Guenther <rguenther@suse.de>
3213 * builtins.c (fold_builtin_memory_op): Use the alias oracle
3214 to query if the memory regions for memmove overlap.
3215 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
3216 asserts on pointers, instead deal with odd trees.
3217 (ptr_derefs_may_alias_p): Likewise.
3218 (refs_may_alias_p_1): Constructor bases also never alias.
3220 2009-08-31 Gerald Pfeifer <gerald@pfeifer.com>
3222 * doc/install.texi (Final install): Adjust reference on where to
3223 order printed manuals.
3225 2009-08-30 Olivier Hainque <hainque@adacore.com>
3227 * dwarf2out.c (switch_to_frame_table_section): Move
3228 definition prior to first use.
3230 2009-08-30 Richard Guenther <rguenther@suse.de>
3232 PR tree-optimization/41186
3233 * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
3234 (ao_ref_init_from_ptr_and_size): New function.
3235 (ref_maybe_used_by_call_p_1): Be more precise tracking
3236 used ranges for builtin functions.
3237 (ref_maybe_used_by_call_p): Adjust.
3238 (call_may_clobber_ref_p_1): Be more precise tracking clobbered
3239 ranges for builtin functions.
3240 * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
3242 2009-08-30 Alan Modra <amodra@bigpond.net.au>
3245 * fwprop.c (get_reg_use_in): Delete.
3246 (free_load_extend): New function.
3247 (forward_propagate_subreg): Use it.
3249 2009-08-29 Kaz Kojima <kkojima@gcc.gnu.org>
3251 * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
3253 2009-08-29 Kai Tietz<kai.tietz@onevision.com>
3256 * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
3259 2009-08-29 Douglas B Rupp <rupp@gnat.com>
3261 * crtstuff.c (__do_global_dtors_aux): Use atexit if no
3262 fini or fini_array section.
3264 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3266 * graphite-dependences.c (graphite_legal_transform_bb): Call
3267 pbb_remove_duplicate_pdrs.
3268 * graphite-poly.c (can_collapse_pdr): Removed.
3269 (pdr_find_duplicate): Removed.
3270 (can_collapse_pdrs): New.
3271 (pbb_remove_duplicate_pdrs): New.
3272 (new_poly_dr): Do not look for duplicates.
3273 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
3274 (PBB_PDR_DUPLICATES_REMOVED): New.
3275 (pbb_remove_duplicate_pdrs): Declared.
3277 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3279 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
3280 the strides by multiplying by PDR_NB_REFS.
3281 * graphite-poly.c (can_collapse_pdr): New.
3282 (pdr_find_duplicate): New.
3283 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
3284 Initialize PDR_NB_REFS.
3285 * graphite-poly.h (struct poly_dr): Add field nb_refs.
3287 (new_poly_dr): Number of subscripts is a graphite_dim_t.
3289 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3292 * graphite-poly.c (apply_poly_transforms): Remove legality test before
3295 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3297 * graphite-dependences.c (pddr_original_scattering): Return NULL
3298 for read-read dependence relations.
3299 * graphite-poly.h (enum poly_dr_type): Fix comment.
3302 (pdr_may_write_p): New.
3304 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3306 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
3307 (struct poly_dr): Same.
3308 (new_poly_dr): Same.
3309 * graphite-poly.c (new_poly_dr): Same.
3310 * graphite-dependences.c (dot_deps): Disable call to system.
3312 2009-08-28 Cary Coutant <ccoutant@google.com>
3315 * dwarf2out.c (gen_type_die_with_usage): Use proper context for
3316 struct/union/enum types local to a function.
3318 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3319 Sebastian Pop <sebastian.pop@amd.com>
3321 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
3322 pbb_strip_mine_time_depth. Changed the implementation so that
3323 transformation is expressed as a transformation on
3324 time (scatttering) dimensions. Also, ensures that the 2d+1
3325 scheduling format is preserved.
3326 (pbb_strip_mine_profitable_p): Profitability is based on the
3327 iteration number of a given time (scattering) dimension,
3328 and not on a original loop depth dimension.
3329 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
3330 (pbb_do_strip_mine): Call psct_dynamic_dim.
3331 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
3332 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
3333 (pbb_nb_dynamic_scattering_transform): New.
3334 (psct_dynamic_dim): New.
3336 2009-08-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3338 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3339 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3340 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
3341 * graphite-interchange.c (build_linearized_memory_access): Same.
3342 (memory_stride_in_loop): Same.
3344 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3346 * graphite-dependences.c (pddr_original_scattering): New.
3347 (graphite_legal_transform_dr): Call pddr_original_scattering.
3350 * graphite-dependences.h (dot_deps): Declared.
3351 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
3352 (print_pdr): Print PDR_ID.
3353 * graphite-poly.h (struct poly_dr): Add field id.
3356 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
3358 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3360 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
3361 not delete the original dependence relation.
3363 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3365 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
3366 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
3367 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
3368 (free_poly_ddr): New.
3369 (pddr_is_empty): New.
3370 (dependence_polyhedron_1): Now returns a poly_ddr_p.
3371 (dependence_polyhedron): Same. Remove useless gcc_assert.
3373 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
3374 (graphite_carried_dependence_level_k): Call pddr_is_empty.
3375 * graphite-dependences.h (enum poly_dependence_kind): New.
3376 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
3377 (PDRP_SOURCE): Renamed PDDR_SOURCE.
3378 (PDRP_SINK): Renamed PDDR_SINK.
3379 (PDRP_DDP): Renamed PDDR_DDP.
3381 (free_poly_ddr): Declared.
3382 * graphite-poly.c (new_scop): Use the new hash function names.
3383 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
3384 into original_pddrs.
3385 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
3387 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3389 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
3390 bounds with LT_EXPR to make niter analysis more precise on code
3391 generated by Graphite.
3393 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3395 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
3396 (graphite_legal_transform_bb): Same.
3397 (poly_drs_may_alias_p): Same.
3399 2009-08-28 Richard Guenther <rguenther@suse.de>
3401 * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
3403 2009-08-28 Jan Beulich <jbeulich@novell.com>
3405 * config/i386/netware.c: Include langhooks.h.
3406 (i386_nlm_encode_section_info): Simplify.
3407 (netware_override_options): Delete.
3408 * config/i386/netware.h (netware_override_options): Delete
3410 (OVERRIDE_OPTIONS): Delete definition.
3411 (SUBTARGET_OVERRIDE_OPTIONS): Define.
3412 (ASM_COMMENT_START): Define.
3413 * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
3415 2009-08-28 Jan Beulich <jbeulich@novell.com>
3417 * configure.ac: For in-tree ld, do a plain version check to
3418 determine whether comdat groups are supported.
3419 * configure: Regenerate.
3421 2009-08-28 Olivier Hainque <hainque@adacore.com>
3423 * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
3424 always defined. Reflect definition or absence of such for
3425 COLLECT_EXPORT_LIST. Readability helper.
3426 (scanfilter): New enum, to help control what symbols
3427 are to be considered or ignored by scan_prog_file.
3428 (enum pass): Rename as "scanpass", moved together with scanfilter
3429 prior to scan_prog_file's prototype.
3430 (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
3431 Group prototype with the scanpass/scanfilter definitions, factorize
3432 head comments for the several implementations at the prototype.
3433 (main): Reorganize the first pass link control to let AIX
3434 drag only the needed frame tables in executables. Prevent
3435 frame tables collection during the scan aimed at static ctors.
3436 Pre-link and scan for frame tables later to compensate.
3437 * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
3438 A C statement to issue assembly directives that create a reference
3439 to the given DWARF table identifier label from the current function
3441 * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
3442 to differentiate first time section entry. Only emit a .data
3443 tables start identifier label the first time around.
3444 (switch_to_frame_table_section): New function. Helper for
3445 output_call_frame_info to switch possibly BACK into the eh_frame
3446 or the debug_frame section depending on FOR_EH.
3447 (output_call_frame_info): Use helper to first enter the proper
3449 (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
3450 emit a link to the frame table start label from each function
3452 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
3453 New function. Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
3454 * config/rs6000/rs6000-protos.h: Declare it.
3455 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
3457 2009-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
3459 * config/sh/sh.c (split_branches): Check the result of
3462 2009-08-27 Steve Ellcey <sje@cup.hp.com>
3464 * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
3465 using -pthread -fopenmp
3467 2009-08-27 Gerald Pfeifer <gerald@pfeifer.com>
3469 * doc/service.texi (service directory): Update URL.
3471 2009-08-27 Uros Bizjak <ubizjak@gmail.com>
3473 PR rtl-optimization/40861
3474 * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
3475 extract word from a multi-word subreg for negative byte positions.
3477 2009-08-27 Tristan Gingold <gingold@adacore.com>
3478 Douglas B Rupp <rupp@gnat.com>
3480 * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
3481 (SECTION_VMS_OVERLAY): Define.
3482 (ia64_vms_common_object_attribute): Added. Handle the "common_object"
3484 (ia64_vms_elf_asm_named_section): Added. Generate .section pseudo-op
3486 (ia64_vms_output_aligned_decl_common): Added. Generate pseudo-op for
3487 common_object declarations.
3488 (ia64_section_type_flags): Set section flag for common_object.
3489 * config/ia64/ia64-protos.h
3490 (ia64_vms_output_aligned_decl_common): Declare.
3491 (ia64_vms_elf_asm_named_section): Declare.
3493 2009-08-27 Michael Matz <matz@suse.de>
3495 * expr.c (expand_expr_real_2): New function taking exploded
3496 unary or binary expression, split out from ...
3497 (expand_expr_real_1): ... here. Move over all unary/binary
3498 switch parts to above function, in particular these codes:
3499 PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
3500 MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
3501 ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
3502 FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
3503 FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
3504 BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
3505 BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
3506 LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
3507 NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
3508 UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
3509 WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
3510 VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
3511 VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
3512 VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
3513 VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
3514 VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
3515 VEC_PACK_FIX_TRUNC_EXPR.
3516 (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
3519 2009-08-27 Richard Guenther <rguenther@suse.de>
3521 * gengtype.c (main): Handle uint64_t.
3522 * ipa-utils.c (get_base_var): Indent properly.
3523 * tree-ssa-live.c (debug_scope_block): New function.
3524 * tree-flow.h (debug_scope_block): Declare.
3525 * tree-ssa-copy.c (replace_exp_1): Add vertical space.
3526 * basic-block.h (enum profile_status): Rename to
3527 enum profile_status_d.
3528 (x_profile_status): Adjust type.
3530 2009-08-27 Dodji Seketeli <dodji@redhat.com>
3533 * dwarf2out.c (get_context_die): Declare this static function.
3534 (gen_type_die_with_usage): Make sure a DIE is a generated for
3535 the context of a typedef.
3537 2009-08-26 Anatoly Sokolov <aesok@post.ru>
3539 * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
3542 2009-08-26 Richard Sandiford <rdsandiford@googlemail.com>
3544 * config/mips/mips-protos.h (mips_output_sync): Declare.
3545 (mips_sync_loop_insns): Likewise.
3546 (mips_output_sync_loop): Replace first two parameters with an rtx.
3547 * config/mips/mips.c (mips_multi_member): New structure.
3548 (mips_multi_members): New variable.
3549 (mips_multi_start): New function.
3550 (mips_multi_add): Likewise.
3551 (mips_multi_add_insn): Likewise.
3552 (mips_multi_add_label): Likewise.
3553 (mips_multi_last_index): Likewise.
3554 (mips_multi_copy_insn): Likewise.
3555 (mips_multi_set_operand): Likewise.
3556 (mips_multi_write): Likewise.
3557 (mips_print_operand_punctuation): Remove '%|' and '%-'.
3558 (mips_init_print_operand_punct): Update accordingly.
3559 (mips_start_ll_sc_sync_block): New function.
3560 (mips_end_ll_sc_sync_block): Likewise.
3561 (mips_output_sync): Likewise.
3562 (mips_sync_insn1_template): Likewise.
3563 (mips_sync_insn2_template): Likewise.
3564 (mips_get_sync_operand): Likewise.
3565 (mips_process_sync_loop): Likewise.
3566 (mips_output_sync_loop): Use mips_process_sync_loop.
3567 (mips_sync_loop_insns): New function.
3568 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
3569 (MIPS_COMPARE_AND_SWAP_12): Likewise.
3570 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
3571 (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
3572 (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
3573 (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
3574 (MIPS_SYNC_OLD_OP_12): Likewise.
3575 (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
3576 (MIPS_SYNC_NEW_OP_12): Likewise.
3577 (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
3578 (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
3579 (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
3580 (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
3581 (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
3582 (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
3583 * config/mips/mips.md (sync_mem): New attribute.
3584 (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
3585 (sync_exclusive_mask, sync_required_oldval): Likewise.
3586 (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
3587 (sync_release_barrier): Likewise.
3588 (length): Handle sync loops.
3589 (sync): Use mips_output_sync.
3590 * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
3591 (sync_compare_and_swap<mode>): Set the new sync_* attributes
3592 and use mips_output_sync_loop.
3593 (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
3594 (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
3595 (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
3596 (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
3597 (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
3598 (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
3599 (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
3600 (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
3601 (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
3603 2009-08-26 Richard Guenther <rguenther@suse.de>
3606 * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
3607 the types to not match.
3608 * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
3610 * tree-ssa.c (useless_type_conversion_p): Conversions to
3611 pointers to unprototyped functions are useless.
3613 2009-08-26 Richard Guenther <rguenther@suse.de>
3615 * tree-ssa-structalias.c (create_variable_info_for): Remove strange
3616 whole-program condition, prepare to be called for non-globals.
3617 (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
3618 params build a representative with known type and track its fields.
3620 2009-08-26 Uros Bizjak <ubizjak@gmail.com>
3622 * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
3623 clearing by a taken branch.
3624 (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
3625 effectively after bbro pass.
3626 (sync_nand<mode>): Ditto.
3627 (sync_old_<fetchop_name><mode>): Ditto.
3628 (sync_old_nand<mode>): Ditto.
3629 (sync_new_<fetchop_name><mode>): Dito.
3630 (sync_new_nand<mode>): Ditto.
3631 (sync_compare_and_swap<mode>_1): Ditto.
3632 (*sync_compare_and_swap<mode>): Ditto.
3633 (sync_lock_test_and_set<mode>_1): Ditto.
3634 ("sync_lock_test_and_set<mode>): Ditto.
3636 2009-08-25 Douglas B Rupp <rupp@gnat.com>
3638 * hwint.h (HOST_LONG_FORMAT): New macro
3639 * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
3640 Use HOST_PTR_PRINTF.
3641 * system.h (HOST_PTR_PRINTF): Resurrect old macro
3642 * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
3643 (HOST_PTR_PRINTF): Document.
3645 2009-08-25 Jan Hubicka <jh@suse.cz>
3647 * config/i386/bmmintrin.h: Replace by #error.
3650 Michael Meissner <michael.meissner@amd.com>
3651 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3652 Tony Linthicum <tony.linthicum@amd.com>
3654 * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
3655 (TARGET_ROUND): New macro for the round/ptest instructions which
3656 are shared between SSE4.1 and SSE5.
3657 (OPTION_MASK_ISA_ROUND): Ditto.
3658 (OPTION_ISA_ROUND): Ditto.
3659 (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
3660 (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
3662 * config/i386/i386.opt (-msse5): New switch for SSE5 support.
3663 (-mfused-madd): New switch to give users control over whether the
3664 compiler optimizes to use the multiply/add SSE5 instructions.
3666 * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
3667 (ix86_handle_option): Turn off 3dnow if -msse5.
3668 (override_options): Add SSE5 support.
3669 (print_operand): %Y prints comparison codes for SSE5 com/pcom
3671 (ix86_expand_sse_movcc): Add SSE5 support.
3672 (ix86_expand_sse5_unpack): New function to use pperm to unpack a
3673 vector type to the next largest size.
3674 (ix86_expand_sse5_pack): New function to use pperm to pack a
3675 vector type to the next smallest size.
3676 (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
3677 (IX86_BUILTIN_FMADDSD): Ditto.
3678 (IX86_BUILTIN_FMADDPS): Ditto.
3679 (IX86_BUILTIN_FMADDPD): Ditto.
3680 (IX86_BUILTIN_FMSUBSS): Ditto.
3681 (IX86_BUILTIN_FMSUBSD): Ditto.
3682 (IX86_BUILTIN_FMSUBPS): Ditto.
3683 (IX86_BUILTIN_FMSUBPD): Ditto.
3684 (IX86_BUILTIN_FNMADDSS): Ditto.
3685 (IX86_BUILTIN_FNMADDSD): Ditto.
3686 (IX86_BUILTIN_FNMADDPS): Ditto.
3687 (IX86_BUILTIN_FNMADDPD): Ditto.
3688 (IX86_BUILTIN_FNMSUBSS): Ditto.
3689 (IX86_BUILTIN_FNMSUBSD): Ditto.
3690 (IX86_BUILTIN_FNMSUBPS): Ditto.
3691 (IX86_BUILTIN_FNMSUBPD): Ditto.
3692 (IX86_BUILTIN_PCMOV_V2DI): Ditto.
3693 (IX86_BUILTIN_PCMOV_V4SI): Ditto.
3694 (IX86_BUILTIN_PCMOV_V8HI): Ditto.
3695 (IX86_BUILTIN_PCMOV_V16QI): Ditto.
3696 (IX86_BUILTIN_PCMOV_V4SF): Ditto.
3697 (IX86_BUILTIN_PCMOV_V2DF): Ditto.
3698 (IX86_BUILTIN_PPERM): Ditto.
3699 (IX86_BUILTIN_PERMPS): Ditto.
3700 (IX86_BUILTIN_PERMPD): Ditto.
3701 (IX86_BUILTIN_PMACSSWW): Ditto.
3702 (IX86_BUILTIN_PMACSWW): Ditto.
3703 (IX86_BUILTIN_PMACSSWD): Ditto.
3704 (IX86_BUILTIN_PMACSWD): Ditto.
3705 (IX86_BUILTIN_PMACSSDD): Ditto.
3706 (IX86_BUILTIN_PMACSDD): Ditto.
3707 (IX86_BUILTIN_PMACSSDQL): Ditto.
3708 (IX86_BUILTIN_PMACSSDQH): Ditto.
3709 (IX86_BUILTIN_PMACSDQL): Ditto.
3710 (IX86_BUILTIN_PMACSDQH): Ditto.
3711 (IX86_BUILTIN_PMADCSSWD): Ditto.
3712 (IX86_BUILTIN_PMADCSWD): Ditto.
3713 (IX86_BUILTIN_PHADDBW): Ditto.
3714 (IX86_BUILTIN_PHADDBD): Ditto.
3715 (IX86_BUILTIN_PHADDBQ): Ditto.
3716 (IX86_BUILTIN_PHADDWD): Ditto.
3717 (IX86_BUILTIN_PHADDWQ): Ditto.
3718 (IX86_BUILTIN_PHADDDQ): Ditto.
3719 (IX86_BUILTIN_PHADDUBW): Ditto.
3720 (IX86_BUILTIN_PHADDUBD): Ditto.
3721 (IX86_BUILTIN_PHADDUBQ): Ditto.
3722 (IX86_BUILTIN_PHADDUWD): Ditto.
3723 (IX86_BUILTIN_PHADDUWQ): Ditto.
3724 (IX86_BUILTIN_PHADDUDQ): Ditto.
3725 (IX86_BUILTIN_PHSUBBW): Ditto.
3726 (IX86_BUILTIN_PHSUBWD): Ditto.
3727 (IX86_BUILTIN_PHSUBDQ): Ditto.
3728 (IX86_BUILTIN_PROTB): Ditto.
3729 (IX86_BUILTIN_PROTW): Ditto.
3730 (IX86_BUILTIN_PROTD): Ditto.
3731 (IX86_BUILTIN_PROTQ): Ditto.
3732 (IX86_BUILTIN_PROTB_IMM): Ditto.
3733 (IX86_BUILTIN_PROTW_IMM): Ditto.
3734 (IX86_BUILTIN_PROTD_IMM): Ditto.
3735 (IX86_BUILTIN_PROTQ_IMM): Ditto.
3736 (IX86_BUILTIN_PSHLB): Ditto.
3737 (IX86_BUILTIN_PSHLW): Ditto.
3738 (IX86_BUILTIN_PSHLD): Ditto.
3739 (IX86_BUILTIN_PSHLQ): Ditto.
3740 (IX86_BUILTIN_PSHAB): Ditto.
3741 (IX86_BUILTIN_PSHAW): Ditto.
3742 (IX86_BUILTIN_PSHAD): Ditto.
3743 (IX86_BUILTIN_PSHAQ): Ditto.
3744 (IX86_BUILTIN_FRCZSS): Ditto.
3745 (IX86_BUILTIN_FRCZSD): Ditto.
3746 (IX86_BUILTIN_FRCZPS): Ditto.
3747 (IX86_BUILTIN_FRCZPD): Ditto.
3748 (IX86_BUILTIN_CVTPH2PS): Ditto.
3749 (IX86_BUILTIN_CVTPS2PH): Ditto.
3750 (IX86_BUILTIN_COMEQSS): Ditto.
3751 (IX86_BUILTIN_COMNESS): Ditto.
3752 (IX86_BUILTIN_COMLTSS): Ditto.
3753 (IX86_BUILTIN_COMLESS): Ditto.
3754 (IX86_BUILTIN_COMGTSS): Ditto.
3755 (IX86_BUILTIN_COMGESS): Ditto.
3756 (IX86_BUILTIN_COMUEQSS): Ditto.
3757 (IX86_BUILTIN_COMUNESS): Ditto.
3758 (IX86_BUILTIN_COMULTSS): Ditto.
3759 (IX86_BUILTIN_COMULESS): Ditto.
3760 (IX86_BUILTIN_COMUGTSS): Ditto.
3761 (IX86_BUILTIN_COMUGESS): Ditto.
3762 (IX86_BUILTIN_COMORDSS): Ditto.
3763 (IX86_BUILTIN_COMUNORDSS): Ditto.
3764 (IX86_BUILTIN_COMFALSESS): Ditto.
3765 (IX86_BUILTIN_COMTRUESS): Ditto.
3766 (IX86_BUILTIN_COMEQSD): Ditto.
3767 (IX86_BUILTIN_COMNESD): Ditto.
3768 (IX86_BUILTIN_COMLTSD): Ditto.
3769 (IX86_BUILTIN_COMLESD): Ditto.
3770 (IX86_BUILTIN_COMGTSD): Ditto.
3771 (IX86_BUILTIN_COMGESD): Ditto.
3772 (IX86_BUILTIN_COMUEQSD): Ditto.
3773 (IX86_BUILTIN_COMUNESD): Ditto.
3774 (IX86_BUILTIN_COMULTSD): Ditto.
3775 (IX86_BUILTIN_COMULESD): Ditto.
3776 (IX86_BUILTIN_COMUGTSD): Ditto.
3777 (IX86_BUILTIN_COMUGESD): Ditto.
3778 (IX86_BUILTIN_COMORDSD): Ditto.
3779 (IX86_BUILTIN_COMUNORDSD): Ditto.
3780 (IX86_BUILTIN_COMFALSESD): Ditto.
3781 (IX86_BUILTIN_COMTRUESD): Ditto.
3782 (IX86_BUILTIN_COMEQPS): Ditto.
3783 (IX86_BUILTIN_COMNEPS): Ditto.
3784 (IX86_BUILTIN_COMLTPS): Ditto.
3785 (IX86_BUILTIN_COMLEPS): Ditto.
3786 (IX86_BUILTIN_COMGTPS): Ditto.
3787 (IX86_BUILTIN_COMGEPS): Ditto.
3788 (IX86_BUILTIN_COMUEQPS): Ditto.
3789 (IX86_BUILTIN_COMUNEPS): Ditto.
3790 (IX86_BUILTIN_COMULTPS): Ditto.
3791 (IX86_BUILTIN_COMULEPS): Ditto.
3792 (IX86_BUILTIN_COMUGTPS): Ditto.
3793 (IX86_BUILTIN_COMUGEPS): Ditto.
3794 (IX86_BUILTIN_COMORDPS): Ditto.
3795 (IX86_BUILTIN_COMUNORDPS): Ditto.
3796 (IX86_BUILTIN_COMFALSEPS): Ditto.
3797 (IX86_BUILTIN_COMTRUEPS): Ditto.
3798 (IX86_BUILTIN_COMEQPD): Ditto.
3799 (IX86_BUILTIN_COMNEPD): Ditto.
3800 (IX86_BUILTIN_COMLTPD): Ditto.
3801 (IX86_BUILTIN_COMLEPD): Ditto.
3802 (IX86_BUILTIN_COMGTPD): Ditto.
3803 (IX86_BUILTIN_COMGEPD): Ditto.
3804 (IX86_BUILTIN_COMUEQPD): Ditto.
3805 (IX86_BUILTIN_COMUNEPD): Ditto.
3806 (IX86_BUILTIN_COMULTPD): Ditto.
3807 (IX86_BUILTIN_COMULEPD): Ditto.
3808 (IX86_BUILTIN_COMUGTPD): Ditto.
3809 (IX86_BUILTIN_COMUGEPD): Ditto.
3810 (IX86_BUILTIN_COMORDPD): Ditto.
3811 (IX86_BUILTIN_COMUNORDPD): Ditto.
3812 (IX86_BUILTIN_COMFALSEPD): Ditto.
3813 (IX86_BUILTIN_COMTRUEPD): Ditto.
3814 (IX86_BUILTIN_PCOMEQUB): Ditto.
3815 (IX86_BUILTIN_PCOMNEUB): Ditto.
3816 (IX86_BUILTIN_PCOMLTUB): Ditto.
3817 (IX86_BUILTIN_PCOMLEUB): Ditto.
3818 (IX86_BUILTIN_PCOMGTUB): Ditto.
3819 (IX86_BUILTIN_PCOMGEUB): Ditto.
3820 (IX86_BUILTIN_PCOMFALSEUB): Ditto.
3821 (IX86_BUILTIN_PCOMTRUEUB): Ditto.
3822 (IX86_BUILTIN_PCOMEQUW): Ditto.
3823 (IX86_BUILTIN_PCOMNEUW): Ditto.
3824 (IX86_BUILTIN_PCOMLTUW): Ditto.
3825 (IX86_BUILTIN_PCOMLEUW): Ditto.
3826 (IX86_BUILTIN_PCOMGTUW): Ditto.
3827 (IX86_BUILTIN_PCOMGEUW): Ditto.
3828 (IX86_BUILTIN_PCOMFALSEUW): Ditto.
3829 (IX86_BUILTIN_PCOMTRUEUW): Ditto.
3830 (IX86_BUILTIN_PCOMEQUD): Ditto.
3831 (IX86_BUILTIN_PCOMNEUD): Ditto.
3832 (IX86_BUILTIN_PCOMLTUD): Ditto.
3833 (IX86_BUILTIN_PCOMLEUD): Ditto.
3834 (IX86_BUILTIN_PCOMGTUD): Ditto.
3835 (IX86_BUILTIN_PCOMGEUD): Ditto.
3836 (IX86_BUILTIN_PCOMFALSEUD): Ditto.
3837 (IX86_BUILTIN_PCOMTRUEUD): Ditto.
3838 (IX86_BUILTIN_PCOMEQUQ): Ditto.
3839 (IX86_BUILTIN_PCOMNEUQ): Ditto.
3840 (IX86_BUILTIN_PCOMLTUQ): Ditto.
3841 (IX86_BUILTIN_PCOMLEUQ): Ditto.
3842 (IX86_BUILTIN_PCOMGTUQ): Ditto.
3843 (IX86_BUILTIN_PCOMGEUQ): Ditto.
3844 (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
3845 (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
3846 (IX86_BUILTIN_PCOMEQB): Ditto.
3847 (IX86_BUILTIN_PCOMNEB): Ditto.
3848 (IX86_BUILTIN_PCOMLTB): Ditto.
3849 (IX86_BUILTIN_PCOMLEB): Ditto.
3850 (IX86_BUILTIN_PCOMGTB): Ditto.
3851 (IX86_BUILTIN_PCOMGEB): Ditto.
3852 (IX86_BUILTIN_PCOMFALSEB): Ditto.
3853 (IX86_BUILTIN_PCOMTRUEB): Ditto.
3854 (IX86_BUILTIN_PCOMEQW): Ditto.
3855 (IX86_BUILTIN_PCOMNEW): Ditto.
3856 (IX86_BUILTIN_PCOMLTW): Ditto.
3857 (IX86_BUILTIN_PCOMLEW): Ditto.
3858 (IX86_BUILTIN_PCOMGTW): Ditto.
3859 (IX86_BUILTIN_PCOMGEW): Ditto.
3860 (IX86_BUILTIN_PCOMFALSEW): Ditto.
3861 (IX86_BUILTIN_PCOMTRUEW): Ditto.
3862 (IX86_BUILTIN_PCOMEQD): Ditto.
3863 (IX86_BUILTIN_PCOMNED): Ditto.
3864 (IX86_BUILTIN_PCOMLTD): Ditto.
3865 (IX86_BUILTIN_PCOMLED): Ditto.
3866 (IX86_BUILTIN_PCOMGTD): Ditto.
3867 (IX86_BUILTIN_PCOMGED): Ditto.
3868 (IX86_BUILTIN_PCOMFALSED): Ditto.
3869 (IX86_BUILTIN_PCOMTRUED): Ditto.
3870 (IX86_BUILTIN_PCOMEQQ): Ditto.
3871 (IX86_BUILTIN_PCOMNEQ): Ditto.
3872 (IX86_BUILTIN_PCOMLTQ): Ditto.
3873 (IX86_BUILTIN_PCOMLEQ): Ditto.
3874 (IX86_BUILTIN_PCOMGTQ): Ditto.
3875 (IX86_BUILTIN_PCOMGEQ): Ditto.
3876 (IX86_BUILTIN_PCOMFALSEQ): Ditto.
3877 (IX86_BUILTIN_PCOMTRUEQ): Ditto.
3878 (enum multi_arg_type): New enum for describing the various SSE5
3879 intrinsic argument types.
3880 (bdesc_multi_arg): New table for SSE5 intrinsics.
3881 (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
3882 (ix86_expand_multi_arg_builtin): New function for creating SSE5
3884 (ix86_expand_builtin): Add SSE5 intrinsic support.
3885 (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
3886 operand instructions.
3887 (ix86_expand_sse5_multiple_memory): New function to split the
3888 second memory reference from SSE5 instructions.
3889 (type_has_variadic_args_p): Delete in favor of stdarg_p.
3890 (ix86_return_pops_args): Use stdarg_p to determine if the function
3891 has variable arguments.
3892 (ix86_setup_incoming_varargs): Ditto.
3893 (x86_this_parameter): Ditto.
3895 * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
3897 (ix86_expand_sse5_pack): Ditto.
3898 (ix86_sse5_valid_op_p): Ditto.
3899 (ix86_expand_sse5_multiple_memory): Ditto.
3901 * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
3902 constant for SSE5 support.
3903 (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
3904 (UNSPEC_SSE5_TRUEFALSE): Ditto.
3905 (UNSPEC_SSE5_PERMUTE): Ditto.
3906 (UNSPEC_SSE5_ASHIFT): Ditto.
3907 (UNSPEC_SSE5_LSHIFT): Ditto.
3908 (UNSPEC_FRCZ): Ditto.
3909 (UNSPEC_CVTPH2PS): Ditto.
3910 (UNSPEC_CVTPS2PH): Ditto.
3911 (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
3913 (COM_FALSE_S): Ditto.
3914 (COM_FALSE_P): Ditto.
3915 (COM_TRUE_S): Ditto.
3916 (COM_TRUE_P): Ditto.
3917 (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
3918 (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
3920 (memory attribute): Ditto.
3921 (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
3922 Use SSE4_1_ROUND_* constants instead of hard coded numbers.
3923 (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
3924 (floor<mode>2): Ditto.
3925 (ceil<mode>2): Ditto.
3926 (btrunc<mode>2): Ditto.
3927 (nearbyintdf2): Ditto.
3928 (nearbyintsf2): Ditto.
3929 (sse_setccsf): Disable if SSE5.
3930 (sse_setccdf): Ditto.
3931 (sse5_setcc<mode>): New support for SSE5 conditional move.
3932 (sse5_pcmov_<mode>): Ditto.
3934 * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
3936 (SSEMODEF2P): Ditto.
3937 (ssemodesuffixf4): New mode attribute for SSE5.
3938 (ssemodesuffixf2s): Ditto.
3939 (ssemodesuffixf2c): Ditto.
3940 (sserotatemax): Ditto.
3941 (ssescalarmode): Ditto.
3942 (sse_maskcmpv4sf3): Disable if SSE5.
3943 (sse_maskcmpv2df3): Ditto.
3944 (sse_vmmaskcmpv4sf3): Ditto.
3945 (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
3946 (sse5_vmfmadd<mode>4): Ditto.
3947 (sse5_fmsub<mode>4): Ditto.
3948 (sse5_vmfmsub<mode>4): Ditto.
3949 (sse5_fnmadd<mode>4): Ditto.
3950 (sse5_vmfnmadd<mode>4): Ditto.
3951 (sse5_fnmsub<mode>4): Ditto.
3952 (sse5_vmfnmsub<mode>4): Ditto.
3953 (sse5i_fmadd<mode>4): Ditto.
3954 (sse5i_fmsub<mode>4): Ditto.
3955 (sse5i_fnmadd<mode>4): Ditto.
3956 (sse5i_fnmsub<mode>4): Ditto.
3957 (sse5i_vmfmadd<mode>4): Ditto.
3958 (sse5i_vmfmsub<mode>4): Ditto.
3959 (sse5i_vmfnmadd<mode>4): Ditto.
3960 (sse5i_vmfnmsub<mode>4): Ditto.
3961 (mulv16qi3): Add SSE5 support.
3963 (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
3964 (sse2_mulv4si3): Disable if SSE5.
3965 (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
3966 (sse4_1_roundps): Ditto.
3967 (sse4_1_roundsd): Ditto.
3968 (sse4_1_roundss): Ditto.
3969 (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
3971 (sse_maskcmpsf3): Ditto.
3972 (sse_vmmaskcmpv4sf3): Ditto.
3973 (sse2_maskcmpv2df3): Ditto.
3974 (sse2_maskcmpdf3): Ditto.
3975 (sse2_vmmaskcmpv2df3): Ditto.
3976 (sse2_eq<mode>3): Ditto.
3977 (sse2_gt<mode>3): Ditto.
3978 (sse5_pcmov_<mode>): Add SSE5 support.
3979 (vec_unpacku_hi_v16qi): Ditto.
3980 (vec_unpacks_hi_v16qi): Ditto.
3981 (vec_unpacku_lo_v16qi): Ditto.
3982 (vec_unpacks_lo_v16qi): Ditto.
3983 (vec_unpacku_hi_v8hi): Ditto.
3984 (vec_unpacks_hi_v8hi): Ditto.
3985 (vec_unpacku_lo_v8hi): Ditto.
3986 (vec_unpacks_lo_v8hi): Ditto.
3987 (vec_unpacku_hi_v4si): Ditto.
3988 (vec_unpacks_hi_v4si): Ditto.
3989 (vec_unpacku_lo_v4si): Ditto.
3990 (vec_unpacks_lo_v4si): Ditto.
3991 (sse5_pmacsww): New SSE5 intrinsic insn.
3992 (sse5_pmacssww): Ditto.
3993 (sse5_pmacsdd): Ditto.
3994 (sse5_pmacssdd): Ditto.
3995 (sse5_pmacssdql): Ditto.
3996 (sse5_pmacssdqh): Ditto.
3997 (sse5_pmacsdqh): Ditto.
3998 (sse5_pmacsswd): Ditto.
3999 (sse5_pmacswd): Ditto.
4000 (sse5_pmadcsswd): Ditto.
4001 (sse5_pmadcswd): Ditto.
4002 (sse5_pcmov_<move>): Conditional move support on SSE5.
4003 (sse5_phaddbw): New SSE5 intrinsic insn.
4004 (sse5_phaddbd): Ditto.
4005 (sse5_phaddbq): Ditto.
4006 (sse5_phaddwd): Ditto.
4007 (sse5_phaddwq): Ditto.
4008 (sse5_phadddq): Ditto.
4009 (sse5_phaddubw): Ditto.
4010 (sse5_phaddubd): Ditto.
4011 (sse5_phaddubq): Ditto.
4012 (sse5_phadduwd): Ditto.
4013 (sse5_phadduwq): Ditto.
4014 (sse5_phaddudq): Ditto.
4015 (sse5_phsubbw): Ditto.
4016 (sse5_phsubwd): Ditto.
4017 (sse5_phsubdq): Ditto.
4018 (sse5_pperm): Ditto.
4019 (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
4020 (sse5_pperm_zero_v16qi_v8hi): Ditto.
4021 (sse5_pperm_sign_v8hi_v4si): Ditto.
4022 (sse5_pperm_zero_v8hi_v4si): Ditto.
4023 (sse5_pperm_sign_v4si_v2di): Ditto.
4024 (sse5_pperm_sign_v4si_v2di): Ditto.
4025 (sse5_pperm_pack_v2di_v4si): Ditto.
4026 (sse5_pperm_pack_v4si_v8hi): Ditto.
4027 (sse5_pperm_pack_v8hi_v16qi): Ditto.
4028 (sse5_perm<mode>): New SSE5 intrinsic insn.
4029 (rotl<mode>3): Ditto.
4030 (sse5_rotl<mode>3): Ditto.
4031 (sse5_ashl<mode>3): Ditto.
4032 (sse5_lshl<mode>3): Ditto.
4033 (sse5_frcz<mode>2): Ditto.
4034 (sse5s_frcz<mode>2): Ditto.
4035 (sse5_cvtph2ps): Ditto.
4036 (sse5_cvtps2ph): Ditto.
4037 (sse5_vmmaskcmp<mode>3): Ditto.
4038 (sse5_com_tf<mode>3): Ditto.
4039 (sse5_maskcmp<mode>3): Ditto.
4040 (sse5_maskcmp_uns<mode>3): Ditto.
4041 (sse5_maskcmp_uns2<mode>3): Ditto.
4042 (sse5_pcom_tf<mode>3): Ditto.
4044 * config/i386/predicates.md (sse5_comparison_float_operator):
4045 New predicate to match the comparison operators supported by
4046 the SSE5 com instruction.
4047 (ix86_comparison_int_operator): New predicate to match just the
4048 signed int comparisons.
4049 (ix86_comparison_uns_operator): New predicate to match just the
4050 unsigned int comparisons.
4052 * doc/invoke.texi (-msse5): Add documentation.
4053 (-mfused-madd): Ditto.
4055 * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
4057 * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
4059 (x86_64-*-*): Ditto.
4061 * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
4063 * config/i386/bmmintrin.h: New file, provide common x86 compiler
4064 intrinisics for SSE5.
4066 * config/i386/smmintrin.h: Move instructions shared with SSE5 to
4069 * config/i386/mmintrin-common.h: New file, to contain common
4070 instructions between SSE4.1 and SSE5.
4072 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
4073 FOREACH_FUNCTION_ARGS to iterate over the argument list.
4074 (gen_regparm_prefix): Ditto.
4076 * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
4077 FOREACH_FUNCTION_ARGS to iterate over the argument list. Use
4078 prototype_p to determine if a function is prototyped.
4080 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
4082 * c-common.c (c_common_reswords) add the alignof keyword,
4083 with same RID as __alignof and __alignof__
4085 2009-08-25 Anatoly Sokolov <aesok@post.ru>
4087 * hooks.h (hook_bool_const_int_const_int_true): Declare.
4088 * hooks.c (hook_bool_const_int_const_int_true): New function.
4089 * target.h (struct gcc_target): Add can_eliminate field.
4090 * target-def.h (TARGET_CAN_ELIMINATE): Define.
4091 (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
4092 * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
4093 * reload1.c (update_eliminables, init_elim_table): (Ditto.).
4094 (elim_table): Revise comment.
4095 * system.h (CAN_ELIMINATE): Poison.
4096 * defaults.h (CAN_ELIMINATE): Remove.
4097 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
4099 * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
4100 * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
4102 (alpha_vms_can_eliminate): Declare as static, change return type to
4104 * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
4106 * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
4107 * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
4108 (arm_can_eliminate): New function.
4110 * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
4111 * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
4112 (avr_can_eliminate): Declare as static.
4113 * config/avr/avr-protos.h (avr_can_eliminate): Remove.
4115 * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
4116 * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
4117 (bfin_can_eliminate): New function.
4119 * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
4120 * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
4121 (crx_can_eliminate): New function.
4123 * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
4124 * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
4125 (fr30_can_eliminate): New function.
4127 * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
4128 * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
4129 (frv_can_eliminate): New function.
4131 * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
4132 * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
4133 (h8300_can_eliminate): New function.
4135 * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
4136 * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
4137 (i386_can_eliminate): Declare as static, change return type to bool.
4138 * config/i386/i386-protos.h (i386_can_eliminate): Remove.
4140 * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
4141 * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
4142 (ia64_can_eliminate): New function.
4144 * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
4145 * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
4146 (iq2000_can_eliminate): New function.
4148 * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
4149 * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
4150 (m32r_can_eliminate): New function.
4152 * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
4153 * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
4154 (m68hc11_can_eliminate): New function.
4156 * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
4157 * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
4158 (m68k_can_eliminate): New function.
4160 * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
4161 * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
4162 (mep_can_eliminate): New function.
4164 * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
4165 * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
4166 (mips_can_eliminate): New function.
4168 * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
4169 * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
4170 (rs6000_can_eliminate): New function.
4172 * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
4173 * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
4174 (s390_can_eliminate): Declare as static.
4175 * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
4177 * config/score/score.h (CAN_ELIMINATE): Remove macro.
4178 * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
4179 (score_can_eliminate): New function.
4181 * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
4182 * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
4183 (sparc_can_eliminate): Declare as static.
4184 * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
4186 * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
4187 * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
4188 (xstormy16_can_eliminate): New function.
4190 * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
4191 * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
4192 (v850_can_eliminate): New function.
4194 2009-08-25 Uros Bizjak <ubizjak@gmail.com>
4196 * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
4197 (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
4198 (*movdfcc_ext[1234]): Disable for IEEE mode.
4200 2009-08-25 Eric Botcazou <ebotcazou@adacore.com>
4202 * gimplify.c (prepare_gimple_addressable): New static function.
4203 (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
4205 (gimplify_addr_expr): Invoke it similarly on the operand instead of
4206 manually fiddling with it.
4208 2009-08-25 Michael Matz <matz@suse.de>
4210 * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
4211 * dojump.c (do_jump_by_parts_greater): Take two operands instead of
4213 (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
4214 (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
4215 (do_jump): Split out code for simple binary comparisons into ...
4216 (do_jump_1): ... this, taking the individual operands and code.
4217 Change callers to helper function above accordingly.
4218 * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
4221 2009-08-25 Michael Matz <matz@suse.de>
4223 * expr.h (struct separate_ops, sepops): New type for passing
4224 around an exploded simple expression.
4225 * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
4226 Use this structure instead of expression tree.
4227 (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
4228 expression, only its type.
4229 (expand_vec_cond_expr): Take type and individual operands instead
4231 * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
4232 expand_vec_shift_expr): Change prototype accordingly.
4233 * tree-vect-stmts.c (vectorizable_condition): Change call of
4234 expand_vec_cond_expr_p to pass only type.
4235 * expr.c (do_store_flags): Change prototype and implementation
4236 to take an exploded expression.
4237 (expand_expr_real_1): New local ops initialized with details
4238 of the full expression. Use it instead of full
4239 expression in calls to do_store_flags, expand_vec_cond_expr,
4240 expand_widen_pattern_expr and expand_vec_shift_expr.
4242 2009-08-25 Michael Matz <matz@suse.de>
4244 * expr.c (expand_expr_real_1): New local treeop0, treeop1,
4245 treeop2 initialized with first three operands of the full expression.
4246 Substitute all TREE_OPERAND (exp, [012]) calls with them.
4248 2009-08-25 Kai Tietz <kai.tietz@onevision.com>
4250 * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
4251 (__gthread_objc_condition_allocate): Mark arguments as unused.
4252 (__gthread_objc_condition_deallocate): Likewise.
4253 (__gthread_objc_condition_wait): Likewise.
4254 (__gthread_objc_condition_broadcast): Likewise.
4255 (__gthread_objc_condition_signal): Likewise.
4256 (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
4257 (__gthread_objc_thread_id): Likewise.
4259 2009-08-25 Janus Weil <janus@gcc.gnu.org>
4262 * tree-pretty-print.c (print_call_name): Print the correct call name
4263 for procedure pointer components.
4265 2009-08-24 Steve Ellcey <sje@cup.hp.com>
4267 * config/ia64/ia64.c (ia64_promote_function_mode): Call
4268 default_promote_function_mode when not VMS.
4270 2009-08-24 Olivier Hainque <hainque@adacore.com>
4272 * convert.c (convert_to_integer): Don't assume an input pointer is
4273 POINTER_SIZE wide. Fetch from the type instead.
4275 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4277 * configure.ac (AC_PREREQ): Bump to 2.64.
4279 2009-08-24 Rafael Avila de Espindola <espindola@google.com>
4281 * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
4282 (process_command): Don't search standard_exec_prefix_1 and
4283 standard_exec_prefix_2.
4285 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4287 * config/arm/arm.c (output_return_instruction): Handle for
4290 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4292 * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
4294 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4296 * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
4297 (*arm_movdf_vfp): Likewise.
4299 2009-08-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4301 * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
4302 (vashr<mode>3): Rename from ashr<mode>3.
4303 (vlshr<mode>3): Rename from lshr<mode>3.
4305 2009-08-24 Kai Tietz <kai.tietz@onevision.com>
4308 * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
4309 (check_format_info_main): Use scalar_identify_flag.
4310 (check_format_types): Check for scalar size identity if
4311 scalar_identify_flag is set.
4312 (printf_length_specs): Extend by new field.
4313 (asm_fprintf_length_specs): Likewise.
4314 (gcc_diag_length_specs): Likewise.
4315 (scanf_length_specs): Likewise.
4316 (strfmon_length_specs): Likewise.
4317 (gcc_gfc_length_specs): Likewise.
4318 * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
4319 (ms_printf_flag_specs): Likewise.
4320 * c-format.h (format_length_info): Add new member scalar_identity_flag.
4322 2009-08-23 Uros Bizjak <ubizjak@gmail.com>
4325 * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
4326 (*call_value_pop_1): Ditto.
4327 (*sibcall_pop_1): New insn pattern.
4328 (*sibcall_value_pop_1): Ditto.
4330 2009-08-23 Alan Modra <amodra@bigpond.net.au>
4333 * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
4336 2009-08-23 Alan Modra <amodra@bigpond.net.au>
4339 * fwprop.c (try_fwprop_subst): Allow multiple sets.
4340 (get_reg_use_in): New function.
4341 (forward_propagate_subreg): Propagate through subreg of zero_extend
4344 2009-08-22 Kaz Kojima <kkojima@gcc.gnu.org>
4346 * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
4347 * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
4349 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4351 * configure.ac: Remove --with-datarootdir, --with-docdir,
4352 --with-htmldir switches. No need to call AC_SUBST for
4353 datarootdir, docdir, htmldir any more.
4354 * configure: Regenerate.
4355 * doc/install.texi (Configuration): Document --datarootdir,
4356 --docdir, --htmldir, --pdfdir; update documentation for
4357 --infodir, --mandir.
4358 (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
4361 * aclocal.m4: Regenerate.
4362 * config.in: Regenerate.
4363 * configure: Regenerate.
4365 2009-08-21 Douglas B Rupp <rupp@gnat.com>
4366 Olivier Hainque <hainque@adacore.com>
4368 * config/ia64/ia64.c: Include libfuncs.h.
4369 (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
4370 (ia64_expand_call): Use reg 25 on VMS.
4371 (ia64_initialize_trampoline): Fix for VMS ABI.
4372 (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
4373 (ia64_function_arg): Initialize reg 25 on VMS.
4374 Fix OpenVMS ABI issues for varargs.
4375 For OpenVMS, emit the Argument Information register set in the
4376 incoming/sibcall case as well.
4377 (ia64_arg_type): New function.
4378 (ia64_function_arg_advance): Keep track of cum->words.
4379 Fix OpenVMS ABI issues for varargs.
4380 (ia64_function_value): On VMS, promote mode of non-aggregate types.
4381 (ia64_override_options): Set flag_no_common on VMS.
4382 (ia64_init_builtins): Disable FWRITE builtin.
4383 (ia64_asm_output_external): Call DO_CRTL_NAMES.
4384 (ia64_vms_init_libfuncs): Add decc$ routines.
4385 (ia64_vms_valid_pointer_mode): New function.
4386 (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
4387 (ia64_promote_function_mode): New function
4388 * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
4389 (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
4390 (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
4391 (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
4392 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
4393 (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
4394 Suppress trailing '#' if VALUE is numeric.
4395 * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
4396 ia64_promote_function_mode.
4397 (TARGET_VALID_POINTER_MODE): Define.
4399 2009-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4402 * config/rs6000/rs6000.c (rs6000_override_options): Use
4403 TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
4406 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
4407 reporting of vector + decimal/boolean/complex error.
4409 2009-08-21 Jakub Jelinek <jakub@redhat.com>
4411 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
4412 __vector double TYPE_DECL.
4414 2009-08-21 Richard Earnshaw <rearnsha@arm.com>
4416 * arm.h (MACHMODE): New define. Include insn-modes.h if available.
4417 (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
4418 * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
4419 to pointer to enum machine_mode. Update all callers as needed.
4421 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
4423 * config/alpha/alpha.md (exception_receiver): Emit alternative
4424 GP load sequence if flag_reorder_blocks_and_partition is set.
4425 (*exception_receiver_2): Also enable when
4426 flag_reorder_blocks_and_partition is set.
4428 2009-08-20 Matt Rice <ratmice@gmail.com>
4429 Diego Novillo <dnovillo@google.com>
4431 * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
4434 2009-08-20 Richard Guenther <rguenther@suse.de>
4436 * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
4437 * c-tree.h (c_dup_lang_specific_decl): Remove.
4438 (struct lang_decl, struct lang_type): Move definitions ...
4439 * c-lang.h: ... here. New file.
4440 * c-decl.c: Include c-lang.h.
4441 (c_dup_lang_specific_decl): Remove.
4442 * c-typeck.c: Include c-lang.h.
4443 * Makefile.in (c-decl.o): Add c-lang.h dependency.
4444 (c-typeck.o): Likewise.
4445 * c-config-lang.in (gtfiles): Add c-lang.h.
4446 * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
4449 2009-08-20 Uros Bizjak <ubizjak@gmail.com>
4451 * config/alpha/alpha.c (alpha_end_function): Do not clear
4452 crtl->emit structure and free insn locators if cfun->is_thunk is true,
4453 this is now handled in generic code.
4455 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
4457 * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
4458 (s390_z10_fix_long_loop_prediction): New function.
4459 (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
4460 (s390_reorg): Walk over the INSNs and invoke
4461 s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
4463 2009-08-20 Andreas Krebbel <krebbel1@de.ibm.com>
4465 * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
4466 "*brx_64bit", "*brx_31bit"): New patterns.
4467 * config/s390/s390.c ('E'): New output modifier.
4469 2009-08-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4470 Richard Earnshaw <richard.earnshaw@arm.com>
4472 * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
4473 * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
4475 2009-08-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4477 * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
4479 * pa.c (emit_move_sequence): Check if address of operand1 is valid
4480 for mode mode of operand0 when doing secondary reload for SAR.
4482 2009-08-19 Jakub Jelinek <jakub@redhat.com>
4485 * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
4486 of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
4488 2009-08-19 Jason Merrill <jason@redhat.com>
4490 * doc/invoke.texi (C++ Dialect Options): Note change of minimum
4491 supported template depth in C++0x.
4493 2009-08-19 Jakub Jelinek <jakub@redhat.com>
4495 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
4496 free_after_compilation.
4497 * config/score/score7.c (score7_output_mi_thunk): Likewise.
4498 * config/score/score3.c (score3_output_mi_thunk): Likewise.
4499 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
4500 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
4501 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4502 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
4503 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
4505 2009-08-19 Ian Lance Taylor <iant@google.com>
4507 * doc/md.texi (Insn Canonicalizations): Correct canonicalization
4508 of (plus (mult (neg B) C) A).
4510 2009-08-18 Michael Matz <matz@suse.de>
4512 * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
4513 instead of comparing TYPE_MAIN_VARIANT for equality.
4514 * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
4515 vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
4516 * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
4517 * gimplify.c (goa_lhs_expr_p): Ditto and use
4518 STRIP_USELESS_TYPE_CONVERSION.
4520 2009-08-18 Michael Matz <matz@suse.de>
4522 * tree-ssa-structalias.c (create_variable_info_for): Also mark
4523 first field in a struct.
4524 (intra_create_variable_infos): Don't deal with flag_argument_noalias.
4526 2009-08-18 Uros Bizjak <ubizjak@gmail.com>
4528 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
4529 locators before emit_insn is called. Remove assert that
4531 (alpha_end_function): Clear crtl->emit structure and free insn
4532 locators if cfun->is_thunk is true.
4534 2009-08-18 Jason Merrill <jason@redhat.com>
4536 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
4538 * configure.ac: Test for it.
4539 * configure, config.in: Regenerate.
4540 * doc/install.texi: Document --enable-gnu-unique-object.
4542 2009-08-18 Richard Guenther <rguenther@suse.de>
4545 * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
4546 pow(x,y*z) only if x is nonnegative.
4548 2009-08-18 Jakub Jelinek <jakub@redhat.com>
4550 * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
4554 * config/rs6000/rs6000.c (rs6000_legitimize_address): For
4555 [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
4557 2009-08-17 DJ Delorie <dj@redhat.com>
4559 * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
4560 * config/m32c/prologue.md (epilogue_freit): New.
4562 * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
4563 (bank_switch_p): Likewise.
4564 (fast_interrupt_p): Likewise.
4565 (interrupt_p): Likewise.
4566 (m32c_conditional_register_usage): Round memregs size up.
4567 (need_to_save): We only need to save $a0 when we use ENTER.
4568 (interrupt_p): Check for fast_interrupt too.
4569 (bank_switch_p): New.
4570 (fast_interrupt_p): New.
4571 (m32c_attribute_table): Add bank_switch and fast_interrupt.
4572 (m32c_emit_prolog): Support bank switching and fast interrupts.
4573 * doc/extend.texi (Function Attributes): Add bank_switch and
4576 2009-08-17 Douglas B Rupp <rupp@gnat.com>
4578 * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
4579 * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
4581 2009-08-16 Douglas B Rupp <rupp@gnat.com>
4583 * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
4584 (menu): Add IA-64/VMS Options.
4585 (IA-64/VMS Options): Likewise.
4587 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
4590 * config/mips/mips.md (*lwxs): Use :P for pointer values.
4592 2009-08-16 Richard Sandiford <rdsandiford@googlemail.com>
4594 * config/mips/mips-protos.h (mips_push_asm_switch): New function.
4595 (mips_pop_asm_switch): Likewise.
4596 * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
4598 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
4599 (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
4600 (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
4601 (mips_print_operand_punctuation): Use them. Check mips_noreorder
4602 instead of set_noreorder.
4603 (mips_output_function_prologue): Use the new functions.
4604 (mips_output_function_epilogue): Likewise.
4605 (mips_need_noat_wrapper_p): New function, split out from...
4606 (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
4607 Use mips_push_asm_switch and mips_pop_asm_switch.
4608 * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
4609 and mips_pop_asm_switch.
4610 (ASM_OUTPUT_REG_POP): Likewise.
4611 (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
4612 Use mips_pop_asm_switch.
4613 (mips_asm_switch): New structure.
4614 (set_noreorder, set_nomacro): Replace with...
4615 (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
4616 * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
4617 instead of set_nomacro.
4618 (fix_truncsfsi2_macro): Likewise.
4619 (cprestore): Likewise.
4620 (hazard): Use mips_noreorder instead of set_noreorder.
4621 * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
4623 2009-08-16 Uros Bizjak <ubizjak@gmail.com>
4625 * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
4626 from prev_active_insn.
4628 2009-08-16 Anatoly Sokolov <aesok@post.ru>
4630 * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
4631 * config/avr/avr.c (avr_override_options): Initialize
4632 avr_current_arch variable.
4633 (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
4634 __AVR_HAVE_16BIT_SP__ according to the device type.
4635 (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
4637 (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
4638 Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
4640 2009-08-16 Dodji Seketeli <dodji@redhat.com>
4643 * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
4644 generating inlined subroutine die only. We shouldn't be
4645 called for anything else.
4646 (gen_block_die): Don't generate inline subroutine debug info for
4649 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
4651 * graphite-poly.c (print_pbb): Print PBB index.
4653 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
4656 * graphite-interchange.c (ppl_max_for_le): Moved...
4657 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
4658 * graphite-ppl.c (ppl_max_for_le): ... here. Correct the use of
4659 ppl_Pointset_Powerset_C_Polyhedron_maximize.
4660 * graphite-ppl.h (ppl_max_for_le): Declared.
4662 2009-08-14 Olatunji Ruwase <tjruwase@google.com>
4664 * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
4665 supported on all platforms.
4666 * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
4667 * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
4668 * c-pragma.c: Likewise.
4669 * target-def.h (TARGET_INITIALIZER): Remove
4670 TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
4671 * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
4673 2009-08-14 Douglas B Rupp <rupp@gnat.com>
4675 * config/ia64/fde-vms.c: New file.
4676 * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
4677 * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
4678 (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
4679 (uw_frame_state_for): Only register a personality routine if it is
4680 known to be compatible with our expectations.
4681 (_Unwind_FindEnclosingFunction, uw_frame_state_for):
4682 Declare unw_table_entry stack variable and
4683 mod all calls to _Unwind_FindTableEntry to add arg.
4684 * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
4685 (_Unwind_FindTableEntry): Add arg to prototype.
4687 2009-08-14 Eric Botcazou <ebotcazou@adacore.com>
4689 * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
4690 field 'signal_pfs_loc'.
4691 (uw_frame_state_for): Remove duplicate code dealing with leaf
4692 procedures without unwind info.
4693 If in the frame after unwinding through a signal handler, restore
4694 the AR.PFS register instead of the CFM if AR.PFS has not been saved.
4695 * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
4696 'pfs_loc' to the AR.PFS location in the signal context; instead
4697 set 'signal_pfs_loc'.
4698 Manually generate the unwind info for the AR.PFS register.
4699 (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
4700 ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
4701 (ia64_handle_unwabi): Test 'fs->unwabi' against them.
4702 Do not set 'pfs_loc' to the AR.PFS location in the signal context;
4703 instead set 'signal_pfs_loc'.
4704 Remove code preventing the AR.PFS register from being restored
4705 from the signal context.
4707 2009-08-14 Douglas B Rupp <rupp@gnat.com>
4708 Tristan Gingold <gingold@adacore.com>
4710 * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
4711 * config/ia64/t-vms: New file.
4712 * config/ia64/vms64.h: New file.
4713 * config/ia64/vms.h: New file.
4714 * config/ia64/vms-crtinit.asm: New file.
4715 * config/ia64/vms_symvec_libgcc_s.opt: New file.
4716 * config/ia64/vms-unwind.h: New file.
4718 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
4720 * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
4723 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4726 * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
4728 * real.h (do_mpc_arg2): ... here.
4729 * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
4732 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
4734 * final.c (add_debug_prefix_map): Don't use GC memory for
4735 old_prefix and new_prefix.
4737 2009-08-14 Richard Guenther <rguenther@suse.de>
4739 * ipa-prop.c (compute_complex_pass_through): If we cannot
4740 compute a non-varying offset for IPA_JF_ANCESTOR punt.
4742 2009-08-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4744 * c-lex.c (c_lex_with_flags): Increase size of local variable
4745 to avoid memory clobber.
4747 2009-08-14 Paolo Bonzini <bonzini@gnu.org>
4750 * config/i386/i386.c (ix86_fp_comparison_strategy):
4751 Only enable/disable sahf at function granularity.
4753 2009-08-14 Hans-Peter Nilsson <hp@axis.com>
4755 PR rtl-optimization/41064
4756 * reload1.c (reload_as_needed): Don't call extract_insn
4757 for known invalid replacements after calling
4758 validate_replace_rtx_group and verify_changes.
4760 2009-08-14 Uros Bizjak <ubizjak@gmail.com>
4763 * config/i386/sse.md (SSEMODE124C8): New mode iterator.
4764 (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
4765 ix86_expand_fp_vcond.
4766 (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
4767 Assert that operation is supported by ix86_expand_int_vcond.
4768 (vcondu<SSEMODE124C8:mode>): Ditto.
4770 2009-08-13 DJ Delorie <dj@redhat.com>
4772 * config/i386/djgpp-stdint.h: New.
4773 * config.gcc (djgpp): Use it.
4775 2009-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
4777 * config/sh/sh.c (sh_override_options): When flag_exceptions or
4778 flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
4780 2009-08-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
4782 * tree-ssa-loop-prefetch.c
4783 (prune_ref_by_group_reuse): Enhance probabilistic analysis
4784 for long-stride pruning.
4785 (compute_miss_rate): New function to compute the probability
4786 that two memory references access different cache lines.
4788 2009-08-13 Dave Korn <dave.korn.cygwin@gmail.com>
4790 * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
4792 2009-08-13 Richard Guenther <rguenther@suse.de>
4795 * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
4796 use the constant pointer type.
4797 * gimplify.c (canonicalize_addr_expr): Canonicalize independent
4798 of CV qualifiers on the target pointer type.
4799 * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
4800 conversion check before restrict check.
4802 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
4805 * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
4807 2009-08-12 Kaz Kojima <kkojima@gcc.gnu.org>
4809 * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
4811 2009-08-12 Richard Guenther <rguenther@suse.de>
4813 PR tree-optimization/41011
4814 * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
4815 and reference constructing.
4817 2009-08-12 Xinliang David Li <davidxl@google.com>
4819 PR tree-optimization/41012
4820 * tree-flow.h : New external interface.
4821 * gimple-low.c (check_call_arg): Change to public function.
4822 Remove argument mismatch check in lowering.
4823 * tree-inline.h (tree_can_inline_p): Interface change.
4824 * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
4826 * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
4827 Call change to tree_can_inline_p function.
4828 (cgraph_decide_inlining_incrementally): Ditto.
4830 2009-08-12 Richard Sandiford <rdsandiford@googlemail.com>
4832 PR tree-optimization/41031
4833 * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
4834 on the partition variable rather than promote_mode on the source
4835 type. Assert that the partition variable's type has the same
4836 mode as the source value's.
4838 2009-08-12 Paolo Bonzini <bonzini@gnu.org>
4840 * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
4841 for for_return == 2.
4842 * function.c (assign_parm_setup_reg): Use for_return == 2, improve
4844 * calls.c (expand_call): Fix typo.
4845 * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
4847 * stmt.c (expand_value_return): Use promote_function_mode to copy out
4849 * targhooks.c (default_promote_function_mode): Handle for_return == 2.
4850 * config/cris/cris.c (cris_promote_function_mode): Likewise.
4851 * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
4852 * config/pa/pa.c (pa_promote_function_mode): Likewise.
4854 2009-08-12 Andrew Haley <aph@redhat.com>
4856 * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
4858 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4861 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
4863 2009-08-12 Richard Guenther <rguenther@suse.de>
4865 * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
4866 * gimplify.c (gimplify_modify_expr): Do not use
4867 lang_hooks.types_compatible_p.
4868 * tree-ssa.c (useless_type_conversion_p): For aggregates
4869 just return false if the canonical types differ.
4871 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4874 * sese.c (convert_for_phi_arg): New.
4875 (add_guard_exit_phis): Use convert_for_phi_arg.
4877 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4879 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
4880 unknown subscript upper bounds.
4882 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4883 Pranav Garg <pranav.garg2107@gmail.com>
4885 * graphite-interchange.c (gather_access_strides): Removed.
4886 (ppl_max_for_le): New.
4887 (build_linearized_memory_access): New.
4888 (memory_stride_in_loop): New.
4889 (pbb_interchange_profitable_p): Reimplemented.
4890 * graphite-ppl.h (ppl_new_id_map): New.
4891 (ppl_interchange): New.
4893 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4895 * graphite-interchange.c (compute_subscript): Removed.
4896 (compute_array_size_cstr): Removed.
4897 (compute_array_size_poly): Removed.
4898 (compute_array_size): Removed.
4899 (gather_access_strides_poly): Removed.
4900 (gather_access_strides): Empty.
4902 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4904 * graphite-dependences.c (dependence_polyhedron_1): Replace
4905 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
4906 (graphite_legal_transform_dr): Same.
4907 (graphite_carried_dependence_level_k): Same.
4908 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
4909 Initialize PDR_NB_SUBSCRIPTS.
4910 (print_pdr_access_layout): Replace pdr_nb_subscripts with
4912 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
4913 (PDR_NB_SUBSCRIPTS): New.
4914 (pdr_nb_subscripts): Removed.
4915 (pdr_dim): Simplified.
4916 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
4917 with PDR_NB_SUBSCRIPTS.
4919 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4921 * graphite-interchange.c (compute_array_size): Remove use of
4923 * graphite-poly.c (new_poly_dr): Remove argument data_container.
4924 Do not initialize PDR_DATA_CONTAINER.
4925 (print_pdr): Do not print PDR_DATA_CONTAINER.
4926 * graphite-poly.h (struct poly_dr): Remove data_container field.
4927 (PDR_DATA_CONTAINER): Removed.
4928 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
4930 (build_poly_dr): Same.
4932 2009-08-12 Konrad Trifunovic <konrad.trifunovic@gmail.com>
4933 Sebastian Pop <sebastian.pop@amd.com>
4935 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
4936 copy of the dependence polyhedron. Free the temporary objects.
4937 (graphite_carried_dependence_level_k): Free unused objects before
4940 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
4941 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
4942 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
4943 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
4944 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
4946 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4948 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
4949 Early return without analyzing the data dependences if no
4950 transform has been done. Call restore_scattering if the transform
4952 (graphite-interchange.c): Same.
4953 * graphite-poly.c (print_scattering_function): Test for
4955 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
4956 (apply_poly_transforms): Do not gcc_assert that
4957 the transform is legal.
4958 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
4959 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
4960 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
4961 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
4962 * graphite-poly.h (struct poly_scattering): New.
4963 (struct poly_bb): Add original, transformed, and saved fields.
4964 Remove transformed_scattering, original_scattering,
4965 nb_local_variables and nb_scattering_transform fields.
4966 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
4967 (poly_scattering_new): New.
4968 (poly_scattering_free): New.
4969 (poly_scattering_copy): New.
4970 (store_scattering_pbb): New.
4971 (store_scattering): New.
4972 (restore_scattering_pbb): New.
4973 (restore_scattering): New.
4974 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
4975 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
4977 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4979 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
4982 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4984 * Makefile.in (graphite.o): Depends on PREDICT_H.
4985 * graphite.c: Include predict.h.
4986 (graphite_finalize): Call tree_estimate_probability.
4987 * predict.c (predict_loops): Do not call scev_initialize and
4989 (tree_estimate_probability_bb): New.
4990 (tree_estimate_probability): Do not initialize loops: move that
4991 code to the driver. Call tree_estimate_probability_bb.
4992 (tree_estimate_probability_driver): New.
4993 (pass_profile): Use tree_estimate_probability_driver.
4994 * predict.h (tree_estimate_probability): Declared.
4996 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
4998 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
4999 * graphite-dependences.c (graphite_legal_transform): Add time to
5000 TV_GRAPHITE_DATA_DEPS.
5001 (dependency_between_pbbs_p): Same.
5002 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
5004 2009-08-12 Andrey Belevantsev <abel@ispras.ru>
5006 PR rtl-optimization/41033
5007 * alias.c (nonoverlapping_component_refs_p): Punt when strict
5008 aliasing is disabled.
5010 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
5012 * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
5013 si_mask_operand, and_load_operand, low_bitmask_operand,
5014 and_reg_operand, and_operand): New predicates.
5015 * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
5016 * config/mips/mips.c (and_operands_ok): New function.
5017 * config/mips/mips-protos.h (and_operands_ok): Declare it.
5018 * config/mips/mips.md (move_type): Add ext_ins and logical.
5019 (type): Handle them.
5020 (and<mode>3): Use and_reg_operand as the second operand's predicate.
5021 (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
5022 shift_shift. Remove commutative constraint modifier.
5023 (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
5025 (*clear_upper32_dext): Remove define_insn_and_split.
5026 (*clear_upper32): Turn this define_insn_and_split ...
5027 (splitter for ANDing register with 0xffff_ffff): .. into this.
5029 2009-08-11 Adam Nemet <anemet@caviumnetworks.com>
5031 * combine.c (try_widen_shift_mode): Factor out code to check if an
5032 integer constant is a low-order bitmask from here ...
5033 * rtlanal.c (low_bitmask_len): ... to here.
5034 * rtl.h (low_bitmask_len): Declare.
5036 2009-08-11 Uros Bizjak <ubizjak@gmail.com>
5039 * config/alpha/alpha.md (addsi3): Remove expander.
5040 (addsi3): Rename from *addsi3_internal insn pattern.
5041 (subsi3): Remove expander.
5042 (subsi3): Rename from *subsi3_internal insn pattern.
5044 2009-08-11 Douglas B Rupp <rupp@gnat.com>
5046 * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
5049 2009-08-11 Vasiliy Fofanov <fofanov@adacore.com>
5050 Eric Botcazou <botcazou@adacore.com>
5051 Douglas B Rupp <rupp@gnat.com>
5053 * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
5054 that records that fit in 64 bits are returned by immediate value,
5055 as required by OpenVMS Calling Standard.
5056 (function_value): Adjust for above modification.
5057 (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
5058 virtual_incoming_args_rtx as base object, not next_arg.
5059 * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
5061 2009-08-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5063 * reload.c (find_reloads_subreg_address): Check the original
5064 req_equiv_mem address to detect the case where an address is
5065 not valid in the outer mode.
5067 2009-08-11 Richard Guenther <rguenther@suse.de>
5070 * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
5072 2009-08-10 Douglas B Rupp <rupp@gnat.com>
5074 * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
5075 (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
5077 2009-08-10 Olivier Hainque <hainqueu@adacore.com>
5078 Douglas B Rupp <rupp@gnat.com>
5080 * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
5081 PT_STACK when frame_pointer_needed on OpenVMS.
5082 (alpha_pv_save_size, alpha_using_fp): Remove.
5083 (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
5084 with proper processing for PT_NULL.
5085 (alpha_vms_initial_elimination_offset): New function. Support for
5086 INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
5087 (alpha_sa_size): Force procedure type to PT_STACK when
5088 frame_pointer_needed on OpenVMS.
5089 * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
5090 (alpha_using_fp): Likewise.
5091 (alpha_vms_can_eliminate): Add prototype.
5092 (alpha_vms_initial_elimination_offset): Likewise.
5093 * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
5094 Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
5096 2009-08-10 Eric Botcazou <botcazou@adacore.com>
5097 Douglas B Rupp <rupp@gnat.com>
5099 * config/alpha/alpha.c (common_object_handler): New function.
5100 (vms_attribute_table): Declare a single attribute "common_object".
5101 (vms_output_aligned_decl_common): New global function.
5102 (SECTION_VMS_OVERLAY): Delete.
5103 (SECTION_VMS_GLOBAL): Likewise.
5104 (SECTION_VMS_INITIALIZE): Likewise.
5105 (vms_asm_named_section): Remove support for above flags.
5106 (vms_section_type_flags): Delete.
5107 (TARGET_SECTION_TYPE_FLAGS): Likewise.
5108 * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
5109 * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
5110 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
5112 2009-08-10 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
5115 * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
5116 (sub_ddmmss): Likewise.
5118 2009-08-10 Andreas Tobler <a.tobler@schweiz.org>
5121 * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
5124 2009-08-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5127 * reload1.c (reload_as_needed): Use cancel_changes to completely
5128 undo a failed replacement attempt.
5130 2009-08-10 Richard Guenther <rguenther@suse.de>
5133 * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
5134 (useless_type_conversion_p): ... here. Require pointer targets
5137 2009-08-10 Dodji Seketeli <dodji@redhat.com>
5140 * tree-inline.c (copy_statement_list): The resulting copy shouldn't
5141 loose the original type of the statement list.
5143 2009-08-09 Douglas B Rupp <rupp@gnat.com>
5145 * config/alpha/alpha.c: Include libfuncs.h
5146 (avms_asm_output_extern): New function.
5147 (alpha_init_libfuncs): Init some decc libfuncs.
5148 * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
5149 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
5150 (DO_CRTL_NAMES): Define.
5152 * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
5153 (LONG_TYPE_SIZE): Define.
5154 (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
5155 (SUBTARGET_SWITCHES): Define malloc64 switch.
5156 (TARGET_DEFAULT): Default MASK_MALLOC64 set.
5157 (MASK_RETURN_ADDR): Define.
5158 doc/invoke.texi (mmalloc64): Document switch.
5160 2009-08-09 Olivier Hainque <hainque@adacore.com>
5161 Douglas B Rupp <rupp@gnat.com>
5163 * config/alpha/alpha.c (struct machine_function): New flag for VMS,
5164 uses_condition_handler.
5165 (alpha_expand_builtin_establish_vms_condition_handler): New expander.
5166 (alpha_expand_builtin_revert_vms_condition_handler): New expander.
5167 (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
5168 and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
5169 (code_for_builtin): New insn codes for the new alpha_builtins.
5170 (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
5171 (alpha_sa_size): Account for uses_condition_handler.
5172 (alpha_expand_prologue): Likewise.
5173 (alpha_start_function): Likewise.
5174 (alpha_expand_epilogue): Likewise.
5175 * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
5176 establish/revert expanders.
5177 * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
5178 * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
5179 New expander, resorting to the alpha.c associated function.
5180 (builtin_revert_vms_condition_handler): Likewise.
5181 * config/alpha/vms-gcc_shell_handler.c: New file. Implements
5182 __gcc_shell_handler, the static VMS condition handler used as
5183 an indirection wrapper to the current dynamically established
5185 * config/alpha/vms-unwind.h: Complete rewrite.
5186 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
5187 * config/alpha/vms.h (MD_UNWIND_SUPPORT):
5189 2009-08-09 Eric Botcazou <botcazou@adacore.com>
5190 Douglas B Rupp <rupp@gnat.com>
5192 * config/alpha/alpha.c (alpha_links): Add 'target' field.
5193 (alpha_need_linkage): Handle aliases. Return function symbol.
5194 (alpha_use_linkage): Rename 'linkage' argument to 'func'.
5195 Use ultimate alias target for the linkage name.
5196 * config/alpha/alpha.md (movmemdi): Use the symbol returned
5197 by alpha_need_linkage for the function symbol.
5198 (setmemdi): Likewise.
5200 2009-08-09 Douglas B Rupp <rupp@gnat.com>
5202 * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
5203 * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
5204 (ASM_WEAKEN_LABEL): Define.
5205 (CRT_CALL_STATIC_FUNCTION): Define.
5206 (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
5207 (ENDFILE_SPEC): Define.
5208 (INIT_SECTION_ASM_OP): Define.
5209 * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
5210 * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
5212 (MULTILIB_OSDIRNAMES): Define.
5213 (shlib_version): Define.
5214 (SHLIB_EXT): Define.
5215 (SHLIB_OBJS): Define.
5216 (SHLIB_NAME): Define.
5217 (SHLIB_MULTILIB): Define.
5218 (SHLIB_INSTALL): Define.
5219 (SHLIB_SYMVEC): Define.
5220 (SHLIB_SYMVECX2): Define.
5221 (SHLIB_LINK): Define.
5223 2009-08-09 Douglas B Rupp <rupp@gnat.com>
5225 * config/alpha/alpha.c (alpha_initialize_trampoline):
5226 Initialize VMS trampoline IAW ABI for bounded procedure calls.
5227 (alpha_start_function): Emit transfer address on nested functions
5228 for VMS trampoline call.
5229 * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
5230 since no longer used.
5231 * config/alpha/vms-tramp.asm: Remove.
5232 * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
5233 since now only data initialized at runtime.
5235 2009-08-09 Douglas B Rupp <rupp@gnat.com>
5237 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
5238 (LINK_GCC_C_SEQUENCE_SPEC): Define.
5239 (MD_EXEC_PREFIX): Remove, no longer used.
5240 (MD_STARTFILE_PREFIX): Likewise.
5241 (INCLUDE_DEFAULTS): Likewise.
5242 * config/alpha/t-vms:
5243 (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
5245 2009-08-09 Richard Guenther <rguenther@suse.de>
5247 PR tree-optimization/41016
5248 * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
5249 (operand_precision): Remove.
5250 (integral_operand_p): Likewise.
5251 (recognize_single_bit_test): Adjust.
5253 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5255 * c-common.c (c_fully_fold_internal): Issue a warning if a binary
5256 operation overflows. Likewise non-cast unary arithmetic.
5257 If one arm of a conditional expression is always taken,
5258 inhibit evaluation warnings for the other arm. Likewise inhibit
5259 evaluation warnings for the second && or || operand if the first
5260 operand is enough to determine the result.
5261 * c-typeck.c (build_conditional_expr): Apply the same inhibition
5263 (build_binary_op): Prevent duplicate evaluation warnings.
5265 2009-08-09 Richard Sandiford <rdsandiford@googlemail.com>
5267 * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
5268 and destination have different modes, Use promote_mode to
5269 determine the signedness of the conversion. Assert that the
5270 promoted source mode matches the destination mode. Don't pass
5271 the destination and destination mode to expand_expr if the source
5272 mode is different. Simplify conversion logic.
5274 2009-08-09 Ira Rosen <irar@il.ibm.com>
5276 PR tree-optimization/41008
5277 * tree-vect-loop.c (vect_is_simple_reduction): Get operands
5278 from condition only in case it's a comparison. Adjust checks.
5280 2009-08-09 Bernd Schmidt <bernd.schmidt@analog.com>
5282 * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
5283 * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
5284 * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
5285 (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
5286 (dump_cand): Handle them.
5287 (struct iv_cand): New members COST_STEP and AINC_USE.
5288 (stmt_after_increment): Likewise.
5289 (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos. All
5290 callers changed. Use gimple_uid comparison instead of scanning.
5291 (add_candidate_1): When looking for identical candidates, take
5292 AINC_USE into account. Set it for new candidates.
5293 (force_expr_to_var_cost): Cast target_spill_cost to int.
5294 (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
5295 All callers changed. Check for availability of autoinc addressing
5296 modes, both in general for a given mode, and in the specific use case.
5297 (get_computation_cost_at): New argument CAN_AUTOINC. All callers
5299 (get_computation_cost): Likewise.
5300 (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
5301 add_autoinc_candidates): New static functions.
5302 (add_candidate): Call add_autoinc_candidates for candidates based on
5304 (find_iv_candidates): Call set_autoinc_for_original_candidates.
5305 (determine_use_iv_cost_address): If we have an autoinc candidate at
5306 the matching use, verify autoinc is possible and subtract the cost
5307 of the candidate's step from the cost.
5308 (determine_iv_cost): Record the cost of the increment in the COST_STEP
5309 member of the candidate.
5310 (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
5311 determine_use_iv_costs. Call renumber_gimple_stmt_uids_in_blocks.
5313 2009-08-09 Douglas B Rupp <rupp@gnat.com>
5315 * config.build (ia64-hp-*vms*): New target.
5316 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
5318 * config.gcc (ia64-hp-*vms*): New target.
5319 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
5321 * config.host (ia64-hp-*vms*): New target.
5322 (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
5325 2009-08-08 Richard Guenther <rguenther@suse.de>
5327 PR tree-optimization/40991
5328 * tree-ssa-pre.c (eliminate): Delay purging EH edges.
5330 2009-08-08 Richard Sandiford <rdsandiford@googlemail.com>
5332 * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
5333 mode check. Do truncations in an integer mode.
5334 (force_to_mode): Handle subregs for all mode types. Only do
5335 arithmetic simplifications on integer modes.
5337 2009-08-07 Richard Guenther <rguenther@suse.de>
5339 PR tree-optimization/40999
5340 * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
5341 (maybe_fold_reference): Lookup constant initializers.
5342 (fold_gimple_assign): Likewise.
5344 2009-08-07 Richard Guenther <rguenther@suse.de>
5346 * tree-ssa.c (useless_type_conversion_p_1): Only for types
5347 that require structural equality defer to the langhook.
5349 2009-08-07 Martin Jambor <mjambor@suse.cz>
5351 * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
5353 (struct ipa_pass_through_data): New type.
5354 (struct ipa_ancestor_jf_data): New type.
5355 (union jump_func_value): Removed field formal_id, added fields
5356 pass_through and ancestor.
5357 (struct ipa_param_call_note): Changed type of formal_id to int from
5359 * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
5360 operations jump functions and ancestor jump functions.
5361 (compute_complex_pass_through): New function.
5362 (compute_scalar_jump_functions): Call compute_complex_pass_through,
5363 reflect changes in the jump function strucutre.
5364 (update_jump_functions_after_inlining): Ignore complex pass-through
5365 and ancestor jump functions.
5366 * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
5367 polynomial pass-through with operation jump functions.
5369 2009-08-07 Jakub Jelinek <jakub@redhat.com>
5371 * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
5372 fde->dw_fde_begin as begin label instead of hot/cold label.
5373 Use LLSDAC label instead of LLSDA for second section lsda.
5374 (dwarf2out_do_cfi_startproc): Add SECOND argument. Use LLSDAC
5375 label instead of LLSDA if it is true.
5376 (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
5378 * except.c (add_call_site, dw2_size_of_call_site_table): Add
5379 SECTION argument. Use it as index into crtl->eh.call_site_record
5381 (dw2_output_call_site_table): Likewise. Add CS_FORMAT argument,
5382 use it to determine how to print table entries instead of using
5383 #ifdef HAVE_AS_LEB128. For SECTION > 0 use hot resp. cold
5384 label instead of normal begin label as base.
5385 (sjlj_assign_call_site_values): Adjust add_call_site caller.
5386 (convert_to_eh_region_ranges): When doing hot/cold partitioning,
5387 ensure no EH range spans between sections and that landing pads
5388 are always in the corresponding section.
5389 (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
5390 for crtl->eh.call_site_record being an array rather than scalar.
5391 (output_one_function_exception_table): New function, copied
5392 from output_function_exception_table. Adjust
5393 dw2_size_of_call_site_table, dw2_output_call_site_table
5394 callers. For SECOND section use *C suffixed labels.
5395 (output_function_exception_table): Call
5396 output_one_function_exception_table and, when doing hot/cold
5397 partitioning, also another time for the second section.
5398 * opts.c: Include except.h.
5399 (decode_options): Allow -freorder-blocks-and-partition with
5400 exceptions, unless SJLJ or TARGET_UNWIND_INFO.
5401 * Makefile.in (opts.o): Depend on $(EXCEPT_H).
5402 * function.h (struct rtl_eh): Change call_site_record from
5403 scalar into array of 2 elements.
5405 2009-08-07 Martin Jambor <mjambor@suse.cz>
5407 * ipa-prop.c (count_formal_params_1): New function.
5408 (ipa_get_vector_of_formal_parms): New function.
5409 (get_vector_of_formal_parm_types): New function.
5410 (ipa_modify_formal_parameters): New function.
5411 (ipa_modify_call_arguments): New function.
5412 (index_in_adjustments_multiple_times_p): New function.
5413 (ipa_combine_adjustments): New function.
5414 (ipa_dump_param_adjustments): New function.
5415 * ipa-prop.h (struct ipa_parm_adjustment): New type.
5416 (ipa_get_vector_of_formal_parms): Declare.
5417 (ipa_modify_formal_parameters): Declare.
5418 (ipa_modify_call_arguments): Declare.
5419 (ipa_combine_adjustments): Declare.
5420 (ipa_dump_param_adjustments): Declare.
5421 (build_ref_for_offset): Declare.
5422 * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
5423 * tree-sra.c: Include ipa-prop.c.
5424 (build_ref_for_offset): Make public.
5426 2009-08-06 Neil Vachharajani <nvachhar@gmail.com>
5428 * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
5430 2009-08-06 Thomas Schwinge <tschwinge@gnu.org>
5432 * gcc/doc/extend.texi (__builtin_extract_return_address)
5433 (__builtin_frob_return_address): Document.
5435 2009-08-06 Paul Brook <paul@codesourcery.com>
5437 * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
5438 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
5439 implementation on ARMv6-M.
5441 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
5443 * doc/extend.texi (pcs): Document new attribute for ARM.
5445 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
5447 * arm.c (pcs_attribute_args): Comment out unsupported attribute
5450 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
5452 * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
5455 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
5457 * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
5459 2009-08-06 Richard Earnshaw <rearnsha@arm.com>
5461 Merge ARM/hard_vfp_branch to trunk.
5463 2009-08-04 Richard Earnshaw <rearnsha@arm.com>
5465 * arm.c (libcall_eq): New function.
5466 (libcall_hash): New function.
5467 (add_libcall): New function.
5468 (arm_libcall_uses_aapcs_base): New function.
5469 (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
5470 libcalls using the base PCS.
5471 (arm_init_cumulative_args): Likewise.
5473 2009-07-20 Joseph Myers <joseph@codesourcery.com>
5475 * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
5476 Use base ABI for conversion libfuncs between HFmode and SFmode.
5478 2009-05-12 Joseph Myers <joseph@codesourcery.com>
5480 * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
5481 V4SImode as representatives of all 64-bit and 128-bit vector
5482 types. Allow vector types without vector modes.
5483 (aapcs_vfp_is_call_or_return_candidate): Handle vector types
5484 without vector modes like BLKmode.
5485 (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
5486 BLKmode. Avoid unsupported vector modes or TImode moves for
5488 (aapcs_vfp_allocate_return_reg): Likewise.
5489 (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
5490 V8QImode if TARGET_NEON || TARGET_IWMMXT.
5492 2009-05-12 Joseph Myers <joseph@codesourcery.com>
5494 * config/arm/arm.c (arm_handle_pcs_attribute): New.
5495 (arm_get_pcs_model): Pass attribute arguments to
5496 arm_pcs_from_attribute.
5497 (arm_init_cumulative_args): Use base AAPCS for conversions from
5498 floating-point types to DImode.
5499 (arm_attribute_table): Add pcs attribute.
5500 (arm_handle_pcs_attribute): New.
5501 * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
5502 conversions from floating-point types to DImode, also declare them
5503 to use base AAPCS and declare functions they call to use base
5504 AAPCS and their RTABI names.
5506 2009-05-12 Joseph Myers <joseph@codesourcery.com>
5508 * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
5509 -mfloat-abi=hard not being supported for VFP.
5511 2009-05-11 Kazu Hirata <kazu@codesourcery.com>
5513 * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
5514 SYMBOL_REF to hard_libcall_value.
5516 2009-03-05 Joseph Myers <joseph@codesourcery.com>
5517 Richard Earnshaw <rearnsha@arm.com>
5519 * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
5520 has been put on the stack, all remaining co-processory arguments for
5521 that co-processor also go on the stack.
5523 2009-03-05 Joseph Myers <joseph@codesourcery.com>
5525 * config/arm/arm.c (arm_return_in_memory): Handle returning
5526 vectors of suitable size in registers also for AAPCS case.
5528 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
5530 * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
5532 2008-12-09 Richard Earnshaw <rearnsha@arm.com>
5534 ARM Hard-VFP calling convention
5535 * target-def.h (TARGET_LIBCALL_VALUE): New hook.
5536 * target.h (gcc_target): Add libcall_value to table of call hooks.
5537 * targhooks.h (default_libcall_value): Default implementation.
5538 * targhooks.c (default_libcall_value): Likewise.
5539 * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
5540 * optabs.c (expand_unop): Use it.
5541 * expr.h (hard_libcall_value): Pass the function RTX through.
5542 * calls.c (emit_library_call_value_1): Update call to
5544 * explow.c (hard_libcall_value): Use new target hook.
5545 * testsuite/lib/target-supports.exp
5546 (check_effective_target_arm_hard_vfp_ok): New hook.
5547 (check_effective_target_arm_neon_ok): Improve test for neon
5549 * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
5550 * config/arm/arm.c: Include cgraph.h
5551 (TARGET_FUNCTION_VALUE): Override default hook.
5552 (arm_pcs_default): New variable.
5553 (arm_override_options): Don't fault hard calling convention with VFP.
5554 Add support for AAPCS variants.
5555 (arm_function_value): Make static. Handle AAPCS variants.
5556 (arm_libcall_value): New function.
5557 (arm_apply_result_size): Handle VFP registers in results.
5558 (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
5560 (pcs_attribute_args): New variable.
5561 (arm_pcs_from_attribute): New function.
5562 (arm_get_pcs_model): New function.
5563 (aapcs_vfp_cum_init): New function.
5564 (aapcs_vfp_sub_candidate): New function.
5565 (aapcs_vfp_is_return_candidate): New function.
5566 (aapcs_vfp_is_call_candidate): New function.
5567 (aapcs_vfp_allocate): New function.
5568 (aapcs_vfp_allocate_return_reg): New function.
5569 (aapcs_vfp_advance): New function.
5570 (aapcs_cp_arg_layout): New variable.
5571 (aapcs_select_call_coproc): New function.
5572 (aapcs_select_return_coproc): New function.
5573 (aapcs_allocate_return_reg): New function.
5574 (aapcs_libcall_value): New function.
5575 (aapcs_layout_arg): New function.
5576 (arm_init_cumulative_args): Initialize AAPCS args data.
5577 (arm_function_arg): Handle AAPCS variants using new interface.
5578 (arm_arg_parital_bytes): Likewise.
5579 (arm_function_arg_advance): New function.
5580 (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
5581 calling conventions.
5582 (arm_setup_incoming_varargs): Handle new AAPCS args data.
5583 * arm.h (NUM_VFP_ARG_REGS): Define.
5584 (LIBCALL_VALUE): Update.
5585 (FUNCTION_VALUE): Delete.
5586 (FUNCTION_VALUE_REGNO_P): Add VFP regs.
5587 (arm_pcs): New enum.
5588 (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
5589 (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
5590 (FUNCTION_ARG_REGNO_P): Add VFP regs.
5591 * arm-protos.h (arm_function_arg_advance): Add.
5592 (aapcs_libcall_value): Add.
5593 (arm_function_value): Delete.
5595 2009-08-06 Uros Bizjak <ubizjak@gmail.com>
5596 H.J. Lu <hongjiu.lu@intel.com>
5599 * config/i386/i386.c (standard_sse_mode_p): Remove.
5600 (standard_sse_constant_p): Return 2 for integer mode
5601 vector_all_ones_operand when SSE2 is enabled.
5602 (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
5603 (ix86_expand_vector_move): Do not check for negative values from
5604 standard_sse_constant_p.
5606 2009-08-06 Richard Guenther <rguenther@suse.de>
5608 * tree-ssa.c (useless_type_conversion_p_1): Make function and
5609 array type comparisons frontend independent.
5610 * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
5611 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
5612 out array reference lower bound and element size operands.
5613 (ao_ref_init_from_vn_reference): Properly compute the offset
5614 for ARRAY_RANGE_REF.
5615 (vn_reference_fold_indirect): Fill out array reference lower
5616 bound and element size operands.
5617 * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
5618 a non gimple valued reference operand which can happen for
5619 array reference lower bound or element size.
5620 (create_component_ref_by_pieces_1): Properly generate the
5621 element size operand for array references.
5623 2009-08-06 Richard Guenther <rguenther@suse.de>
5625 PR tree-optimization/40964
5626 * tree.c (iterative_hash_host_wide_int): Export.
5627 * tree.h (iterative_hash_host_wide_int): Declare.
5628 * tree-ssa-structalias.c (heapvar_map): New struct.
5629 (heapvar_map_eq): New function.
5630 (heapvar_map_hash): Likewise.
5631 (heapvar_lookup): Adjust.
5632 (heapvar_insert): Likewise.
5633 (make_constraint_from_heapvar): Allow multiple heap variables
5634 per decl at different offsets.
5635 (init_alias_heapvars): Adjust.
5637 2009-08-04 David Daney <ddaney@caviumnetworks.com>
5639 * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
5640 * mips_output_sync_loop (mips_output_sync_loop): Only emit
5641 trailing sync if TARGET_SYNC_AFTER_SC.
5643 2009-08-05 David Daney <ddaney@caviumnetworks.com>
5645 * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
5646 compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
5647 sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
5648 sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
5649 sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
5650 sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
5651 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
5652 sync_new_nand<mode>, sync_lock_test_and_set<mode>,
5653 test_and_set_12): Rewrite calls to mips_output_sync_loop.
5654 * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
5655 the prototype declaration match the definition.
5656 * gcc/config/mips/mips.c (mips_output_sync_loop): Emit sync
5657 instructions explicitly. Add barrier_before and operands
5659 * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
5660 MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
5661 MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
5662 MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
5663 MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
5664 MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
5666 2009-08-05 Andrew Pinski <pinskia@gmail.com>
5668 * tree-ssa-alias.c: Fix intervals to use [) syntax.
5670 2009-08-05 Uros Bizjak <ubizjak@gmail.com>
5671 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
5674 * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
5677 2009-08-05 Jakub Jelinek <jakub@redhat.com>
5679 PR rtl-optimization/40924
5680 * dse.c (canon_address): Before calling cselib_expand_value_rtx
5681 make sure canon_rtx (mem_address) isn't simpler than
5682 canon_rtx (expanded_mem_address).
5684 2009-08-05 Li Feng <nemokingdom@gmail.com>
5686 * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
5688 (build_scop_drs): Build alias set for each SCoP.
5690 2009-08-04 Sandra Loosemore <sandra@codesourcery.com>
5692 * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
5693 * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
5694 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
5695 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5696 (BASE_DRIVER_SELF_SPECS): Likewise.
5698 2009-08-04 Andrew Pinski <pinskia@gmail.com>
5700 * tree-ssa-alias.c: Fix some comment typos.
5702 2009-08-04 Kaz Kojima <kkojima@gcc.gnu.org>
5704 * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
5705 ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
5707 2009-08-03 Janis Johnson <janis187@us.ibm.com>
5710 * simplify-rtx.c (simplify_binary_operation_1): Disable
5711 simplifications for decimal float operations.
5713 2009-08-03 Jakub Jelinek <jakub@redhat.com>
5716 * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
5717 operand of INDIRECT_REF.
5719 2009-08-03 Uros Bizjak <ubizjak@gmail.com>
5721 * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
5722 constants referencing TLS symbols.
5724 2009-08-03 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
5726 * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
5727 __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
5729 2009-08-03 Richard Guenther <rguenther@suse.de>
5731 * tree.c (make_vector_type): Build a main variant first,
5732 get the canonical one and then build the variant.
5733 * tree-ssa.c (useless_type_conversion_p_1): Handle
5735 (useless_type_conversion_p): Conversions to pointers to
5736 incomplete record types are useless.
5738 2009-08-03 Richard Guenther <rguenther@suse.de>
5740 * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
5741 file will be created.
5742 * omp-low.c (pass_diagnose_omp_blocks): Likewise.
5743 * toplev.c (compile_file): Adjust comment.
5745 2009-08-03 Kaz Kojima <kkojima@gcc.gnu.org>
5747 * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
5748 * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
5749 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5750 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
5751 (sh_promote_function_mode): Fix typo.
5753 2009-08-03 Andreas Krebbel <krebbel1@de.ibm.com>
5755 * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
5757 2009-08-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5759 * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
5760 declaration arguments.
5762 2009-08-02 Uros Bizjak <ubizjak@gmail.com>
5764 * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
5765 of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
5766 (ix86_split_ashl): Ditto.
5767 (ix86_expand_vector_init_one_nonzero): Ditto.
5768 (ix86_expand_vector_set): Ditto.
5769 (ix86_expand_reduc_v4sf): Ditto.
5771 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
5773 * explow.c (promote_function_mode): Remove assert.
5774 * config/sh/sh.c (sh_promote_function_mode): Declare.
5776 2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5778 * config/pa/pa.c (pa_promote_function_mode): Declare.
5779 Change to static. Fix promote_mode call.
5781 * gthr-dce.h (CONST_CAST2): Define if not defined.
5782 (__gthread_setspecific): Use CONST_CAST2 to fix warning.
5784 * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
5786 2009-08-01 Paolo Bonzini <bonzini@gnu.org>
5788 * expr.c (store_constructor): Use promote_decl_mode. Remove
5789 now write-only variable unsignedp.
5790 (expand_expr_real_1): Use promote_decl_mode.
5791 * expr.h (promote_function_mode, promote_decl_mode): New.
5792 (promote_mode): Remove last argument.
5793 * function.c (assign_temp): Drop last argument of promote_mode.
5794 (assign_parm_find_data_types): Use promote_function_mode.
5795 (assign_parm_setup_reg): Likewise.
5796 (expand_function_end): Use promote_function_mode.
5797 * calls.c (initialize_argument_information): Use promote_function_mode.
5798 (precompute_arguments): Use promote_mode instead of checking if
5799 only PROMOTE_FUNCTION_MODE is defined.
5800 (expand_call): When making sibcall decisions, use promote_function_mode.
5801 Below, remove an if for targetm.calls.promote_function_return and
5802 and use promote_function_mode.
5803 (emit_library_call_value_1): Use promote_function_mode, fix bug
5804 where promote_mode was passed FOR_CALL == 0 for a return value in an
5806 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
5807 * explow.c (promote_function_mode, promote_decl_mode): New.
5808 (promote_mode): Keep only the FOR_CALL == 0 case.
5809 * combine.c (setup_incoming_promotion): Remove test of
5810 promote_function_args. Use promote_function_mode.
5811 * stmt.c (expand_value_return): Use promote_decl_mode.
5812 (expand_decl): Use promote_decl_mode.
5814 * expr.c (store_constructor): Use promote_decl_mode. Remove
5815 now write-only variable unsignedp.
5816 (expand_expr_real_1): Use promote_decl_mode.
5817 * expr.h (promote_function_mode, promote_decl_mode): New.
5818 (promote_mode): Remove last argument.
5819 * function.c (assign_temp): Drop last argument of promote_mode.
5820 (assign_parm_find_data_types): Use promote_function_mode.
5821 (assign_parm_setup_reg): Likewise.
5822 (expand_function_end): Use promote_function_mode.
5823 * calls.c (initialize_argument_information): Use promote_function_mode.
5824 (precompute_arguments): Use promote_mode instead of checking if
5825 only PROMOTE_FUNCTION_MODE is defined.
5826 (expand_call): When making sibcall decisions, use promote_function_mode.
5827 Below, remove an if for targetm.calls.promote_function_return and
5828 and use promote_function_mode.
5829 (emit_library_call_value_1): Use promote_function_mode, fix bug
5830 where promote_mode was passed FOR_CALL == 0 for a return value in an
5832 * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
5833 * explow.c (promote_function_mode, promote_decl_mode): New.
5834 (promote_mode): Keep only the FOR_CALL == 0 case.
5835 * combine.c (setup_incoming_promotion): Remove test of
5836 promote_function_args. Use promote_function_mode.
5837 * stmt.c (expand_value_return): Use promote_decl_mode.
5838 (expand_decl): Use promote_decl_mode.
5840 * explow.c (promote_function_mode): Just call the target hook.
5841 * targhooks.c (default_promote_function_mode,
5842 default_promote_function_mode_always_promote): New.
5843 * targhooks.h (default_promote_function_mode,
5844 default_promote_function_mode_always_promote): Declare.
5845 * target.h (promote_function_args, promote_function_return): Remove.
5846 (promote_function_mode): New.
5847 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
5848 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
5849 (TARGET_PROMOTE_FUNCTION_MODE): New.
5850 (TARGET_CALLS): Adjust.
5851 * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
5852 TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
5854 * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
5855 * config/s390/s390.c (s390_promote_function_mode): ... here,
5856 with pointer handling.
5857 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5858 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
5860 * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
5861 * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
5862 with pointer handling.
5863 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5864 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
5866 * config/sh/sh-protos.h (sh_promote_function_mode): New.
5867 * config/sh/sh.c (sh_promote_function_mode): New.
5868 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5869 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
5871 * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
5872 * config/cris/cris.c (cris_promote_function_mode): ... here.
5873 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5874 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
5876 * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
5877 * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
5878 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5879 (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
5881 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
5882 * config/arm/arm.c (arm_promote_function_mode): ... here, without
5883 complex type handling.
5884 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5885 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
5887 * config/pa/pa.c (pa_promote_function_mode): New.
5888 (TARGET_PROMOTE_FUNCTION_MODE): Define.
5889 (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
5891 * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
5892 TARGET_PROMOTE_FUNCTION_RETURN): Remove.
5893 (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
5894 * config/xtensa/xtensa.c: Likewise.
5895 * config/stormy16/stormy16.c: Likewise.
5896 * config/iq2000/iq2000.c: Likewise.
5897 * config/rs6000/rs6000.c: Likewise.
5898 * config/picochip/picochip.c: Likewise.
5899 * config/arc/arc.c: Likewise.
5900 * config/mcore/mcore.c: Likewise.
5901 * config/score/score.c: Likewise.
5902 * config/mips/mips.c: Likewise.
5903 * config/bfin/bfin.c: Likewise.
5904 * config/ia64/ia64.c: Likewise (disabled though).
5906 * config/frv/frv.h: Remove pointless remark.
5908 * doc/tm.texi (PROMOTE_FUNCTION_MODE,
5909 TARGET_PROMOTE_FUNCTION_ARGS,
5910 TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
5911 (TARGET_PROMOTE_FUNCTION_MODE): ... this.
5913 2009-08-01 Sebastian Pop <sebastian.pop@amd.com>
5915 * doc/invoke.texi (-fgraphite-force-parallel): Renamed
5916 -floop-parallelize-all.
5917 * toplev.c (process_options): Rename flag_graphite_force_parallel to
5918 flag_loop_parallelize_all.
5919 * tree-ssa-loop.c (gate_graphite_transforms): Same.
5920 * graphite.c (graphite_transform_loops): Same.
5922 * graphite-poly.c (apply_poly_transforms): Same.
5924 2009-07-31 Richard Earnshaw <rearnsha@arm.com>
5926 PR tree-optimization/40914
5927 * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
5928 if set, then check the delta field of the PMF record.
5929 (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
5930 (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
5931 call is stored in the delta.
5933 2009-07-31 Adam Nemet <anemet@caviumnetworks.com>
5935 * config/mips/mips.md (*clear_upper32_dext): New pattern.
5937 2009-07-31 Uros Bizjak <ubizjak@gmail.com>
5939 * config/i386/bsd.h (ASM_BYTE): New define.
5940 * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
5941 * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
5942 .byte. Use fputs or putc instead of fprintf where appropriate.
5943 * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte. Use
5944 fputs or putc instead of fprintf where appropriate.
5945 * config/i386/i386elf.h: Ditto.
5946 * config/i386/sysv4.h: Ditto.
5948 * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
5949 * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
5950 (*tls_global_dynamic_64): Ditto.
5952 2009-07-31 Christian Bruel <christian.bruel@st.com>
5954 * gcc/config.gcc (sh*-*-elf): test with_libgloss.
5956 2009-07-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5958 * config/arm/arm.c (arm_arm_address_cost): Fix typo.
5959 Remove dead code for MINUS.
5961 2009-07-31 Anthony Green <green@moxielogic.com>
5963 * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
5965 (moxie_expand_epilogue): Ditto for epilogue.
5966 (moxie_setup_incoming_varargs): ABI change. Use 5 registers for
5968 (moxie_function_arg): Ditto.
5969 (moxie_pass_by_reference): Ditto.
5970 (moxie_arg_partial_bytes): Ditto.
5971 * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
5972 (FUNCTION_ARG_ADVANCE) Ditto.
5973 (REG_PARM_STACK_SPACE) Ditto.
5974 (FUNCTION_ARG_REGNO_P) Dito.
5976 * config.gcc: Add moxie linux config support.
5977 * gcc/config/moxie/uclinux.h: New file.
5979 2009-07-31 DJ Delorie <dj@redhat.com>
5981 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
5982 (UNSPECV_SP_SWITCH_E): New.
5983 (sp_switch_1): Change to an unspec.
5984 (sp_switch_2): Change to an unspec. Don't use post-inc when we
5986 * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
5987 reference the new stack's address
5989 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
5991 * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
5992 graphite-clast-to-gimple.o, graphite-dependences.o,
5993 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
5994 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
5995 (graphite-blocking.o,
5996 graphite-clast-to-gimple.o, graphite-dependences.o,
5997 graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
5998 graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
5999 * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
6000 * cfgloop.h (struct loop): Add can_be_parallel field.
6001 * common.opt (fgraphite-identity): Moved up.
6002 (fgraphite-force-parallel): New flag.
6003 * graphite.c: Rewrite.
6004 * graphite.h: Rewrite.
6005 * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
6007 * toplev.c (graphite_out_file): New file descriptor.
6008 (graphite_in_file): New.
6009 (process_options): flag_graphite_force_parallel cannot be used without
6011 * tree-ssa-loop.c: Include toplev.h.
6012 (gate_graphite_transforms): Enable flag_graphite for
6013 flag_graphite_force_parallel.
6015 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6017 * ChangeLog.graphite: New.
6018 * graphite-blocking.c: New.
6019 * graphite-clast-to-gimple.c: New.
6020 * graphite-clast-to-gimple.h: New.
6021 * graphite-dependences.c: New.
6022 * graphite-dependences.h: New.
6023 * graphite-interchange.c: New.
6024 * graphite-poly.c: New.
6025 * graphite-poly.h: New.
6026 * graphite-ppl.c: New.
6027 * graphite-ppl.h: New.
6028 * graphite-scop-detection.c: New.
6029 * graphite-scop-detection.h: New.
6030 * graphite-sese-to-poly.c: New.
6031 * graphite-sese-to-poly.h: New.
6035 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6037 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
6038 * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
6040 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6042 * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
6043 (scev_is_linear_expression): Return false if the evolution is not
6044 affine multivariate.
6046 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6048 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
6049 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
6051 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6053 * tree-data-ref.c (debug_data_references): New.
6054 (debug_data_reference): New.
6055 * tree-data-ref.h (debug_data_references): Declared.
6056 (debug_data_reference): Declared.
6058 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6060 * tree-data-ref.c (stmt_simple_memref_p: Removed.
6061 * tree-data-ref.h (scop_p): Removed.
6062 (struct data_reference): Remove field scop.
6064 (stmt_simple_memref_p): Removed.
6066 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6068 * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
6069 * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
6072 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6074 * doc/invoke.texi (-fgraphite-force-parallel): Documented.
6076 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6078 * doc/invoke.texi (-fgraphite-identity): Documented.
6080 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6082 * tree-scalar-evolution.c: Fix comment.
6083 (instantiate_scev_1): Return unknow from scev instantiation if the
6084 result is not above instantiate_below.
6086 2009-07-30 Sebastian Pop <sebastian.pop@amd.com>
6088 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
6089 static anymore. Instantiate the symbols that may have been introduced
6091 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
6094 2009-07-30 DJ Delorie <dj@redhat.com>
6096 * config/mep/mep.c (mep_asm_init_sections): Add section flags and
6097 .vliw directive to VLIW sections.
6099 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6101 * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
6103 ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
6104 (AUTOHEADER): New variable.
6105 ($(srcdir)/cstamp-h.in): Use it.
6107 2009-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
6108 Pat Haugen <pthaugen@us.ibm.com>
6109 Revital Eres <ERES@il.ibm.com>
6111 * config/rs6000/vector.md (VEC_F): Add VSX support.
6115 (vector_load_<mode>): Ditto.
6116 (vector_store_<mode>): Ditto.
6117 (vector GPR move split): Ditto.
6118 (vec_reload_and_plus_<mptrsize>): Ditto.
6119 (vec_reload_and_reg_<mptrsize>): Ditto.
6120 (add<mode>3): Ditto.
6121 (sub<mode>3): Ditto.
6122 (mul<mode>3): Ditto.
6123 (neg<mode>2): Ditto.
6124 (abs<mode>2): Ditto.
6125 (smin<mode>3): Ditto.
6126 (smax<mode>3): Ditto.
6127 (vector_eq<mode>): Ditto.
6128 (vector_gt<mode>): Ditto.
6129 (vector_ge<mode>): Ditto.
6130 (vector_gtu<mode>): Ditto.
6131 (vector_select_<mode>_uns): Ditto.
6132 (vector_eq_<mode>_p): Ditto.
6133 (vector_gt_<mode>_p): Ditto.
6134 (vector_ge_<mode>_p): Ditto.
6135 (vector_gtu_<mode>_p): Ditto.
6136 (cr6_test_for_zero): Ditto.
6137 (cr6_test_for_zero_reverse): Ditto.
6138 (cr6_test_for_lt): Ditto.
6139 (cr6_test_for_lt_reverse): Ditto.
6140 (xor<mode>3): Ditto.
6141 (ior<mode>3): Ditto.
6142 (and<mode>3): Ditto.
6143 (one_cmpl<mode>2): Ditto.
6144 (nor<mode>2): Ditto.
6145 (andc<mode>2): Ditto.
6146 (float<VEC_int<mode>2): Ditto.
6147 (unsigned_float<VEC_int><mode>2): Ditto.
6148 (fix_trunc<mode><VEC_int>2): Ditto.
6149 (fixuns_trunc<mode><VEC_int>2): Ditto.
6151 (vec_set<mode>): Ditto.
6152 (vec_extract<mode>): Ditto.
6153 (vec_interleave_highv4sf): Ditto.
6154 (vec_interleave_lowv4sf): Ditto.
6155 (vec_realign_load_<mode>): Ditto.
6156 (vec_shl_<mode>): Ditto.
6157 (vec_shr_<mode>): Ditto.
6158 (div<mode>3): New patterns for VSX.
6159 (vec_interleave_highv2df): Ditto.
6160 (vec_interleave_lowv2df): Ditto.
6161 (vec_pack_trunc_v2df): Ditto.
6162 (vec_pack_sfix_trunc_v2df): Ditto.
6163 (vec_pack_ufix_trunc_v2df): Ditto.
6164 (vec_unpacks_hi_v4sf): Ditto.
6165 (vec_unpacks_lo_v4sf): Ditto.
6166 (vec_unpacks_float_hi_v4si): Ditto.
6167 (vec_unpacks_float_lo_v4si): Ditto.
6168 (vec_unpacku_float_hi_v4si): Ditto.
6169 (vec_unpacku_float_lo_v4si): Ditto.
6170 (movmisalign<mode>): Ditto.
6171 (vector_ceil<mode>2): New patterns for vectorizing math library.
6172 (vector_floor<mode>2): Ditto.
6173 (vector_btrunc<mode>2): Ditto.
6174 (vector_copysign<mode>3): Ditto.
6176 * config/rs6000/predicates.md (easy_vector_constant_msb): New
6177 predicate for setting the high bit in each word, used for copysign.
6179 * config/rs6000/ppc-asm.h (f19): Whitespace.
6180 (f32-f63): Define if VSX.
6181 (v0-v31): Define if Altivec.
6182 (vs0-vs63): Define if VSX.
6184 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
6186 * config/rs6000/power7.md: New file, provide tuning parameters for
6189 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
6190 (rs6000_cpu_cpp_builtins): Ditto.
6191 (altivec_overloaded_builtins): Ditto.
6192 (altivec_resolve_overloaded_builtin): Ditto.
6194 * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
6195 debug switch to disable vectorizing simple math builtin
6198 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
6199 Vectorize simple math builtin functions.
6200 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
6201 hook to vectorize math builtins.
6202 (rs6000_override_options): Enable -mvsx on -mcpu=power7.
6203 (rs6000_builtin_conversion): Add VSX/power7 support.
6204 (rs6000_builtin_vec_perm): Ditto.
6205 (vsplits_constant): Add support for loading up a vector constant
6206 with just the high bit set in each part.
6207 (rs6000_expand_vector_init): Add VSX/power7 support.
6208 (rs6000_expand_vector_set): Ditto.
6209 (rs6000_expand_vector_extract): Ditto.
6210 (rs6000_emit_move): Ditto.
6211 (bdesc_3arg): Ditto.
6212 (bdesc_2arg): Ditto.
6213 (bdesc_1arg): Ditto.
6214 (rs6000_expand_ternop_builtin): Ditto.
6215 (altivec_expand_builtin): Ditto.
6216 (rs6000_expand_unop_builtin): Ditto.
6217 (rs6000_init_builtins): Ditto.
6218 (altivec_init_builtins): Ditto.
6219 (builtin_function_type): Ditto.
6220 (rs6000_common_init_builtins): Ditto.
6221 (rs6000_handle_altivec_attribute); Ditto.
6222 (rs6000_mangle_type): Ditto.
6223 (rs6000_vector_mode_supported_p): Ditto.
6224 (rs6000_mode_dependent_address): Altivec addresses with AND -16
6227 * config/rs6000/vsx.md: New file for VSX support.
6229 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
6230 identifing values with just the most significant bit set.
6231 (enum rs6000_builtins): Add builtins for VSX. Add simple math
6232 vectorized builtins.
6234 * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
6235 (UNSPEC_VRFIM): Delete.
6236 (splitter for loading up vector with most significant bit): New
6237 splitter for vectorizing copysign.
6238 (altivec_vrfiz): Rename from altivec_fturncv4sf2. Add support for
6239 vectorizing simple math functions.
6240 (altivec_vrfip): Add support for vectorizing simple math functions.
6241 (altivec_vrfim): Ditto.
6242 (altivec_copysign_v4sf3): New insn for Altivec copysign support.
6244 * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
6245 (power7.md, vsx.md): Include for power7 support.
6246 (copysigndf3): Use VSX instructions if -mvsx.
6247 (negdf2_fpr): Ditto.
6248 (absdf2_fpr): Ditto.
6249 (nabsdf2_fpr): Ditto.
6250 (adddf3_fpr): Ditto.
6251 (subdf3_fpr): Ditto.
6252 (muldf3_fpr): Ditto.
6253 (divdf3_fpr): Ditto.
6254 (fix_truncdfdi2_fpr): Ditto.
6255 (cmpdf_internal1): Ditto.
6256 (fred, fred_fpr): Convert into expander/insn to add VSX support.
6257 (btruncdf2, btruncdf2_fpr): Ditto.
6258 (ceildf2, ceildf2_fpr): Ditto.
6259 (floordf2, floordf2_fpr): Ditto.
6260 (floatdidf2, floatdidf2_fpr): Ditto.
6261 (fmadddf4_fpr): Name insn. Use VSX instructions if -mvsx.
6262 (fmsubdf4_fpr): Ditto.
6263 (fnmadddf4_fpr_1): Ditto.
6264 (fnmadddf4_fpr_2): Ditto.
6265 (fnmsubdf4_fpr_1): Ditto.
6266 (fnmsubdf4_fpr_2): Ditto.
6267 (fixuns_truncdfdi2): Add expander for VSX support.
6268 (fix_truncdfdi2): Ditto.
6269 (fix_truncdfsi2): Ditto.
6271 (btruncsf2): Whitespace.
6272 (movdf_hardfloat32): Add support for VSX registers.
6273 (movdf_softfloat32): Ditto.
6274 (movdf_hardfloat64): Ditto.
6275 (movdf_hardfloat64_mfpgpr): Ditto.
6276 (movdf_softfloat64): Ditto.
6277 (movti splitters): Add check for vector registers supporting
6278 TImode in the future.
6279 (bpermd): Add power7 bpermd instruction.
6281 * config/rs6000/altivec.h (vec_div): Define if VSX.
6285 (vec_nearbyint): Ditto.
6288 (all predicates): Use the generic builtin function, and not the V4SF
6289 specific function so that the predicates will work with VSX's V2DF.
6293 * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
6294 Document new VSX functions and types.
6296 * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
6299 * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
6300 "wa", and "j" constraints. Modify "v" to talk about Altivec
6301 instead of just vector.
6303 2009-07-30 Andrew MacLeod <amacleod@redhat.com>
6306 * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
6307 location for phi arguments.
6308 (rewrite_update_phi_arguments): Find locations for reaching defs.
6309 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
6310 Add location to add_phi_arg calls.
6311 * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
6312 * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
6313 split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
6314 * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
6315 create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
6316 * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
6317 * tree-phinodes.c (make_phi_node): Initialize location.
6318 (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
6319 (add_phi_arg): Add location parameter.
6320 (remove_phi_arg_num): Move location when moving phi argument.
6321 * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
6323 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
6324 slpeel_update_phi_nodes_for_guard1,
6325 slpeel_update_phi_nodes_for_guard2,
6326 slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
6327 vect_loop_versioning): Set locations.
6328 * tree-parloops.c (create_phi_for_local_result,
6329 transform_to_exit_first_loop, create_parallel_loop): Add locations.
6330 * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
6331 * tree-vect-loop.c (get_initial_def_for_induction,
6332 vect_create_epilog_for_reduction, vect_finalize_reduction): Add
6334 * tree-flow-inline.h (gimple_phi_arg_location): New. Return locus.
6335 (gimple_phi_arg_location_from_edge): New. Return locus from an edge.
6336 (gimple_phi_arg_set_location): New. Set locus.
6337 (gimple_phi_arg_has_location): New. Check for locus.
6338 (redirect_edge_var_map_location): New. Return locus from var_map.
6339 * tree-vect-data-refs.c (vect_setup_realignment): Set location.
6340 * tree-ssa-phiopt.c (conditional_replacement): Set locus when
6341 combining PHI arguments.
6342 (cond_store_replacement): Set location.
6343 * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
6344 * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
6345 scop_add_exit_phis_edge): Add locations.
6346 * tree-cfgcleanup.c (remove_forwarder_block,
6347 remove_forwarder_block_with_phi): Add locations.
6348 * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
6349 * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
6351 * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
6352 * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
6353 flush_pending_stmts): Add source location.
6354 * lambda-code.c (perfect_nestify): Maintain location stack with argument
6355 stack to preserve locations.
6356 * tree-vect-stmts.c (vectorizable_load): Add location.
6357 * tree-inline.c (copy_phis_for_bb): Copy locus.
6358 (setup_one_parameter): Add call locus to inlined parameter stmts.
6359 (initialize_inlined_parameters): Pass in call location as parameter
6361 (tree_function_versioning): Pass location to setup_one_parameter.
6362 * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
6363 * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
6364 copy and edge lists.
6365 (insert_partition_copy_on_edge, insert_value_copy_on_edge,
6366 insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
6367 locus parameter and override the stmt default if provided.
6368 (new_elim_graph, clear_elim_graph, delete_elim_graph,
6369 elim_graph_add_edge, elim_graph_remove_succ_edge,
6370 FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
6371 elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
6372 eliminate_phi): Add locus info in elimination graph for each edge and
6374 (insert_backedge_copies): Copy locus if present.
6375 * tree-flow.h (struct _edge_var_map): Add locus field.
6376 * tree-switch_conversions.c (fix_phi_nodes): Add locations.
6377 * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
6378 add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
6380 * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
6382 2009-07-30 Martin Jambor <mjambor@suse.cz>
6384 PR tree-optimization/40570
6385 * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
6388 2009-07-30 Razya Ladelsky <razya@il.ibm.com>
6390 * ssa-loop-manip.c: Include langhooks.h.
6391 (rewrite_phi_with_iv): New.
6392 (rewrite_all_phi_nodes_with_iv): New.
6393 (canonicalize_loop_ivs): Move here from tree-parloops.c.
6394 Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
6395 * tree-parloops.c (loop_parallel_p): Move out all conditions
6396 except dependency check.
6397 (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
6398 (gen_parallel_loop): Call canonicalize_loop_ivs without
6399 reduction_list argument.
6400 (build_new_reduction): New.
6401 (gather_scalar_reductions): New.
6402 (try_get_loop_niter): New.
6403 (try_create_reduction_list): New.
6404 (parallleize_loops): Change the parallel conditions check.
6405 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
6406 * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
6408 2009-07-30 Dave Korn <dave.korn.cygwin@gmail.com>
6410 * opt-functions.awk (opt_args): Allow argument to be enclosed in
6412 * doc/options.texi (Option properties): Mention new quoting syntax.
6414 2009-07-29 Douglas B Rupp <rupp@gnat.com>
6416 * config/alpha/alpha.c (alpha_start_function):
6417 Handle VMS_DEBUG_MAIN_POINTER
6418 * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
6419 * doc/invoke.texi: Document -mdebug-main switch.
6421 2009-07-29 Richard Henderson <rth@redhat.com>
6423 * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
6424 (cgraph_create_edge_including_clones): Likewise.
6425 * tree-inline.c (copy_bb): Operate on the correct edges
6426 when updating the callgraph.
6428 2009-07-29 Douglas B Rupp <rupp@gnat.com>
6430 * config/alpha/vms-cc.c: Deleted.
6431 * config/alpha/vms-ld.c: Deleted.
6432 * config/alpha/t-vms64: Moved to config/vms
6433 * config/alpha/vms-crt0-64.c: Moved to config/vms
6434 * config/alpha/vms-crt0.c: Moved to config/vms
6435 * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
6436 * config/alpha/vms-psxcrt0.c: Moved to config/vms
6437 * config/alpha/xm-vms.h: Moved to config/vms
6438 * config/alpha/x-vms: Moved to config/vms
6439 * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
6441 * config/vms/t-vms: Moved here from config/alpha. Alpha specific
6442 parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
6444 * config/vms/t-vms64: Moved here from config/alpha
6445 * config/vms/vms-crt0-64.c: Moved here from config/alpha.
6446 (argc,argv,envp): Enforce 32bit malloc'ing.
6447 * config/vms/vms-psxcrt0-64.c: Likewise.
6448 * config/vms/vms-crt0.c: Moved here from config/alpha.
6449 * config/vms/vms-psxcrt0.c: Likewise.
6450 * config/vms/vms-crtl-64.h: New file.
6451 * config/vms/vms-crtl.h: New file.
6452 * config/vms/vms.opt: New file.
6453 * config/vms/xm-vms64.h: New file.
6454 * config/vms/xm-vms.h: Moved here from config/alpha.
6455 (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
6457 * config/vms/x-vms: Moved here from config/alpha.
6458 (version, VMS_EXTRA_PARTS): Moved to t-vms.
6459 (vms-ld.o, vms-cc.o): Removed.
6460 (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
6462 2009-07-29 Douglas B Rupp <rupp@gnat.com>
6464 * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
6465 correct stack (obvious VMS fix).
6467 2009-07-29 Douglas B Rupp <rupp@gnat.com>
6469 * dwarf2out.c (output_file_names): Output VMS style file name, size,
6470 date, version info if VMS_DEBUGGING_INFO defined.
6471 * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
6472 size, date calculating code moved here.
6474 2009-07-29 Paul Brook <paul@codesourcery.com>
6476 * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
6479 2009-07-29 Uros Bizjak <ubizjak@gmail.com>
6482 * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
6483 to DImode when generating insq_le insn.
6485 2009-07-28 Douglas B Rupp <rupp@gnat.com>
6487 * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
6488 New macro set for VMS_DEBUGGGING_INFO.
6489 (AT_string_form): Use it.
6491 2009-07-28 DJ Delorie <dj@redhat.com>
6493 * config/mep/mep.c (vtext_section): New.
6494 (vftext_section): New.
6495 (ftext_section): New.
6496 (mep_select_section): Add support for functions.
6497 (mep_unique_section): Likewise.
6498 (mep_asm_init_sections): Likewise.
6499 (mep_encode_section_info): Remove it from here.
6501 * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
6503 2009-07-28 Paolo Bonzini <bonzinI@gnu.org>
6505 * tree.h (TREE_DEPRECATED): Document it is used for types too.
6506 (TYPE_VECTOR_OPAQUE): Use default_def_flag
6508 2009-07-28 Douglas B Rupp <rupp@gnat.com>
6510 * dwarf2out.c (output_file_names): Test new macro
6511 DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
6512 (add_comp_dir_attribute): Likewise.
6514 2009-07-28 Kai Tietz <kai.tietz@onevision.com>
6516 * config/i386/mingw-w64.h (LINK_SPEC): Add
6517 separating space between commands.
6519 2009-07-28 Jan Hubicka <jh@suse.cz>
6521 PR tree-optimization/40759
6522 * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
6525 2009-07-27 DJ Delorie <dj@redhat.com>
6527 * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
6528 types are dword-aligned.
6529 (mep_expand_va_start): Likewise.
6531 2009-07-27 Olivier Hainque <hainque@adacore.com>
6532 Douglas B Rupp <rupp@gnat.com>
6534 * convert.c (convert_to_pointer): Don't assume the target
6535 pointer type is POINTER_SIZE long. Fetch its precision instead.
6537 2009-07-27 Douglas B Rupp <rupp@gnat.com>
6539 * system.h (fopen): Undefine if macro.
6541 2009-07-27 Jakub Jelinek <jakub@redhat.com>
6543 * dwarf2out.c (output_cfi_p): Removed.
6544 (output_cfis): New function.
6545 (output_fde): New function, split from output_call_frame_info.
6546 (output_call_frame_info): Use it.
6547 (dwarf2out_switch_text_section): Use output_cfis.
6549 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
6551 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
6552 TARGET_BI_ARCH is specified without enabling SJLJ.
6553 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
6554 if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
6556 2009-07-26 Mikael Pettersson <mikpe@it.uu.se>
6558 * arm.md (negdi2): Use DImode if forcing a value into a register.
6560 2009-07-26 Ira Rosen <irar@il.ibm.com>
6562 PR tree-optimization/40801
6563 * tree-vect-stmts.c (vectorizable_call): Get previous copy
6564 of vector operand from the previous copy of vector statement.
6565 Pass the correct definition type value to
6566 vect_get_vec_def_for_stmt_copy().
6568 2009-07-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6570 * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
6571 const char ** conversion.
6573 2009-07-25 David Daney <ddaney@caviumnetworks.com>
6575 * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
6576 fancy_abort() if !ENABLE_ASSERT_CHECKING.
6577 (gcc_unreachable): Invoke __builtin_unreachable() if
6578 !ENABLE_ASSERT_CHECKING.
6580 2009-07-25 David Daney <ddaney@caviumnetworks.com>
6582 PR rtl-optimization/40445
6583 * emit-rtl.c (next_nonnote_insn_bb): New function.
6584 * rtl.h (next_nonnote_insn_bb): Declare new function.
6585 * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
6586 with no successors that is the successor of the ENTRY_BLOCK.
6587 Continue from the top after removing an empty fallthrough block.
6588 * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
6589 of next_nonnote_insn.
6591 2009-07-25 David Daney <ddaney@caviumnetworks.com>
6593 * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
6595 2009-07-25 Martin Jambor <mjambor@suse.cz>
6597 * c-common.c (c_common_attribute_table): New element for noclone.
6598 (handle_noclone_attribute): New function. Forward-declare.
6599 * tree-inline.c (tree_versionable_function_p): Check for noclone
6601 * doc/extend.texi (Labels as Values): Document need for noclone.
6602 (Function Attributes): Document noclone attribute.
6604 2009-07-25 Jakub Jelinek <jakub@redhat.com>
6606 PR rtl-optimization/34999
6607 * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
6608 and dw_fde_switched_cold_to_hot fields.
6609 (output_cfi_p): New function.
6610 (output_call_frame_info): If fde->dw_fde_switched_sections,
6611 output 2 FDEs instead of one with corrupted header.
6612 (dwarf2out_do_cfi_startproc): New function.
6613 (dwarf2out_begin_prologue): Use it. Initialize fde->dw_fde_switch_cfi
6614 and fde->dw_fde_switched_cold_to_hot.
6615 (dwarf2out_switch_text_section): Compute
6616 fde->dw_fde_switched_cold_to_hot. Switch to new text section here.
6617 If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
6618 dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
6619 Otherwise, compute fde->dw_fde_switch_cfi.
6621 2009-07-24 Cary Coutant <ccoutant@google.com>
6623 * tree-cfg.c (assign_discriminator): Add explicit parentheses.
6625 2009-07-24 Cary Coutant <ccoutant@google.com>
6627 * cfghooks.c (split_block): Copy discriminator to new block.
6628 * tree-cfg.c (assign_discriminator): Check location of last
6629 instruction in block as well as first.
6631 2009-07-24 Uros Bizjak <ubizjak@gmail.com>
6633 * config/i386/linux.c: Use fputs or putc instead of fprintf
6635 * config/i386/gas.h: Ditto.
6636 * config/i386/x86-64.h: Ditto.
6637 * config/i386/att.h: Ditto.
6639 2009-07-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6641 * expmed.c (emit_store_flag): Use a recursive call to optimize the
6644 2009-07-24 Martin Jambor <mjambor@suse.cz>
6646 * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
6647 (ipa_push_func_to_list_1): Declare.
6648 (ipa_push_func_to_list): New function.
6650 * ipa-prop.c (ipa_push_func_to_list_1): New function.
6651 (ipa_init_func_list): Call ipa_push_func_to_list_1.
6652 (ipa_push_func_to_list): Removed.
6653 (ipa_pop_func_from_list): Clear node_enqueued flag.
6655 2009-07-24 Andreas Krebbel <krebbel1@de.ibm.com>
6657 * config/s390/s390.c (override_options): Default
6658 max-unrolled-insns to 100 for z10 tuning.
6660 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
6662 * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
6663 tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
6664 tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
6665 tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
6666 tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
6667 tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
6668 lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
6670 2009-07-24 Kai Tietz <kai.tietz@onevision.com>
6672 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
6673 use default set in mingw32.h header.
6674 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
6675 64-bit /mingw/include path.
6676 (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
6679 2009-07-23 Neil Vachharajani <nvachhar@google.com>
6681 PR rtl-optimization/40209
6682 * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
6684 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
6686 * config/i386/i386.c: Use ASM_LONG instead of .long. Concatenate
6687 ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
6688 with the rest of string where appropriate. Use fputs or putc
6689 instead of fprintf where appropriate.
6691 2009-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
6692 Pat Haugen <pthaugen@us.ibm.com>
6693 Revital Eres <ERES@il.ibm.com>
6695 * config/rs6000/vector.md: New file. Move most of the vector
6696 expander support here from altivec.md to allow for the VSX vector
6697 unit in the future. Add support for secondary_reload patterns.
6698 Rewrite the patterns for vector comparison, and vector comparison
6699 predicate instructions so that the RTL expresses the desired
6700 behavior, instead of using unspec.
6702 * config/rs6000/constraints.md ("f" constraint): Use
6703 rs6000_constraints to hold the precalculated register class.
6704 ("d" constraint): Ditto.
6705 ("wd" constraint): New constraint for VSX.
6706 ("wf" constraint): Ditto.
6707 ("ws" constraint): Ditto.
6708 ("wa" constraint): Ditto.
6709 ("wZ" constraint): Ditto.
6710 ("j" constraint): Ditto.
6712 * config/rs6000/predicates.md (vsx_register_operand): New
6714 (vfloat_operand): New predicate for vector.md.
6715 (vint_operand): Ditto.
6716 (vlogical_operand): Ditto.
6717 (easy_fp_constant): If VSX, 0.0 is an easy constant.
6718 (easy_vector_constant): Add VSX support.
6719 (altivec_indexed_or_indirect_operand): New predicate for
6720 recognizing Altivec style memory references with AND -16.
6722 * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
6723 for vector secondary reload support.
6724 (rs6000_vector_reg_class): Delete, replacing it with
6726 (rs6000_vsx_reg_class): Ditto.
6727 (rs6000_constraints): New array to hold the register classes of
6728 each of the register constraints that can vary at runtime.
6729 (builtin_mode_to_type): New static array for builtin function type
6731 (builtin_hash_table): New static hash table for builtin function
6733 (TARGET_SECONDARY_RELOAD): Define target hook.
6734 (TARGET_IRA_COVER_CLASSES): Ditto.
6735 (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
6736 registers are 128 bits if VSX memory reference instructions are used.
6737 (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
6739 (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
6740 (rs6000_debug_reg_global): Move -mdebug=reg statements here.
6741 Print several of the scheduling related parameters.
6742 (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
6743 rs6000_constraints instead of rs6000_vector_reg_class. Move
6744 -mdebug=reg code to rs6000_debug_reg_global. Add support for
6745 -mvsx-align-128 debug switch. Drop testing float_p if VSX or
6746 Altivec. Add VSX support. Setup for secondary reload support on
6747 Altivec/VSX registers.
6748 (rs6000_override_options): Make power7 set the scheduling groups
6749 like the power5. Add support for new debug switches to override
6750 the scheduling defaults. Temporarily disable -mcpu=power7 from
6751 setting -mvsx. Add support for debug switches -malways-hint,
6752 -msched-groups, and -malign-branch-targets.
6753 (rs6000_buitlin_conversion): Add support for returning unsigned
6754 vector conversion functions to fix regressions due to stricter
6756 (rs6000_builtin_mul_widen_even): Ditto.
6757 (rs6000_builtin_mul_widen_odd): Ditto.
6758 (rs6000_builtin_vec_perm): Ditto.
6759 (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
6760 (rs6000_expand_vector_init): Initial VSX support for using xxlxor
6762 (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
6764 (bdesc_3arg): Add builtins for unsigned types. Add builtins for
6765 VSX types for bit operations. Changes to accomidate vector.md.
6766 (bdesc_2arg): Ditto.
6767 (bdesc_1arg): Ditto.
6768 (struct builtin_description_predicates): Rewrite predicate
6769 handling so that RTL describes the operation, instead of passing
6770 the instruction to be used as a string argument.
6771 (bdesc_altivec_preds): Ditto.
6772 (altivec_expand_predicate_builtin): Ditto.
6773 (altivec_expand_builtin): Ditto.
6774 (rs6000_expand_ternop_builtin): Use a switch instead of an if
6775 statement for vsldoi support.
6776 (altivec_expand_ld_builtin): Change to use new names from vector.md.
6777 (altivec_expand_st_builtin): Ditto.
6778 (paired_expand_builtin): Whitespace changes.
6779 (rs6000_init_builtins): Add V2DF/V2DI types. Initialize the
6780 builtin_mode_to_type table for secondary reload. Call
6781 builtin_function_type to build random builtin functions.
6782 (altivec_init_builtins): Change to use builtin_function_type to
6783 create builtin function types dynamically as we need them.
6784 (builtin_hash_function): New support for hashing the tree types
6785 for builtin function as we need it, rather than trying to build
6786 all of the trees that we need. Add initial preliminary VSX support.
6787 (builtin_function_type): Ditto.
6788 (builtin_function_eq): Ditto.
6789 (builtin_hash_struct): Ditto.
6790 (rs6000_init_builtins): Ditto.
6791 (rs6000_common_init_builtins): Ditto.
6792 (altivec_init_builtins): Ditto.
6793 (rs6000_common_init_builtins): Ditto.
6794 (enum reload_reg_type): New enum for simplifing reg classes.
6795 (rs6000_reload_register_type): Simplify register classes into GPR,
6796 Vector, and other registers. Altivec and VSX addresses in reload.
6797 (rs6000_secondary_reload_inner): Ditto.
6798 (rs6000_ira_cover_classes): New target hook, that returns the
6799 appropriate cover classes, based on -mvsx being used or not.
6800 (rs6000_secondary_reload_class): Add VSX support.
6801 (get_vec_cmp_insn): Delete, rewrite vector conditionals.
6802 (get_vsel_insn): Ditto.
6803 (rs6000_emit_vector_compare): Rewrite vector conditional support
6804 so that where we can, we use RTL operators, instead of blindly use
6806 (rs6000_emit_vector_select): Ditto.
6807 (rs6000_emit_vector_cond_expr): Ditto.
6808 (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
6809 (create_TOC_reference): Add -mdebug=addr support.
6810 (emit_frame_save): VSX loads/stores need register indexed addressing.
6812 * config/rs6000/rs6000.md: Include vector.md.
6814 * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
6816 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6817 support for V2DI, V2DF in logical, permute, select operations.
6819 * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
6820 switch for vsx/power7.
6821 (-mvsx-scalar-memory): Ditto.
6822 (-mvsx-align-128): Ditto.
6823 (-mallow-movmisalign): Ditto.
6824 (-mallow-df-permute): Ditto.
6825 (-msched-groups): Ditto.
6826 (-malways-hint): Ditto.
6827 (-malign-branch-targets): Ditto.
6829 * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
6831 (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
6832 (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
6833 (rs6000_vector_reg_class): Delete.
6834 (rs6000_vsx_reg_class): Ditto.
6835 (enum rs6000_reg_class_enum): New enum for the constraints that
6836 vary based on target switches.
6837 (rs6000_constraints): New array to hold the register class for all
6838 of the register constraints that vary based on the switches used.
6839 (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
6840 (enum rs6000_builtins): Add unsigned varients for the builtin
6841 declarations returned by target hooks for expanding multiplies,
6842 select, and permute operations. Add VSX builtins.
6843 (enum rs6000_builtin_type_index): Add entries for VSX.
6844 (V2DI_type_node): Ditto.
6845 (V2DF_type_node): Ditto.
6846 (unsigned_V2DI_type_node): Ditto.
6847 (bool_long_type_node): Ditto.
6848 (intDI_type_internal_node): Ditto.
6849 (uintDI_type_internal_node): Ditto.
6850 (double_type_internal_node): Ditto.
6852 * config/rs6000/altivec.md (whole file): Move all expanders to
6853 vector.md from altivec.md. Rename insn matching functions to be
6855 (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
6856 (altivec_vcmp*): Ditto.
6857 (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
6858 (VM): New iterator for moves that includes the VSX types.
6859 (altivec_vperm_<mode>): Add VSX types. Add unsigned types.
6860 (altivec_vperm_<mode>_uns): New, for unsigned types.
6861 (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
6862 (altivec_eq<mode>): Ditto.
6863 (altivec_gt<mode>): Ditto.
6864 (altivec_gtu<mode>): Ditto.
6865 (altivec_eqv4sf): Ditto.
6866 (altivec_gev4sf): Ditto.
6867 (altivec_gtv4sf): Ditto.
6868 (altivec_vcmpbfp_p): Ditto.
6870 2009-07-23 Richard Earnshaw <rearnsha@arm.com>
6872 * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
6875 2009-07-23 Uros Bizjak <ubizjak@gmail.com>
6878 * config/i386/i386.c (output_387_ffreep): Rewrite to use
6879 ASM_SHORT instead of .word.
6880 * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
6881 instead of .word in asm template.
6883 2009-07-22 Vladimir Makarov <vmakarov@redhat.com>
6886 * ira-lives.c (bb_has_abnormal_call_pred): New function.
6887 (process_bb_node_lives): Use it.
6889 * ira.c (setup_cover_and_important_classes): Don't setup
6890 ira_important_class_nums. Add cover classes to the end of
6892 (cover_class_order, comp_reg_classes_func, reorder_important_classes):
6894 (find_reg_class_closure): Use reorder_important_classes.
6896 * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
6898 * config/i386/i386.c (i386_ira_cover_classes): New function.
6899 (TARGET_IRA_COVER_CLASSES): Redefine.
6901 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
6902 importance of order of cover classes in the array.
6904 2009-07-22 Diego Novillo <dnovillo@google.com>
6906 * tree-pass.h (TDF_EH): Define.
6907 * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
6908 contains TDF_EH, print the EH region number holding GS.
6909 * tree-dump.c (dump_options): Add "eh".
6910 * doc/invoke.texi: Document it.
6912 2009-07-22 Doug Kwan <dougkwan@google.com>
6914 * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
6916 2009-07-22 Michael Matz <matz@suse.de>
6918 PR tree-optimization/35229
6919 PR tree-optimization/39300
6921 * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
6922 (inhibit_phi_insertion): New function.
6923 (insert_into_preds_of_block): Call it for REFERENCEs.
6924 (init_pre): Initialize and finalize scalar evolutions.
6925 * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
6927 2009-07-22 Uros Bizjak <ubizjak@gmail.com>
6929 * config/i386/predicates.md (zero_extended_scalar_load_operand):
6930 Use CONST_VECTOR_NUNITS to determine number of elements.
6932 2009-07-22 Andreas Krebbel <krebbel1@de.ibm.com>
6934 * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
6935 (U, W): Constraints are now deprecated and will be removed if we
6937 * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
6939 ("prefetch"): Add the stcmh instruction for prefetching.
6940 * config/s390/s390.c (s390_symref_operand_p): Function moved. No
6942 (s390_short_displacement): Return always true if compiling for
6943 machines not providing the long displacement facility.
6944 (s390_mem_constraint): Support the new constraint letter Z.
6945 (s390_check_qrst_address): New function.
6947 2009-07-21 DJ Delorie <dj@redhat.com>
6949 * config/mep/mep.c (mep_legitimize_arg): Leave control registers
6952 2009-07-21 Jason Merrill <jason@redhat.com>
6954 * c-common.c (max_tinst_depth): Increase default to 1024.
6956 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
6958 * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
6959 (vec_unpacku_float_lo_v4si): Ditto.
6961 2009-07-21 Uros Bizjak <ubizjak@gmail.com>
6964 * config/i386/sse.md (sse2_cvtudq2ps): New expander.
6965 (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
6966 (builtin_description): Add __builtin_ia32_cvtudq2ps.
6967 (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
6969 2009-07-21 Jakub Jelinek <jakub@redhat.com>
6971 PR tree-optimization/40813
6972 * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
6975 2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
6977 * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
6978 with a NOP_EXPR if needed.
6980 2009-07-21 Paul Brook <paul@codesourcery.com>
6982 * tree-vectorizer.c (increase_alignment): Handle nested arrays.
6983 Terminate debug dump with newline.
6985 2009-07-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6987 * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
6988 Cast "1" to unsigned HOST_WIDE_INT.
6989 (compute_zdepdi_operands): Limit maximum length to 64 bits. Limit
6990 deposit length to the maximum length - lsb. Extend length if
6991 HOST_BITS_PER_WIDE_INT is 32.
6993 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
6995 * cgraph.h (constant_pool_htab): New function.
6996 (constant_descriptor_tree): Move from varasm.c.
6997 * varasm.c (constant_pool_htab): New function.
6998 (constant_descriptor_tree): Move to cgraph.h.
7000 2009-07-20 Olatunji Ruwase <tjruwase@google.com>
7002 * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
7004 2009-07-20 Shujing Zhao <pearly.zhao@oracle.com>
7006 * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
7009 2009-07-20 Xinliang David Li <davidxl@google.com>
7011 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
7013 2009-07-20 Adam Nemet <anemet@caviumnetworks.com>
7015 * config/mips/mips.md (move_type): Add arith.
7016 (type): Handle arith.
7017 (zero_extendsidi2): Rename this into ...
7018 (*zero_extendsidi2): ... this. Don't match if ISA_HAS_EXT_INS.
7019 (zero_extendsidi2): New expander.
7020 (*zero_extendsidi2_dext): New pattern.
7022 2009-07-20 Nick Clifton <nickc@redhat.com>
7024 * config.gcc (mips64-*-*): Add definition of tm_defines in order
7025 to set MIPS_ABI_DEFAULT.
7026 * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
7028 2009-07-20 Jakub Jelinek <jakub@redhat.com>
7030 * tree-object-size.c (addr_object_size): Handle unions with
7031 array in it as last field of structs in __bos (, 1) as __bos (, 0).
7033 PR tree-optimization/40792
7034 * tree.c (build_function_type_skip_args): Remove bogus assert.
7036 2009-07-20 Jan Hubicka <jh@suse.cz>
7037 Martin Jambor <mjambor@suse.cz>
7039 * cgraph.h (combined_args_to_skip): New field.
7040 * cgraph.c (cgraph_create_virtual_clone): Properly handle
7041 combined_args_to_skip and args_to_skip.
7042 * tree-inline.c (update_clone_info): New function.
7043 (tree_function_versioning): Call update_clone_info.
7044 * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
7046 (cgraph_materialize_all_clones): More extensive dumping, working
7047 with combined_args_to_skip rather than args_to_skip.
7049 2009-07-20 Ira Rosen <irar@il.ibm.com>
7051 * tree-vectorizer.h (vectorizable_condition): Add parameters.
7052 * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
7053 (get_initial_def_for_reduction): Likewise.
7054 (vectorizable_reduction): Skip the check of first operand in case
7055 of COND_EXPR. Add check that it is outer loop vectorization if
7056 nested cycle was detected. Call vectorizable_condition() for
7057 COND_EXPR. If reduction epilogue cannot be created do not fail for
7058 nested cycles (if it is not double reduction). Assert that there
7059 is only one type in the loop in case of COND_EXPR. Call
7060 vectorizable_condition() to vectorize COND_EXPR.
7061 * tree-vect-stmts.c (vectorizable_condition): Update comment.
7062 Add parameters. Allow nested cycles if called from
7063 vectorizable_reduction(). Use reduction vector variable if provided.
7064 (vect_analyze_stmt): Call vectorizable_reduction() before
7065 vectorizable_condition().
7066 (vect_transform_stmt): Update call to vectorizable_condition().
7068 2009-07-20 Christian Bruel <christian.bruel@st.com>
7070 * config/sh/sh.opt (-mfmovd): Resurrect and document.
7071 * doc/invoke.texi (-mfmovd): Likewise.
7072 * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
7074 2009-07-20 Jan Hubicka <jh@suse.cz>
7076 * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
7077 when handling SSA name.
7079 2009-07-19 Jan Hubicka <jh@suse.cz>
7081 PR tree-optimization/40676
7082 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
7083 virtual PHIs in empty BBs.
7085 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
7087 * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
7088 re-expanded the compound use gen_lowpart instead to convert to the
7091 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
7093 * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
7094 OUTER_CONST arguments.
7095 <LSHIFTRT>: Use them to allow widening if the bits shifted in from
7096 the new wider mode will be masked off.
7097 (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
7099 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
7101 * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
7102 high-order bits are zero.
7104 2009-07-18 Adam Nemet <anemet@caviumnetworks.com>
7106 * combine.c (simplify_shift_const_1): Split code to determine
7108 (try_widen_shift_mode): ... here. Allow widening for ASHIFTRT if the
7109 new bits shifted in are identical to the old sign bit.
7111 2009-07-18 Richard Guenther <rguenther@suse.de>
7114 * gimplify.c (gimplify_call_expr): Reject code using results from
7115 functions returning void.
7117 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
7119 * doc/md.texi: Document the new PowerPC "es" constraint.
7120 Document that "m" can include automodified addresses on this target,
7121 and explain how %U must be used. Extend the "Q" and "Z" documentation
7122 to suggest "es" as well as "m".
7123 * config/rs6000/constraints.md (es): New memory constraint.
7124 (Q, Z): Update strings to match new documentation.
7126 2009-07-18 Richard Sandiford <r.sandiford@uk.ibm.com>
7128 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
7129 offset from virtual_stack_vars_rtx and arg_pointer_rtx.
7130 * config/rs6000/predicates.md (volatile_mem_operand): Use
7131 offsettable_nonstrict_memref_p.
7132 * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
7133 (*floatunssidf2_internal): Likewise.
7134 (*fix_truncdfsi2_internal): Likewise.
7135 (*fix_trunctfsi2_internal): Likewise.
7137 2009-07-17 Anatoly Sokolov <aesok@post.ru>
7139 * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
7141 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
7143 2009-07-17 Richard Guenther <rguenther@suse.de>
7146 * tree-pass.h (pass_diagnose_omp_blocks): Declare.
7147 (pass_warn_unused_result): Likewise.
7148 (TODO_set_props): Remove.
7149 * omp-low.c (diagnose_omp_structured_block_errors): Change to
7151 (pass_diagnose_omp_blocks): Define.
7152 * c-decl.c (pop_file_scope): Do not finalize the CU here.
7153 (c_gimple_diagnostics_recursively): Remove.
7154 (finish_function): Do not call it.
7155 (c_write_global_declarations): Continue after errors.
7156 Finalize the CU here.
7157 * c-gimplify.c (c_genericize): Do not gimplify here.
7158 * c-common.c (c_warn_unused_result): Move ...
7159 * tree-cfg.c (do_warn_unused_result): ... here.
7160 (run_warn_unused_result): New function.
7161 (gate_warn_unused_result): New function.
7162 (pass_warn_unused_result): New pass.
7163 * c-common.h (c_warn_unused_result): Remove.
7164 * flags.h (flag_warn_unused_result): Declare.
7165 * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
7166 * opts.c (flag_warn_unused_result): Initialize to false.
7167 * toplev.c (compile_file): Add comment.
7168 * omp-low.c (create_omp_child_function): Do not register
7169 the function with the frontend.
7170 (diagnose_omp_structured_block_errors): Prepare to be
7171 called as optimization pass.
7172 (gate_diagnose_omp_blocks): New function.
7173 (pass_diagnose_omp_blocks): New pass.
7174 * cgraph.h (cgraph_optimize): Remove.
7175 (cgraph_analyze_function): Likewise.
7176 * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
7177 * cgraphunit.c (cgraph_lower_function): Lower nested functions
7178 before their parents here.
7179 (cgraph_finalize_function): Not here.
7180 (cgraph_analyze_function): Gimplify functions here.
7181 (cgraph_finalize_compilation_unit): Continue after errors.
7182 Optimize the callgraph from here.
7183 (cgraph_optimize): Make static.
7184 * langhooks.c (write_global_declarations): Finalize the CU.
7185 * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
7186 (gimplify_function_tree): Assert we gimplify only once.
7187 Set PROP_gimple_any property.
7188 * tree-nested.c (gimplify_all_functions): New function.
7189 (lower_nested_functions): Gimplify all nested functions.
7190 * gimple.h (diagnose_omp_structured_block_errors): Remove.
7191 * passes.c (init_optimization_passes): Add pass_warn_unused_result
7192 and pass_diagnose_omp_blocks after gimplification. Do not
7193 set TODO_set_props on all_lowering_passes.
7194 (execute_one_pass): Do not handle TODO_set_props.
7195 * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
7196 (gimplify.o): Add tree-pass.h dependency.
7197 * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
7198 (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
7199 (unsave_r): Likewise.
7200 * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
7203 2009-07-17 Sandra Loosemore <sandra@codesourcery.com>
7205 * doc/service.texi (Service): Restore previously removed link,
7206 which isn't broken after all.
7208 2009-07-17 Richard Guenther <rguenther@suse.de>
7210 PR tree-optimization/40321
7211 * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
7212 PHI nodes to the maximal set.
7213 (make_values_for_phi): Add PHI arguments to the maximal set.
7214 (execute_pre): Dump PHI_GEN and the maximal set.
7216 2009-07-17 Jakub Jelinek <jakub@redhat.com>
7219 * gimplify.c (gimplify_conversion): Don't change non-conversions into
7222 2009-07-16 Sandra Loosemore <sandra@codesourcery.com>
7224 * doc/extend.texi (Nested Functions): Replace broken link with
7226 * doc/service.texi (Service): Remove broken link.
7228 2009-07-16 H.J. Lu <hongjiu.lu@intel.com>
7231 * builtins.c (expand_builtin_memcmp): Use loc instead of
7232 EXPR_LOCATION (exp).
7233 (expand_builtin_strncmp): Likewise.
7235 2009-07-17 Aldy Hernandez <aldyh@redhat.com>
7236 Manuel López-Ibáñez <manu@gcc.gnu.org>
7239 * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
7240 builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
7241 tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
7242 c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
7243 calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
7244 tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
7245 tree-inline.c, c-common.c, c-common.h, gimple.c,
7246 tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
7247 convert.c: Add location argument to fold_{unary,binary,ternary},
7248 fold_build[123], build_call_expr, build_size_arg,
7249 build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
7250 fold_build1_initializer, fold_build2_initializer,
7251 fold_build3_initializer, fold_build_call_array,
7252 fold_build_call_array_initializer, fold_single_bit_test,
7253 omit_one_operand, omit_two_operands, invert_truthvalue,
7254 fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
7255 combine_comparisons, fold_builtin_*, fold_call_expr,
7256 build_range_check, maybe_fold_offset_to_address, round_up,
7259 2009-07-16 Jason Merrill <jason@redhat.com>
7262 * c-common.c (c_common_reswords): Add __is_standard_layout
7264 * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
7265 * doc/implement-cxx.texi: New.
7266 * doc/gcc.texi: Include it.
7268 2009-07-16 DJ Delorie <dj@redhat.com>
7270 * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
7271 compares that may be indirectly affected by previous instructions.
7273 2009-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7275 * builtins.c (do_mpc_arg2): New.
7276 (fold_builtin_2): Fold builtin cpow.
7277 * real.h (HAVE_mpc_pow): New.
7279 2009-07-16 Bingfeng Mei <bmei@broadcom.com>
7281 * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
7282 comparison to skip unprofitable schedule
7284 2009-07-16 Simon Baldwin <simonb@google.com>
7286 * gcc.c (option_map): New flag -no-canonical-prefixes.
7287 * (display_help): Print help text for new flag.
7288 * (process_command): Move options translation and language specifics
7289 and handle new flag early. Use it to set a function pointer to a
7290 prefix builder. Replace make_relative_prefix calls with calls to
7291 the function pointed to. Ignore new flag in regular options handling.
7292 * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
7294 2009-07-15 DJ Delorie <dj@redhat.com>
7296 * config/mep/mep.md (sibcall_internal): Change register to avoid
7298 (sibcall_value_internal): Likewise.
7300 2009-07-15 Eric Botcazou <ebotcazou@adacore.com>
7302 PR rtl-optimization/40710
7303 * resource.c (mark_target_live_regs): Reset DF problem to LR.
7305 2009-07-15 Adam Nemet <anemet@caviumnetworks.com>
7307 * config/mips/mips.md (*extenddi_truncate<mode>,
7308 *extendsi_truncate<mode>): Change type attribute to move_type
7309 with shift_shift. Split out code handling exts from here ...
7310 (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
7312 (*extendhi_truncateqi): Change type attribute to move_type with
7313 shift_shift. Split out code handling exts from here ...
7314 (*extendhi_truncateqi_exts): ... to this new pattern.
7316 2009-07-15 Uros Bizjak <ubizjak@gmail.com>
7318 * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
7319 instead of "and" with inverted sign bit mask value. Use
7320 "nonimmediate_operand" for operand 1 and operand 2 predicate.
7321 Allocate registers only for operand 4 and operand 5.
7323 2009-07-15 Jakub Jelinek <jakub@redhat.com>
7326 * fold-const.c (fold_cond_expr_with_comparison): When folding
7327 < and <= to MIN, make sure the MIN uses the same type as the
7328 comparison's operands.
7330 2009-07-15 Richard Earnshaw <rearnsha@arm.com>
7332 * arm.md (ior_xor): New code iterator.
7333 (split for ior/xor with shift and zero-extend): New split pattern.
7334 * arm/predicates.md (subreg_lowpart_operator): New special predicate.
7336 2009-07-15 Richard Guenther <rguenther@suse.de>
7338 * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
7341 2009-07-15 Richard Guenther <rguenther@suse.de>
7344 * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
7346 2009-07-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7348 * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
7349 handle 2.6.30 kernel.
7351 2009-07-15 DJ Delorie <dj@redhat.com>
7353 * config/mep/mep.md (sibcall_internal): Change register to allow
7354 for 24-bit addresses.
7355 (sibcall_value_internal): Likewise.
7357 2009-07-14 Ghassan Shobaki <ghassan.shobaki@amd.com>
7359 * doc/invoke.texi: Added descriptions of the scheduling heuristics
7360 that are enabled/disabled by the flags introduced by a previous patch.
7362 2009-07-14 DJ Delorie <dj@redhat.com>
7364 * config/mep/mep.md (sibcall_internal): Include non-toggling
7366 (sibcall_value_internal): Likewise.
7368 2009-07-14 Taras Glek <tglek@mozilla.com>
7369 Rafael Espindola <espindola@google.com>
7371 * doc/sourcebuild.texi: Document install-plugin target.
7372 * configure.ac: Added install-plugin target to language makefiles.
7373 * configure: Regenerate.
7374 * Makefile.in: (install-plugin): Install more headers,
7375 depend on lang.install-plugin.
7377 2009-07-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7379 * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
7382 2009-07-14 DJ Delorie <dj@redhat.com>
7384 * config/mep/mep.c (mep_vliw_jmp_match): New function.
7385 * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
7386 * config/mep/mep.md (sibcall_internal): Change test from
7387 mep_vliw_mode_match to mep_vliw_jmp_match.
7388 (sibcall_value_internal): Likewise.
7390 2009-07-14 Uros Bizjak <ubizjak@gmail.com>
7392 * config/i386/sse.md (copysign<mode>3): New expander.
7393 * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
7394 * config/i386/i386.c (ix86_build_signbit_mask): Make public.
7395 Use ix86_build_const_vector.
7396 (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
7397 IX86_BUILTIN_CPYSGNPD.
7398 (builtin_description): Add __builtin_ia32_copysignps and
7399 __builtin_ia32_copysignpd.
7400 (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
7401 and BUILT_IN_COPYSIGNF.
7403 2009-07-13 Jason Merrill <jason@redhat.com>
7405 * builtins.c (can_trust_pointer_alignment): New fn.
7406 (get_pointer_alignment): Factor it out from here.
7407 * tree.h: Declare it.
7409 2009-07-14 David Edelsohn <edelsohn@gnu.org>
7411 * config/rs6000/predicates.md (offsettable_mem_operand): Test
7414 2009-07-14 Dodji Seketeli <dodji@redhat.com>
7418 * dwarf2.out.c (gen_type_die_with_usage): Added comment.
7420 2009-07-14 Richard Guenther <rguenther@suse.de>
7421 Andrey Belevantsev <abel@ispras.ru>
7424 * cfgexpand.c (partition_stack_vars): Do not bother to update
7425 alias information when not optimizing.
7427 2009-07-14 Richard Guenther <rguenther@suse.de>
7428 Andrey Belevantsev <abel@ispras.ru>
7430 * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
7431 (pt_solution_set): Likewise.
7432 * tree-ssa-alias.c (refs_may_alias_p_1): Export.
7433 * tree-ssa-structalias.c (pt_solution_set): New function.
7434 * final.c (rest_of_clean_state): Free SSA data structures.
7435 * print-rtl.c (print_decl_name): Remove.
7436 (print_mem_expr): Implement in terms of print_generic_expr.
7437 * alias.c (ao_ref_from_mem): New function.
7438 (rtx_refs_may_alias_p): Likewise.
7439 (true_dependence): Query alias-export info.
7440 (canon_true_dependence): Likewise.
7441 (write_dependence_p): Likewise.
7442 * tree-dfa.c (get_ref_base_and_extent): For void types leave
7444 * emit-rtl.c (component_ref_for_mem_expr): Remove.
7445 (mem_expr_equal_p): Use operand_equal_p.
7446 (set_mem_attributes_minus_bitpos): Do not use
7447 component_ref_for_mem_expr.
7448 * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
7449 (update_alias_info_with_stack_vars): Likewise.
7450 (partition_stack_vars): Call update_alias_info_with_stack_vars.
7451 * tree-ssa.c (delete_tree_ssa): Do not release SSA names
7452 explicitly nor clear stmt operands.
7453 Free the decl-to-pointer map.
7454 * tree-optimize.c (execute_free_datastructures): Do not free
7455 SSA data structures here.
7456 * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
7457 * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
7458 (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
7460 (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
7462 2009-07-13 DJ Delorie <dj@redhat.com>
7464 * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
7465 unrolling at the right iteration count.
7467 * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
7470 2009-07-13 Ghassan Shobaki <ghassan.shobaki@amd.com>
7472 * haifa-sched.c (rank_for_schedule): Introduced flags to
7473 enable/disable individual scheduling heuristics.
7474 * common.opt: Introduced flags to enable/disable individual
7475 heuristics in the scheduler.
7476 * doc/invoke.texi: Introduced flags to enable/disable individual
7477 heuristics in the scheduler.
7479 2009-07-13 Kai Tietz <kai.tietz@onevision.com>
7481 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
7482 config/i386/mingw-tls.c.
7483 * config/i386/mingw-tls.c: Removed.
7485 2009-07-13 Ira Rosen <irar@il.ibm.com>
7487 * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
7488 checks access only relevant statements.
7489 (vectorizable_reduction): Likewise.
7491 2009-07-12 Kai Tietz <kai.tietz@onevision.com>
7493 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
7494 just for 32-bit case.
7496 2009-07-12 Jan Hubicka <jh@suse.cz>
7498 PR tree-optimization/40585
7499 * except.c (expand_resx_expr): When there already is resume
7500 instruction, produce linked list.
7501 (build_post_landing_pads): Assert that resume is empty.
7502 (connect_post_landing_pads): Handle resume lists.
7503 (dump_eh_tree): Dump resume list.
7505 2009-07-12 Ira Rosen <irar@il.ibm.com>
7507 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
7508 with additional argument.
7509 * tree-vectorizer.h (enum vect_def_type): Add
7510 vect_double_reduction_def.
7511 (vect_is_simple_reduction): Add argument.
7512 * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
7514 (vect_analyze_scalar_cycles_1): Detect double reduction. Call
7515 vect_is_simple_reduction with additional argument.
7516 (vect_analyze_loop_operations): Handle exit phi nodes in case of
7518 (reduction_code_for_scalar_code): Handle additional codes by
7519 returning ERROR_MARK for them. Fix comment and indentation.
7520 (vect_is_simple_reduction): Fix comment, add argument to specify
7521 double reduction. Detect double reduction.
7522 (get_initial_def_for_induction): Fix indentation.
7523 (get_initial_def_for_reduction): Fix comment and indentation.
7524 Handle double reduction. Create initial definitions that do not
7525 require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
7526 (vect_create_epilog_for_reduction): Fix comment, add argument to
7527 handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
7528 epilogue result extraction. Create double reduction phi node and
7529 replace relevant uses.
7530 (vectorizable_reduction): Call vect_is_simple_reduction with
7531 additional argument. Fix indentation. Update epilogue code treatment
7532 according to the changes in reduction_code_for_scalar_code. Check
7533 for double reduction. Call vect_create_epilog_for_reduction with
7534 additional argument.
7535 * tree-vect-stmts.c (process_use): Handle double reduction, update
7537 (vect_mark_stmts_to_be_vectorized): Handle double reduction.
7538 (vect_get_vec_def_for_operand): Likewise.
7540 2009-07-12 Danny Smith <dansmister@gmail.com>
7542 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
7543 dllexport if !TREE_PUBLIC.
7544 (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
7546 2009-07-11 Anatoly Sokolov <aesok@post.ru>
7548 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
7549 (avr_extra_arch_macro) Remove declatation.
7550 * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
7551 (avr_extra_arch_macro) Declare as static.
7552 * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
7554 2009-07-11 Jan Hubicka <jh@suse.cz>
7557 * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
7559 2009-07-11 Jakub Jelinek <jakub@redhat.com>
7562 * dwarf2out.c (dw_fde_struct): Add in_std_section and
7563 cold_in_std_section bits.
7564 (dwarf2out_begin_prologue): Initialize them.
7565 (dwarf2out_finish): Don't emit FDE range into .debug_ranges
7566 if already covered by text_section or cold_text_section range.
7568 PR rtl-optimization/40667
7569 * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
7570 * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
7571 * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
7572 * config/i386/i386.c (ix86_minimum_alignment): New function.
7573 * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
7574 * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
7575 * emit-rtl.c (gen_reg_rtx): Likewise.
7576 * function.c (assign_parms): Likewise. If nominal_type needs
7577 bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
7578 rather than passed_type's alignment.
7581 * function.c (assign_parm_setup_stack): Adjust
7582 MEM_OFFSET (data->stack_parm) if promoted_mode is different
7583 from nominal_mode on big endian.
7585 2009-07-11 Paolo Bonzini <bonzini@gnu.org>
7587 * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
7589 2009-07-10 DJ Delorie <dj@redhat.com>
7591 * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
7593 2009-07-10 Mark Mitchell <mark@codesourcery.com>
7595 * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
7597 (thumb2_cbnz): Likewise.
7599 2009-07-10 David Daney <ddaney@caviumnetworks.com>
7602 * config.gcc (supported_defaults): Add synci.
7603 (with_synci): Add validation.
7604 (all_defaults): Add synci.
7605 * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
7608 * config/mips/mips.opt (msynci): New option.
7609 * config/mips/mips.c (mips_override_options): Warn on use of
7610 -msynci for targets that do now support it.
7611 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
7613 * gcc/doc/invoke.texi (-msynci): Document the new option.
7614 * doc/install.texi (--with-synci): Document the new option.
7616 2009-07-10 Richard Guenther <rguenther@suse.de>
7618 PR tree-optimization/40496
7619 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
7620 the PHI result with a compatible type.
7622 2009-07-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7626 * c.opt (Wunused-result): New.
7627 * doc/invoke.texi: Document it.
7628 * c-common.c (c_warn_unused_result): Use it.
7630 2009-07-09 DJ Delorie <dj@redhat.com>
7632 * targhooks.c (default_target_can_inline_p): Rename from
7633 default_target_option_can_inline_p.
7634 * targhooks.h (default_target_can_inline_p): Likewise.
7635 * target-def.h (TARGET_CAN_INLINE_P): Rename from
7636 TARGET_OPTION_CAN_INLINE_P.
7637 * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
7638 * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
7639 (mep_target_can_inline_p): Rename from
7640 mep_target_option_can_inline_p.
7643 * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
7644 registers used to pass vectors.
7646 * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
7648 2009-07-09 Tom Tromey <tromey@redhat.com>
7650 * unwind-dw2-fde-darwin.c: Include dwarf2.h.
7651 * config/mmix/mmix.c: Include dwarf2.h.
7652 * config/rs6000/darwin-fallback.c: Include dwarf2.h.
7653 * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
7654 * config/sh/sh.c: Include dwarf2.h.
7655 * config/i386/i386.c: Include dwarf2.h.
7656 * Makefile.in (DWARF2_H): Remove 'elf'.
7657 * except.c: Include dwarf2.h.
7658 * unwind-dw2.c: Include dwarf2.h.
7659 * dwarf2out.c: Include dwarf2.h.
7660 * unwind-dw2-fde-glibc.c: Include dwarf2.h.
7661 * unwind-dw2-fde.c: Include dwarf2.h.
7662 * dwarf2asm.c: Include dwarf2.h.
7664 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7666 * haifa-sched.c (insn_finishes_cycle_p): New static function.
7667 (max_issue): Use it.
7668 * sched-int.h (struct sched_info: insn_finishes_block_p): New
7670 * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
7671 (region_sched_info): Update.
7672 * sched-ebb.c (ebb_sched_info): Update.
7673 * modulo-sched.c (sms_sched_info): Update.
7674 * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
7676 2009-07-09 Maxim Kuvyrkov <maxim@codesourcery.com>
7678 * varasm.c (build_constant_desc): Don't share RTL in pool entries.
7680 2009-07-09 Basile Starynkevitch <basile@starynkevitch.net>
7682 * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
7684 2009-07-09 Jakub Jelinek <jakub@redhat.com>
7687 * fold-const.c (fold_cond_expr_with_comparison): Don't replace
7688 arg1 with arg01 if arg1 is already INTEGER_CST.
7690 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
7692 * simplify-rtx.c (simplify_binary_operation_1) <AND>:
7693 Transform (and (truncate)) into (truncate (and)).
7695 2009-07-08 Adam Nemet <anemet@caviumnetworks.com>
7697 * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
7698 creating LHS paradoxical subregs. Fix surrounding returns to
7699 use NULL_RTX rather than 0.
7701 2009-07-08 DJ Delorie <dj@redhat.com>
7703 * config/mep/mep.c: (mep_option_can_inline_p): New.
7704 (TARGET_OPTION_CAN_INLINE_P): Define.
7706 2009-07-08 Mark Wielaard <mjw@redhat.com>
7709 * dwarf2out.c (add_data_member_location_attribute): When we have
7710 only a constant offset don't emit a new location description using
7711 DW_OP_plus_uconst, but just add the constant with add_AT_int, when
7714 2009-07-08 Richard Henderson <rth@redhat.com>
7717 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
7718 (enum reg_class): Add CLOBBERED_REGS.
7719 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
7720 * config/i386/i386.c (ix86_conditional_register_usage): Moved
7721 from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
7722 (ix86_function_ok_for_sibcall): Tidy. Disallow MS->SYSV sibcalls.
7723 (ix86_expand_call): Use sibcall_insn_operand when needed. Don't
7724 force 64-bit sibcalls into R11.
7725 * config/i386/constraints.md (U): New constraint.
7726 * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
7727 (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
7728 (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
7730 2009-07-08 Shujing Zhao <pearly.zhao@oracle.com>
7732 * basic-block.h (dump_regset, debug_regset): Remove duplicate
7734 * c-objc-common.h (c_initialize_diagnostics): Ditto.
7735 * ebitmap.h (dump_ebitmap): Ditto.
7736 * optabs.h (optab_libfunc): Ditto.
7737 * tree.h (tree_expr_nonzero_warnv_p): Ditto.
7738 * tree-flow.h (vect_can_force_dr_alignment_p,
7739 get_vectype_for_scalar_type): Ditto.
7740 (vectorize_loops): Move prototype to ...
7741 * tree-vectorizer.h: ... here. Also, adjust comment.
7742 (vect_set_verbosity_level): Remove duplicate prototype.
7743 * tree-ssa-loop.c: Include tree-vectorizer.h.
7744 * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
7746 2009-07-08 Nick Clifton <nickc@redhat.com>
7748 * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
7751 2009-07-08 DJ Delorie <dj@redhat.com>
7753 * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
7754 cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
7755 cpmovtocc_P0S_P1): Mark volatile. Note which registers are
7757 * config/mep/intrinsics.md: Regenerated.
7758 * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
7759 registers when asm() or calls are detected.
7761 2009-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7764 * gimplify.c (gimplify_expr): Propagate no_warning flag when
7766 * gimple (gimple_build_call_from_tree): Likewise.
7767 * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
7768 no_warning flag before warning.
7770 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7772 * tree.c (set_expr_locus): Remove.
7773 * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
7774 * c-typeck.c (c_finish_stmt_expr): Replace EXPR_LOCUS by
7776 * gimplify.c (internal_get_tmp_var): Likewise.
7777 (gimplify_call_expr): Likewise.
7778 (gimplify_one_sizepos): Likewise.
7780 2009-07-07 Eric Botcazou <ebotcazou@adacore.com>
7783 * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
7784 to variables for debugging purposes.
7786 2009-06-23 Mark Loeser <mark@halcy0n.com>
7789 * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
7791 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7793 * pretty-print.c (pp_base_format): Remove %J.
7794 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
7795 gcc_cxxdiag_char_table): Likewise.
7796 (init_dynamic_diag_info): Likewise.
7798 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7800 * pretty-print.c (pp_base_format): Remove %H.
7801 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
7802 gcc_cxxdiag_char_table): Likewise.
7803 (init_dynamic_diag_info): Likewise.
7804 * config/mep/mep.c (mep_select_section): Likewise.
7806 2009-07-07 Duncan Sands <baldrick@free.fr>
7808 * final.c (pass_clean_state): Give the pass a name.
7809 * passes.c (pass_rest_of_compilation): Likewise.
7810 * tree-optimize.c (pass_all_optimizations): Likewise.
7812 2009-07-07 H.J. Lu <hongjiu.lu@intel.com>
7814 * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
7815 an extra 'decl' for error_at.
7817 2009-07-07 Jakub Jelinek <jakub@redhat.com>
7820 * tree-tailcall.c (adjust_return_value_with_ops,
7821 create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
7822 if it has complex or vector type.
7824 2009-07-07 Olivier Hainque <hainque@adacore.com>
7826 * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
7829 2009-07-07 Basile Starynkevitch <basile@starynkevitch.net>
7831 * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
7833 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7835 * cgraphunit.c: Replace %J by an explicit location. Update all calls.
7836 * c-decl.c: Likewise.
7837 * function.c: Likewise.
7838 * varasm.c: Likewise.
7839 * tree-ssa.c: Likewise.
7840 * c-common.c: Likewise.
7841 * tree-cfg.c: Likewise.
7842 * config/spu/spu.c: Likewise.
7843 * config/ia64/ia64.c: Likewise.
7844 * config/v850/v850.c: Likewise.
7846 2009-07-06 DJ Delorie <dj@redhat.com>
7848 * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
7849 * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
7850 unspecified accesses to control registers.
7851 * config/mep/intrinsics.md: Regenerate.
7852 * config/mep/intrinsics.h: Regenerate.
7853 * config/mep/mep-intrin.h: Regenerate.
7855 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7857 * c-lex.c: Replace %H by an explicit location. Update all calls.
7858 * c-common.c: Likewise.
7859 * c-decl.c: Likewise.
7860 * c-typeck.c: Likewise.
7861 * fold-const.c: Likewise.
7862 * gimplify.c: Likewise.
7864 * tree-cfg.c: Likewise.
7865 * tree-ssa-loop-niter.c: Likewise.
7866 * tree-vrp.c: Likewise.
7867 * value-prof.c: Likewise.
7869 2009-07-06 Diego Novillo <dnovillo@google.com>
7871 * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
7872 if it has one. Handle cases where VAR does not have an
7873 annotation or cfun is NULL.
7875 2009-07-06 Diego Novillo <dnovillo@google.com>
7877 * tree.c: Include debug.h.
7878 (initialize_tree_contains_struct): New.
7879 (init_ttree): Call it.
7880 (tree_node_structure_for_code): Factor out of ...
7881 (tree_node_structure): ... here.
7882 * treestruct.def (TS_PHI_NODE): Remove.
7883 (TS_GIMPLE_STATEMENT): Remove.
7885 2009-07-06 Diego Novillo <dnovillo@google.com>
7887 * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
7888 (debug_tree_chain): Handle cycles.
7890 2009-07-06 Nick Clifton <nickc@redhat.com>
7891 DJ Delorie <dj@redhat.com>
7893 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
7894 __FMOVD_ENABLED__ is defined.
7896 (TARGET_FMOVD): Provide a default definition.
7897 (MASK_FMOVD): Likewise.
7898 (TARGET_CPU_CPP_BUILTINS): Define
7899 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
7900 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
7901 two fmov instructions depending upon whether TARGET_FMOVD is enabled.
7902 (split for DF load from memory into register): Also handle
7903 MEMs which consist of REG+DISP addressing.
7904 (split for DF store from register to memory): Likewise.
7905 (movsf_ie): Always use single fp_mode.
7906 * config/sh/sh.c (sh_override_options): Do not automatically
7907 enable TARGET_MOVD for the SH2A when supporting doubles - leave
7908 that to the -mfmovd command line switch.
7909 (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
7910 (fldi_ok): Always allow.
7911 * config/sh/sh.opt (mfmovd): Remove this switch.
7912 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
7914 2009-07-06 J"orn Rennecke <joern.rennecke@arc.com>
7915 Kaz Kojima <kkojima@gcc.gnu.org>
7917 PR rtl-optimization/30807
7918 * postreload.c (reload_combine): For every new use of REG_SUM,
7919 record the use of BASE.
7921 2009-07-06 Jan Hubicka <jh@suse.cz>
7923 * params.def: Revert my accidental commit at 2009-06-30.
7925 2009-07-04 Ian Lance Taylor <iant@google.com>
7928 * config/i386/msformat-c.c (mingw_format_attributes): Declare as
7930 (mingw_format_attribute_overrides): Likewise.
7932 2009-07-04 Jakub Jelinek <jakub@redhat.com>
7935 * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
7936 don't check cfa.reg. Instead of cfa.indirect use
7937 fde && fde->drap_reg != INVALID_REGNUM test.
7939 2009-07-04 Eric Botcazou <ebotcazou@adacore.com>
7941 * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
7943 2009-07-03 Vladimir Makarov <vmakarov@redhat.com>
7946 * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
7948 2009-07-03 Richard Guenther <rguenther@suse.de>
7950 PR tree-optimization/40640
7951 * tree-switch-conversion.c (build_arrays): Perform arithmetic
7954 2009-07-03 Jan Hubicka <jh@suse.cz>
7956 * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
7957 for size, reduce amount of inlining.
7959 2009-07-03 Richard Guenther <rguenther@suse.de>
7962 * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
7963 if t +- x is known to not overflow and the conversion widens the
7965 * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
7967 2009-07-03 Jan Hubicka <jh@suse.cz>
7969 * ipa-pure-const.c (analyze): Update loop optimizer init.
7970 * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
7971 try_remove_empty_loop, remove_empty_loops): Remove.
7972 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
7973 * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
7974 to mark regular loops as neccesary.
7975 (degenerate_phi_p): New function.
7976 (propagate_necessity, remove_dead_phis): Use it.
7977 (forward_edge_to_pdom): Likewise.
7978 (eliminate_unnecessary_stmts): Take care to remove uses of results of
7979 virtual PHI nodes that became unreachable.
7980 (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
7981 * tree-flow.h (remove_empty_loops): Remove.
7982 * passes.c (init_optimization_passes): Remove.
7984 2009-07-03 Uros Bizjak <ubizjak@gmail.com>
7986 * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
7987 can_create_pseudo_p.
7988 (*fix_trunc<mode>_i387_1): Ditto.
7989 (*floathi<mode>2_1): Ditto.
7990 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
7991 (*fistdi2_1): Ditto.
7992 (*fist<mode>2_1): Ditto.
7993 (frndintxf2_floor): Ditto.
7994 (*fist<mode>2_floor_1): Ditto.
7995 (frndintxf2_ceil): Ditto.
7996 (*fist<mode>2_ceil_1): Ditto.
7997 (frndintxf2_trunc): Ditto.
7998 (frndintxf2_mask_pm): Ditto.
7999 (fxam<mode>2_i387_with_temp): Ditto.
8000 * config/i386/sse.md (mulv16qi3): Ditto.
8001 (*sse2_mulv4si3): Ditto.
8003 (sse4_2_pcmpestr): Ditto.
8004 (sse4_2_pcmpistr): Ditto.
8006 2009-07-03 Jan Hubicka <jh@suse.cz>
8008 * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
8009 (mark_stmt_necessary): Set it.
8010 (mark_operand_necessary): Set it.
8011 (mark_control_dependent_edges_necessary): Set it.
8012 (mark_virtual_phi_result_for_renaming): New function.
8013 (get_live_post_dom): New function.
8014 (forward_edge_to_pdom): New function.
8015 (remove_dead_stmt): Fix handling of control dependences.
8016 (tree_dce_init): Init new bitmap.
8017 (tree_dce_done): Free it.
8019 2009-07-02 Richard Guenther <rguenther@suse.de>
8022 * tree-ssa-structalias.c (new_var_info): Initialize
8025 2009-07-02 Jan Hubicka <jh@suse.cz>
8027 * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
8030 2009-07-02 Paolo Bonzini <bonzini@gnu.org>
8032 * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
8033 instead of recomputing it. Adjust calls.
8034 (emit_store_flag): Adjust recursive calls.
8036 2009-07-02 Richard Guenther <rguenther@suse.de>
8038 * tree-ssa-live.c (remove_unused_locals): Do not remove
8040 * tree-ssa-structalias.c (handle_lhs_call): Delay setting
8041 of DECL_EXTERNAL for HEAP variables.
8042 (compute_points_to_sets): Set DECL_EXTERNAL for escaped
8043 HEAP variables. Do not adjust RESTRICT vars.
8044 (find_what_var_points_to): Nobody cares if something
8047 2009-07-02 Ben Elliston <bje@au.ibm.com>
8049 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
8050 pc_low and pc_high declarations to the top of the function.
8052 2009-07-01 DJ Delorie <dj@redhat.com>
8054 * config/mep/mep.c (mep_handle_option): Leave IVC2 control
8056 (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
8057 * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
8058 unspecified accesses to control registers.
8059 * config/mep/intrinsics.md: Regenerate.
8060 * config/mep/intrinsics.h: Regenerate.
8061 * config/mep/mep-intrin.h: Regenerate.
8063 2009-07-01 Anthony Green <green@moxielogic.com>
8065 * config/moxie/moxie.c (moxie_expand_prologue): Use dec
8066 instruction when possible.
8067 (moxie_expand_prologue): Ditto. Also, save an instruction and
8068 some complexity by popping off of $r12 instead of $sp.
8069 * config/moxie/moxie.md (movsi_pop): Don't assume $sp. Take two
8072 2009-07-01 Richard Henderson <rth@redhat.com>
8075 * function.c (reposition_prologue_and_epilogue_notes): If epilogue
8076 contained no insns, reposition note before last insn.
8078 2009-07-01 Richard Henderson <rth@redhat.com>
8081 * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
8082 DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
8084 2009-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
8087 * config/rs6000/rs6000.c (print_operand): Undo change that breaks
8088 darwin9 for printing reg addresses with %y.
8090 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
8092 * combine.c (force_to_mode): Handle TRUNCATE. Factor out
8093 truncation from operands in binary operations.
8095 2009-07-01 Adam Nemet <anemet@caviumnetworks.com>
8098 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
8099 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
8100 subreg of op0 to the original op0.
8102 * expmed.c (store_bit_field_1): Use a temporary as the destination
8103 instead of a paradoxical subreg when we need to truncate the result.
8105 2009-07-01 DJ Delorie <dj@redhat.com>
8107 * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
8108 names to VLIW variants.
8109 (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
8110 * config/mep/intrinsics.md: Regenerate.
8111 * config/mep/intrinsics.h: Regenerate.
8112 * config/mep/mep-intrin.h: Regenerate.
8114 2009-07-01 Jakub Jelinek <jakub@redhat.com>
8117 * jump.c (returnjump_p): Revert last patch.
8118 * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
8120 2009-07-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8123 * pa.md (casesi32p): Use jump table label to determine the offset
8125 (casesi64p): Likewise.
8127 * pa.c (forward_branch_p): Return bool type. Use instruction
8128 addresses when available. Assert that INSN has a jump label.
8129 (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
8132 2009-07-01 Richard Guenther <rguenther@suse.de>
8134 PR tree-optimization/19831
8135 * tree-ssa-dce.c (propagate_necessity): Calls to functions
8136 that only act as barriers do not make any previous stores necessary.
8137 * tree-ssa-structalias.c (handle_lhs_call): Delay making
8138 HEAP variables global, do not add a constraint from nonlocal.
8139 (find_func_aliases): Handle escapes through return statements.
8140 (compute_points_to_sets): Make escaped HEAP variables global.
8142 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
8145 * expmed.c (emit_store_flag): Perform a conversion if necessary,
8146 after reducing a DImode cstore to SImode.
8148 2009-07-01 Paolo Bonzini <bonzini@gnu.org>
8150 * expr.c (expand_expr_real_1): Reinstate fallthrough to
8151 TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
8153 2009-07-01 Maciej W. Rozycki <macro@linux-mips.org>
8155 * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro. Set to 1.
8156 * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro. Redefine the
8158 * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
8159 and umod_optab if TARGET_BSD_DIVMOD.
8160 * config/vax/lib1funcs.asm: New file.
8161 * config/vax/t-linux: New file.
8162 * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
8164 2009-06-30 Jakub Jelinek <jakub@redhat.com>
8167 * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
8168 to type arguments that have void type.
8171 * dwarf2out.c (gen_formal_parameter_die): Call
8172 equate_decl_number_to_die if node is different from origin.
8174 2009-06-30 Anthony Green <green@moxielogic.com>
8176 Clean up moxie port for --enable-build-with-cxx.
8177 * config/moxie/moxie.c (moxie_function_value): First two
8178 parameters are const_tree, not tree.
8179 * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
8180 (REG_CLASS_NAMES): Ditto.
8181 (REGNO_REG_CLASS): Ditto.
8182 * config/moxie/moxie-protos.h (moxie_override_options): Declare.
8183 (moxie_function_value): Fix constyness of arguments.
8185 2009-06-30 Eric Botcazou <ebotcazou@adacore.com>
8187 * cgraphunit.c (cgraph_finalize_compilation_unit): Call
8188 finalize_size_functions before further processing.
8189 * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
8190 (variable_size): Call self_referential_size on size expressions
8191 that contain a PLACEHOLDER_EXPR.
8192 (size_functions): New static variable.
8193 (copy_self_referential_tree_r): New static function.
8194 (self_referential_size): Likewise.
8195 (finalize_size_functions): New global function.
8196 * tree.c: Include tree-inline.h.
8197 (push_without_duplicates): New static function.
8198 (find_placeholder_in_expr): New global function.
8199 (substitute_in_expr) <tcc_declaration>: Return the replacement object
8201 <tcc_expression>: Likewise.
8202 <tcc_vl_exp>: If the replacement object is a constant, try to inline
8203 the call in the expression.
8204 * tree.h (finalize_size_functions): Declare.
8205 (find_placeholder_in_expr): Likewise.
8206 (FIND_PLACEHOLDER_IN_EXPR): New macro.
8207 (substitute_placeholder_in_expr): Update comment.
8208 * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
8210 (copy_tree_body_r): Likewise.
8211 (copy_tree_body): New static function.
8212 (maybe_inline_call_in_expr): New global function.
8213 * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
8214 (maybe_inline_call_in_expr): Declare.
8215 * Makefile.in (tree.o): Depend on TREE_INLINE_H.
8216 (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
8219 2009-06-30 Richard Guenther <rguenther@suse.de>
8221 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
8223 (propagate_necessity): Do not mark reaching defs of stores
8226 2009-06-30 Jan Hubicka <jh@suse.cz>
8228 * cfgloopanal.c (check_irred): Move into ...
8229 (mark_irreducible_loops): ... here; return true if ireducible
8231 * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
8232 (analyze_function): Try to prove loop finiteness.
8233 * cfgloop.h (mark_irreducible_loops): Update prototype.
8234 * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
8236 2009-06-30 Basile Starynkevitch <basile@starynkevitch.net>
8238 * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
8240 2009-06-30 Ira Rosen <irar@il.ibm.com>
8242 PR tree-optimization/40542
8243 * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
8246 2009-06-30 Martin Jambor <mjambor@suse.cz>
8248 PR tree-optimization/40582
8249 * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
8250 than useless_type_conversion_p.
8251 (generate_subtree_copies): Increment sra_stats.subtree_copies at a
8254 2009-06-30 Martin Jambor <mjambor@suse.cz>
8257 * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
8259 2009-06-30 Richard Guenther <rguenther@suse.de>
8261 * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
8262 use ao_ref references.
8263 (walk_aliased_vdefs): Likewise.
8264 * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
8265 * tree-ssa-dce.c (struct ref_data): Remove.
8266 (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
8267 (mark_aliased_reaching_defs_necessary): Adjust.
8268 (mark_all_reaching_defs_necessary_1): Likewise.
8270 2009-06-30 Paolo Bonzini <bonzini@gnu.org>
8273 * expmed.c (emit_cstore): New name of emit_store_flag_1.
8274 (emit_store_flag_1): Extract from emit_store_flag, adjust
8275 calls to (what now is) emit_cstore.
8276 (emit_store_flag): Call emit_store_flag_1 and also use it
8277 for what used to be recursive calls.
8279 2009-06-30 Wei Guozhi <carrot@google.com>
8282 * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
8283 if the target bb post dominates from bb.
8284 * config/i386/i386.c (memory_address_length): Check existence of base
8285 register before using it.
8287 2009-06-30 Nick Clifton <nickc@redhat.com>
8288 DJ Delorie <dj@redhat.com>
8290 * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
8291 __FMOVD_ENABLED__ is defined.
8293 (TARGET_FMOVD): Provide a default definition.
8294 (MASK_FMOVD): Likewise.
8295 (TARGET_CPU_CPP_BUILTINS): Define
8296 __FMOVD_ENABLED__ if TARGET_FMOVD is true.
8297 * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
8298 two fmov instructions depending upon whether TARGET_FMOVD is
8300 (split for DF load from memory into register): Also handle
8301 MEMs which consist of REG+DISP addressing.
8302 (split for DF store from register to memory): Likewise.
8303 * config/sh/sh.opt (mfmovd): Remove this switch.
8304 * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
8305 * config/sh/sh.c (sh_override_options): Do not automatically
8306 enable TARGET_MOVD for the SH2A when supporting doubles - leave
8307 that to the -mfmovd command line switch.
8309 * config/sh/sh.c (broken_move): Do not restrict fldi test to only
8311 (fldi_ok): Always allow.
8312 * config/sh/sh.md (movsf_ie): Always use single fp_mode.
8314 2009-06-29 DJ Delorie <dj@redhat.com>
8316 * doc/install.texi (mep-x-elf): Correct chip's full name.
8318 2009-06-29 H.J. Lu <hongjiu.lu@intel.com>
8320 * doc/extend.texi: Fix typo.
8322 2009-06-29 Tom Tromey <tromey@redhat.com>
8325 * Makefile.in (DWARF2_H): New variable.
8327 (dwarf2out.o): Likewise.
8328 (dwarf2asm.o): Likewise.
8329 * config/i386/t-i386: Use DWARF2_H.
8330 * except.c: Include elf/dwarf2.h.
8331 * unwind-dw2.c: Include elf/dwarf2.h.
8332 * dwarf2out.c: Include elf/dwarf2.h.
8333 (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
8334 <dtprel>: New field.
8335 (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
8336 (size_of_loc_descr): Likewise.
8337 (output_loc_operands_raw): Likewise.
8338 (output_loc_operands): Handle new dtprel field.
8339 (loc_checksum): Update.
8340 (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
8341 * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
8342 * unwind-dw2-fde.c: Include elf/dwarf2.h.
8343 * dwarf2asm.c: Include elf/dwarf2.h.
8344 * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
8345 * config/mmix/mmix.c: Include elf/dwarf2.h.
8346 * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
8347 * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
8348 * config/sh/sh.c: Include elf/dwarf2.h.
8349 * config/i386/i386.c: Include elf/dwarf2.h.
8351 2009-06-29 DJ Delorie <dj@redhat.com>
8353 * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
8355 * doc/extend.texi: Add MeP attributes and pragmas.
8356 * doc/invoke.text: Add MeP Options.
8357 * doc/contrib.texi: Add MeP contribution.
8358 * doc/md.texi: Add MeP constraints.
8359 * doc/install.texi: Add MeP target.
8361 2009-06-30 Anatoly Sokolov <aesok@post.ru>
8363 * target.h (struct gcc_target): Add frame_pointer_required field.
8364 * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
8365 (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
8366 * ira.c (setup_eliminable_regset): Use frame_pointer_required target
8368 * reload1.c (update_eliminables): (Ditto.).
8369 * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
8370 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
8371 (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
8373 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
8375 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
8376 * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
8377 (arm_frame_pointer_required): New function.
8379 * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
8380 * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
8381 (avr_frame_pointer_required_p): Declare as static.
8382 * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
8384 * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
8385 * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
8386 (bfin_frame_pointer_required): Make as static, change return type
8388 * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
8390 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
8391 * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
8392 (cris_frame_pointer_required): New function.
8394 * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
8396 * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
8397 * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
8398 (fr30_frame_pointer_required): New function.
8400 * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
8401 * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
8402 (frv_frame_pointer_required): Make as static, change return type
8404 * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
8406 * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
8407 * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
8408 (ix86_frame_pointer_required): Make as static, change return type to
8410 * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
8412 * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
8413 * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
8415 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
8417 * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
8419 * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
8421 * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
8422 * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
8423 (mips_frame_pointer_required): Make as static.
8424 * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
8426 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
8427 * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
8428 (mmix_frame_pointer_required): Mew function.
8430 * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
8431 * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
8433 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
8435 * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
8437 * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
8439 * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
8440 (CAN_ELIMINATE): Redefine.
8441 * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
8442 (sparc_frame_pointer_required): New function.
8443 (sparc_can_eliminate): New function.
8444 * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
8446 * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
8447 * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
8449 * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
8450 * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
8451 (xtensa_frame_pointer_required): Make as static, change return type
8453 * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
8456 2009-06-29 Olatunji Ruwase <tjruwase@google.com>
8458 * doc/plugins.texi: Document PLUGIN_START_UNIT.
8459 * toplev.c (compile_file): Call PLUGIN_START_UNIT.
8460 * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
8461 * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
8462 (register_callback): Handle PLUGIN_START_UNIT.
8463 (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
8465 2009-06-29 Eric Botcazou <ebotcazou@adacore.com>
8467 * tree.c (process_call_operands): Propagate TREE_READONLY from the
8469 (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
8470 (build3_stat): Propagate TREE_READONLY for COND_EXPR.
8472 2009-06-29 Daniel Jacobowitz <dan@codesourcery.com>
8474 * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
8477 2009-06-29 Uros Bizjak <ubizjak@gmail.com>
8479 * doc/extend.texi (Additional Floating Types): __float128 is also
8480 supported on i386 targets.
8482 2009-06-29 Richard Guenther <rguenther@suse.de>
8485 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
8487 (pt_solutions_same_restrict_base): Declare.
8488 * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
8490 (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
8491 (make_constraint_from, make_copy_constraint): Move earlier.
8492 (make_constraint_from_heapvar): New function.
8493 (make_constraint_from_restrict): Likewise.
8494 (handle_lhs_call): Use it.
8495 (find_func_aliases): Use it to track conversions to restrict
8497 (struct fieldoff): Add only_restrict_pointers flag.
8498 (push_fields_onto_fieldstack): Initialize it.
8499 (create_variable_info_for): Track global restrict qualified pointers.
8500 (intra_create_variable_infos): Use make_constraint_from_heapvar.
8501 Track restrict qualified pointer arguments.
8502 (set_uids_in_ptset): Use varinfo is_global_var flag.
8503 (find_what_var_points_to): Set the vars_contains_restrict flag.
8504 Always create the points-to solution for sets including restrict tags.
8505 (pt_solutions_same_restrict_base): New function.
8506 * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
8507 qualified pointers use pt_solutions_same_restrict_base as
8508 additional source for disambiguation.
8510 2009-06-29 Richard Guenther <rguenther@suse.de>
8513 * alias.c (find_base_decl): Remove.
8514 (get_deref_alias_set_1): Remove restrict handling.
8515 * c-common.c (c_apply_type_quals_to_decl): Do not set
8516 DECL_POINTER_ALIAS_SET.
8517 * gimplify.c (find_single_pointer_decl_1): Remove.
8518 (find_single_pointer_decl): Likewise.
8519 (internal_get_tmp_var): Remove restrict handling.
8520 (gimple_regimplify_operands): Likewise.
8521 * omp-low.c (expand_omp_atomic_pipeline): Do not set
8522 DECL_POINTER_ALIAS_SET. Use ref-all pointers.
8523 * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
8524 * tree.c (restrict_base_for_decl): Remove.
8525 (init_ttree): Do not allocate it.
8526 (make_node_stat): Do not set DECL_POINTER_ALIAS_SET. Set
8527 LABEL_DECL_UID for label decls.
8528 (copy_node_stat): Do not copy restrict information.
8529 (decl_restrict_base_lookup): Remove.
8530 (decl_restrict_base_insert): Likewise.
8531 (print_restrict_base_statistics): Likewise.
8532 (dump_tree_statistics): Do not call print_restrict_base_statistics.
8533 * tree.h (DECL_POINTER_ALIAS_SET): Remove.
8534 (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
8535 (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
8536 (LABEL_DECL_UID): Adjust.
8537 (DECL_BASED_ON_RESTRICT_P): Remove.
8538 (DECL_GET_RESTRICT_BASE): Likewise.
8539 (SET_DECL_RESTRICT_BASE): Likewise.
8540 (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
8542 * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
8543 instead of DECL_POINTER_ALIAS_SET.
8544 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
8545 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
8546 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
8548 2009-06-29 Richard Guenther <rguenther@suse.de>
8550 PR tree-optimization/40579
8551 * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
8552 the IL to simplify has constants that overflowed.
8554 2009-06-28 Uros Bizjak <ubizjak@gmail.com>
8556 PR tree-optimization/40550
8557 * tree-vect-generic.c (expand_vector_operations_1): Compute in
8558 vector_compute_type only when the size of vector_compute_type is
8559 less than the size of type.
8561 2009-06-28 Eric Botcazou <ebotcazou@adacore.com>
8563 * fold-const.c (contains_label_1): Fix comments.
8564 (contains_label_p): Do not walk trees multiple time.
8566 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
8568 * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
8569 * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
8570 cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
8571 ix86_fp_comparison_operator.
8572 (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
8573 *fp_jcc_2_sse, *fp_jcc_2_387): Delete
8574 (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
8575 *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
8576 !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
8577 to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
8578 (related splits): Change predicate to ix86_fp_comparison_operator.
8579 * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
8580 instead of ix86_fp_comparison_codes.
8581 (ix86_trivial_fp_comparison_operator,
8582 ix86_fp_comparison_operator): New.
8583 * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
8584 (ix86_expand_compare): Eliminate last two parameters.
8585 (ix86_fp_jump_nontrivial_p): Kill.
8586 * config/i386/i386.c (put_condition_code): Eliminate call to
8587 ix86_fp_comparison_codes and subsequent assertion.
8588 (ix86_fp_comparison_codes): Eliminate.
8589 (ix86_fp_swap_condition): New.
8590 (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
8591 ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
8592 into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
8593 (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
8594 and ix86_fp_swap_condition.
8595 (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
8596 Use ix86_fp_comparison_strategy.
8597 (ix86_expand_compare): Likewise. Eliminate last two arguments.
8598 (ix86_fp_jump_nontrivial_p): Eliminate.
8599 (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple. Adjust
8600 call to ix86_expand_compare.
8601 (ix86_split_fp_branch, ix86_expand_setcc,
8602 ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
8603 ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
8605 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
8607 * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
8608 related to jump_clobbers.
8609 * config/arm/arm.md (conds): Remove jump_clob case.
8610 (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
8611 splits): Change comparison_operator to arm_comparison_operator.
8612 (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
8615 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
8617 * dojump.c (do_compare_rtx_and_jump): Try swapping the
8618 condition for floating point modes.
8619 * expmed.c (emit_store_flag_1): Move here a bigger part
8621 (emit_store_flag): Try swapping the condition for floating point
8623 * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
8625 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
8627 * expr.c (expand_expr_real_1): Just use do_store_flag.
8628 (do_store_flag): Drop support for TRUTH_NOT_EXPR. Use
8629 emit_store_flag_force.
8630 * expmed.c (emit_store_flag_force): Copy here trick
8631 previously in expand_expr_real_1. Try reversing the comparison.
8632 (emit_store_flag_1): Work if target is NULL.
8633 (emit_store_flag): Work if target is NULL, using the result mode
8634 from the comparison. Use split_comparison, restructure final part
8635 to simplify conditionals.
8637 2009-06-28 Paolo Bonzini <bonzini@gnu.org>
8639 * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
8640 * dojump.c (do_jump): Change handling of floating-point
8641 ops to use just do_compare_and_jump.
8642 (split_comparison): New.
8643 (do_compare_rtx_and_jump): Add here logic coming previously
8644 in do_jump, using split_comparison.
8646 2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
8649 * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
8651 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
8653 * tree-ssa-alias.c: Fix unintentional commit.
8655 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
8657 * passes.c (execute_one_pass): Fix unintentional commit.
8659 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
8661 * df-problems.c (df_set_seen, df_unset_seen): Delete.
8662 (df_rd_local_compute, df_md_local_compute): Inline them.
8664 (df_md_scratch): New.
8665 (df_md_alloc, df_md_free): Allocate/free it.
8666 (df_md_local_compute): Only include live registers in init.
8667 (df_md_transfer_function): Prune the in-set computed by
8668 the confluence function, and the gen-set too.
8670 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
8672 PR rtl-optimization/26854
8673 * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
8674 * df-problems.c (df_rd_add_problem): Fix comment.
8675 (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
8676 df_md_simulate_artificial_defs_at_top,
8677 df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
8678 df_md_bb_local_compute, df_md_local_compute, df_md_reset,
8679 df_md_transfer_function, df_md_init, df_md_confluence_0,
8680 df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
8681 problem_MD, df_md_add_problem): New.
8682 * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
8683 df_md_get_bb_info): New.
8684 (DF_LAST_PROBLEM_PLUS1): Adjust.
8686 * Makefile.in (fwprop.o): Include domwalk.h.
8687 * fwprop.c: Include domwalk.h.
8688 (reg_defs, reg_defs_stack): New.
8689 (bitmap_only_bit_between): Remove.
8690 (process_defs): New.
8691 (process_uses): Use reg_defs and local_md instead of
8692 bitmap_only_bit_between and local_rd.
8693 (single_def_use_enter_block): New, from build_single_def_use_links.
8694 (single_def_use_leave_block): New.
8695 (build_single_def_use_links): Remove code moved to
8696 single_def_use_enter_block, invoke domwalk.
8697 (use_killed_between): Adjust comment.
8699 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
8701 * bitmap.h (bitmap_ior_and_into): New.
8702 * bitmap.c (bitmap_ior_and_into): New.
8704 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
8706 * domwalk.h (struct dom_walk_data): Remove all callbacks except
8707 before_dom_children_before_stmts and after_dom_children_after_stmts.
8708 Rename the two remaining callbacks to just before_dom_children and
8709 after_dom_children. Remove other GIMPLE statement walking bits.
8710 * domwalk.c (walk_dominator_tree): Remove now unsupported features.
8711 * graphite.c: Do not include domwalk.h.
8712 * tree-into-ssa.c (interesting_blocks): New global.
8713 (struct mark_def_sites_global_data): Remove it and names_to_rename.
8714 (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
8715 rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
8716 now that they're not domwalk callbacks.
8717 (rewrite_initialize_block): Rename to...
8718 (rewrite_enter_block): ... this, place after called functions. Test
8719 interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
8720 (rewrite_finalize_block): Rename to...
8721 (rewrite_leave_block): ... this, place after called functions.
8722 (rewrite_update_init_block): Rename to...
8723 (rewrite_update_enter_block): ... this, place after called functions.
8724 Test interesting_blocks, call rewrite_update_stmt and
8725 rewrite_update_phi_arguments.
8726 (rewrite_update_fini_block): Rename to...
8727 (rewrite_leave_block): ... this, place after called functions.
8728 (rewrite_blocks): Remove last argument, simplify initialization of
8730 (mark_def_sites_initialize_block): Rename to...
8731 (mark_def_sites_block): ... this, call mark_def_sites.
8732 (mark_def_sites_blocks): Remove argument, simplify initialization of
8734 (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
8735 (update_ssa): Likewise.
8736 * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
8738 (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
8739 (dom_opt_initialize_block): Rename to...
8740 (dom_opt_enter_block): ... this, place after called functions. Walk
8741 statements here, inline propagate_to_outgoing_edges.
8742 (dom_opt_finalize_block): Rename to...
8743 (dom_opt_leave_block): ... this, place after called functions.
8744 * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
8746 (dse_enter_block, dse_record_phi): New.
8747 (dse_record_phis): Delete.
8748 (dse_finalize_block): Rename to...
8749 (dse_leave_block): ... this.
8750 (tree_ssa_dse): Simplify initialization of walk_data.
8751 * tree-ssa-loop-im.c (determine_invariantness, move_computations):
8752 Adjust initialization of walk_data.
8753 * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
8754 * tree-ssa-loop-phiopt.c (get_non_trapping):
8755 Adjust initialization of walk_data.
8756 * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
8757 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
8758 it's not a domwalk callback.
8759 (uncprop_initialize_block): Rename to...
8760 (dse_enter_block): ... this, call uncprop_into_successor_phis.
8761 (dse_finalize_block): Rename to...
8762 (dse_leave_block): ... this.
8763 (tree_ssa_uncprop): Simplify initialization of walk_data.
8764 * Makefile.in: Adjust dependencies.
8766 2009-06-27 Richard Earnshaw <rearnsha@arm.com>
8768 * arm.md (casesi): Fix test for Thumb1.
8769 (thumb1_casesi_internal_pic): Likewise.
8770 (thumb1_casesi_dispatch): Likewise.
8772 2009-06-26 Daniel Gutson <dgutson@codesourcery.com>
8774 * config/arm/arm-cores.def: Added core cortex-m0.
8775 * config/arm/arm-tune.md: Regenerated.
8776 * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
8778 2009-06-26 DJ Delorie <dj@redhat.com>
8780 * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
8782 * config/mep/mep.c (mep_bundle_insns): Account for the fact that
8783 the scheduler doesn't tag jump insns.
8785 2009-06-26 H.J. Lu <hongjiu.lu@intel.com>
8787 * c-decl.c (merge_decls): Re-indent.
8789 2009-06-26 Janis Johnson <janis187@us.ibm.com>
8792 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
8793 Special-case decimal float constants.
8795 2009-06-26 Richard Henderson <rth@redhat.com>
8797 * function.h (struct function): Add cannot_be_copied_reason,
8798 and cannot_be_copied_set.
8799 * tree-inline.c (has_label_address_in_static_1): Rename from
8800 inline_forbidden_p_2; don't set inline_forbidden_reason here.
8801 (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
8802 don't set inline_forbidden_reason.
8803 (copy_forbidden): New function, split out of inline_forbidden_p.
8804 (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
8805 (inline_forbidden_p): Use copy_forbidden.
8806 (tree_versionable_function_p): Likewise.
8807 (inlinable_function_p): Merge into tree_inlinable_function_p.
8808 (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
8809 * ipa-cp.c (ipcp_versionable_function_p): New function.
8810 (ipcp_cloning_candidate_p): Use it.
8811 (ipcp_node_modifiable_p): Likewise.
8813 2009-06-26 Olatunji Ruwase <tjruwase@google.com>
8815 * builtins.c (expand_builtin_alloca): Handle builtin alloca
8816 that is marked not to be inlined. Remove flag_mudflap use.
8817 * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
8818 (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
8820 2009-06-26 Steve Ellcey <sje@cup.hp.com>
8823 * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
8824 * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
8826 2009-06-26 Kai Tietz <kai.tietz@onevision.com>
8828 * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
8830 (__mingwthr_remove_key_dtor): Likewise.
8832 2009-06-26 Richard Guenther <rguenther@suse.de>
8834 * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
8836 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
8839 * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
8840 try the non-cond_exec path also.
8842 2009-06-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8845 * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
8846 (output_cbranch): Use new functions.
8847 (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
8850 2009-06-25 Michael Meissner <meissner@linux.vnet.ibm.com>
8851 Pat Haugen <pthaugen@us.ibm.com>
8852 Revital Eres <ERES@il.ibm.com>
8854 * config/rs6000/rs6000.c (print_operand): Correct lossage message
8855 for %c error. Add %x support to print VSX registers as a unified
8856 register set, instead of separate float and altivec registers.
8857 Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
8858 %y case, and add support for VSX pre-modify addresses.
8859 (output_toc): Add assert for CONST containing an integer constant
8861 (rs6000_adjust_cost): Add POWER7 support.
8862 (insn_must_be_first_in_group): Ditto.
8863 (insn_must_be_last_in_group): Ditto.
8864 (rs6000_emit_popcount): Ditto.
8865 (rs6000_vector_mode_supported_p): Ditto.
8867 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
8868 Change some of the functions called by macros to being called
8869 through a pointer, so debug functions can be inserted if
8870 -mdebug=addr or -mdebug=cost.
8871 (rs6000_preferred_reload_class_ptr): Ditto.
8872 (rs6000_secondary_reload_class_ptr): Ditto.
8873 (rs6000_secondary_memory_needed_ptr): Ditto.
8874 (rs6000_cannot_change_mode_class_ptr): Ditto.
8875 (rs6000_secondary_reload_inner): Ditto.
8876 (rs6000_legitimize_reload_address): Ditto.
8877 (rs6000_legitimize_reload_address_ptr): Ditto.
8878 (rs6000_mode_dependent_address): Ditto.
8879 (rs6000_mode_dependent_address_ptr): Ditto.
8881 * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
8882 function to return true if the mode allows reg + integer
8884 (virtual_stack_registers_memory_p): New function to return true if
8885 the address refers to a virtual stack register.
8886 (rs6000_legitimate_offset_address_p): Move code to say whether a
8887 mode supports reg+int addressing to reg_offset_addressing_ok_p and
8889 (rs6000_legitimate_address_p): Add checks for modes that only can
8890 do reg+reg addressing. Start adding VSX support.
8891 (rs6000_legitimize_reload_address): Ditto.
8892 (rs6000_legitimize_address): Ditto.
8893 (rs6000_debug_legitimate_address_p): New debug functions for
8894 -mdebug=addr and -mdebug=cost.
8895 (rs6000_debug_rtx_costs): Ditto.
8896 (rs6000_debug_address_costs): Ditto.
8897 (rs6000_debug_adjust_cost): Ditto.
8898 (rs6000_debug_legitimize_address): Ditto.
8899 (rs6000_legitimize_reload_address_ptr): Point to call normal
8900 function or debug function. Make functions called via pointer
8902 (rs6000_mode_dependent_address_ptr): Ditto.
8903 (rs6000_secondary_reload_class_ptr): Ditto.
8904 (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
8905 (rs6000_emit_move): Add -mdebug=addr support. Change an abort
8906 into a friendlier error.
8907 (rs6000_init_builtins): Add initial VSX support.
8908 (rs6000_adjust_cost): Fix some spacing issues.
8910 * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
8911 (REG_CLASS_NAMES): Ditto.
8912 (REG_CLASS_CONTENTS): Ditto.
8913 (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
8914 pointer, to add -mdebug=addr support.
8915 (CANNOT_CHANGE_MODE_CLASS): Ditto.
8916 (SECONDARY_RELOAD_CLASS): Call through a pointer to add
8917 -mdebug=addr support.
8918 (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
8919 (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
8920 (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
8922 * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
8924 (bswapsi*): Set attribute types for load/store. Add combiner
8925 patterns to eliminate zero extend on 64-bit.
8926 (bswapdi*): Add support for swapping 64-bit values. Use ldbrx and
8927 stdbrx if the hardware supports those instructions.
8929 2009-06-25 Ian Lance Taylor <iant@google.com>
8931 * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
8932 (Link Options): Document -static-libstdc++.
8934 2009-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
8937 * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
8938 DATA_ALIGNMENT instead.
8940 2009-06-25 Richard Guenther <rguenther@suse.de>
8942 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
8943 indirect references against the callused/escaped solutions.
8944 (call_may_clobber_ref_p_1): Likewise.
8946 2009-06-25 Martin Jambor <mjambor@suse.cz>
8948 PR tree-optimization/40493
8949 * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
8950 (enum unscalarized_data_handling): New type.
8951 (handle_unscalarized_data_in_subtree): Return what has been done.
8952 (load_assign_lhs_subreplacements): Handle left flushes differently.
8953 (sra_modify_assign): Use unscalarized_data_handling, simplified
8954 condition determining whether to remove the statement.
8956 2009-06-25 Basile Starynkevitch <basile@starynkevitch.net>
8958 * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
8959 excerpt - @ should be doubled for texinfo.
8961 2009-06-24 Ian Lance Taylor <iant@google.com>
8963 * config/arc/arc.c: Include "df.h".
8964 (arc_attribute_table): Make static. Move higher in file.
8965 (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
8966 (output_shift): Initialize n later to avoid warning.
8967 * config/arm/arm.c (arm_attribute_table): Make static. Move
8969 * config/avr/avr.c (avr_attribute_table): Make static. Move
8971 (reg_class_tab): Change array type from int to enum reg_class.
8972 (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
8974 (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
8975 (lshrhi3_out): Likewise.
8976 (class_likely_spilled_p): Change return type to bool.
8977 (avr_rtx_costs): Use local code variable with enum type.
8978 * config/avr/avr.md (movmemhi): Use add_reg_note.
8979 (andhi3, andsi3): Don't use AS2 with "and".
8980 (iorhi3, iorsi3): Don't use AS2 with "or".
8981 * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
8982 * config/crx/crx.c: Include "df.h".
8983 (crx_attribute_table): Make static.
8984 * config/m32r/m32r.c: Include "df.h".
8985 (m32r_attribute_table): Make static. Move higher in file.
8986 (pop): Use add_reg_note.
8987 (block_move_call): Change 0 to LCT_NORMAL in function call.
8988 * config/m32r/m32r.md (movsi_insn): Remove unused local value.
8989 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
8990 * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
8991 declare, not just when TREE_CODE is defined.
8992 * config/m68hc11/m68hc11.c: Include "expr.h".
8993 (m68hc11_attribute_table): Make static. Move higher in file.
8994 (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
8996 (m68hc11_register_indirect_p): Likewise.
8997 (m68hc11_function_arg_padding): Change return type to enum
8999 (emit_move_after_reload): Use add_reg_note.
9000 (m68hc11_emit_logical): Change code parameter to enum rtx_code.
9001 (m68hc11_split_logical): Likewise.
9002 (m68hc11_rtx_costs): Add local code_and outer_code variables with
9004 * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
9005 to VOIDmode in function call.
9006 * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
9008 (m68hc11_split_logical): Update declaration.
9009 (m68hc11_function_arg_padding): Update declaration.
9010 * config/mcore/mcore.c (regno_reg_class): Change form array of int
9011 to array of enum reg_class.
9012 (mcore_attribute_table): Make static. Move higher in file.
9013 (mcore_rtx_costs): Add cast to enum type.
9014 * config/mcore/mcore.h (regno_reg_class): Update declaration.
9015 (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
9016 * config/sh/sh.c (sh_attribute_table): Make static. Move higher
9018 * config/sh/predicates.md (trapping_target_operand): Rename and to
9020 * config/sparc/sparc.c (sparc_attribute_table): Make static. Move
9022 * config/spu/spu.c (spu_attribute_table): Make static. Move
9024 * config/v850/v850.c (v850_attribute_table): Make static. Move
9026 (v850_rtx_costs): Use local code with enum type.
9027 (expand_epilogue): Add cast.
9028 * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
9030 2009-06-23 Takashi YOSHII <yoshii.takashi@renesas.com>
9033 * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
9034 -m2a-single-only and -m2a-nofpu.
9035 * config/sh/sh.opt: Document m2a generates FPU code.
9037 2009-06-24 Anatoly Sokolov <aesok@post.ru>
9039 * defaults.h (CAN_ELIMINATE): Provide default.
9040 * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
9041 * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
9042 * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
9043 * config/spu/spu.h (CAN_ELIMINATE): Delete.
9044 * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
9045 * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
9046 * config/cris/cris.h (CAN_ELIMINATE): Delete.
9047 * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
9048 * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
9049 * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
9051 2009-06-24 DJ Delorie <dj@redhat.com>
9053 * mep-ext-cop.cpu: Fix copyright notice.
9054 * mep-default: Fix copyright notice.
9055 * mep-core: Fix copyright notice.
9056 * mep: Fix copyright notice.
9057 * mep-ivc2: Fix copyright notice.
9058 * mep-c5: Fix copyright notice.
9060 2009-06-24 Denis Chertykov <chertykov@gmail.com>
9062 * doc/contrib.texi (Contributors):
9064 2009-06-24 Andreas Krebbel <krebbel1@de.ibm.com>
9067 * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
9068 src and dst operands if necessary.
9070 2009-06-23 DJ Delorie <dj@redhat.com>
9073 * config.gcc: Add mep support.
9074 * recog.c: Resurrect validate_replace_rtx_subexp().
9075 * recog.h: Likewise.
9076 * config/mep/: Add new port:
9077 * config/mep/constraints.md: New file.
9078 * config/mep/default.h: New file.
9079 * config/mep/intrinsics.h: New file.
9080 * config/mep/intrinsics.md: New file.
9081 * config/mep/ivc2-template.h: New file.
9082 * config/mep/mep-c5.cpu: New file.
9083 * config/mep/mep-core.cpu: New file.
9084 * config/mep/mep-default.cpu: New file.
9085 * config/mep/mep-ext-cop.cpu: New file.
9086 * config/mep/mep-intrin.h: New file.
9087 * config/mep/mep-ivc2.cpu: New file.
9088 * config/mep/mep-lib1.asm: New file.
9089 * config/mep/mep-lib2.c: New file.
9090 * config/mep/mep-pragma.c: New file.
9091 * config/mep/mep-protos.h: New file.
9092 * config/mep/mep-tramp.c: New file.
9093 * config/mep/mep.c: New file.
9094 * config/mep/mep.cpu: New file.
9095 * config/mep/mep.h: New file.
9096 * config/mep/mep.md: New file.
9097 * config/mep/mep.opt: New file.
9098 * config/mep/predicates.md: New file.
9099 * config/mep/t-mep: New file.
9101 2009-06-23 Ian Lance Taylor <iant@google.com>
9103 * configure.ac: Invoke AC_PROG_CXX. Separate C specific warnings
9104 from loose_warn into c_loose_warn and from strict_warn into
9105 c_strict_warn. Set and substitute warn_cxxflags. Check for
9106 --enable-build-with-cxx. Set and substitute
9107 ENABLE_BUILD_WITH_CXX. Set and substitute HOST_LIBS.
9108 * Makefile.in (CXXFLAGS): New variable.
9109 (C_LOOSE_WARN, C_STRICT_WARN): New variables.
9110 (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN). Add $(C_STRICT_WARN) if
9111 the default is the same as $(STRICT_WARN).
9112 (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
9113 (CXX): New variable.
9114 (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
9115 (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
9116 (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
9117 (HOST_LIBS): New variable.
9118 (GCC_CFLAGS): Add $(C_LOOSE_WARN).
9119 (ALL_CXXFLAGS): New variable.
9120 (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
9121 * doc/install.texi (Configuration): Document
9122 --enable-build-with-cxx, --with-stage1-ldflags,
9123 --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
9124 * configure: Rebuild.
9126 2009-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9128 * config/arm/arm.c (arm_override_options): Fix braces and formatting
9129 from previous commit.
9131 2009-06-23 Ian Lance Taylor <iant@google.com>
9133 * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
9135 2009-06-23 Ian Lance Taylor <iant@google.com>
9137 * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
9138 with ATTRIBUTE_UNUSED.
9140 2009-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9141 Pat Haugen <pthaugen@us.ibm.com>
9142 Revital Eres <eres@il.ibm.com>
9144 * config.in (HAVE_AS_POPCNTD): Add default definition.
9145 (HAVE_AS_LWSYNC): Ditto.
9147 * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
9149 (gcc_cv_as_powerpc_cmpb): Ditto.
9150 (gcc_cv_as_powerpc_dfp): Ditto.
9151 (gcc_cv_as_powerpc_vsx): Ditto.
9152 (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
9153 supporting the popcntd/lwsync instructions.
9154 (gcc_cv_as_powerpc_lwsync): Ditto.
9155 * configure: Regenerate.
9157 * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
9158 -mcpu=native and -mcpu=power7.
9159 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
9161 * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
9162 a variable instead of a mask to reduce the number of mask bits.
9163 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
9164 (-mbit-word): Ditto.
9165 (-mregnames): Ditto.
9166 * config/rs6000/rs6000.opt (-mupdate): Ditto.
9167 (-mfused-madd): Ditto.
9169 * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
9171 (-mvsx): New switch for VSX instructions.
9172 (-misel): Move from a variable to a mask to allow it to be set by
9175 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
9176 function declaration to an array declaration.
9177 (rs6000_hard_regno_nregs): New external array declaration.
9179 * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
9180 files included by rs6000.md.
9182 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9183 SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
9185 * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
9187 (rs6000_debug_reg): New -mdebug= variables.
9188 (rs6000_debug_addr): Ditto.
9189 (rs6000_debug_cost): Ditto.
9190 (rs6000_pmode): New variable to hold Pmode.
9191 (rs6000_pointer_size): New variable to hold POINTER_SIZE.
9192 (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
9193 calculated at compiler start.
9194 (rs6000_hard_regno_nregs): Change function to an array which holds
9195 HARD_REGNO_NREGS calculated at compiler start.
9196 (rs6000_explicit_options): Delete isel field.
9197 (rs6000_vector_unit): New array to hold which vector unit
9198 supports arithmetic options for a given type.
9199 (rs6000_vector_mem): New array to hold which vector unit supports
9200 memory reference operations for a given type.
9201 (rs6000_vector_align): New array to given the alignment of each
9203 (power7_cost): New basic costs for power7.
9204 (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
9205 (rs6000_hard_regno_nregs_internal): New function, moved from
9206 HARD_REGNO_NREGS, to calculate the number of registers each hard
9207 register takes for each type.
9208 (rs6000_debug_reg_print): New function for -mdebug=reg support.
9209 (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
9210 (+rs6000_init_hard_regno_mode_ok): New function, move calculation
9211 of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
9212 unit information here so it is calculated once at compiler startup
9214 (rs6000_override_options): Make -misel a target mask. Add more
9215 power7 target masks. Setup Pmode and POINTER_SIZE. Add initial
9216 VSX support. Add support for -mdebug=reg, -mdebug=addr, and
9218 (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
9219 (rs6000_handle_option): Move -misel from variable to target mask.
9220 (rs6000_builtin_mask_for_load): Add VSX support.
9221 (rs6000_conditional_register_usage): Ditto.
9222 (USE_ALTIVEC_FOR_ARG_P): Ditto.
9223 (function_arg_boundary): Ditto.
9224 (rs6000_expand_builtin): Ditto.
9225 (def_builtin): Make abort message a little friendlier.
9226 (rs6000_emit_int_cmove): Add support for 64-bit isel.
9228 * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
9229 assembler support the popcntd instruction instead of a vsx
9230 instruction to enable power7 support.
9231 (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
9232 (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
9233 option to the assembler if -mcpu=native.
9234 (ASM_CPU_NATIVE_SPEC): Ditto.
9235 (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
9237 (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
9238 the lwsync instruction.
9239 (enum processor_type): Add PROCESSOR_POWER7.
9240 (rs6000_debug_reg): New -mdebug= options.
9241 (rs6000_debug_addr): Ditto.
9242 (rs6000_debug_cost): Ditto.
9243 (rs6000_isel): Delete.
9244 (enum rs6000_vector): New enum to say what vector unit we have.
9245 (VECTOR_UNIT_*): New macros to say which vector unit has
9246 arithmetic operations for a given type.
9247 (VECTOR_MEM_*): New macros to say which vector unit has memory
9248 operations for a given type.
9249 (TARGET_LDBRX): Whether the machine supports the ldbrx
9251 (TARGET_ISEL): Delete, -misel moved to be a mask.
9252 (TARGET_ISEL64): New macro for 64-bit isel support.
9253 (UNITS_PER_VSX_WORD): New macro.
9254 (POINTER_SIZE): Move to be an external variable, rather than
9255 calculating whether we are generating 32 ot 64-bit code.
9257 (STACK_BOUNDARY): Add VSX support.
9258 (LOCAL_ALIGNMENT): Ditto.
9259 (SLOW_UNALIGNED_ACCESS): Ditto.
9260 (VSX_REGNO_P): New macro for VSX support.
9261 (VFLOAT_REGNO_P): Ditto.
9262 (VINT_REGNO_P): Ditto.
9263 (VLOGICAL_REGNO_P): Ditto.
9264 (VSX_VECTOR_MODE): Ditto.
9265 (VSX_SCALAR_MODE): Ditto.
9267 (VSX_MOVE_MODE): Ditto.
9268 (VSX_REG_CLASS_P): Ditto.
9269 (HARD_REGNO_NREGS): Instead of calling a function, use an array
9271 (UNITS_PER_SIMD_WORD): Add VSX support.
9272 (MODES_TIEABLE_P): Ditto.
9273 (STARTING_FRAME_OFFSET): Ditto.
9274 (STACK_DYNAMIC_OFFSET): Ditto.
9275 (EPILOGUE_USES): Ditto.
9276 (REGNO_REG_CLASS): Move to array lookup.
9277 (CLASS_MAX_NREGS): Ditto.
9278 (rs6000_vector_reg_class): Add declaration.
9279 (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
9280 overlap with the floating point and Altivec registers.
9282 * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
9284 * config/rs6000/driver-rs6000.c (asm_names): New static array to
9285 give the appropriate asm switches if -mcpu=native.
9286 (host_detect_local_cpu): Add support for "asm".
9287 (host_detect_local_cpu): Follow GNU code guidelines for name.
9289 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
9290 -mbit-word to a variable instead of being a target mask.
9292 * config/rs6000/sync.md (lwsync): If the assembler supports it,
9293 emit the lwsync instruction instead of emitting the instruction as
9294 an integer constant.
9296 * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
9297 fixuns_trundfsi2, move expander into rs6000.md.
9299 * config/rs6000/rs6000.md (cpu): Add power7.
9300 (sel, *ptrsize): New mode attributes for 32/64-bit isel.
9301 (logical predicate patterns): Change the single instruction
9302 primitives that set CR0 to be fast_compare instead of compare.
9304 (popcntwsi2): Add support for ISA 2.06 popcount instructions.
9305 (popcntddi2): Ditto.
9306 (popcount<mode>): Ditto.
9307 (floating multiply/add insns): Name the floating point
9309 (isel_signed_<mode>): Add support for -misel on 64-bit systems.
9310 (isel_unsigned_<mode>): Ditto.
9311 (fixuns_trundfsi2): Move expander here from spe.md.
9312 (smindi3): Define if we have -misel on 64-bit systems.
9317 2009-06-23 Anatoly Sokolov <aesok@post.ru>
9319 * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
9321 * config/avr/avr.c (avr_current_device): New variable.
9322 (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
9323 (avr_arch, mcu_type_s): Move to avr.h.
9324 * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
9325 default_data_section_start fields.
9326 (avr_arch): Moved from avr.c.
9327 (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
9328 library_name fields.
9329 (avr_current_device, avr_mcu_types, avr_arch_types,
9330 avr_device_to_arch, avr_device_to_data_start,
9331 avr_device_to_startfiles, avr_device_to_devicelib): Declare.
9332 (EXTRA_SPEC_FUNCTIONS): Define.
9333 (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
9334 options mapping. Use device_to_arch and device_to_data_start insted.
9335 (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
9336 (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
9337 * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
9338 * config/avr/driver-avr.c: New file.
9339 * config/avr/avr-devices.c: New file.
9341 2009-06-23 Jakub Jelinek <jakub@redhat.com>
9343 * var-tracking.c (unshare_variable): Force initialized to
9344 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
9345 (set_variable_part): Likewise.
9346 (struct variable_union_info): Remove pos_src field.
9347 (vui_vec, vui_allocated): New variables.
9348 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
9349 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
9350 == 1 use a simpler sorting algorithm. Compute pos field right
9351 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
9352 Avoid quadratic comparison if !flag_var_tracking_uninit.
9353 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
9354 unshare_variable unconditionally.
9355 (dataflow_set_different_2): Removed.
9356 (dataflow_set_different): Don't traverse second hash table.
9357 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
9358 unconditionally to var_reg_set or var_mem_set.
9359 (emit_notes_in_bb): Likewise.
9360 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
9362 (emit_note_insn_var_location): Don't set initialized to
9363 VAR_INIT_STATUS_INITIALIZED early.
9364 (vt_finalize): Free vui_vec if needed, clear vui_vec and
9366 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
9368 * tree-object-size.c (addr_object_size): Instead of checking
9369 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
9370 are no FIELD_DECLs following it.
9372 2009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
9374 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
9375 order to match bswaps with signed source operands.
9377 2009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9379 * sdbout.c (sdbout_one_type): Fix braces in switch.
9381 2009-06-23 Richard Guenther <rguenther@suse.de>
9383 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
9385 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
9386 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
9387 var_callused, callused_tree, var_storedanything, storedanything_tree,
9388 var_integer, integer_tree): Remove global variables.
9389 (new_var_info): Do not pass new id, append the new var to the
9390 global variable vector.
9391 (do_ds_constraint): Use is_global_var member of the variable-info.
9392 (new_scalar_tmp_constraint_exp): Adjust.
9393 (create_function_info_for): Likewise.
9394 (create_variable_info_for): Likewise.
9395 (find_what_var_points_to): Remove dead code.
9396 (init_base_vars): Simplify.
9397 (compute_points_to_sets): Adjust.
9399 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
9401 * combine.c (try_combine): Dump information about the insns we're
9404 2009-06-22 Adam Nemet <anemet@caviumnetworks.com>
9406 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
9407 check when calling force_to_mode on TRUNCATE's operand.
9409 2009-06-22 Ian Lance Taylor <iant@google.com>
9411 * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
9413 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
9415 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
9417 2009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9419 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
9420 override library linkage flags such as -static-libgcc or
9423 2009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
9425 * config/m68k/m68k-devices.def: Add line for MCF5221x.
9427 2009-06-22 Ian Lance Taylor <iant@google.com>
9429 * config/linux.opt: Put mglibc ahead of muclibc.
9431 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
9432 for duplicate decls.
9434 2009-06-22 Matthias Klose <doko@ubuntu.com>
9436 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
9438 2009-06-22 Steven Bosscher <steven@gcc.gnu.org>
9441 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
9442 instead of NULL if a parser error occurs.
9444 2009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9446 * dwarf2out.c (dwarf2_debug_hooks): Initialize
9447 non-DWARF2_DEBUGGING_INFO version.
9449 2009-06-22 Kai Tietz <kai.tietz@onevision.com>
9451 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
9452 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
9454 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
9455 (LIBGCC2_TF_CEXT): Define.
9458 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9461 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
9463 2009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9465 * config/arm/arm.c (arm_override_options): Disable
9466 -mcaller-super-interworking and -mcallee-super-interworking.
9467 * doc/invoke.texi (ARM Options): Document this.
9469 2009-06-22 Nathan Sidwell <nathan@codesourcery.com>
9471 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
9472 * config/arm/constraints.md (j): New constraint for movw operands.
9473 (N): Remove thumb2 meaning.
9474 * config/arm/arm.md (*arm_movw): Delete.
9475 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
9476 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
9477 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
9479 2009-06-22 Martin Jambor <mjambor@suse.cz>
9481 PR tree-optimization/40492
9482 * tree-sra.c (sra_modify_assign): Pass zero offsets to
9483 build_ref_for_offset.
9485 2009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
9487 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
9488 JUMP_TABLE_DATA_P predicates where applicable.
9489 * auto-inc-dec.c: Ditto.
9490 * builtins.c: Ditto.
9491 * caller-save.c: Ditto.
9493 * cfgcleanup.c: Ditto.
9494 * cfglayout.c: Ditto.
9497 * combine-stack-adj.c: Ditto.
9503 * dwarf2asm.c: Ditto.
9504 * dwarf2out.c: Ditto.
9505 * emit-rtl.c: Ditto.
9511 * function.c: Ditto.
9514 * genpreds.c: Ditto.
9515 * genrecog.c: Ditto.
9517 * ira-costs.c: Ditto.
9518 * ira-lives.c: Ditto.
9521 * lower-subreg.c: Ditto.
9522 * modulo-sched.c: Ditto.
9524 * postreload.c: Ditto.
9525 * print-rtl.c: Ditto.
9534 * sched-vis.c: Ditto.
9536 * sel-sched-ir.c: Ditto.
9537 * simplify-rtx.c: Ditto.
9538 * targhooks.c: Ditto.
9539 * var-tracking.c: Ditto.
9540 * vmsdbgout.c: Ditto.
9542 2009-06-22 Matthias Klose <doko@ubuntu.com>
9544 * Makefile.in (install-plugin): Always use DESTDIR.
9546 2009-06-22 Olivier Hainque <hainque@adacore.com>
9548 * config/pa/pa.c (output_call): Don't optimize post call jumps
9549 into return address adjustments if the call may throw.
9551 2009-06-21 Richard Earnshaw <rearnsha@arm.com>
9553 * arm.c (thumb1_output_casesi): New function.
9554 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
9555 optimizing for size or PIC.
9556 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
9557 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
9558 (casesi): Handle Thumb-1 when optimizing for size or PIC.
9559 (thumb1_casesi_internal_pic): New expand rule.
9560 (thumb1_casesi_dispatch): New pattern.
9561 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
9563 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
9564 in the text seciton when PIC or optimizing for size.
9565 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9566 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
9567 preservation properties of code.
9568 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
9569 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
9570 (__gnu_thumb1_case_si): New function.
9571 * t-arm (LIB1ASMSRC): Define here.
9572 (LIB1ASMFUNCS): Add some common functions.
9573 * t-arm-elf (LIB1ASMSRC): Delete.
9574 (LIB1ASMFUNCS): Append to existing set.
9575 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
9576 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
9577 * t-symbian (LIB1ASMFUNCS): Likewise.
9578 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
9579 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
9581 2009-06-21 Richard Guenther <rguenther@suse.de>
9583 PR tree-optimization/38729
9584 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
9585 to loops with a single exit if -fno-expensive-optimizations.
9587 2009-06-21 Jakub Jelinek <jakub@redhat.com>
9589 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
9590 (dataflow_set): Change vars type from htab_t to shared_hash.
9591 (shared_hash_pool, empty_shared_hash): New variables.
9592 (vars_clear): Removed.
9593 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
9594 shared_hash_find_slot_unshare, shared_hash_find_slot,
9595 shared_hash_find_slot_noinsert, shared_hash_find): New
9597 (shared_hash_unshare, shared_hash_destroy): New functions.
9598 (unshare_variable): Unshare set->vars if shared, use
9600 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
9601 (get_init_value, find_src_set_src, dump_dataflow_set,
9602 clobber_variable_part, emit_notes_for_differences): Use
9604 (dataflow_set_init): Remove second argument, set vars to
9605 empty_shared_hash instead of creating a new htab.
9606 (dataflow_set_clear): Call shared_hash_destroy and set vars
9607 to empty_shared_hash instead of calling vars_clear.
9608 (dataflow_set_copy): Don't call vars_copy, instead just share
9609 the src htab with dst.
9610 (variable_union): Use shared_hash_*, use initially NO_INSERT
9611 lookup if set->vars is shared. Don't keep slot cleared before
9612 calling unshare_variable. Unshare set->vars if needed.
9613 Even ->refcount == 1 vars must be unshared if set->vars is shared
9614 and var needs to be modified.
9615 (variable_canonicalize): New function.
9616 (dataflow_set_union): If dst->vars is empty, just share src->vars
9617 with dst->vars and traverse with variable_canonicalize to canonicalize
9618 and unshare what is needed.
9619 (dataflow_set_different): If old_set and new_set use the same shared
9620 htab, they aren't different. If number of htab elements is different,
9621 htabs are different. Use shared_hash_*.
9622 (dataflow_set_destroy): Call shared_hash_destroy instead of
9624 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
9625 second argument to dataflow_set_init.
9626 (vt_initialize): Likewise. Initialize shared_hash_pool and
9627 empty_shared_hash, move bb in/out initialization afterwards.
9628 Use variable_htab_free instead of NULL as changed_variables del hook.
9629 (variable_was_changed): Change type of second argument to pointer to
9630 dataflow_set. When inserting var into changed_variables, bump
9631 refcount. Unshare set->vars if set is shared htab and slot needs to
9633 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
9634 lookup if set->vars is shared. Unshare set->vars if needed.
9635 Even ->refcount == 1 vars must be unshared if set->vars is shared
9636 and var needs to be modified. Adjust variable_was_changed caller.
9637 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
9638 vars must be unshared if set->vars is shared and var needs to be
9639 modified. Adjust variable_was_changed caller.
9640 (emit_note_insn_var_location): Don't pool_free var.
9641 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
9643 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
9644 free_alloc_pool on shared_hash_pool.
9646 2009-06-20 Anthony Green <green@moxielogic.com>
9648 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
9649 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
9651 2009-06-20 Richard Guenther <rguenther@suse.de>
9653 * tree-ssa-structalias.c (find_func_aliases): For memset use
9654 a constraint from NULL if we memset to zero.
9655 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
9656 we explicitly handle that do not read from memory.
9657 (call_may_clobber_ref_p_1): Properly handle builtins that may
9660 2009-06-20 Richard Guenther <rguenther@suse.de>
9662 PR tree-optimization/40495
9663 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
9664 (new_scalar_tmp_constraint_exp): New function.
9665 (process_constraint): Do not create temporary decls.
9666 (process_all_all_constraints): Likewise.
9667 (handle_const_call): Likewise.
9668 (create_function_info_for): Do not set decl.
9670 2009-06-19 Ian Lance Taylor <iant@google.com>
9672 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
9673 (rs6000_attribute_table): Make static; move before use.
9675 2009-06-19 Eric Botcazou <ebotcazou@adacore.com>
9677 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
9678 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
9679 Propagate the TREE_READONLY flag without overwriting it.
9680 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
9681 Propagate the TREE_READONLY flag onto the result.
9682 (process_call_operands): Move around. Use correct constant value.
9684 2009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9687 * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
9688 * config/arm/arm.md: Likewise.
9690 2009-06-19 Ian Lance Taylor <iant@google.com>
9692 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
9693 to GIMPLE_ERROR_MARK.
9695 * c-typeck.c (build_conditional_expr): Add op1_original_type and
9696 op2_original_type parameters. Warn about using different enum types.
9697 * c-parser.c (c_parser_conditional_expression): Pass original
9698 types to build_conditional_expr.
9699 * c-tree.h (build_conditional_expr): Update declaration.
9701 2009-06-19 Ian Lance Taylor <iant@google.com>
9703 * config/i386/i386.c (ix86_function_specific_save): Test that
9704 fields match values, rather than testing the values are in a
9707 2009-06-19 Richard Guenther <rguenther@suse.de>
9709 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9711 (ptr_derefs_may_alias_p): Likewise.
9712 (ptr_deref_may_alias_ref_p_1): New function.
9713 (ptr_deref_may_alias_ref_p): Likewise.
9714 (ref_maybe_used_by_call_p_1): Handle builtins that are not
9715 covered by looking at the ESCAPED solution.
9716 (call_may_clobber_ref_p_1): Likewise.
9717 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
9718 Handle NULL_TREE offset. Do not produce redundant constraints.
9719 (process_all_all_constraints): New helper function.
9720 (do_structure_copy): Use it.
9721 (handle_lhs_call): Likewise.
9722 (find_func_aliases): Handle some builtins with pointer arguments
9723 and/or return values explicitly.
9725 2009-06-19 Ian Lance Taylor <iant@google.com>
9727 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
9729 2009-06-19 Ian Lance Taylor <iant@google.com>
9731 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
9733 2009-06-19 Ian Lance Taylor <iant@google.com>
9735 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
9736 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
9739 * c-decl.c (finish_decl): If -Wc++-compat, warn about
9740 uninitialized const.
9742 2009-06-19 Ian Lance Taylor <iant@google.com>
9744 * dse.c (struct store_info): Rename bitmap field to bmap. Change
9747 * c-decl.c (in_struct, struct_types): Remove.
9748 (struct c_binding): Add in_struct field.
9749 (c_binding_ptr): Define type, along with VEC.
9750 (struct c_struct_parse_info): Define.
9751 (struct_parse_info): New static variable.
9752 (bind): Initialize in_struct field.
9753 (start_struct): Remove enclosing_in_struct and
9754 enclosing_struct_types parameters. Add
9755 enclosing_struct_parse_info parameter. Change all callers. Set
9756 struct_parse_info rather than in_struct and struct_types.
9757 (grokfield): If -Wc++-compat and there is a symbol binding for the
9758 field name, set the in_struct flag and push it on the
9759 struct_parse_info->fields vector.
9760 (warn_cxx_compat_finish_struct): New static function.
9761 (finish_struct): Remove enclosing_in_struct and
9762 enclosing_struct_types parameters. Add
9763 enclosing_struct_parse_info parameter. Change all callers. Don't
9764 set C_TYPE_DEFINED_IN_STRUCT here. Call
9765 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
9766 parameter. Only push on struct_types if warn_cxx_compat.
9767 (finish_enum): Only push on struct_types if warn_cxx_compat.
9768 (declspecs_add_type): Add loc parameter. Change all callers.
9769 Change all error calls to error_at. Pass loc, not input_location,
9770 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
9771 defined in a struct. If -Wc++-compat and parsing a struct, record
9772 that a typedef name was used.
9773 * c-parser.c (c_parser_declspecs): Get location to pass to
9775 (c_parser_struct_or_union_specifier): Update calls to start_struct
9777 * c-tree.h (struct c_struct_parse_info): Declare.
9778 (finish_struct, start_struct): Update declarations.
9779 (declspecs_add_type): Update declaration.
9781 2009-06-19 Ian Lance Taylor <iant@google.com>
9783 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
9784 variable with an anonymous type.
9786 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
9788 * see.c: Remove for real.
9790 2009-06-19 Uros Bizjak <ubizjak@gmail.com>
9792 * optabs.h (enum optab_index): Add new OTI_significand.
9793 (significand_optab): Define corresponding macro.
9794 * optabs.c (init_optabs): Initialize significand_optab.
9795 * genopinit.c (optabs): Implement significand_optab using
9796 significand?f2 patterns.
9797 * builtins.c (expand_builtin_mathfn): Handle
9798 BUILT_IN_SIGNIFICAND{,F,L}.
9799 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
9800 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
9802 * config/i386/i386.md (significandxf2, significand<mode>2): New
9803 expanders to implement significandf, significand and significandl
9804 built-ins as inline x87 intrinsics.
9806 2009-06-18 Anatoly Sokolov <aesok@post.ru>
9808 * config/avr/avr.c (avr_override_options): Remove setting value of
9809 PARAM_INLINE_CALL_COST.
9811 2009-06-18 Richard Henderson <rth@redhat.com>
9814 * tree-pass.h (TDF_ASMNAME): New.
9815 * tree-dump.c (dump_options): Add asmname.
9816 * doc/invoke.texi: Document it.
9818 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
9819 (dump_decl_name): ...here.
9820 (dump_function_name): New flags arg; mind TDF_ASMNAME.
9821 (dump_generic_node): Update dump_function_name calls.
9822 (print_call_name): New flags arg; update all dump calls.
9823 * diagnostic.h (print_call_name): Update.
9824 * gimple-pretty-print.c (dump_gimple_call): Update.
9826 2009-06-18 H.J. Lu <hongjiu.lu@intel.com>
9829 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
9831 2009-06-18 Diego Novillo <dnovillo@google.com>
9833 * doc/plugins.texi: Document plugin_is_GPL_compatible.
9834 * plugin.c (str_license): Declare.
9835 (try_init_one_plugin): Assert that the symbol
9836 'plugin_is_GPL_compatible' exists.
9838 2009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
9841 * Makefile.in (OBJS-common): Remove see.o.
9843 * common.opt (fsee): Mark as preserved for backward compatibility.
9844 * opts.c (common_handle_option): Add OPT_fsee to the backward
9845 compatibility section.
9846 * passes.c (init_optimization_passes, pass_see): Remove pass.
9847 * timevar.def (TV_SEE): Remove.
9848 * tree-pass.h (pass_see): Remove declaration.
9849 * doc/invoke.texi (-fsee): Remove documentation.
9851 2009-06-18 Martin Jambor <mjambor@suse.cz>
9853 * tree-sra.c: Include statistics.h
9854 (sra_stats): New variable.
9855 (sra_initialize): Clear sra_stats.
9856 (create_access_replacement): Increment sra_stats.replacements.
9857 (get_access_replacement): Do not return twice.
9858 (analyze_all_variable_accesses): Increment statistics counter by the
9859 number of scalarized aggregates.
9860 (generate_subtree_copies): Increment sra_stats.subtree_copies.
9861 (sra_modify_expr): Increment sra_stats.exprs.
9862 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
9863 (sra_modify_assign): Increment sra_stats.exprs,
9864 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
9865 (perform_intra_sra): Update statistics counters.
9866 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
9868 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
9870 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
9871 (arm_scalar_mode_supported_p): New function.
9873 2009-06-18 Paul Brook <paul@codesourcery.com>
9874 Sandra Loosemore <sandra@codesourcery.com>
9876 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
9877 (__extendhfsf2, __truncsfhf2): Define.
9878 * config/arm/fp16.c: New file.
9879 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
9880 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
9882 2009-06-18 Sandra Loosemore <sandra@codesourcery.com>
9884 * doc/extend.texi (Half-Precision): New section.
9885 * doc/invoke.texi (Option Summary): List -mfp16-format.
9886 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
9887 * config/arm/arm.opt (mfp16-format=): New.
9888 * config/arm/arm.c: Include intl.h.
9889 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
9890 (TARGET_INVALID_RETURN_TYPE): Redefine.
9891 (TARGET_PROMOTED_TYPE): Redefine.
9892 (TARGET_CONVERT_TO_TYPE): Redefine.
9893 (arm_fp16_format): Define.
9894 (all_fpus): Add entry for neon-fp16.
9895 (fp_model_for_fpu): Likewise.
9896 (struct fp16_format): Declare.
9897 (all_fp16_formats): Define.
9898 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
9900 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
9902 (arm_legitimate_index_p): Treat HFmode like HImode.
9903 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
9904 (coproc_secondary_reload_class): Special-case HFmode.
9905 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
9906 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
9907 (arm_init_fp16_builtins): New.
9908 (arm_init_builtins): Call it.
9909 (arm_invalid_parameter_type): New.
9910 (arm_invalid_return_type): New.
9911 (arm_promoted_type): New.
9912 (arm_convert_to_type).
9913 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
9915 (arm_emit_fp16_const): New function.
9916 (arm_mangle_type): Mangle __fp16 as "Dh".
9917 * config/arm/arm.h (TARGET_VFPD32): Make it know about
9919 (TARGET_NEON_FP16): New.
9920 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
9921 (enum fputype): Add FPUTYPE_NEON_FP16.
9922 (enum arm_fp16_format_type): Declare.
9923 (arm_fp16_format): Declare.
9924 (LARGEST_EXPONENT_IS_NORMAL): Define.
9925 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
9926 * config/arm/arm-modes.def (HFmode): Define.
9927 * config/arm/vfp.md: (*movhf_vfp): New.
9930 * config/arm/arm.md: (fpu): Add neon_fp16.
9931 (floatsihf2, floatdihf2): New.
9932 (fix_trunchfsi2, fix_trunchfdi2): New.
9936 (*arm32_movhf): New.
9937 (*thumb1_movhf): New.
9938 (consttable_2): Add check for HFmode constants.
9939 (consttable_4): Handle HFmode constants.
9941 2009-06-18 Uros Bizjak <ubizjak@gmail.com>
9943 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
9945 2009-06-17 Olivier Hainque <hainque@adacore.com>
9947 * collect2.c (main): Use CONST_CAST2 to perform char ** to
9948 const char ** conversion in AIX specific section.
9950 2009-06-17 H.J. Lu <hongjiu.lu@intel.com>
9952 * config/i386/i386.c (ix86_special_builtin_type): Remove
9953 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
9954 (bdesc_special_args): Updated.
9955 (ix86_init_mmx_sse_builtins): Likewise.
9956 (ix86_expand_special_args_builtin): Likewise.
9958 2009-06-17 Richard Henderson <rth@redhat.com>
9960 * tree-pretty-print.c (maybe_dump_asm_name): New.
9961 (dump_decl_name): Use it.
9962 (PRINT_FUNCTION_NAME): Merge into...
9963 (dump_function_name): ... here. Use maybe_dump_asm_name.
9965 2009-06-17 Cary Coutant <ccoutant@google.com>
9967 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
9969 * debug.c (struct gcc_debug_hooks): Change placeholder for
9971 (debug_nothing_int_charstar_int): Replaced by...
9972 (debug_nothing_int_charstar_int_bool): ...this.
9973 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
9974 source_line prototype.
9975 (debug_nothing_int_charstar_int): Replaced by...
9976 (debug_nothing_int_charstar_int_bool): ...this.
9977 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
9978 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
9979 Output is_stmt operand when necessary.
9980 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
9981 (notice_source_line): Add is_stmt parameter.
9982 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
9983 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
9985 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
9986 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
9988 2009-06-17 Ian Lance Taylor <iant@google.com>
9990 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
9992 (struct store_by_pieces_d): Rename from store_by_pieces. Change
9995 2009-06-17 Adam Nemet <anemet@caviumnetworks.com>
9997 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
9998 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
9999 tree_strip_sign_nop_conversions and
10000 tree_ssa_strip_useless_type_conversions rather than stripping
10001 the operations here.
10002 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
10004 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
10005 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
10006 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
10007 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
10010 2009-06-17 Michael Eager <eager@eagercon.com>
10012 * config/rs6000/constraints.md (register_constraint "d"): New.
10013 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
10014 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
10015 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
10016 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
10017 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
10018 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
10019 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
10020 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
10021 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
10022 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
10024 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
10025 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
10026 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
10027 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
10028 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
10029 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
10030 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
10031 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
10032 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
10033 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
10034 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
10035 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
10036 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
10037 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
10039 2009-06-16 Ian Lance Taylor <iant@google.com>
10041 * profile.c (total_num_never_executed): Don't define.
10042 (compute_branch_probabilities): Don't count or print
10043 num_never_executed.
10044 (init_branch_prob): Don't set total_num_never_executed.
10045 (end_branch_prob): Don't print total_num_never_executed.
10047 2009-06-17 David Daney <ddaney@caviumnetworks.com>
10049 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
10051 2009-06-17 David Edelsohn <edelsohn@gnu.org>
10053 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
10054 (nabstd2_fpr): Same.
10056 2009-06-17 Steve Ellcey <sje@cup.hp.com>
10058 * expr.c (expand_assignment): Change complex type check.
10060 2009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
10062 * doc/plugins.texi (Building GCC plugins): Added new section.
10064 2009-06-17 Ian Lance Taylor <iant@google.com>
10066 * c-pch.c (get_ident): Don't set size of templ array.
10067 (pch_init): Don't set size of partial_pch array.
10069 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
10070 string constant to intialize an array whose size is the length of
10073 2009-06-17 Richard Guenther <rguenther@suse.de>
10075 PR tree-optimization/40389
10076 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
10077 to addressable types.
10078 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
10080 2009-06-17 Richard Guenther <rguenther@suse.de>
10082 PR middle-end/40460
10083 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
10084 if there is no evolution of left in the loop bail out.
10085 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
10086 chrec_fold_multiply.
10088 2009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
10089 Janis Johnson <janis187@us.ibm.com>
10092 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
10093 for the symbol ref of a constant that is the source of a move
10094 - nor for any other not-obvious-label-ref constants.
10096 2009-06-16 Olatunji Ruwase <tjruwase@google.com>
10098 * plugin.c (position_pass): Skip newly inserted pass during list
10099 traversal to avoid repeated insertion.
10101 2009-06-16 Ian Lance Taylor <iant@google.com>
10103 * vec.h (VEC_stack_alloc): Define different version if
10104 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
10105 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
10106 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
10107 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
10109 2009-06-16 H.J. Lu <hongjiu.lu@intel.com>
10111 * config.gcc (extra_headers): Add ia32intrin.h for x86.
10113 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
10114 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
10115 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
10116 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
10117 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
10118 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
10119 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
10120 (bdesc_special_args): Add __builtin_ia32_rdtsc and
10121 __builtin_ia32_rdtscp.
10122 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
10123 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
10124 and __builtin_ia32_rorhi.
10125 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
10126 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
10127 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
10128 (ix86_expand_args_builtin): Likewise.
10129 (ix86_expand_special_args_builtin): Likewise.
10131 * config/i386/i386.md (UNSPECV_RDTSCP): New.
10132 (UNSPECV_RDTSC): Likewise.
10133 (UNSPECV_RDPMC): Likewise.
10134 (*bsr): Renamed to ...
10136 (*bsr_rex64): Renamed to ...
10139 (*rdpmc): Likewise.
10140 (*rdpmc_rex64): Likewise.
10142 (*rdtsc): Likewise.
10143 (*rdtsc_rex64): Likewise.
10144 (rdtscp): Likewise.
10145 (*rdtscp): Likewise.
10146 (*rdtscp_rex64): Likewise.
10148 * config/i386/ia32intrin.h: New.
10150 * config/i386/x86intrin.h: Include <ia32intrin.h>.
10152 2009-06-16 Ian Lance Taylor <iant@google.com>
10154 * ira-build.c (copy_info_to_removed_store_destinations):
10155 Initialize parent_a.
10157 2009-06-16 Ian Lance Taylor <iant@google.com>
10159 * c-decl.c (grokdeclarator): Change size_varies to bool.
10161 2009-06-16 Ian Lance Taylor <iant@google.com>
10163 * sel-sched.c: Make forward declarations of move_op_hooks and
10164 fur_hooks explicitly extern.
10166 2009-06-16 Ian Lance Taylor <iant@google.com>
10168 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
10169 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
10171 2009-06-16 Ian Lance Taylor <iant@google.com>
10173 * resource.c (mark_referenced_resources): Change
10174 include_delayed_effects parameter to bool. Change all callers.
10175 (mark_end_of_function_resources): Likewise.
10176 * reorg.c (insn_references_resource_p): Likewise.
10177 (insn_sets_resource_p): Likewise.
10178 * resource.h (mark_referenced_resources): Update declaration.
10179 (mark_end_of_function_resources): Update declaration.
10181 2009-06-16 David Edelsohn <edelsohn@gnu.org>
10183 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
10185 2009-06-16 David Edelsohn <edelsohn@gnu.org>
10187 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
10188 GCC can bootstrap on AIX with GNU Binutils 2.20.
10190 2009-06-16 Ian Lance Taylor <iant@google.com>
10192 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
10194 2009-06-16 Ian Lance Taylor <iant@google.com>
10196 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
10197 inline, not extern inline.
10198 (exact_log2): Likewise.
10199 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
10201 (exact_log2): Likewise, but don't test CTZ_HWI.
10203 2009-06-16 Ian Lance Taylor <iant@google.com>
10205 * bitmap.c (bitmap_clear): Don't declare as inline.
10206 * gimple.c (gimplify_assign): Likewise.
10207 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
10208 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
10209 (sched_scan_info): Remove duplicate definition.
10211 2009-06-16 Ian Lance Taylor <iant@google.com>
10213 * c-common.c (skip_evaluation): Don't define.
10214 (c_inhibit_evaluation_warnings): Define global variable.
10215 (overflow_warning): Check c_inhibit_evaluation_warnings rather
10216 than skip_evaluation.
10217 (convert_and_check, warn_for_div_by_zero): Likewise.
10218 * c-common.h (skip_evaluation): Don't declare.
10219 (c_inhibit_evaluation_warnings): Declare.
10220 * c-parser.c (c_parser_typeof_specifier): Set
10221 c_inhibit_evaluation_warnings rather than skip_evaluation.
10222 (c_parser_conditional_expression): Likewise.
10223 (c_parser_binary_expression): Likewise.
10224 (c_parser_sizeof_expression): Likewise.
10225 (c_parser_alignof_expression): Likewise.
10226 * c-typeck.c (build_indirect_ref): Check
10227 c_inhibit_evaluation_warnings rather than skip_evaluation.
10228 (build_conditional_expr, build_binary_op): Likewise.
10230 2009-06-16 Richard Guenther <rguenther@suse.de>
10232 * tree-ssa-alias.c (is_escape_site): Remove.
10233 * tree-ssa-alias.h (enum escape_type): Remove.
10234 (is_escape_site): Likewise.
10235 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
10236 via casts and asms without deferring to is_escape_site.
10238 2009-06-16 Jakub Jelinek <jakub@redhat.com>
10240 PR middle-end/40446
10241 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
10242 use gen_lowpart if op0 has complex mode.
10244 2009-06-16 Richard Guenther <rguenther@suse.de>
10246 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
10247 variables add them to ESCAPED.
10248 (find_func_aliases): Do not make all indirectly stored values escaped.
10250 2009-06-16 Rafael Avila de Espindola <espindola@google.com>
10252 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
10253 make_decl_one_only.
10255 2009-06-16 Martin Jambor <mjambor@suse.cz>
10257 PR tree-optimization/40432
10258 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
10259 check whether we need to force gimple register operand.
10261 2009-06-16 Martin Jambor <mjambor@suse.cz>
10263 PR tree-optimization/40413
10264 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
10265 build_ref_for_offset.
10266 (propagate_subacesses_accross_link): Fix a typo in a comment.
10268 2009-06-16 Ira Rosen <irar@il.ibm.com>
10270 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10271 with additional parameter.
10272 * tree-vectorizer.h (enum vect_def_type): Add new value
10274 (enum vect_relevant): Add comments.
10275 (vect_is_simple_reduction): Add new argument.
10276 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
10277 Detect nested cycles.
10278 (vect_is_simple_reduction): Update documentation, add an argument to
10279 distinguish inner-loop reduction from nested cycle, detect nested
10280 cycles, fix printings and indentation, don't swap operands in case
10282 (get_initial_def_for_reduction): Handle subtraction.
10283 (vect_create_epilog_for_reduction): Add new argument to specify
10284 reduction variable.
10285 (vect_finalize_reduction): Handle subtraction, fix comments.
10286 (vectorizable_reduction): Handle nested cycles. In case of nested
10287 cycle keep track of the reduction variable position. Call
10288 vect_is_simple_reduction with additional parameter. Use original
10289 statement code in reduction epilogue for nested cycle. Call
10290 vect_create_epilog_for_reduction with additional parameter.
10291 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
10292 inner-loop vectorization.
10293 (vect_recog_widen_sum_pattern): Likewise.
10294 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
10296 (vect_mark_stmts_to_be_vectorized): Likewise.
10297 (vect_get_vec_def_for_operand): Handle nested cycles.
10299 2009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10301 * doc/invoke.texi (Debugging Options): Fix option index entries
10302 for -fdump-statistics, -frandom-seed add entries for
10303 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
10304 (FRV Options): Fix entries for -mTLS, -mtls.
10305 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
10306 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
10307 (M68hc1x Options): Fix @itemx for -mnominmax.
10308 (MCore Options): Fix entry for -mno-lsim.
10309 (MMIX Options): Fix entry for -mabi=mmixware.
10310 (PDP-11 Options): Fix entry for -mbcopy-builtin.
10312 2009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
10314 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
10315 Mention the plugin mode of gengtype.
10316 * doc/gty.texi (Source Files Containing Type Information): Likewise.
10317 * gengtype.c: Updated copyright.
10318 (plugin_files, nb_plugin_files) Added new static variables.
10319 (measure_input_list) Care about plugin_files.
10320 (write_rtx_next): Added early return in plugin mode.
10321 (create_file): Updated copyright year in generated file. Added
10323 (oprintf): Added early return if NULL outf.
10324 (get_output_file_with_visibility): Care of plugin_files.
10325 (get_output_file_name): May return null.
10326 (write_local): Added early return.
10327 (put_mangled_filename): Ditto.
10328 (finish_root_table): Added check for base_files.
10329 (write_roots): Care about null when plugins.
10330 (main): Added plugin mode.
10332 2009-06-15 Ian Lance Taylor <iant@google.com>
10334 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
10335 * gcov.c (read_count_file): Add braces around variables declared
10338 * c.opt (Wjump-misses-init): New warning.
10339 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
10340 -Wall and -Wc++-compat if not already set.
10341 (c_common_post_options): Clear warn_jump_misses_init if it was not
10343 * c-decl.c (struct c_binding): Change type field to a union with
10344 new label field. Make it the first field in the struct. Update
10345 references to type to use u.type instead.
10346 (struct c_spot_bindings): Define.
10347 (struct c_goto_bindings): Define.
10348 (c_goto_bindings_p): Define, along with VECs.
10349 (struct c_label_vars): Define.
10350 (struct c_scope): Add has_label_bindings field.
10351 (bind_label, set_spot_bindings): New static functions.
10352 (decl_jump_unsafe, update_spot_bindings): New static functions.
10353 (update_label_decls): New static function.
10354 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
10355 Update binding u.label field to shadowed field.
10356 (c_binding_start_stmt_expr): New function.
10357 (c_binding_end_stmt_expr): New function.
10358 (pushdecl): Don't call c_begin_vm_scope.
10359 (make_label): Add defining and p_label_vars parameters. Change
10361 (lookup_label): Correct test for whether a label has not yet been
10362 defined. Call bind_label rather than bind.
10363 (warn_about_goto): New static function.
10364 (lookup_label_for_goto): New function.
10365 (declare_label): Call bind_label rather than bind.
10366 (check_earlier_gotos): New static function.
10367 (define_label): Don't give errors about jumping into statement
10368 expressions or scopes of variably modified types. Call
10369 set_spot_bindings and check_earlier_gotos. Call bind_label
10370 instead of bind. Don't set label_context_stack_se or
10371 label_context_stack_vm.
10372 (c_get_switch_bindings): New function.
10373 (c_release_switch_bindings): New function.
10374 (c_check_switch_jump_warnings): New function.
10375 (start_function): Don't set label_context_stack_se or
10376 label_context_stack_vm.
10377 (finish_function): Likewise.
10378 * c-typeck.c (label_context_stack_se): Don't define.
10379 (label_context_stack_vm): Don't define.
10380 (c_finish_goto_label): Call lookup_label_for_goto rather than
10381 lookup_label. Don't give errors about jumping into a statement
10382 expression or the scope of a variably modified type. Don't set
10383 label_context_stack_se or label_context_stack_vm.
10384 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
10385 fields. Add bindings field.
10386 (c_start_case): Don't set deleted fields. Set bindings field.
10387 (do_case): Rework order of tests. Don't check blocked_stmt_expr
10388 or blocked_vm. Call c_check_switch_jump_warnings.
10389 (c_finish_case): Don't test blocked_stmt_expr field. Call
10390 c_release_switch_bindings.
10391 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
10392 c_switch_stack. Don't walk label_context_stack_se labels. Don't
10393 set label_context_stack_se. Call c_bindings_start_stmt_expr.
10394 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
10395 c_switch_stack. Don't walk label_context_stack_se labels. Don't
10396 set label_context_stack_se. Call c_bindings_end_stmt_expr.
10397 (c_begin_vm_scope, c_end_vm_scope): Don't define.
10398 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
10399 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
10400 (C_DECL_UNJUMPABLE_VM): Don't define.
10401 (C_DECL_UNDEFINABLE_VM): Don't define.
10402 (struct c_label_list): Don't define.
10403 (struct c_label_context_se): Don't define.
10404 (struct c_label_context_vm): Don't define.
10405 (struct c_spot_bindings): Declare.
10406 (c_bindings_start_stmt_expr): Declare.
10407 (c_bindings_end_stmt_expr): Declare.
10408 (lookup_label_for_goto): Declare.
10409 (c_get_switch_bindings, c_release_switch_bindings): Declare.
10410 (c_check_switch_jump_warnings): Declare.
10411 (label_context_stack_se, label_context_stack_vm): Don't declare.
10412 (c_finish_goto_label): Update declaration.
10413 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
10414 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
10415 (Warning Options): Document -Wjump-misses-init.
10417 2009-06-15 Jakub Jelinek <jakub@redhat.com>
10419 * tree-object-size.c (addr_object_size): Fix a pasto in the last
10422 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
10424 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
10426 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
10428 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
10430 2009-06-15 Aldy Hernandez <aldyh@redhat.com>
10432 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
10434 2009-06-15 Rafael Avila de Espindola <espindola@google.com>
10436 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
10437 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
10438 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
10439 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
10440 * dwarf2asm.c (dw2_force_const_mem): Update call to
10441 make_decl_one_only.
10442 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
10443 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
10444 * langhooks.c (lhd_comdat_group): Remove.
10445 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
10446 * tree.h (DECL_COMDAT_GROUP): New.
10447 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
10448 (tree_decl_with_vis): Add comdat_group. Remove one_only.
10449 (make_decl_one_only): Change signature.
10450 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
10451 make_decl_one_only.
10452 (make_decl_one_only): Change signature.
10453 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
10455 2009-06-15 Richard Guenther <rguenther@suse.de>
10457 PR middle-end/40439
10458 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
10460 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10462 * tree-ssa-math-opts.c: Remove extra divide.
10464 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10466 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
10468 2009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10470 * passes.c: Add bswap pass.
10471 * tree-pass.h: Add pass_optimize_bswap declaration.
10472 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
10473 Include rtl.h, expr.h and optabs.h for optab_handler check.
10474 (struct symbolic_number, pass_optimize_bswap): New definition.
10475 (do_shift_rotate, verify_symbolic_number_p): New functions.
10476 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
10477 (gate_optimize_bswap): New function.
10478 * tree.c (widest_int_cst_value): New function.
10479 * tree.h (widest_int_cst_value): Prototype added.
10481 2009-06-14 Steven Bosscher <steven@gcc.gnu.org>
10483 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
10484 REG_EQUAL/REG_EQUIV notes.
10486 2009-06-14 Richard Guenther <rguenther@suse.de>
10488 PR middle-end/40389
10489 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
10490 has its address taken if NRV was applied and it is addressable.
10491 * tree-ssa-structalias.c (get_constraint_for_address_of): New
10492 function split out from ...
10493 (get_constraint_for_1): ... here.
10494 (handle_rhs_call): Use it to mark the return slot escaped if
10495 it is addressable and NRV was applied.
10497 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
10499 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
10500 Change first argument type to location_t.
10501 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
10502 Do not set input_location.
10503 Use loc instead of input_location throughout.
10505 2009-06-13 Richard Guenther <rguenther@suse.de>
10507 PR tree-optimization/40421
10508 * tree-predcom.c (should_unroll_loop_p): Remove.
10509 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
10511 2009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
10513 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10514 Add location argument.
10516 2009-06-13 Aldy Hernandez <aldyh@redhat.com>
10518 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
10520 * config/s390/s390.c (s390_build_builtin_va_list): Same.
10521 (s390_gimplify_va_arg): Pass location to create_artificial_label.
10522 * config/spu/spu-protos.h: Add location to
10523 spu_resolve_overloaded_builtin.
10524 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
10525 spu_build_builtin_va_list.
10526 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
10527 argument. Pass location to build_function_call_vec.
10528 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
10530 (emit_fpu_switch): Same.
10531 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
10532 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
10533 to build_decl and create_artificial_label.
10534 (xtensa_gimplify_va_arg_expr): Same.
10535 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
10536 (xstormy16_gimplify_va_arg_expr): Same.
10537 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
10538 * config/arm/arm.c (arm_build_builtin_va_list): Same.
10539 * config/mips/mips.c (mips_build_builtin_va_list): Same.
10540 (mips16_build_function_stub): Same.
10541 (mips16_build_call_stub): Same.
10543 2009-06-13 Richard Earnshaw <rearnsha@arm.com>
10546 * arm/constraints.md (Pa, Pb): New constraints.
10547 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
10548 split pattern to deal with them.
10550 2009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
10552 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
10553 fix index entry for -Xpreprocessor.
10555 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
10557 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10558 Add location argument to build_decl call.
10559 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
10560 (rs6000_init_builtins): Same.
10561 (spe_init_builtins): Same.
10562 (rs6000_gimplify_va_arg): Add location argument to
10563 create_artificial_label call.
10565 2009-06-12 Steven Bosscher <steven@gcc.gnu.org>
10567 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
10568 * combine-stack-adj.c (pass_stack_adjustments): Use it.
10569 * Makefile.in: Fix GGC dependency for gcse.o.
10571 2009-06-12 Aldy Hernandez <aldyh@redhat.com>
10573 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
10574 * gimple-pretty-print.c (dump_gimple_stmt): Same.
10575 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
10577 * c-parser.c (c_parser_binary_expression): Use current column while
10578 building binary operations.
10579 * common.opt (fshow-column): Enable by default.
10580 * tree-vrp.c (check_array_ref): Use warning_at.
10581 (check_array_bounds): Use location from call back if expr has no
10583 * tree.h: Add location argument to maybe_fold_*.
10584 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
10585 (maybe_fold_offset_to_array_ref): Add location argument and use it.
10586 (maybe_fold_offset_to_component_ref): Same.
10587 (maybe_fold_offset_to_reference): Same.
10588 (maybe_fold_offset_to_address): Same.
10589 (maybe_fold_stmt_indirect): Same.
10590 (maybe_fold_stmt_addition): Same.
10591 (fold_stmt_r): Pass location to maybe_fold_*.
10592 (fold_gimple_assign): Same.
10593 * c-tree.h: Add location argument to finish_decl,
10594 default_function_array_conversion, store_init_value.
10595 * c-decl.c (define_label): Use error_at.
10596 (c_make_fname_decl): Pass location to finish_decl.
10597 (finish_decl): New location argument.
10598 (build_compound_literal): Pass location to store_init_value.
10599 (grokdeclarator): Pass location to finish_decl.
10601 * c-typeck.c (array_to_pointer_conversion): New location argument.
10602 (function_to_pointer_conversion): Same.
10603 (default_function_array_conversion): Same.
10604 (parser_build_unary_op): Pass location to overflow_warning.
10605 (parser_build_binary_op): Same. Use warning_at.
10606 (build_unary_op): Pass location to array_to_pointer_conversion.
10607 (build_c_cast): Pass location to digest_init.
10608 (build_modify_expr): New location argument.
10609 (convert_for_assignment): Same.
10610 (store_init_value): Same.
10611 (digest_init): Same.
10612 (output_init_element): Pass location to digest_init and
10613 array_to_pointer_conversion.
10614 (c_finish_return): Pass location to convert_for_assignment.
10615 * gimplify.c (gimplify_conversion): Pass location to
10616 maybe_fold_offset_to_address.
10617 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
10618 to maybe_fold_stmt_addition.
10619 * c-omp.c (c_finish_omp_atomic): Pass new location to
10621 (c_finish_omp_for): Same.
10622 * c-common.c (overflow_warning): New argument.
10623 * c-common.h: New argument to build_modify_expr, overflow_warning.
10624 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
10626 (c_parser_initializer): Pass location to
10627 default_function_array_conversion.
10628 (c_parser_initelt): Same.
10629 (c_parser_initval): Same.
10630 (c_parser_asm_operands): Same.
10631 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
10632 (c_parser_conditional_expression): Same.
10633 (c_parser_binary_expression): Add location info to stack. Use it.
10634 (c_parser_unary_expression): Pass location to
10635 default_function_array_conversion, parser_build_unary_op,
10636 build_indirect_ref, c_parser_postfix_expression_after_primary.
10637 (c_parser_postfix_expression_after_primary): New location argument.
10639 (c_parser_expression_conv): Pass location to
10640 default_function_array_conversion.
10641 (c_parser_expr_list): Same.
10642 (c_parser_omp_atomic): Same.
10643 (c_parser_omp_for_loop): Same.
10644 * c-tree.h: (struct c_declarator): Add comment to id_loc.
10645 (build_array_declarator): New argument.
10646 * c-decl.c (build_array_declarator): Add location argument.
10647 (grokdeclarator): Set id_loc for cdk_array.
10648 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
10649 build_array_declarator.
10650 * tree.c (build_omp_clause): Add location argument.
10651 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
10652 (OMP_CLAUSE_LOCATION): New macro.
10653 (struct tree_omp_clause): Add location field.
10654 (build_omp_clause): Add argument.
10655 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
10656 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
10658 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
10659 (cp_parser_omp_clause_collapse): Same.
10660 (cp_parser_omp_clause_default): Same.
10661 (cp_parser_omp_clause_if): Same.
10662 (cp_parser_omp_clause_nowait): Same.
10663 (cp_parser_omp_clause_num_threads): Same.
10664 (cp_parser_omp_clause_ordered): Same.
10665 (cp_parser_omp_clause_schedule): Same.
10666 (cp_parser_omp_clause_untied): Same.
10667 (cp_parser_omp_for_loop): Same.
10668 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
10669 * c-tree.h (c_start_case): Add location argument.
10670 (c_process_expr_stmt): Same.
10671 (c_finish_goto_*): Same.
10672 * tree-parloops.c (initialize_reductions): Pass location to
10674 (create_parallel_loop): Same.
10675 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
10676 (gfc_trans_omp_reduction_list): Same.
10677 (gfc_trans_omp_clauses): Same.
10678 (gfc_trans_omp_do): Same.
10679 * c-typeck.c (c_finish_goto_label): Same.
10680 (c_finish_goto_ptr): New location argument.
10681 (c_start_case): Same.
10682 (emit_side_effect_warnings): Same.
10683 (c_process_expr_stmt): Same.
10684 (c_finish_stmt_expr): Same.
10685 (c_finish_omp_clauses): Use error_at instead of error.
10686 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
10688 * c-omp.c (c_split_parallel_clauses): New location argument.
10689 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
10690 to build_omp_clause.
10691 (convert_local_reference_stmt): Same.
10692 (convert_gimple_call): Same.
10693 * c-common.h (c_split_parallel_clauses): New argument.
10694 * c-parser.c (c_parser_statement_after_labels): Pass location to
10695 c_finish_goto_label.
10696 (c_parser_switch_statement): Pass location to c_start_case.
10697 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
10698 and c_process_expr_stmt.
10699 (c_parser_omp_variable_list): Add location argument.
10700 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
10701 (c_parser_omp_clause_default): Same.
10702 (c_parser_omp_clause_if): Same.
10703 (c_parser_omp_clause_num_threads): Same.
10704 (-c_parser_omp_clause_ordered): Same.
10705 (c_parser_omp_clause_reduction): Pass location to
10706 c_parser_omp_variable_list.
10707 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
10708 (c_parser_omp_clause_untied): Same.
10709 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
10710 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
10712 * c-tree.h (check_for_loop_decls, undeclared_variable,
10713 build_component_ref, build_array_ref, build_external_ref,
10714 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
10715 build_conditional_expr, build_compound_expr, c_cast_expr,
10716 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
10717 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
10719 * c-semantics.c (build_stmt): Same.
10720 (build_case_label): Same.
10721 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
10722 (undeclared_variable): New argument.
10723 (make_label): Same.
10724 (lookup_label): Pass location on down.
10725 (define_label): Same.
10726 (finish_decl): Same.
10727 (build_compound_literal): Same.
10728 (finish_struct): Same.
10729 (finish_function): Do not set location here.
10730 (check_for_loop_decls): New argument.
10731 * tree.c (save_expr): Set location.
10732 (build_empty_stmt): New argument.
10733 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
10734 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
10735 * builtins.c (gimplify_va_arg_expr): Use locations.
10736 (expand_builtin_sync_operation): Same.
10737 * c-typeck.c (build_component_ref): New argument.
10738 (build_array_ref): Same.
10739 (build_external_ref): Same.
10740 (c_expr_sizeof_expr): Same.
10741 (c_expr_sizeof_type): Same.
10742 (parser_build_unary_op): Same.
10743 (build_conditional_expr): Same.
10744 (build_compound_expr): Pass location on down.
10745 (build_compound_expr): New argument.
10746 (build_c_cast): Same.
10747 (c_cast_expr): Same.
10748 (build_asm_expr): Same.
10749 (c_finish_return): Same.
10750 (c_process_expr_stmt): Pass location on down.
10751 (c_finish_stmt_expr): New argument.
10752 (push_clenaup): Same.
10753 (c_finish_omp_parallel): Same.
10754 (c_finish_omp_task): Same.
10755 * gimplify.c (gimplify_call_expr): Pass location on down.
10756 * c-omp.c (c_finish_omp_master): New argument.
10757 (c_finish_omp_critical): Same.
10758 (c_finish_omp_ordered): Same.
10759 (c_finish_omp_barrier): Same.
10760 (-c_finish_omp_taskwait): Same.
10761 (c_finish_omp_atomic): Same.
10762 (c_finish_omp_flush): Same.
10763 * tree-inline.c (copy_tree_body_r): Pass location on down.
10764 (inline_forbidden_p): Remove use of input_location.
10765 * c-gimplify.c (c_build_bind_expr): New argument.
10766 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
10767 (c_sizeof_or_alignof_type): New argument.
10768 (c_alignof_expr): Same.
10769 (build_va_arg): Same.
10770 (c_add_case_label): Same.
10771 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
10772 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
10773 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
10774 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
10775 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
10776 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
10778 * stub-objc.c (objc_build_selector_expr): Same.
10779 (objc_build_throw_stmt): Same.
10780 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
10781 (c_parser_initelt): Same.
10782 (c_parser_compound_statement): Same.
10783 (c_parser_compound_statement_nostart): Same.
10784 (c_parser_label): Same.
10785 (c_parser_statement_after_labels): Same.
10786 (c_parser_if_body): Same.
10787 (c_parser_else_body): Same.
10788 (c_parser_if_statement): Same.
10789 (c_parser_switch_statement): Same.
10790 (c_parser_while_statement): Same.
10791 (c_parser_do_statement): Same.
10792 (c_parser_for_statement): Same.
10793 (c_parser_asm_statement): Same.
10794 (c_parser_conditional_expression): Same.
10795 (c_parser_binary_expression): Same.
10796 (c_parser_cast_expression): Same.
10797 (c_parser_unary_expression): Same.
10798 (c_parser_sizeof_expression): Same.
10799 (c_parser_alignof_expression): Same.
10800 (c_parser_postfix_expression): Same.
10801 (c_parser_expression): Same.
10802 (c_parser_objc_receiver): Same.
10803 (c_parser_omp_variable_list): Same.
10804 (c_parser_omp_structured_block): Same.
10805 (c_parser_omp_atomic): New argument.
10806 (c_parser_omp_barrier): Same.
10807 (c_parser_omp_critical): Same.
10808 (c_parser_omp_flush): Pass location on down.
10809 (c_parser_omp_for_loop): New argument.
10810 (c_parser_omp_for): Same.
10811 (c_parser_omp_master): Same.
10812 (c_parser_omp_ordered): Same.
10813 (c_parser_omp_sections_scope): Same.
10814 (c_parser_omp_sections): Same.
10815 (c_parser_omp_parallel): Same.
10816 (c_parser_omp_single): Same.
10817 (c_parser_omp_task): Same.
10818 (c_parser_omp_taskwait): Pass location on down.
10819 (c_parser_omp_construct): Same.
10820 (c_parser_omp_threadprivate): Same.
10821 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
10822 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
10823 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
10824 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
10825 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
10826 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
10827 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
10828 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
10829 config/i386/i386.c, stmt.c:
10830 Add location argument to the following function definitions and/or
10831 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
10832 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
10833 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
10834 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
10835 do_case, c_finish_bc_stmt, build_compound_literal,
10836 build_function_call.
10837 * c-decl.c (build_compound_literal): Add location argument.
10838 Make all diagnostic calls use location.
10839 (start_struct): Same.
10840 (finish_struct): Same.
10841 (start_enum): Same.
10842 (build_enumerator): Same.
10843 (start_function): Same.
10844 (grokdeclarator): Make all diagnostic calls use location.
10845 (store_parm_decls_oldstyle): Same.
10846 * c-typeck.c (build_function_call): Add location argument.
10847 Make all diagnostic calls use location.
10849 (c_finish_bc_stmt): Same.
10850 * tree-nested.c (get_trampoline_type): Add argument.
10851 Pass location to build_decl.
10852 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
10853 * rtl.h (RTL_LOCATION): New.
10854 * c-common.c (c_add_case_label): Add location argument.
10855 Make all diagnostic calls use location.
10856 * c-common.h: Add location argument to make_fname_decl, do_case,
10857 c_add_case_label, build_function_call, resolve_overloaded_builtin.
10858 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
10859 Set it appropriately for every case. Pass enum_loc to start_enum
10860 call. Pass value_loc first to build_enumerator. Pass enum_loc to
10862 (c_parser_struct_or_union_specifier): Save location. Use it for
10863 start_struct, finish_struct, and parser_xref_tag.
10865 2009-06-12 Ian Lance Taylor <iant@google.com>
10867 * fold-const.c (fold_unary): Rename local variable and to and_expr.
10869 * c-opts.c (c_common_handle_option): For -Wc++-compat set
10870 cpp_opts->warn_cxx_operator_names.
10872 2009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
10875 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
10876 is returns NULL and OP is a VCE, look through the VCE.
10878 2009-06-12 Ian Lance Taylor <iant@google.com>
10881 * collect2.c (main): Use CONST_CAST2 in code inside #if
10882 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
10884 2009-06-12 Joey Ye <joey.ye@intel.com>
10886 PR middle-end/39146
10887 * cfgexpand.c (get_decl_align_unit): Update
10888 max_used_stack_slot_alignment with align instead of
10889 stack_alignment_needed.
10891 * function.c (assign_stack_local_1): Update
10892 max_used_stack_slot_alignment with alignment_in_bits instead
10893 of stack_alignment_needed.
10894 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
10897 2009-06-12 Jakub Jelinek <jakub@redhat.com>
10899 * dwarf2out.c (last_var_location_insn): New variable.
10900 (dwarf2out_end_epilogue): Clear last_var_location_insn.
10901 (dwarf2out_var_location): Don't record anything after last real
10902 insn. Only change labels if there were any real instructions
10903 in between last note and this one, or if changed sections.
10905 2009-06-11 Richard Henderson <rth@redhat.com>
10907 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
10908 note when storing the frame pointer in a register.
10909 (FRP): Don't redefine to nothing for epilogue.
10910 (alpha_expand_epilogue): Mark register and sp restores.
10911 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
10913 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
10914 when gen_lowpart is needed.
10916 2009-06-11 Richard Henderson <rth@redhat.com>
10918 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
10920 * dwarf2out.c (need_data_align_sf_opcode): New.
10921 (div_data_align): Move earlier.
10922 (def_cfa_1, reg_save): Use it.
10924 2009-06-11 H.J. Lu <hongjiu.lu@intel.com>
10926 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
10927 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
10928 (ix86_handle_option): Handle OPT_mcrc32.
10929 (ix86_target_string): Add -mcrc32.
10930 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
10932 * config/i386/i386.h (TARGET_CRC32): New.
10934 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
10935 (sse4_2_crc32di): Likewise.
10937 * config/i386/i386.opt (mcrc32): New.
10939 * doc/invoke.texi: Document -mcrc32.
10941 2009-06-11 Richard Henderson <rth@redhat.com>
10943 * common.opt (gdwarf-): Accept a version number.
10944 * doc/invoke.texi (gdwarf-): Update docs.
10945 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
10946 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
10947 version level, and record it.
10949 * dwarf2.h (DW_CIE_VERSION): Remove.
10950 * dwarf2out.c (DWARF_VERSION): Remove.
10951 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
10952 (output_call_frame_info): Use CIE version 3 for dwarf3,
10953 or if the return register column is out of range for version 1.
10954 (dwarf_stack_op_name): Add all dwarf3 values.
10955 (DEBUG_PUBTYPES_SECTION): New.
10956 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
10957 encoding change for dwarf3.
10958 (output_die) [dw_val_class_die_ref]: Likewise.
10959 (output_compilation_unit_header): Emit correct version for dwarf3.
10960 (output_line_info): Likewise.
10961 (output_pubnames): Update for DWARF_VERSION removal.
10962 (output_aranges): Likewise.
10963 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
10964 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
10965 (dwarf2out_finish): Likewise.
10967 2009-06-11 David Daney <ddaney@caviumnetworks.com>
10969 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
10972 2009-06-11 David Daney <ddaney@caviumnetworks.com>
10975 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
10976 * builtins.c (expand_builtin_unreachable): New function.
10977 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
10978 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
10979 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
10981 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
10982 searching for missing barriers.
10984 2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10986 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
10987 when -fprofile-generate* was passed.
10988 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
10990 2009-06-11 Anthony Green <green@moxielogic.com>
10992 * config/moxie/moxie.md: Define length attribute for all instructions.
10994 (*b<cond:code>): Support limited branch ranges for new PC-relative
10995 branch instructions.
10996 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
10998 2009-06-11 Jakub Jelinek <jakub@redhat.com>
11000 * config/i386/i386.c (min_insn_size): Use get_attr_length
11001 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
11002 For __asm return 0.
11004 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
11005 instead of emit_insn_before.
11007 2009-06-10 Ian Lance Taylor <iant@google.com>
11010 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
11013 2009-06-10 Revital Eres <eres@il.ibm.com>
11015 * passes.c (init_optimization_passes): Reschedule
11016 predictive-commoning pass before complete unroll pass.
11018 2009-06-10 Martin Jambor <mjambor@suse.cz>
11020 * cgraph.c (cgraph_node_can_be_local_p): New function.
11021 (cgraph_make_node_local): New function.
11022 * cgraph.h (cgraph_node_can_be_local_p): Declare.
11023 (cgraph_make_node_local): Declare.
11025 2009-06-10 Nathan Froyd <froydnj@codesourcery.com>
11027 * tree.h (tree_base): Add packed_flag and user_align fields.
11028 Decrease size of spare field.
11029 (TYPE_USER_ALIGN): Use user_align from tree_base.
11030 (DECL_USER_ALIGN): Likewise.
11031 (TYPE_PACKED): Use packed_flag from tree_base.
11032 (DECL_PACKED): Likewise.
11033 (tree_type): Delete packed_flag and user_align fields. Widen
11034 precision field. Widen mode field and shuffle fields to align
11035 mode on an 8-bit boundary.
11036 (tree_decl_common): Delete decl_flag_1 and user_align fields.
11037 Renumber decl_flag_* fields. Fix comments. Widen
11038 decl_common_unused field.
11039 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
11040 (DECL_EXTERNAL): Likewise.
11041 (DECL_BIT_FIELD): Likewise.
11042 (DECL_NONADDRESSABLE_P): Likewise.
11043 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
11044 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
11046 2009-06-10 Ian Lance Taylor <iant@google.com>
11048 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
11049 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
11050 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
11051 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
11052 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
11053 DEF_VEC_ALLOC_FUNC_P.
11054 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
11055 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
11056 DEF_VEC_ALLOC_FUNC_O.
11057 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
11058 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
11059 DEF_VEC_ALLOC_FUNC_I.
11060 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
11061 (vec_stack_p_reserve_exact_1): Declare.
11062 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
11063 (vec_stack_free): Declare.
11064 (VEC_stack_alloc): Define.
11065 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
11066 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
11067 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
11068 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
11070 (stack_vecs): New static variable.
11071 (vec_stack_p_reserve_exact_1): New function.
11072 (vec_stack_o_reserve_1): New static function.
11073 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
11074 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
11075 (vec_stack_free): New function.
11076 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
11077 (VEC_df_ref_stack_alloc): Define.
11078 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
11079 DEF_VEC_ALLOC_P_STACK.
11080 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
11081 (struct df_collection_rec): Change _vec fields to VEC. Remove
11083 (df_free_collection_rec): Adjust for new fields.
11084 (df_insn_rescan): Use new df_collection_rec fields.
11085 (df_notes_rescan, df_canonize_collection_rec): Likewise.
11086 (df_ref_create_structure, df_ref_record): Likewise.
11087 (df_get_conditional_uses, df_get_call_refs): Likewise.
11088 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
11089 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
11090 (df_record_exit_block_uses, df_bb_verify): Likewise.
11091 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
11092 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
11093 Remove count parameter. Change return type to void. Change all
11095 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
11096 Remove count parameter. Change return type to void. Change all
11098 (df_install_refs): Change old_vec parameter to VEC. Remove count
11099 parameter. Change all callers.
11100 (df_install_mws): Change old_vec parameter to VEC. Remove count
11101 parameter. Change all callers.
11102 (df_refs_verify): Change new_rec parameter to VEC. Change call
11104 (df_mws_verify): Likewise.
11106 2009-06-10 Alexandre Oliva <aoliva@redhat.com>
11108 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
11110 2009-06-10 H.J. Lu <hongjiu.lu@intel.com>
11112 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
11114 2009-06-10 Anthony Green <green@moxielogic.com>
11116 * config/moxie/crti.asm: New file.
11117 * config/moxie/crtn.asm: New file.
11118 * config/moxie/moxie.c: New file.
11119 * config/moxie/moxie.h: New file.
11120 * config/moxie/sfp-machine.h: New file.
11121 * config/moxie/moxie-protos.h: New file.
11122 * config/moxie/t-moxie: Created.
11123 * config/moxie/t-moxie-softfp: Created.
11124 * config/moxie/moxie.md: Created.
11125 * config/moxie/constraints.md: Created.
11126 * config.gcc: Add moxie support.
11127 * doc/md.texi (Machine Constraints): Add moxie constraints.
11128 * doc/contrib.texi (Contributors): Mention moxie port.
11129 * doc/install.texi (Specific): Mention the moxie port.
11131 2009-06-09 Ian Lance Taylor <iant@google.com>
11133 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
11134 compiling with C++.
11135 * optabs.c (optab_table): Only use designated initializers if
11136 HAVE_DESIGNATED_INITIALIZERS is defined.
11137 (convert_optab_table): Likewise.
11138 (init_optabs): Always call init_insn_codes if
11139 HAVE_DESIGNATED_INITIALIZERS is not defined.
11141 2009-06-09 Ian Lance Taylor <iant@google.com>
11143 * targhooks.c (default_builtin_vectorized_function): Change fn
11144 parameter to unsigned int.
11145 (default_builtin_vectorized_conversion): Change code parameter to
11147 (default_builtin_reciprocal): Change fn parameter to unsigned int.
11148 * targhooks.h: Update declarations.
11149 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
11150 parameter to unsigned int.
11152 * c-typeck.c (comptypes_check_enum_int): New static function.
11153 (comptypes_internal): Add enum_and_int_p parameter. Change all
11155 (comp_target_types): Add location parameter. Change all callers.
11156 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
11157 Change all callers.
11158 (function_types_compatible_p, type_lists_compatible_p): Likewise.
11159 (build_conditional_expr): Add colon_loc parameter. Change all
11161 (convert_for_assignment): Add location parameter. Change all callers.
11162 * c-parser.c (c_parser_conditional_expression): Pass location of
11163 colon to build_conditional_expr.
11164 * c-tree.h (build_conditional_expr): Update declaration.
11166 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
11168 * graphite.c: Revert previous patch.
11170 2009-06-09 Sebastian Pop <sebastian.pop@amd.com>
11173 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
11175 2009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
11177 * tree-ssa-loop-prefetch.c
11178 (loop_prefetch_arrays): Fixed a portability problem in printf format
11181 2009-06-09 Martin Jambor <mjambor@suse.cz>
11183 PR tree-optimization/40351
11184 * tree-sra.c (propagate_subacesses_accross_link): Check that a
11185 refrence to a potential artifical subaccess can be constructed.
11187 2009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11189 * config/sh/sh-protos.h (sh_optimization_options): Declare.
11190 (sh_override_options): Likewise.
11191 * config/sh/sh.c: Include params.h.
11192 (sh_optimization_options): New.
11193 (sh_override_options): Likewise.
11194 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
11195 (OVERRIDE_OPTIONS): Use sh_override_options.
11197 2009-06-08 Jakub Jelinek <jakub@redhat.com>
11199 * dwarf2out.c (emit_cfa_remember): New variable.
11200 (add_fde_cfi): If emit_cfa_remember, recurse to add
11201 DW_CFA_remember_state first.
11202 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
11203 instead just set emit_cfa_remember.
11205 2009-06-08 Jan Hubicka <jh@suse.cz>
11208 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
11210 2009-06-08 Jan Hubicka <jh@suse.cz>
11212 PR middle-end/39834
11213 * cgraphunit.c (save_inline_function_body): Do not copy transform
11214 hooks for saved inline bodies.
11215 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
11216 for given function.
11218 2009-06-08 Adam Nemet <anemet@caviumnetworks.com>
11220 * jump.c (returnjump_p): Handle delayed branches. Add missing
11223 2009-06-08 Jan Hubicka <jh@suse.cz>
11225 PR middle-end/40102
11226 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
11227 original node might've been modified.
11228 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
11230 2009-06-08 Jakub Jelinek <jakub@redhat.com>
11232 * tree-object-size.c (addr_object_size): Add OSI argument.
11233 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
11234 (compute_builtin_object_size, expr_object_size): Adjust callers.
11235 (plus_stmt_object_size): Call addr_object_size instead of
11236 compute_builtin_object_size.
11238 2009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
11239 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
11241 * tree-ssa-loop-prefetch.c
11242 (gather_memory_references): Introduced a counter for the number of
11244 (anything_to_prefetch_p): Introduced a counter for the number of
11246 (is_loop_prefetching_profitable): New function with a cost model
11248 (loop_prefetch_arrays): Use the new cost model to determine if
11249 prefetching is profitable.
11250 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
11251 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
11252 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
11253 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
11254 * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
11255 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
11257 2009-06-08 Michael Matz <matz@suse.de>
11260 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
11261 partitions use the same.
11262 (expand_one_var): Deal with DECL_RTL sometimes begin set also
11263 for basevars of SSA_NAMEs.
11264 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
11265 to not expand them twice.
11266 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
11269 2009-06-08 Alexandre Oliva <aoliva@redhat.com>
11271 * common.opt (fcompare-debug=, fcompare-debug-second): New.
11272 (fdump-final-insns=, gtoggle): New.
11273 * doc/invoke.texi: Document them.
11274 * final.c (rest_of_clean_state): Dump final insn stream.
11275 * gcc.c (invoke_as): Hook in -fcompare-debug.
11276 (static_spec_functions): Add compare-debug-dump-opt,
11277 compare-debug-self-opt and compare-debug-auxbase-opt.
11278 (compare_debug, compare_debug_second, compare_debug_opt): New.
11279 (switches_debug_check, n_switches_debug_check): New.
11280 (debug_auxbase_opt, debug_check_temp_file): New.
11281 (process_command): Handle -fno-compare-debug, -fcompare-debug and
11283 (do_self_spec): Handle arguments after switches.
11284 (do_spec_1): Add .gk extension to temp file basenames for compare.
11285 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
11286 (cc1_options): Use it instead of normal auxbase computation for
11287 the second compare-debug compilation.
11288 (compare_files): New.
11289 (main): Set up and implement compare debug mode.
11290 (compare_debug_dump_opt_spec_function): New.
11291 (compare_debug_self_opt_spec_function): New.
11292 (compare_debug_auxbase_opt_spec_function): New.
11293 * toplev.c (process_options): Handle flag_gtoggle,
11294 flag_dump_final_insns.
11295 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
11296 during -fcompare-debug-second compilation.
11298 2009-06-07 Ian Lance Taylor <iant@google.com>
11300 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
11301 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
11303 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
11304 with no default node. Change warning with %H to warning_at.
11305 Don't clear warn_switch around case checking.
11306 * doc/invoke.texi (Warning Options): Clarify distinction between
11307 -Wswitch and -Wswitch-enum.
11309 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11311 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
11313 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11315 * gbl-ctors.h: Add header guard.
11317 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11319 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
11320 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
11321 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
11322 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
11323 prototypes for removed functions.
11324 (expressions_equal_p): Move to ...
11325 * tree-ssa-sccvn.h: ... here and ...
11326 * matrix-reorg.c: ... adjust includes.
11328 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11330 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
11332 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11334 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
11335 (finish_function): Remove erroneous whitespace.
11337 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11339 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
11340 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
11342 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11344 * errors.c (internal_error): Commentary typo fix.
11345 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
11346 * tree-ssa-pre.c: Ditto.
11348 2009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11350 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
11351 them is supposed to hold actual statements.
11353 2009-06-06 Ian Lance Taylor <iant@google.com>
11355 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
11356 empty statements can now have attributes.
11358 2009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
11360 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
11361 * config/mips/mips.md: Ditto.
11363 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
11365 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
11367 (__eabi_uconvert): Likewise.
11369 2009-06-05 Nathan Froyd <froydnj@codesourcery.com>
11371 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
11372 CFI_* definitions with IN_GCC.
11374 2009-06-05 David Edelsohn <edelsohn@gnu.org>
11376 * xcoffout.h (xcoffout_source_line): Update prototype.
11378 2009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11380 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
11381 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
11383 2009-06-05 Jakub Jelinek <jakub@redhat.com>
11385 PR middle-end/40340
11386 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
11387 inlined_function_outer_scope_p blocks for artificial inlines
11389 * tree.c (tree_nonartificial_location): Rewrite using
11390 block_nonartificial_location.
11392 2009-06-05 Revital Eres <eres@il.ibm.com>
11393 Leehod Baruch <leehod@il.ibm.com>
11395 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
11396 (expand_expr_real_1): Remove comment.
11397 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11398 Vectorize misaligned access when the target supports it.
11399 (vect_supportable_dr_alignment): Check for unaligned access support.
11400 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
11403 2009-06-05 Julian Brown <julian@codesourcery.com>
11405 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
11406 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
11408 2009-06-05 Richard Guenther <rguenther@suse.de>
11411 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
11412 as possibly unused.
11414 2009-06-05 Jakub Jelinek <jakub@redhat.com>
11416 * config/s390/s390.c (global_not_special_regno_p): New static inline.
11417 (save_gprs): Don't tell unwinder when a global register is saved.
11418 (s390_emit_epilogue): Emit needed epilogue unwind info.
11420 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
11422 * dwarf2out.c (deferred_asm_name): New.
11423 (add_name_and_src_coords_attributes): Defer creation of
11424 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
11426 (move_linkage_attr): New.
11427 (dwarf2out_finish): Revisit deferrals and emit attributes at the
11430 2009-06-05 Alexandre Oliva <aoliva@redhat.com>
11432 * tree-nested.c (finalize_nesting_tree_1): Declare the
11433 frame_decl in the binding tree.
11435 2009-06-04 Cary Coutant <ccoutant@google.com>
11437 * basic-block.h (struct basic_block_def): Add discriminator field.
11438 * dbxout.c (dbxout_source_line): Add new parameter. Change all
11440 * debug.c (do_nothing_debug_hooks): Add additional entry.
11441 (debug_nothing_int_charstar_int): New function.
11442 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
11443 (debug_nothing_int_charstar_int): New declaration.
11444 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
11445 discriminator value in .loc directive.
11446 * final.c (last_discriminator): New variable.
11447 (discriminator): New variable.
11448 (final_start_function): Initialize above variables, pass current
11449 discriminator to debug hook.
11450 (notice_source_line): Check for discriminator change.
11451 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
11452 * sdbout.c (sdbout_source_line): New parameter.
11453 * tree-cfg.c (struct locus_discrim_map): New structure type.
11454 (discriminator_per_locus): New hash table.
11455 (build_gimple_cfg): Allocate and free discriminator hash table.
11456 (make_edges): Call assign_discriminator.
11457 (locus_map_hash): New function.
11458 (locus_map_eq): New function.
11459 (next_discriminator_for_locus): New function.
11460 (same_line_p): New function.
11461 (assign_discriminator): New function.
11462 (make_cond_expr_edges): Call assign_discriminator.
11463 (make_gimple_switch_edges): Likewise.
11464 (first_non_label_stmt): New function.
11465 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
11467 * xcoffout.c (xcoffout_source_line): Add new parameter.
11469 * configure.ac (gcc_cv_as_discriminator): New configury check for
11470 gas support for discriminator.
11471 * configure: Regenerate.
11472 * config.in: Regenerate.
11474 2009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11476 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
11477 val after checking for integers.
11479 2009-06-04 Uros Bizjak <ubizjak@gmail.com>
11481 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
11483 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
11484 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
11485 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
11486 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
11487 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
11488 X64_SSE_REGPARM_MAX.
11489 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
11490 X64_SSE_REGPARM_MAX.
11492 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
11494 * gcc.c (report_times_to_file): New.
11495 (execute): Implement it.
11496 (process_command): Support -time=.
11497 * doc/invoke.texi: Document it.
11499 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
11501 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
11502 that have value exprs.
11504 2009-06-04 Alexandre Oliva <aoliva@redhat.com>
11506 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
11507 declarations for constants until...
11508 (dw2_output_indirect_constant_1): ... this point.
11510 2009-06-04 Richard Earnshaw <rearnsha@arm.com>
11513 * arm.md (arm_addsi3): Don't try to split an add with an
11514 eliminable register until after reload has completed.
11516 2009-06-03 Ian Lance Taylor <iant@google.com>
11518 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
11519 * genattrtab.c (write_length_unit_log): Likewise.
11520 * genchecksum.c (dosum): Likewise.
11521 * gengtype.c (write_rtx_next): Likewise.
11522 (finish_root_table, write_roots): Likewise.
11523 * gimple.c (gimple_ops_offset_): Likewise.
11524 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
11525 * config/arc/arc.c (arc_attribute_table): Likewise.
11526 * config/arm/arm.c (arm_attribute_table): Likewise.
11527 * config/avr/avr.c (avr_attribute_table): Likewise.
11528 * config/crx/crx.c (crx_attribute_table): Likewise.
11529 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
11530 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
11531 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
11532 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
11533 * config/sh/sh.c (sh_attribute_table): Likewise.
11534 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
11535 * config/spu/spu.c (spu_attribute_table): Likewise.
11536 * config/v850/v850.c (v850_attribute_table): Likewise.
11538 * config/alpha/alpha.c (vms_attribute_table): Make static.
11539 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
11540 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
11541 * config/mips/mips.c (mips_attribute_table): Likewise.
11543 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
11545 (cc1-checksum.o): Likewise.
11547 2009-06-03 Steve Ellcey <sje@cup.hp.com>
11549 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
11551 2009-06-03 Jakub Jelinek <jakub@redhat.com>
11553 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
11554 insn if it is changing sp. Use gen_add3_insn instead of
11555 conditionally gen_addsi3 and gen_adddi3.
11556 (offset_below_red_zone_p): New static inline function.
11557 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
11558 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
11559 * config/rs6000/ppc-asm.h: Include auto-host.h.
11560 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
11561 CFI_RESTORE): Define.
11562 * config/rs6000/crtresxgpr.asm: Add unwind info.
11563 * config/rs6000/crtresxfpr.asm: Likewise.
11564 * config/rs6000/crtresgpr.asm: Likewise.
11565 * config/rs6000/crtresfpr.asm: Likewise.
11566 * config/rs6000/crtsavgpr.asm: Likewise.
11567 * config/rs6000/crtsavfpr.asm: Likewise.
11569 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
11570 argument of DWARF2_FRAME_REG_OUT macros.
11572 2009-06-03 Julian Brown <julian@codesourcery.com>
11574 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
11575 words or less (including TImode) in core registers.
11577 2009-06-03 Richard Guenther <rguenther@suse.de>
11579 PR middle-end/40328
11580 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
11582 2009-06-03 Andrey Belevantsev <abel@ispras.ru>
11584 * statistics.c (statistics_counter_event): Do not record event
11585 in pass dump if its number == -1.
11586 (curr_statistics_hash): Add assert that we never get passes
11587 with static number == -1.
11589 2009-06-03 Richard Guenther <rguenther@suse.de>
11590 Andrey Belevantsev <abel@ispras.ru>
11592 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
11593 non-BLKmode arrays addressable.
11595 2009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
11597 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
11598 * config/m68k/m68k.h: ... here.
11599 * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
11602 2009-06-03 Martin Jambor <mjambor@suse.cz>
11604 PR tree-optimization/40323
11605 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
11608 2009-06-03 Richard Guenther <rguenther@suse.de>
11610 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
11613 2009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
11615 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
11616 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
11617 JUMP_TABLE_DATA_P where applicable.
11618 * config/sh/sh.c: Ditto.
11619 * config/sh/sh.h: Ditto.
11620 * config/sh/sh.md: Ditto.
11621 * config/sh/symbian.c: Ditto.
11623 2009-06-03 Uros Bizjak <ubizjak@gmail.com>
11625 * config/i386/driver-i386.c (describe_cache): Optimize
11626 concatenation of strings. Use snprintf instead of sprintf.
11627 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
11628 target when not compiling with GCC.
11630 2009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
11632 * config/sh/sh.c: Revert last change.
11633 (sh_expand_epilogue): Emit a blockage insn before the frame
11634 pointer adjustment unconditionally.
11636 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11638 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
11639 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
11640 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
11641 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
11642 to COLLECT_GCC_OPTIONS.
11644 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11646 * collect2.c (target_system_root): New variable.
11647 (main): Handle --sysroot=.
11648 (ignore_library): Strip the sysroot from the library path.
11650 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11652 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
11653 (collect2.o): Depend on collect2-aix.h.
11654 (collect2-aix.o): New rule.
11655 * collect2-aix.h: New file.
11656 * collect2-aix.c: Likewise.
11657 * collect2.c: Include collect2-aix.h. Don't undefine
11658 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
11659 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
11660 Use TARGET_AIX_VERSION instead of _AIX51.
11661 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
11662 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
11663 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
11664 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
11665 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
11667 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11669 * collect2.c (ignore_library): Avoid premature post-increment
11670 and null deference.
11672 2009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
11674 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
11675 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
11676 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
11677 CROSS_DIRECTORY_STRUCTURE too.
11678 (LINK_LIBG_SPEC): Likewise.
11679 (LIB_SPEC): Add %R to sysroot paths.
11680 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
11681 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
11682 * config/rs6000/aix51.h: As for aix43.h.
11683 * config/rs6000/aix52.h: Likewise.
11684 * config/rs6000/aix53.h: Likewise.
11685 * config/rs6000/aix61.h: Likewise.
11686 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
11687 to the beginning of sysroot paths.
11689 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
11691 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
11692 INSN_LISTs that are out of the REG_NOTE range.
11694 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
11696 * loop-unroll.c (struct iv_to_split): Add pointer to next.
11697 (struct var_to_expand): Likewise.
11698 (struct opt_info): Add head and tail for linked lists of the above.
11699 (analyze_insn_to_expand_var): Initialize next.
11700 (analyze_iv_to_split_insn): Likewise.
11701 (analyze_insns_in_loop): Create linked lists.
11702 (allocate_basic_variable): Simplify for use without hash table.
11703 (insert_var_expansion_initialization): Likewise, make it type-safer.
11704 (combine_var_copies_in_loop_exit): Likewise.
11705 (apply_opt_in_copies): Walk lists rather than hash tables.
11706 (release_var_copies): Simplified and inlined by hand into...
11707 (free_opt_info): ... this function.
11709 2009-06-02 Richard Guenther <rguenther@suse.de>
11711 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
11714 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
11716 * cfgexpand.c (gimple_expand_cfg): Discard the source location
11717 only for builtins that are not overridden.
11719 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
11721 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
11724 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
11726 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
11728 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
11730 * combine.c (move_deaths): Compare LUIDs within the same BB only.
11732 2009-06-02 Alexandre Oliva <aoliva@redhat.com>
11734 * common.opt (fdump-unnumbered-links): New.
11735 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
11736 * print-rtl.c (flag_dump_unnumbered_links): New.
11737 (print_rtx): Test it.
11739 2009-06-02 Richard Earnshaw <rearnsha@arm.com>
11741 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
11742 push/pop multiple to 8-byte alignment.
11744 2009-06-01 Jakub Jelinek <jakub@redhat.com>
11746 * config/i386/i386.c (queued_cfa_restores): New static variable.
11747 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
11749 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
11750 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
11751 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
11752 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
11753 note unconditionally.
11754 (ix86_emit_restore_regs_using_mov): Likewise.
11755 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11756 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
11757 it through to ix86_emit_restore_reg_using_pop.
11758 (ix86_emit_leave): Add RED_OFFSET argument. Call
11759 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
11760 instead of adding REG_CFA_OFFSET note unconditionally.
11761 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
11762 the above functions. Call ix86_add_queued_cfa_restore_notes when
11765 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
11766 force output of the label even for dwarf2out_do_cfi_asm.
11767 (add_fde_cfi): If -g2 and above and cfi might change CFA,
11768 force creation of CFI label and chain DW_CFA_set_loc jumping to it
11769 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
11771 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
11772 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
11773 dwarf2out_cfi_label callers.
11774 * tree.h (dwarf2out_cfi_label): Adjust prototype.
11775 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
11776 Adjust dwarf2out_cfi_label callers.
11777 * config/vax/vax.c (vax_output_function_prologue): Likewise.
11779 * config/i386/i386.h (struct machine_cfa_state,
11780 struct machine_function): Guard with ifndef USED_FOR_TARGET
11781 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
11784 * emutls.c (__emutls_get_address): Change arr->size to mean number
11785 of allocated arr->data entries instead of # of slots + 1.
11787 PR middle-end/40316
11788 * recog.c (peep2_reinit_state): New function.
11789 (peephole2_init_state): Use it at the end of a basic block and also
11790 when seeing a RTX_FRAME_RELATED_P insn.
11792 2009-06-01 Steve Ellcey <sje@cup.hp.com>
11794 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
11795 fixuns_truncrfdi2): New.
11796 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
11797 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
11798 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
11799 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
11800 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
11801 *recip_approx): Remove.
11802 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
11803 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
11804 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
11806 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
11809 2009-06-01 Ian Lance Taylor <iant@google.com>
11811 * attribs.c (register_attribute): Use CONST_CAST.
11812 * collect2.c (main): Use CONST_CAST2.
11813 (scan_prog_file): Likewise.
11814 * gcc.c (process_command, main): Likewise.
11815 * toplev.c (toplev_main): Likewise.
11817 * c-typeck.c (handle_warn_cast_qual): New static function,
11818 partially broken out of build_c_cast.
11819 (build_c_cast): Call handle_warn_cast_qual.
11820 * doc/invoke.texi (Warning Options): Document new effect of
11823 2009-06-01 Aldy Hernandez <aldyh@redhat.com>
11825 * diagnostic.c (diagnostic_build_prefix): Always print columns.
11826 (diagnostic_report_current_module): Print columns.
11827 * common.opt (flag_show_column): Enable by default.
11829 2009-06-01 Luis Machado <luisgpm@br.ibm.com>
11831 * alias.c (find_base_term): Check for NULL term before returning.
11833 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
11835 Revert due to PR40320:
11836 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
11837 * calls.c (emit_library_call_value_1): Don't force_operand for move
11840 2009-06-01 Olivier Hainque <hainque@adacore.com>
11841 Eric Botcazou <ebotcazou@adacore.com>
11843 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
11844 to be processed as a bitfield for constructor output purposes.
11845 * output.h (initializer_constant_valid_for_bitfield_p): Declare
11847 * varasm.c (oc_local_state): New type, output_constructor
11848 local state to support communication with helpers.
11849 (oc_outer_state): New type, output_constructor outer state of
11850 relevance in recursive calls.
11851 (output_constructor_array_range): New output_constructor helper,
11852 extracted code for an array range element.
11853 (output_constructor_regular_field): New output_constructor helper,
11854 extracted code for an element that is not a bitfield.
11855 (output_constructor_bitfield): New output_constructor helper,
11856 extracted code for a bitfield element. Accept an OUTER state
11857 argument for recursive processing. Recurse on record or array
11858 CONSTRUCTOR values, possibly past noop conversions.
11859 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
11860 VALUE is a valid constant-valued expression for use in a static
11861 bit-field initializer.
11862 (output_constructor): Rework to use helpers. Accept and honor an
11863 OUTER state argument for recursive calls. Return total size. Be
11864 prepared for nested constructors initializing bitfields.
11865 (output_constant): Feed OUTER in calls to output_constructor.
11867 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
11869 * calls.c (emit_library_call_value_1): Don't force_operand for move
11872 2009-06-01 Nick Clifton <nickc@redhat.com>
11874 * doc/invoke.texi (IA-64 Options): Fix typo.
11876 2009-06-01 Ira Rosen <irar@il.ibm.com>
11878 PR tree-optimization/39129
11879 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
11881 (vect_do_peeling_for_loop_bound): Use
11882 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
11883 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
11884 (vect_loop_versioning): Likewise.
11885 (vect_create_cond_for_alias_checks): Fix indentation.
11886 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
11888 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
11889 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
11890 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
11891 "control flow in loop".
11892 (vect_estimate_min_profitable_iters): Use
11893 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
11894 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
11895 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
11896 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
11897 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
11898 statement belongs to a group of strided accesses with the exact code
11900 (vectorizable_load): Likewise.
11901 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
11902 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
11904 2009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
11906 * config/freebsd-stdint.h: New file.
11907 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
11908 Add freebsd-stdint.h to tm_file.
11910 2009-06-01 Richard Earnshaw <rearnsha@arm.com>
11912 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
11913 (thumb2_extendhidi2): Likewise.
11915 2009-05-31 Ian Lance Taylor <iant@google.com>
11917 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
11919 2009-05-31 Ian Lance Taylor <iant@google.com>
11921 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
11922 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
11923 (ipa-reference.o): Depend upon gt-ipa-reference.h.
11925 2009-05-31 Jason Merrill <jason@redhat.com>
11927 * tree-pretty-print.c (print_call_name): Take the callee, not the
11928 call itself. Make non-static. Use dump_function_name for functions.
11929 (dump_generic_node): Adjust.
11930 * diagnostic.h: Declare print_call_name.
11931 * gimple-pretty-print.c (dump_gimple_call): Use it.
11933 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
11935 * config/sh/sh.md (ashldi3_std): New define_expand.
11938 2009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
11941 * config/sh/sh.c: Include debug.h.
11942 (sh_expand_epilogue): Emit a blockage insn before the frame
11943 pointer adjustment also when dwarf2out_do_frame returns true.
11945 2009-05-31 Richard Earnshaw <rearnsha@arm.com>
11947 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
11948 (thumb2_extendqidi2): New pattern.
11950 2009-05-31 Ira Rosen <irar@il.ibm.com>
11952 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
11953 mark phis for renaming.
11954 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
11955 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
11956 Call mark_sym_for_renaming.
11957 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
11958 * tree-vect-loop.c (vect_transform_loop): Remove
11959 vect_memsyms_to_rename initialization and a call to
11960 mark_set_for_renaming.
11962 2009-05-31 Jakub Jelinek <jakub@redhat.com>
11964 PR middle-end/40304
11965 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
11966 frame related even if !set_cfa && style < 0.
11968 2009-05-30 Kai Tietz <kai.tietz@onevision.com>
11970 * config/i386/mingw-tls.c: New file.
11971 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
11972 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
11973 defining _WIN32 but not __CYGWIN__.
11975 2009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11977 * configure.ac: Add MPC support.
11979 * config.in, configure: Regenerate.
11981 2009-05-29 Richard Henderson <rth@redhat.com>
11983 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
11984 NOTE_INSN_BASIC_BLOCK.
11985 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
11986 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
11987 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
11989 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
11991 (add_cfi): Disable check redefining cfa away from drap.
11992 (lookup_cfa_1): Add remember argument; handle remember/restore.
11993 (lookup_cfa): Pass remember argument.
11994 (cfa_remember): New.
11995 (compute_barrier_args_size_1): Remove sibcall check.
11996 (dwarf2out_frame_debug_def_cfa): New.
11997 (dwarf2out_frame_debug_adjust_cfa): New.
11998 (dwarf2out_frame_debug_cfa_offset): New.
11999 (dwarf2out_frame_debug_cfa_register): New.
12000 (dwarf2out_frame_debug_cfa_restore): New.
12001 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
12002 (dwarf2out_begin_epilogue): New.
12003 (dwarf2out_frame_debug_restore_state): New.
12004 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
12005 DW_CFA_restore_state.
12006 (output_cfi_directive): Likewise.
12007 (convert_cfa_to_fb_loc_list): Likewise.
12008 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
12009 * dwarf2out.h: Update.
12010 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
12011 (copy_insn_1): Early out for null.
12012 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
12013 and dwarf2out_frame_debug_restore_state.
12014 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
12015 (prologue_insn_hash, epilogue_insn_hash): New.
12016 (free_after_compilation): Adjust freeing accordingly.
12017 (record_insns): Create hash table if needed; push insns into
12018 hash instead of array.
12019 (maybe_copy_epilogue_insn): New.
12020 (contains): Search hash table instead of array.
12021 (sibcall_epilogue_contains): Remove.
12022 (thread_prologue_and_epilogue_insns): Split eh_return insns
12023 and mark them as epilogues.
12024 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
12025 scanning in terms of basic blocks.
12026 * insn-notes.def (CFA_RESTORE_STATE): New.
12027 * jump.c (returnjump_p_1): Accept EH_RETURN.
12028 (eh_returnjump_p_1, eh_returnjump_p): New.
12029 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
12030 CFA_REGISTER, CFA_RESTORE): New.
12031 * rtl.def (EH_RETURN): New.
12032 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
12034 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
12035 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
12037 * config/i386/i386.c (gen_push): Update cfa state.
12038 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
12039 add a CFA_ADJUST_CFA note.
12040 (ix86_dwarf_handle_frame_unspec): Remove.
12041 (ix86_expand_prologue): Update cfa state.
12042 (ix86_emit_restore_reg_using_pop): New.
12043 (ix86_emit_restore_regs_using_pop): New.
12044 (ix86_emit_leave): New.
12045 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
12046 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
12047 * config/i386/i386.h (struct machine_cfa_state): New.
12048 (ix86_cfa_state): New.
12049 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
12050 (eh_return_internal): Merge from eh_return_<mode>,
12051 use eh_return rtx, split w/ epilogue.
12053 2009-05-29 Ian Lance Taylor <iant@google.com>
12055 * builtins.c (validate_gimple_arglist): Don't use va_arg with
12057 * calls.c (emit_library_call_value_1): Likewise.
12059 * c-typeck.c (c_build_va_arg): New function.
12060 * c-tree.h (c_build_va_arg): Declare.
12061 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
12062 instead of build_va_arg.
12064 2009-05-29 Eric Botcazou <ebotcazou@adacore.com>
12066 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
12067 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
12068 (ptr_difference_cost): Use affine combinations to compute it.
12069 (difference_cost): Likewise.
12070 (get_computation_cost_at): Compute more accurate cost for addresses
12071 if the ratio is a multiplier allowed in addresses.
12072 For non-addresses, consider that an additional offset or symbol is
12075 2009-05-29 Jakub Jelinek <jakub@redhat.com>
12077 * config/i386/i386.c (ix86_decompose_address): Avoid useless
12078 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
12080 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
12081 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
12082 (prefix_rex): For UNIT_MMX don't imply the prefix by default
12084 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
12085 to 1 for TYPE_SSE{IADD1,CVT1}.
12086 (prefix_vex_imm8): Removed.
12087 (length_vex): Only pass 1 as second argument to
12088 ix86_attr_length_vex_default if prefix_extra is 0.
12089 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
12090 (length): For prefix vex computation use length_immediate
12091 attribute instead of prefix_vex_imm8.
12092 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
12093 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
12094 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
12095 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
12096 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
12097 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
12098 a space in between the operands.
12099 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
12100 if one operand is 0xff and the other one si, di, bp or sp.
12101 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
12102 other one si, di, bp or sp.
12103 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
12104 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
12105 type and mode attributes.
12106 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
12107 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
12108 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
12109 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
12110 prefix_data16 attribute iff MODE_DF.
12111 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
12112 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
12113 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
12114 constm128_operand in length_immediate computation.
12115 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
12116 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
12117 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
12118 length_immediate attribute to 1.
12119 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
12120 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
12121 for certain alternatives.
12122 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
12123 prefix_data16 attribute if MODE_V1DF.
12124 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
12125 length_immediate to 1.
12126 (set_got_rex64, set_rip_rex64): Remove length attribute, set
12127 length_address to 4, set mode attribute to MODE_DI.
12128 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
12129 (fxam<mode>2_i387): Set length attribute to 4.
12130 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
12131 *prefetch_3dnow_rex): Override length_address attribute.
12132 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
12134 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
12135 (constm128_operand): Removed.
12136 * config/i386/i386.c (memory_address_length): For
12137 disp && !index && !base in 64-bit mode account for SIB byte if
12138 print_operand_address can't optimize disp32 into disp32(%rip)
12139 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
12140 for fs: or gs: segment.
12141 (ix86_attr_length_immediate_default): When checking if shortform
12142 is possible, truncate immediate to the length of the non-shortened
12144 (ix86_attr_length_address_default): Ignore MEM_P operands
12146 (ix86_attr_length_vex_default): Only check for DImode on
12147 GENERAL_REG_P operands.
12148 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
12149 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
12150 (sse_cvttps2pi): Clear prefix_rep attribute.
12151 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
12153 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
12154 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
12155 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
12156 iff operand 2 is const_int_operand.
12157 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
12158 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
12159 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
12161 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
12163 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
12164 prefix_data16 attribute for movlpd and movhpd instructions.
12165 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
12166 length_immediate for shufpd instruction.
12167 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
12168 (avx_cmpp<avxmodesuffixf2c><mode>3,
12169 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
12170 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
12171 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
12172 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
12173 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
12174 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
12175 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
12176 prefix_data16 attribute for the first alternative to 1.
12177 (*avx_loadlps): Override length_immediate for the first alternative.
12178 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
12179 attributes for second alternative.
12180 (*vec_concatv2sf_sse4_1): Override length_immediate and
12181 prefix_data16 attributes for second alternative.
12182 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
12183 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
12184 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
12185 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
12186 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
12187 prefix_data16 and length_immediate to 1.
12188 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
12190 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
12191 prefix_extra attribute for variants that don't have 0f prefix alone.
12192 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
12193 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
12194 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
12195 *sse4_1_pextrd): Set length_immediate to 1.
12196 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
12197 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
12199 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
12200 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
12201 length_immediate to 1 for second alternative.
12202 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
12203 prefix_extra and length_immediate attributes for the first
12205 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
12207 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
12208 to 1 for the first and third alternative.
12209 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
12211 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
12213 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
12215 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
12216 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
12217 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
12218 *avx_psign<mode>3): Set prefix_extra attribute to 1.
12219 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
12220 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
12221 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
12222 ssse3_psign<mode>3): Override prefix_rex attribute.
12223 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
12224 (ssse3_palignrti): Override length_immediate to 1.
12225 (ssse3_palignrdi): Override length_immediate to 1, override
12226 prefix_rex attribute.
12227 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
12228 (sse4a_extrqi): Override length_immediate to 2.
12229 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
12230 (sse4a_insertq): Override prefix_data16 to 0.
12231 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
12232 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
12233 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
12234 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
12235 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
12236 and length_immediate to 1.
12237 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
12238 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
12239 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
12240 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
12241 and length_immediate to 1.
12242 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
12243 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
12244 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
12245 avx_ptest256): Override prefix_extra to 1.
12246 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
12247 Override prefix_data16 and length_immediate to 1.
12248 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
12249 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
12250 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
12251 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
12252 prefix_data16 to 0 and prefix_extra to 2.
12253 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
12254 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
12256 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
12257 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
12258 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
12259 and prefix_extra to 2.
12260 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
12261 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
12262 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
12263 avx_vpermilvar<mode>3,
12264 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
12265 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
12266 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
12267 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
12268 Override prefix_extra to 1.
12269 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
12270 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
12271 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
12272 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
12273 prefix_extra and length_immediate to 1.
12274 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
12276 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
12277 to 1 for the first alternative.
12278 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
12279 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
12281 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
12282 *movv2sf_internal_avx, *movv2sf_internal): Override
12283 prefix_rep attribute for certain alternatives.
12284 (*mov<mode>_internal): Override prefix_rep or prefix_data16
12285 attributes for certain alternatives.
12286 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
12287 attributes for certain alternatives.
12288 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
12289 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
12290 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
12291 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
12292 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
12293 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
12294 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
12295 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
12296 length_immediate to 1 if operand 2 is const_int_operand.
12297 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
12298 *vec_extractv2si_1): Set length_immediate attribute to 1.
12299 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
12300 using old 3DNOW insn rather than SSE/3DNOW_A.
12301 (mmx_emms, mmx_femms): Clear modrm attribute.
12303 2009-05-29 Martin Jambor <mjambor@suse.cz>
12305 * tree-sra.c: New implementation of SRA.
12307 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
12308 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
12309 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
12310 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
12311 (SRA_MAX_STRUCTURE_COUNT): Removed.
12312 (SRA_FIELD_STRUCTURE_RATIO): Removed.
12313 * doc/invoke.texi (sra-max-structure-size): Removed.
12314 (sra-field-structure-ratio): Removed.
12316 2009-05-29 Jakub Jelinek <jakub@redhat.com>
12318 PR middle-end/40291
12319 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
12322 2009-05-29 Andrey Belevantsev <abel@ispras.ru>
12324 PR rtl-optimization/40101
12325 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
12326 seqno. Adjust comment.
12327 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
12328 inserting bookkeeping before a jump, the jump is not scheduled.
12329 When no positive seqno found, provide a value. Add comment.
12331 2009-05-29 Richard Guenther <rguenther@suse.de>
12333 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
12334 short-cutting on the first component.
12336 2009-05-29 Jakub Jelinek <jakub@redhat.com>
12338 PR middle-end/39958
12339 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
12340 for trees other than decls/types.
12342 2009-05-29 Richard Guenther <rguenther@suse.de>
12344 * tree-ssa-operands.c (get_expr_operands): Do not handle
12345 INDIRECT_REFs in the handled-component case. Remove
12346 unused get_ref_base_and_extent case.
12347 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
12348 tree_low_cst and host_integerp where possible.
12349 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
12350 codes for equivalence.
12351 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
12353 2009-05-29 David Billinghurst <billingd@gcc.gnu.org>
12355 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
12356 to tmake_file for i[34567]86-*-cygwin*.
12358 2009-05-29 Jakub Jelinek <jakub@redhat.com>
12361 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
12362 (altivec_categorize_keyword, init_vector_keywords,
12363 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
12366 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
12368 * tree.c (handle_dll_attribute): Check if node is
12369 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
12371 2009-05-29 Richard Earnshaw <rearnsha@arm.com>
12373 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
12375 (thumb2_zero_extendqidi2): Likewise.
12377 2009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
12379 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
12380 instead of gen_movrt.
12381 * config/sh/sh.md (movrt): Remove.
12383 2009-05-28 Steve Ellcey <sje@cup.hp.com>
12385 * doc/invoke.texi (IA-64 Options):
12386 Add -msdata, -mfused-madd, -mno-inline-float-divide,
12387 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
12388 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
12389 -msched-prefer-non-control-spec-insns,
12390 -msched-stop-bits-after-every-cycle,
12391 -msched-count-spec-in-critical-path,
12392 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
12393 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
12394 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
12395 and -msched-spec-verbose.
12397 2009-05-28 Joseph Myers <joseph@codesourcery.com>
12399 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
12400 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
12402 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
12404 2009-05-28 Richard Guenther <rguenther@suse.de>
12406 * tree-ssa-alias.c (ao_ref_init): New function.
12407 (ao_ref_base): Likewise.
12408 (ao_ref_base_alias_set): Likewise.
12409 (ao_ref_alias_set): Likewise.
12410 (refs_may_alias_p_1): Change signature.
12411 (refs_may_alias_p): Adjust.
12412 (refs_anti_dependent_p): Likewise.
12413 (refs_output_dependent_p): Likewise.
12414 (call_may_clobber_ref_p_1): Change signature.
12415 (call_may_clobber_ref_p): Adjust.
12416 (stmt_may_clobber_ref_p_1): New function split out from ...
12417 (stmt_may_clobber_ref_p): ... here.
12418 (maybe_skip_until): Adjust signature.
12419 (get_continuation_for_phi): Likewise.
12420 (walk_non_aliased_vuses): Likewise.
12421 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
12422 (ao_ref_init): Declare.
12423 (ao_ref_base): Likewise.
12424 (ao_ref_alias_set): Likewise.
12425 (stmt_may_clobber_ref_p_1): Likewise.
12426 (walk_non_aliased_vuses): Adjust.
12427 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
12428 (get_ref_from_reference_ops): remove.
12429 (vn_reference_lookup_2): Adjust signature.
12430 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
12431 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
12432 (vn_reference_lookup): Adjust.
12433 (vn_reference_insert): Likewise.
12434 (vn_reference_insert_pieces): Adjust signature.
12435 (visit_reference_op_call): Adjust.
12436 * tree-ssa-pre.c (get_expr_type): Simplify.
12437 (phi_translate_1): Adjust.
12438 (compute_avail): Likewise.
12439 (translate_vuse_through_block): Do not re-build trees.
12440 (value_dies_in_block_x): Likewise.
12441 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
12443 (vn_reference_lookup_pieces): Adjust declaration.
12444 (vn_reference_insert_pieces): Likewise.
12446 2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
12448 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
12449 with checking disabled.
12451 2009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
12455 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
12456 macro definition for support of three-operand format aligned
12457 .comm directive in assembler on cygwin/pe/mingw target OS.
12458 * configure: Regenerate.
12459 * config.h: Regenerate.
12461 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
12462 aligned form of .comm directive if -mpe-aligned-commons is in effect.
12463 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
12465 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
12466 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
12468 2009-05-28 Ira Rosen <irar@il.ibm.com>
12470 PR tree-optimization/40254
12471 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
12472 in analysis of basic blocks.
12474 2009-05-28 Adam Nemet <anemet@caviumnetworks.com>
12476 PR middle-end/33699
12477 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
12478 * target-def.h (TARGET_CONST_ANCHOR): New macro.
12479 (TARGET_INITIALIZER): Use it.
12480 * cse.c (CHEAPER): Move it up to the other macros.
12481 (insert): Rename this ...
12482 (insert_with_costs): ... to this. Add cost parameters. Update
12484 (insert): New function. Call insert_with_costs.
12485 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
12486 find_reg_offset_for_const, try_const_anchors): New functions.
12487 (cse_insn): Call try_const_anchors. Adjust cost of src_related
12488 when using a const-anchor. Call insert_const_anchors.
12489 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
12490 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
12492 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
12494 * tree-inline.c (remap_decls): Enable nonlocalized variables
12495 when not optimizing.
12497 2009-05-28 Alexandre Oliva <aoliva@redhat.com>
12499 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
12500 Simplify other tests involving optimize.
12502 2009-05-27 Tom Tromey <tromey@redhat.com>
12504 * unwind-dw2.c (_Unwind_DebugHook): New function.
12505 (uw_install_context): Call _Unwind_DebugHook.
12507 2009-05-27 Tom Tromey <tromey@redhat.com>
12509 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
12511 2009-05-27 Ian Lance Taylor <iant@google.com>
12513 * Makefile.in (LINKER, LINKER_FLAGS): Define.
12514 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
12515 (ALL_LINKERFLAGS): Define.
12516 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
12517 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
12518 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
12519 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
12520 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
12521 $(LINKER_FOR_BUILD).
12522 (build/gcov-iov$(build_exeext)): Likewise.
12524 2009-05-27 Julian Brown <julian@codesourcery.com>
12526 * gcse.c (target.h): Include.
12527 (can_assign_to_reg_without_clobbers_p): Check that the target allows
12528 copy of argument to a pseudo register.
12530 2009-05-27 Diego Novillo <dnovillo@google.com>
12532 * tree-ssa-live.c (dump_scope_block): Document arguments.
12533 (dump_scope_blocks): Document.
12534 (debug_scope_blocks): New.
12535 * tree-flow.h (debug_scope_blocks): Declare.
12537 2009-05-21 Denis Chertykov <denisc@overta.ru>
12539 * doc/contrib.texi (Contributors): Add myself to the list.
12541 2009-05-27 Olivier Hainque <hainque@adacore.com>
12543 * expr.c (target_align): New function. Alignment the TARGET of an
12544 assignment may be assume to have.
12545 (highest_pow2_factor_for_target): Use it instead of relying on
12546 immediate tree attributes of TARGET, not necessarily honored when
12547 intermediate bitfields are involved.
12549 2009-05-27 H.J. Lu <hongjiu.lu@intel.com>
12552 * config/i386/driver-i386.c (host_detect_local_cpu): Support
12553 AVX, SSE4, AES, PCLMUL and POPCNT.
12555 2009-05-27 Diego Novillo <dnovillo@google.com>
12557 * tree-pretty-print.c (dump_location): New.
12558 (dump_generic_node): Call it.
12559 Factor code to handle BLOCK nodes ...
12560 (dump_block_node): ... here.
12562 2009-05-27 Rafael Avila de Espindola <espindola@google.com>
12564 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
12566 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
12568 * gcc-plugin.h: Include config.h and system.h.
12569 (IN_GCC): Define if not defined.
12571 2009-05-27 Hans-Peter Nilsson <hp@axis.com>
12573 PR middle-end/40249
12574 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
12577 2009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
12579 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
12581 * config/m32r/m32r.h: Ditto.
12582 * config/m32r/m32r.md: Ditto.
12583 * config/m32r/predicates.md: Ditto.
12585 2009-05-27 Alexandre Oliva <aoliva@redhat.com>
12587 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
12589 2009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
12592 (Loading plugins): typo.
12593 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
12594 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
12595 (Interacting with the GCC Garbage Collector): Added new section.
12596 (Giving information about a plugin): Added new section for
12598 * ggc.h (ggc_register_root_tab): Added declaration.
12599 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
12600 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
12601 (register_callback): Improved comment in declaration.
12602 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
12603 (extra_root_vec) Added static variable for dynamic roots registration.
12604 (ggc_register_root_tab) Added new routine.
12605 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
12606 PLUGIN_GGC_MARKING event.
12607 * ggc-zone.c: Include plugin.h.
12608 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
12609 * ggc-page.c: Include plugin.h.
12610 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
12611 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
12612 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
12613 (register_callback): check lack of callbacks for
12614 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
12615 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
12616 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
12617 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
12618 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
12619 dependency on plugin.h.
12620 (plugin.o): Added dependency on ggc.h...
12622 2009-05-26 Richard Guenther <rguenther@suse.de>
12624 PR middle-end/40248
12626 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
12627 with mismatched comparison modes.
12629 * expr.c (expand_expr_real_1): Expand the operand of a
12630 VIEW_CONVERT_EXPR in its natural mode.
12632 2009-05-26 Ian Lance Taylor <iant@google.com>
12634 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
12635 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
12636 (ALL_COMPILERFLAGS): Define.
12637 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
12638 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
12639 (collect2$(exeext), collect2.o): Likewise.
12640 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
12641 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
12642 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
12643 (libbackend.o, intl.o, cppdefault.o): Likewise.
12644 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
12645 (build/%.o): Use $(COMPILER_FOR_BUILD).
12646 (build/gen%$(build_exeext)): Likewise.
12647 (build/gcov-iov$(build_exeext)): LIkewise.
12648 * config/t-darwin (darwin.o): Use $(COMPILER).
12649 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
12650 * config/t-sol2 (sol2-c.o): Likewise.
12651 (sol2.o): Likewise.
12652 * config/t-vxworks (vxworks.o): Likewise.
12653 * config/x-darwin (host-darwin.o): Likewise.
12654 * config/x-hpux (host-hpux.o): Likewise.
12655 * config/x-linux (host-linux.o): Likewise.
12656 * config/x-solaris (host-solaris.o): Likewise.
12657 * config/alpha/x-alpha (driver-alpha.o): Likewise.
12658 * config/arm/t-arm (arm-c.o): Likewise.
12659 * config/arm/t-pe (pe.o): Likewise.
12660 * config/arm/t-wince-pe (pe.o): Likewise.
12661 * config/i386/t-cygming (winnt.o): Likewise.
12662 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
12663 * config/i386/t-cygwin (cygwin1.o): Likewise.
12664 (cygwin2.o): Likewise.
12665 * config/i386/t-i386 (i386-c.o): Likewise.
12666 * config/i386/t-interix (winnt.o): Likewise.
12667 * config/i386/t-netware (netware.o): Likewise.
12668 * config/i386/t-nwld (nwld.o): Likewise.
12669 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
12670 * config/i386/x-i386 (driver-i386.o): Likewise.
12671 * config/i386/x-cygwin (host-cygwin.o): Likewise.
12672 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
12673 * config/ia64/t-ia64 (ia64-c.o): Likewise.
12674 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
12675 * config/mips/x-native (driver-native.o): Likewise.
12676 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
12677 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
12678 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
12679 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
12680 * config/score/t-score-elf (score7.o): Likewise.
12681 (score3.o): Likewise.
12682 * config/sh/t-sh (sh-c.o): Likewise.
12683 * config/sh/t-symbian (sh-c.o): Likewise.
12684 (symbian.o): Likewise.
12685 * config/spu/t-spu-elf (spu-c.o): Likewise.
12686 * config/v850/t-v850 (v850-c.o): Likewise.
12687 * config/v850/t-v850e (v850-c.o): Likewise.
12689 2009-05-26 Richard Guenther <rguenther@suse.de>
12691 PR tree-optimization/40122
12692 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
12693 VECTOR_CSTs if possible.
12694 (fold_gimple_assign): Likewise.
12696 2009-05-26 Richard Guenther <rguenther@suse.de>
12698 PR middle-end/40252
12699 * fold-const.c (fold_binary): Use the correct types for building
12702 2009-05-26 Richard Guenther <rguenther@suse.de>
12704 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
12705 redundant calls to merge_alias_info.
12706 (bump_vector_ptr): Likewise.
12707 * tree-ssa-copy.c (merge_alias_info): Remove.
12708 (replace_exp_1): Remove call to merge_alias_info.
12709 (propagate_tree_value): Likewise.
12710 (fini_copy_prop): Propagate points-to info.
12711 * tree-flow.h (merge_alias_info): Remove.
12713 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
12715 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
12717 2009-05-25 Jan Hubicka <jh@suse.cz>
12719 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
12720 * cgraph.h (struct inline_summary): New filed self_wize,
12721 size_inlining_benefit, self_time and time_inlining_benefit.
12722 (struct cgraph_global_info): Replace insns by time ans size fields.
12723 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
12724 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
12725 (ipcp_update_callgraph): Do not touch function bodies.
12726 * ipa-inline.c: Include except.h
12727 (MAX_TIME): New constant.
12728 (overall_insns): Remove.
12729 (leaf_node_p): New.
12730 (overall_size, max_benefit): New static variables.
12731 (cgraph_estimate_time_after_inlining): New function.
12732 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
12733 (cgraph_clone_inlined_nodes): Update size.
12734 (cgraph_mark_inline_edge): Update size.
12735 (cgraph_estimate_growth): Use size info.
12736 (cgraph_check_inline_limits): Check size.
12737 (cgraph_default_inline_p): Likewise.
12738 (cgraph_edge_badness): Compute badness based on benefit and size cost.
12739 (cgraph_decide_recursive_inlining): Check size.
12740 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
12742 (cgraph_decide_inlining): Likewise.
12743 (cgraph_decide_inlining_incrementally): Likewise; honor
12744 PARAM_EARLY_INLINING_INSNS.
12745 (likely_eliminated_by_inlining_p): New predicate.
12746 (estimate_function_body_sizes): New function.
12747 (compute_inline_parameters): Use it.
12748 * except.c (must_not_throw_labels): New function.
12749 * except.h (must_not_throw_labels): Declare.
12750 * tree-inline.c (init_inline_once): Kill inlining_weigths
12751 * tree-ssa-structalias.c: Avoid uninitialized warning.
12752 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
12753 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
12754 (PARAM_INLINE_CALL_COST): Remove.
12755 (PARAM_EARLY_INLINING_INSNS): New.
12757 2009-05-25 Richard Guenther <rguenther@suse.de>
12759 PR tree-optimization/36327
12760 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
12761 callback for reference translation or lookup at the point of may-defs.
12762 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
12763 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
12764 for union COMPONENT_REFs.
12765 (vn_reference_lookup_3): New callback. Lookup from memset
12766 and CONSTRUCTOR assignment, translate through struct copies.
12767 (vn_reference_lookup_pieces): Make sure to not free the
12768 passed operands array. Adjust walk_non_aliased_vuses call.
12769 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
12770 make sure we do not leak memory.
12772 2009-05-25 Richard Guenther <rguenther@suse.de>
12774 * tree-ssa-alias.h (dump_points_to_solution): Declare.
12775 * tree-inline.c (expand_call_inline): Reset the escaped and
12776 callused solutions.
12777 * tree-ssa-structalias.c (pass_build_ealias): New.
12778 * tree-pass.h (pass_build_ealias): Declare.
12779 * passes.c (init_optimization_passes): Add PTA during
12780 early optimizations.
12781 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
12782 and CALLUSED solutions.
12783 (dump_points_to_solution): New function, split out from ...
12784 (dump_points_to_info_for): ... here.
12785 * tree-parloops.c (parallelize_loops): Reset the escaped and
12786 callused solutions.
12788 2009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12791 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
12792 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
12794 2009-05-25 Ira Rosen <irar@il.ibm.com>
12796 PR tree-optimization/40238
12797 * tree-vect-stmts.c (vect_init_vector): Insert initialization
12798 statements after basic block's labels.
12799 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
12800 to free the allocated memory.
12802 2009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
12804 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
12805 return address with a USE.
12807 2009-05-24 Richard Guenther <rguenther@suse.de>
12809 PR middle-end/40233
12810 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
12811 array type from the main variant of the inner type.
12813 2009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12815 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
12816 definition to bool (from int) to un-break build.
12817 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
12819 2009-05-24 Paolo Bonzini <bonzini@gnu.org>
12821 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
12822 discard_stmt_changes): Delete.
12823 * tree-ssa-operands.c (scb_stack): Delete.
12824 (init_ssa_operands): Do not initialize it.
12825 (fini_ssa_operands): Do not free it.
12826 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
12828 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
12829 update_stmt, remove the others. Fix comments.
12830 * tree-dfa.c (optimize_stack_restore): Likewise.
12831 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
12832 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
12833 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
12834 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
12836 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
12837 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
12838 (dom_opt_finalize_block): Likewise, adjusting access to
12840 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
12841 (stmts_to_rescan): Change item type to gimple.
12842 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
12844 2009-05-24 Ira Rosen <irar@il.ibm.com>
12846 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
12847 * tree-pass.h (pass_slp_vectorize): New pass.
12848 * params.h (SLP_MAX_INSNS_IN_BB): Define.
12849 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
12850 * tree-vectorizer.c (timevar.h): Include.
12851 (user_vect_verbosity_level): Declare.
12852 (vect_location): Fix comment.
12853 (vect_set_verbosity_level): Update user_vect_verbosity_level
12854 instead of vect_verbosity_level.
12855 (vect_set_dump_settings): Add an argument. Ignore user defined
12856 verbosity if dump flags require higher level of verbosity. Print to
12857 stderr only for loop vectorization.
12858 (vectorize_loops): Update call to vect_set_dump_settings.
12859 (execute_vect_slp): New function.
12860 (gate_vect_slp): Likewise.
12861 (struct gimple_opt_pass pass_slp_vectorize): New.
12862 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
12863 access its members.
12864 (vec_info_for_bb): New function.
12865 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
12866 (VECTORIZATION_ENABLED): New macro.
12867 (SLP_ENABLED, SLP_DISABLED): Likewise.
12868 (vect_is_simple_use): Add bb_vec_info argument.
12869 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
12870 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
12871 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
12872 vect_schedule_slp, vect_analyze_slp): Likewise.
12873 (vect_analyze_stmt): Add slp_tree argument.
12874 (find_bb_location): Declare.
12875 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
12876 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
12877 (vect_analyze_loop_operations, vect_analyze_loop,
12878 get_initial_def_for_induction, vect_create_epilog_for_reduction,
12879 vect_finalize_reduction, vectorizable_reduction,
12880 vectorizable_live_operation, vect_transform_loop): Likewise.
12881 * tree-data-ref.c (dr_analyze_innermost): Update comment,
12882 skip evolution analysis if analyzing a basic block.
12883 (dr_analyze_indices): Likewise.
12884 (initialize_data_dependence_relation): Skip the test whether the
12885 object is invariant for basic blocks.
12886 (compute_all_dependences): Skip dependence analysis for data
12887 references in basic blocks.
12888 (find_data_references_in_stmt): Don't fail in case of invariant
12889 access in basic block.
12890 (find_data_references_in_bb): New function.
12891 (find_data_references_in_loop): Move code to
12892 find_data_references_in_bb and add a call to it.
12893 (compute_data_dependences_for_bb): New function.
12894 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
12895 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
12897 (vect_analyze_data_ref_dependence): Check for interleaving in case of
12898 unknown dependence in basic block and fail in case of dependence in
12900 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
12901 dependence instances from either loop or basic block vectorization
12903 (vect_compute_data_ref_alignment): Check if it is loop vectorization
12904 before calling nested_in_vect_loop_p.
12905 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
12906 dependence instances from either loop or basic block vectorization
12908 (vect_verify_datarefs_alignment): Likewise.
12909 (vect_enhance_data_refs_alignment): Adjust function calls.
12910 (vect_analyze_data_refs_alignment): Likewise.
12911 (vect_analyze_group_access): Fix printing. Skip different checks if
12912 DR_STEP is 0. Keep strided stores either in loop or basic block
12913 vectorization data structure. Fix indentation.
12914 (vect_analyze_data_ref_access): Fix comments, allow zero step in
12916 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
12917 dependence instances from either loop or basic block vectorization
12919 (vect_analyze_data_refs): Update comment. Call
12920 compute_data_dependences_for_bb to analyze basic blocks.
12921 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
12922 case of loop vectorization. In case of basic block vectorization use
12923 data-ref itself as a base.
12924 (vect_create_data_ref_ptr): In case of basic block vectorization:
12925 don't advance the pointer, add new statements before the current
12926 statement. Adjust function calls.
12927 (vect_supportable_dr_alignment): Support only aligned accesses in
12928 basic block vectorization.
12929 * common.opt (ftree-slp-vectorize): New flag.
12930 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
12931 (vect_pattern_recog_1): Likewise.
12932 * tree-vect-stmts.c (process_use): Likewise.
12933 (vect_init_vector): Add new statements in the beginning of the basic
12934 block in case of basic block SLP.
12935 (vect_get_vec_def_for_operand): Adjust function calls.
12936 (vect_finish_stmt_generation): Likewise.
12937 (vectorizable_call): Add assert that it is loop vectorization, adjust
12939 (vectorizable_conversion, vectorizable_assignment): Likewise.
12940 (vectorizable_operation): In case of basic block SLP, take
12941 vectorization factor from statement's type and skip the relevance
12942 check. Adjust function calls.
12943 (vectorizable_type_demotion): Add assert that it is loop
12944 vectorization, adjust function calls.
12945 (vectorizable_type_promotion): Likewise.
12946 (vectorizable_store): Check for outer loop only in case of loop
12947 vectorization. Adjust function calls. For basic blocks, skip the
12948 relevance check and don't advance pointers.
12949 (vectorizable_load): Likewise.
12950 (vectorizable_condition): Add assert that it is loop vectorization,
12951 adjust function calls.
12952 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
12953 that it is not reduction, get vector type, call only supported
12954 functions, skip loop specific parts.
12955 (vect_transform_stmt): Check for outer loop only in case of loop
12957 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
12958 (vect_is_simple_use): Fix comment, add new argument, fix conditions
12959 for external definition.
12960 * passes.c (pass_slp_vectorize): New pass.
12961 * tree-vect-slp.c (find_bb_location): New function.
12962 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
12963 check for patterns only in loops.
12964 (vect_build_slp_tree): Add argument, adjust function calls, fail in
12965 case of multiple types in basic block SLP.
12966 (vect_mark_slp_stmts_relevant): New function.
12967 (vect_supported_load_permutation_p): Fix comment.
12968 (vect_analyze_slp_instance): Add argument. In case of basic block
12969 SLP, take vectorization factor from statement's type, check that
12970 unrolling factor is 1. Adjust function call. Save SLP instance in
12971 either loop or basic block vectorization structure. Return FALSE,
12973 (vect_analyze_slp): Add argument. Get strided stores groups from
12974 either loop or basic block vectorization structure. Return FALSE
12975 if basic block SLP failed.
12976 (new_bb_vec_info): New function.
12977 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
12978 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
12979 (vect_schedule_slp): Add argument. Get SLP instances from either
12980 loop or basic block vectorization structure. Set vectorization factor
12981 to be 1 for basic block SLP.
12982 (vect_slp_transform_bb): New function.
12983 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
12985 2009-05-23 Mark Mitchell <mark@codesourcery.com>
12987 * final.c (shorten_branches): Do not align labels for jump tables.
12988 (final_scan_insn): Use JUMP_TABLE_DATA_P.
12990 2009-05-23 Eric Botcazou <ebotcazou@adacore.com>
12992 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
12993 Remove outdated reference to flow.c and fix nits.
12994 * doc/gccint.texi: Tweak RTL description.
12995 * doc/rtl.texi: Likewise.
12997 2009-05-23 Denis Chertykov <chertykov@gmail.com>
12999 * config/avr/avr.c: Change my email address.
13000 * config/avr/avr.h: Likewise.
13001 * config/avr/avr.md: Likewise.
13002 * config/avr/avr-protos.h: Likewise.
13003 * config/avr/libgcc.S: Likewise.
13005 2009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
13007 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
13008 (spu_split_load, spu_split_store): Change return type to int.
13009 (spu_split_convert): Declare.
13010 * config/spu/predicates.md (spu_mem_operand): Remove.
13011 (spu_mov_operand): Update.
13012 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
13013 * config/spu/spu.c (regno_aligned_for_load): Remove.
13014 (reg_aligned_for_addr, spu_expand_load): Define.
13015 (spu_expand_extv): Reimplement and handle MEM.
13016 (spu_expand_insv): Handle MEM.
13017 (spu_sched_reorder): Handle insn's with length 0.
13018 (spu_legitimate_address_p): Reimplement.
13019 (store_with_one_insn_p): Return TRUE for any mode with size
13020 larger than 16 bytes.
13021 (address_needs_split): Define.
13022 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
13024 (spu_convert_move): Define.
13025 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
13026 (spu_split_store): Change all MEM's to TImode.
13027 (spu_init_expanders): Preallocate registers that correspond to
13028 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
13030 (spu_split_convert): Define.
13031 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
13032 (_move<mode>, _movdi, _movti): Update predicate and condition.
13033 (load, store): Change to define_split.
13034 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
13036 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
13037 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
13038 define_insn_and_split of lshr<mode>3.
13039 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
13040 (<v>ashr<mode>3_imm): Define.
13041 (extv, extzv, insv): Allow MEM operands.
13042 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
13043 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
13044 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
13045 (_spu_convert2): Change to define_insn_and_split and remove the
13046 corresponding define_peephole2.
13047 (stack_protect_set, stack_protect_test, stack_protect_test_si):
13048 Change predicates to memory_operand.
13050 2009-05-22 Mark Mitchell <mark@codesourcery.com>
13052 * config/arm/thumb2.md: Add 16-bit multiply instructions.
13054 2009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13056 PR tree-optimization/40219
13057 * tree.c (iterative_hash_expr): Make sure the builtin function is
13058 a normal builtin function and not a front end or back end builtin
13059 before indexing into the built_in_decls array.
13061 2009-05-22 Richard Guenther <rguenther@suse.de>
13063 PR middle-end/38964
13064 * alias.c (write_dependence_p): Do not use TBAA for answering
13065 anti-dependence or output-dependence.
13066 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
13067 (emit_pointer_definition): Remove.
13068 (emit_alias_warning): Likewise.
13069 (find_what_var_points_to): Remove TBAA pruning code.
13070 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
13072 (compute_points_to_sets): Remove code computing the set of
13073 dereferenced pointers.
13074 * tree-data-ref.c (dr_may_alias_p): Properly use the split
13075 oracle for querying anti and output dependencies.
13076 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
13077 if TBAA may be applied.
13078 (refs_anti_dependent_p): New function.
13079 (refs_output_dependent_p): Likewise.
13080 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
13081 (refs_output_dependent_p): Likewise.
13082 * doc/tree-ssa.texi (Memory model): New section.
13083 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
13084 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
13085 * cfgexpand.c (expand_gimple_basic_block): Do not handle
13086 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
13087 * expr.c (expand_expr_real_1): Likewise.
13088 * gimple-low.c (lower_stmt): Likewise.
13089 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
13090 (dump_gimple_cdt): Remove.
13091 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
13092 (gimple_size): Likewise.
13093 (walk_gimple_op): Likewise.
13094 (is_gimple_stmt): Likewise.
13095 (walk_stmt_load_store_addr_ops): Likewise.
13096 (gimple_build_cdt): Remove.
13097 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
13098 * gimple.h (gimple_cdt_new_type): Remove.
13099 (gimple_cdt_new_type_ptr): Likewise.
13100 (gimple_cdt_set_new_type): Likewise.
13101 (gimple_cdt_location): Likewise.
13102 (gimple_cdt_location_ptr): Likewise.
13103 (gimple_cdt_set_location): Likewise.
13104 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
13105 * tree-cfg.c (remove_useless_stmts_1): Do not handle
13106 GIMPLE_CHANGE_DYNAMIC_TYPE.
13107 (verify_types_in_gimple_stmt): Likewise.
13108 * tree-inline.c (estimate_num_insns): Likewise.
13109 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
13110 (copy_decl_to_var): Likewise.
13111 (copy_result_decl_to_var): Likewise.
13112 * tree-pretty-print.c (dump_generic_node): Do not handle
13113 CHANGE_DYNAMIC_TYPE_EXPR.
13114 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13115 * tree-ssa-operands.c (get_expr_operands): Likewise.
13116 * tree-ssa-structalias.c (struct variable_info): Remove
13117 no_tbaa_pruning member.
13118 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
13119 (unify_nodes): Do not copy it.
13120 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
13121 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
13122 (set_uids_in_ptset): Do not check it.
13123 (find_what_var_points_to): Likewise.
13124 (compute_tbaa_pruning): Remove.
13125 (compute_points_to_sets): Do not call it.
13126 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
13127 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
13128 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
13129 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
13130 (DECL_NO_TBAA_P): Likewise.
13131 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
13132 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
13133 (expand_omp_atomic_pipeline): Do not set it.
13134 * print-tree.c (print_node): Do not dump it.
13135 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
13138 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
13141 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
13144 2009-05-22 Mark Mitchell <mark@codesourcery.com>
13146 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
13149 2009-05-22 Ben Elliston <bje@au.ibm.com>
13151 * Makefile.in (bversion.h, s-bversion): New targets.
13152 (TOPLEV_H): Add bversion.h.
13153 * toplev.h: Include "bversion.h".
13154 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
13155 the __format__ attribute only if compiling with the same version
13156 of GCC as the sources (the "build version").
13158 2009-05-22 Ben Elliston <bje@au.ibm.com>
13160 * c-format.c (handle_format_attribute): Fix comment typo.
13162 2009-05-21 Steve Ellcey <sje@cup.hp.com>
13165 * config/ia64/ia64.opt (mfused-madd): New.
13166 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
13167 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
13168 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
13169 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
13170 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
13171 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
13172 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
13173 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
13174 instruction if !TARGET_FUSED_MADD.
13175 (fpma, fpms): Remove colon from name.
13177 2009-05-22 Richard Guenther <rguenther@suse.de>
13179 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
13180 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
13181 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
13183 (create_expression_by_pieces): Only convert if necessary.
13184 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
13185 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
13187 2009-05-21 Adam Nemet <anemet@caviumnetworks.com>
13189 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
13190 regular pattern from a template and rename it ...
13191 (*extzv_truncsi_exts): ... to this.
13193 2009-05-21 Richard Guenther <rguenther@suse.de>
13195 * cgraph.h (struct cgraph_node): Remove inline_decl member.
13196 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
13197 (cgraph_default_inline_p): Likewise.
13198 (cgraph_decide_inlining_incrementally): Likewise.
13200 2009-05-21 H.J. Lu <hongjiu.lu@intel.com>
13201 Uros Bizjak <ubizjak@gmail.com>
13203 * config/i386/cpuid.h (bit_MOVBE): New.
13205 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
13207 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
13208 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
13209 (ix86_handle_option): Handle OPT_mmovbe.
13210 (ix86_target_string): Add -mmovbe.
13211 (pta_flags): Add PTA_MOVBE.
13212 (processor_alias_table): Add PTA_MOVBE to "atom".
13213 (override_options): Handle PTA_MOVBE.
13215 * config/i386/i386.h (TARGET_MOVBE): New.
13217 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
13218 (*bswapsi_movbe): New.
13219 (*bswapdi_movbe): Likewise.
13220 (bswapdi2): Renamed to ...
13221 (*bswapdi_1): This.
13222 (bswapdi2): New expander.
13224 * config/i386/i386.opt (mmovbe): New.
13226 * doc/invoke.texi: Document -mmovbe.
13228 2009-05-21 Taras Glek <tglek@mozilla.com>
13230 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
13231 * gcc-plugin.h (plugin_init): Updated signature.
13232 * gcc-plugin.h (plugin_name_args): Moved to this header.
13233 * doc/plugins.texi (plugin_init): Updated documention to reflect
13235 * doc/plugins.texi (plugin_name_args): Added to documention.
13237 2009-05-21 Mark Mitchell <mark@codesourcery.com>
13239 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
13240 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
13242 2009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
13244 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
13245 JUMP_TABLE_DATA_P predicates where applicable.
13246 * config/i386/predicates.md: Ditto.
13247 * config/i386/sse.md: Ditto.
13249 2009-05-21 Jakub Jelinek <jakub@redhat.com>
13251 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
13252 operand2 -128 override length_immediate attribute to 1.
13253 * config/i386/predicates.md (constm128_operand): New predicate.
13255 * config/i386/i386.c (memory_address_length): Handle %r12
13256 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
13258 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
13259 mode look through optional ZERO_EXTEND and SUBREG.
13260 * config/i386/i386.md (R12_REG): New define_constant.
13261 (prefix_data16): For sse unit set also for MODE_TI insns.
13262 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
13263 insns set if operand 1 is ext_QIreg_operand.
13264 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
13265 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
13267 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
13268 mode from MODE_DI to MODE_SI.
13269 (movdi_1_rex64): Override modrm and length_immediate attributes
13270 only for movabs (TYPE_IMOV, alternative 2).
13271 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
13272 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
13273 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
13274 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
13275 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
13276 prefix_rex attribute if DImode.
13277 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
13278 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
13279 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
13280 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
13281 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
13282 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
13283 Likewise. For TYPE_IMOV clear length_immediate attribute.
13284 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
13285 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
13286 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
13287 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
13288 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
13289 or one operand TYPE_ISHIFT.
13290 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
13291 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
13292 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
13293 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
13294 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
13295 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
13296 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
13297 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
13298 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
13299 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
13300 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
13301 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
13302 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
13303 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
13304 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
13305 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
13306 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
13307 set mode attribute, don't override length attribute.
13308 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
13310 (return_internal_long): Set length attribute to 2 instead of 1.
13311 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
13312 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
13313 prefix_rex attribute.
13314 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
13316 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
13318 2009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13320 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
13322 2009-05-20 Ian Lance Taylor <iant@google.com>
13324 * tree.c (build_tree_list_vec_stat): New function.
13325 (ctor_to_vec): New function.
13326 (build_nt_call_vec): New function.
13327 (build_call_array): Change args to be a const pointer.
13328 (build_call_vec): New function.
13329 * tree.h (build_nt_call_vec): Declare.
13330 (build_tree_list_vec_stat): Declare.
13331 (build_tree_list_vec): Define.
13332 (build_call_array): Update declaration.
13333 (build_call_vec): Declare.
13334 (ctor_to_vec): Declare.
13335 * c-common.c (tree_vector_cache): New static variable.
13336 (make_tree_vector): New function.
13337 (release_tree_vector): New function.
13338 (make_tree_vector_single): New function.
13339 (make_tree_vector_copy): New function.
13340 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
13341 (make_tree_vector_single, make_tree_vector_copy): Declare.
13342 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
13343 (c_parser_expr_list): Don't manage cache here, instead call
13345 (c_parser_release_expr_list): Remove static function.
13346 (c_parser_vec_to_tree_list): Remove static function.
13347 (c_parser_attributes): Call build_tree_list_vec instead of
13348 c_parser_vec_to_tree_list. Call release_tree_vector instead of
13349 c_parser_release_expr_list.
13350 (c_parser_postfix_expression_after_primary): Likewise.
13351 (c_parser_objc_keywordexpr): Likewise.
13353 2009-05-20 Sandra Loosemore <sandra@codesourcery.com>
13355 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
13356 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
13357 TARGET_CONVERT_TO_TYPE.
13358 * hooks.c (hook_tree_const_tree_null): Define.
13359 * hooks.h (hook_tree_const_tree_null): Declare.
13360 * target.h (struct gcc_target): Add invalid_parameter_type,
13361 invalid_return_type, promoted_type, and convert_to_type fields.
13362 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
13363 (TARGET_INVALID_RETURN_TYPE): Define.
13364 (TARGET_PROMOTED_TYPE): Define.
13365 (TARGET_CONVERT_TO_TYPE): Define.
13366 (TARGET_INITIALIZER): Update for new fields.
13367 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
13368 (grokparms): Check targetm.invalid_parameter_type.
13369 * c-typeck.c (default_conversion): Check targetm.promoted_type.
13370 * c-convert.c (convert): Check targetm.convert_to_type.
13372 2009-05-20 Adam Nemet <anemet@caviumnetworks.com>
13374 * config/mips/mips.md (*extenddi_truncate<mode>,
13375 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
13377 (*extendhi_truncateqi): New define_insn_and_sptit.
13379 2009-05-20 Jakub Jelinek <jakub@redhat.com>
13381 PR middle-end/40204
13382 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
13383 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
13385 2009-05-20 Eric Botcazou <ebotcazou@adacore.com>
13387 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
13388 the operand of VIEW_CONVERT_EXPR.
13390 2009-05-20 H.J. Lu <hongjiu.lu@intel.com>
13392 * config/i386/driver-i386.c (host_detect_local_cpu): Check
13393 extended family and model for Intel processors. Support Intel Atom.
13395 2009-05-20 Olivier Hainque <hainque@adacore.com>
13397 * gstab.h (stab_code_type): Define, to be used instead of the
13398 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
13400 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
13401 occurrences by stab_code_type.
13402 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
13404 2009-05-20 Martin Jambor <mjambor@suse.cz>
13406 * tree-flow.h (insert_edge_copies_seq): Undeclare.
13407 (sra_insert_before): Likewise.
13408 (sra_insert_after): Likewise.
13409 (sra_init_cache): Likewise.
13410 (sra_type_can_be_decomposed_p): Likewise.
13411 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
13412 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
13413 (sra_insert_before): Likewise.
13414 (sra_insert_after): Likewise.
13415 (sra_init_cache): Likewise.
13416 (insert_edge_copies_seq): Made static and moved upwards.
13418 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
13421 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
13423 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
13424 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
13427 2009-05-20 Richard Guenther <rguenther@suse.de>
13429 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
13430 with mismatched comparison modes.
13432 2009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13434 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
13435 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
13436 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
13437 with shifts for Thumb2.
13438 (orsi_notsi): New for orn.
13439 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
13440 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
13441 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
13442 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
13443 Don't invert remainder for IOR.
13445 2009-05-19 Zdenek Dvorak <ook@ucw.cz>
13447 PR tree-optimization/40087
13448 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
13449 number_of_iterations_ne): Rename never_infinite argument.
13450 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
13451 number_of_iterations_le): Handle pointer-type ivs when
13452 exit_must_be_taken is false.
13453 (number_of_iterations_cond): Do not always assume that
13454 exit_must_be_taken if the control variable is a pointer.
13456 2009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
13458 * c-typeck.c (build_binary_op): Allow % on integal vectors.
13459 * doc/extend.texi (Vector Extension): Document that % is allowed too.
13461 2009-05-19 H.J. Lu <hongjiu.lu@intel.com>
13463 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
13464 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
13466 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13469 * c.opt (Wlogical-op): Disabled by default.
13470 * c-opt (c_common_post_options): Do not enable Wlogical-op with
13472 * doc/invoke.texi (Wlogical-op): Likewise.
13474 2009-05-19 Eric Botcazou <ebotcazou@adacore.com>
13476 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
13478 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
13479 Propagate the type of the first operand.
13480 <ASSERT_EXPR>: Simplify.
13481 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
13482 Rewrite using the RHS code as discriminant.
13483 <NOP_EXPR>: Turn into CASE_CONVERT.
13484 <PLUS_EXPR>: Propagate the type of the first operand.
13486 2009-05-19 Steve Ellcey <sje@cup.hp.com>
13488 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
13489 (ia64_dconst_0_375): New.
13490 * config/ia64/ia64.c (ia64_override_options): Remove
13491 -minline-sqrt-min-latency warning.
13492 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
13493 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
13494 * config/ia64/ia64.md (*sqrt_approx): Remove.
13495 (sqrtsf2): Remove #if 0.
13496 (sqrtsf2_internal_thr): Rewrite and move to div.md.
13497 (sqrtdf): Remove assert.
13498 (sqrtdf2_internal_thr): Rewrite and move to div.md.
13499 (sqrtxf2): Remove #if 0.
13500 (sqrtxf2_internal_thr): Rewrite and move to div.md.
13501 * div.md (sqrt_approx_rf): New.
13502 (sqrtsf2_internal_thr): New implementation.
13503 (sqrtsf2_internal_lat): New.
13504 (sqrtdf2_internal_thr: New implementation.
13505 (sqrtxf2_internal): New implementation.
13507 2009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
13508 Hans-Peter Nilsson <hp@axis.com>
13510 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
13511 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
13512 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
13513 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
13514 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
13515 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
13516 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
13517 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
13518 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
13519 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
13520 * c-common.c: ...from here.
13522 2009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
13524 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
13526 2009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13528 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
13530 2009-05-19 Ben Elliston <bje@au.ibm.com>
13532 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
13533 assignments with memcpy calls.
13534 (add_fdes): Likewise.
13535 (binary_search_unencoded_fdes): Likewise.
13536 (linear_search_fdes): Eliminate type puns.
13538 2009-05-19 Richard Guenther <rguenther@suse.de>
13540 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
13541 not falsely claim to have propagated into all uses.
13543 2009-05-19 Ben Elliston <bje@au.ibm.com>
13545 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
13548 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
13550 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
13551 * config/sh/sh.c (sh_legitimate_address_p): Make static.
13552 (TARGET_LEGITIMATE_ADDRESS_P): New.
13553 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
13554 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
13556 2009-05-18 Dodji Seketeli <dodji@redhat.com>
13559 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
13560 child of the containing namespace's DIE.
13562 2009-05-18 Adam Nemet <anemet@caviumnetworks.com>
13564 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
13565 *zero_extendhi_truncqi): Move after the zero_extend patterns.
13566 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
13569 2009-05-18 H.J. Lu <hongjiu.lu@intel.com>
13572 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
13573 gen_align with gen_pad.
13574 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
13575 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
13577 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
13578 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
13580 * config/i386/i386.md (align): Renamed to ...
13581 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
13582 ASM_OUTPUT_MAX_SKIP_PAD.
13584 2009-05-18 Andreas Schwab <schwab@linux-m68k.org>
13586 * config.gcc: Fix variable syntax.
13589 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
13590 before calling exact_log2.
13591 (output_iorsi3): Likewise.
13592 (output_xorsi3): Likewise.
13594 2009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
13596 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
13597 for the none zero constant operand except for EQ and NE
13598 comprisons even when the first operand is R0.
13600 2009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
13602 * config/s390/2064.md: Remove trailing whitespaces.
13603 * config/s390/2084.md: Likewise.
13604 * config/s390/constraints.md: Likewise.
13605 * config/s390/fixdfdi.h: Likewise.
13606 * config/s390/libgcc-glibc.ver: Likewise.
13607 * config/s390/s390-modes.def: Likewise.
13608 * config/s390/s390-protos.h: Likewise.
13609 * config/s390/s390.c: Likewise.
13610 * config/s390/s390.h: Likewise.
13611 * config/s390/s390.md: Likewise.
13612 * config/s390/tpf-unwind.h: Likewise.
13614 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13616 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
13618 2009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
13621 * configure.ac (m68k-*-*): Check if binutils support TLS.
13622 * configure: Regenerate.
13623 * config/m68k/predicates.md (symbolic_operand): Extend comment.
13624 * config/m68k/constraints.md (Cu): New constraint.
13625 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
13626 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
13627 (movsi): Handle TLS symbols.
13628 (addsi3_5200): Handle XTLS symbols, indent.
13629 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
13630 (m68k_tls_reference_p): Declare.
13631 (m68k_legitimize_address): Declare.
13632 (m68k_unwrap_symbol): Declare.
13633 * config/m68k/m68k.opt (mxtls): New option.
13634 * config/m68k/m68k.c (ggc.h): Include.
13635 (m68k_output_dwarf_dtprel): Implement hook.
13636 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
13637 (m68k_expand_prologue): Load GOT pointer when function needs it.
13638 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
13639 (m68k_legitimate_constant_address_p): Same.
13640 (m68k_decompose_address): Handle TLS references.
13641 (m68k_get_gp): New static function.
13642 (enum m68k_reloc): New contants.
13643 (TLS_RELOC_P): New macro.
13644 (m68k_wrap_symbol): New static function.
13645 (m68k_unwrap_symbol): New function.
13646 (m68k_final_prescan_insn_1): New static function.
13647 (m68k_final_prescan_insn): New function.
13648 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
13650 (legitimize_pic_address): Handle TLS references..
13651 (m68k_tls_get_addr, m68k_get_tls_get_addr)
13652 (m68k_libcall_value_in_a0_p)
13653 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
13654 (m68k_call_m68k_read_tp): Helper variables and functions for ...
13655 (m68k_legitimize_tls_address): Handle TLS references.
13656 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
13658 (m68k_legitimize_address): Handle TLS symbols.
13659 (m68k_get_reloc_decoration): New static function.
13660 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
13662 (m68k_output_dwarf_dtprel): Implement hook.
13663 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
13664 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
13665 m68k_call_* routines.
13666 (sched_attr_op_type): Handle TLS symbols.
13667 (gt-m68k.h): Include.
13668 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
13669 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
13671 2009-05-18 Martin Jambor <mjambor@suse.cz>
13673 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
13674 (visit_store_addr_for_mod_analysis): New function.
13675 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
13676 (determine_cst_member_ptr): Use gimple_assign_single_p.
13677 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
13678 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
13679 operands. Don't check number of operands of a NOP_EXPR.
13681 2009-05-18 Eric Fisher <joefoxreal@gmail.com>
13683 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
13685 2009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
13688 * c-common.c (warn_logical_operator): Don't warn if one of
13689 expression isn't always true or false.
13691 2009-05-17 Kai Tietz <kai.tietz@onevision.com>
13693 * config/i386/biarch32.h: New file.
13694 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
13696 2009-05-17 Adam Nemet <anemet@caviumnetworks.com>
13698 * config/mips/mips.md (*zero_extend<mode>_trunchi,
13699 *zero_extend<mode>_truncqi): Merge these into ...
13700 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
13701 Name the pattern following this as *zero_extendhi_truncqi.
13703 2009-05-16 Brad Lucier <lucier@math.purdue.edu>
13705 PR middle-end/39301
13706 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
13707 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
13708 (output_info): Make field HOST_WIDEST_INT.
13709 (print_statistics): Use HOST_WIDEST_INT_PRINT.
13710 (dump_bitmat_statistics): Same.
13712 2009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
13714 * config.gcc (use_gcc_stdint): Set to wrap.
13715 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
13716 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
13717 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
13718 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
13719 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
13720 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
13721 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
13722 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
13724 2009-05-16 Joseph Myers <joseph@codesourcery.com>
13726 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
13728 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
13729 Move definitions earlier.
13730 (OPT_ARCH64, OPT_ARCH32): Define.
13731 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
13734 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
13737 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
13740 2009-05-16 Richard Earnshaw <rearnsha@arm.com>
13742 * arm.md (movdi2): Copy non-reg values to DImode registers.
13744 2009-05-16 Jakub Jelinek <jakub@redhat.com>
13747 * final.c (label_to_max_skip): New function.
13748 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
13749 CODE_LABEL_NUMBER <= max_labelno.
13750 * output.h (label_to_max_skip): New prototype.
13751 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
13752 (ix86_avoid_jump_mispredicts): ... this. Don't define if
13753 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
13754 Handle CODE_LABELs with >= 16 byte alignment or with
13755 max_skip == (1 << align) - 1.
13756 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
13757 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
13760 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
13761 .p2align 3 if MAX_SKIP is smaller than 7.
13762 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13764 2009-05-15 Ian Lance Taylor <iant@google.com>
13766 * alias.c (struct alias_set_entry_d): Rename from struct
13767 alias_set_entry. Change all uses.
13768 * except.c (struct call_site_record_d): Rename from struct
13769 call_site_record. Change all uses.
13770 * except.h (struct eh_region_d): Rename from struct eh_region.
13772 * gcse.c (struct hash_table_d): Rename from struct hash_table.
13774 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
13775 ivtype_map_elt. Change all uses.
13776 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
13778 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
13779 * graphite.h (struct name_tree_d): Rename from struct name_tree.
13781 (struct sese_d): Rename from struct sese. Change all uses.
13782 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
13783 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
13784 * optabs.h (struct optab_d): Rename from struct optab. Change all
13786 (struct convert_optab_d): Rename from struct convert_optab.
13788 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
13789 ipa_opt_pass. Change all uses.
13790 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
13793 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
13794 defined as a typedef.
13795 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
13798 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
13801 * fold-const.c (make_range,build_range_check,merge_ranges): Move
13803 (merge_ranges): Returns bool.
13804 * tree.h (make_range): .. to here.
13805 (build_range_check): Likewise.
13806 (merge_ranges): Likewise. Renamed from merge_ranges.
13807 * c-typeck.c (parser_build_binary_op): Update calls to
13808 warn_logical_operator.
13809 * c-common.c (warn_logical_operator): Add new warning.
13810 * c-common.h (warn_logical_operator): Update declaration.
13812 2009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
13814 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
13816 2009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13818 * doc/install.texi: Document MPC requirements, flags etc.
13820 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
13821 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
13822 Evaluate constant arguments.
13823 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
13824 (fold_builtin_1): Likewise, also evaluate constant arguments.
13825 Remove superfluous break.
13826 (do_mpc_ckconv): New.
13827 * real.h: Include mpc.h.
13828 * toplev.c (print_version): Output MPC version info if available.
13830 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
13832 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
13834 2009-05-15 H.J. Lu <hongjiu.lu@intel.com>
13836 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
13839 2009-05-15 Jan Hubicka <jh@suse.cz>
13841 * doc/invoke.texi (max-early-inliner-iterations): New flag.
13842 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
13843 (try_inline): Fix return value.
13844 (cgraph_decide_inlining_incrementally): Honor new value.
13845 (cgraph_early_inlining): Handle indirect inlining.
13846 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
13848 2009-05-15 Jan Hubicka <jh@suse.cz>
13850 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
13851 * cgraphunit.c (cgraph_finalize_function): Set it.
13852 (cgraph_expand_function): Use it.
13854 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
13856 * real.c (encode_ieee_half): Define.
13857 (decode_ieee_half): Define.
13858 (ieee_half_format): Define.
13859 (arm_half_format): Define.
13860 * real.h (ieee_half_format): Declare.
13861 (arm_half_format): Declare.
13863 2009-05-15 Sandra Loosemore <sandra@codesourcery.com>
13865 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
13866 swapped, and reversed optabs exist before trying to use them.
13868 2009-05-15 Paul Brook <paul@codesourcery.com>
13869 Sandra Loosemore <sandra@codesourcery.com>
13871 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
13872 loads. Allow PRE_DEC.
13873 (output_move_neon): Handle PRE_DEC.
13874 (arm_print_operand): Add 'A' for neon structure loads.
13875 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
13876 * config/arm/neon.md (neon_mov): Update comment.
13877 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
13879 (Um): New constraint.
13881 2009-05-15 Jan Hubicka <jh@suse.cz>
13883 Revert the following patch until testsuite fallout is fixed:
13884 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
13885 * cgraph.h (struct inline_summary): New filed self_wize,
13886 size_inlining_benefit, self_time and time_inlining_benefit.
13887 (struct cgraph_global_info): Replace insns by time ans size fields.
13888 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
13889 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
13890 (ipcp_update_callgraph): Do not touch function bodies.
13891 * ipa-inline.c: Include except.h
13892 (MAX_TIME): New constant.
13893 (overall_insns): Remove
13894 (overall_size, max_benefit): New static variables.
13895 (cgraph_estimate_time_after_inlining): New function.
13896 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
13897 (cgraph_clone_inlined_nodes): Update size.
13898 (cgraph_mark_inline_edge): Update size.
13899 (cgraph_estimate_growth): Use size info.
13900 (cgraph_check_inline_limits): Check size.
13901 (cgraph_default_inline_p): Likewise.
13902 (cgraph_edge_badness): Compute badness based on benefit and size cost.
13903 (cgraph_decide_recursive_inlining): Check size.
13904 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
13906 (cgraph_decide_inlining): Likewise.
13907 (cgraph_decide_inlining_incrementally): Likewise; honor
13908 PARAM_EARLY_INLINING_INSNS.
13909 (likely_eliminated_by_inlining_p): New predicate.
13910 (estimate_function_body_sizes): New function.
13911 (compute_inline_parameters): Use it.
13912 * except.c (must_not_throw_labels): New function.
13913 * except.h (must_not_throw_labels): Declare.
13914 * tree-inline.c (init_inline_once): Kill inlining_weigths
13915 * tree-ssa-structalias.c: Avoid uninitialized warning.
13916 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
13917 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
13918 (PARAM_INLINE_CALL_COST): Remove.
13919 (PARAM_EARLY_INLINING_INSNS): New.
13921 2009-05-15 Richard Guenther <rguenther@suse.de>
13923 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
13924 not TODO_update_ssa.
13926 2009-05-15 Richard Guenther <rguenther@suse.de>
13928 PR tree-optimization/39999
13929 * gimple.h (gimple_expr_type): Use the expression type looking
13930 through useless conversions.
13931 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
13932 (vn_nary_op_insert_stmt): Likewise.
13933 (simplify_binary_expression): Likewise.
13935 2009-05-15 Richard Guenther <rguenther@suse.de>
13937 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
13938 New options, enabled by default.
13939 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
13941 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
13942 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
13943 * tree-ssa-structalias.c (gate_tree_pta): New function.
13944 (pass_build_alias): Use it.
13946 2009-05-15 Joseph Myers <joseph@codesourcery.com>
13948 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
13949 recurse on an invariant address if a conversion from a pointer
13950 type to a wider integer type is involved.
13952 2009-05-15 Jan Hubicka <jh@suse.cz>
13954 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
13955 * cgraph.h (struct inline_summary): New filed self_wize,
13956 size_inlining_benefit, self_time and time_inlining_benefit.
13957 (struct cgraph_global_info): Replace insns by time ans size fields.
13958 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
13959 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
13960 (ipcp_update_callgraph): Do not touch function bodies.
13961 * ipa-inline.c: Include except.h
13962 (MAX_TIME): New constant.
13963 (overall_insns): Remove
13964 (overall_size, max_benefit): New static variables.
13965 (cgraph_estimate_time_after_inlining): New function.
13966 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
13967 (cgraph_clone_inlined_nodes): Update size.
13968 (cgraph_mark_inline_edge): Update size.
13969 (cgraph_estimate_growth): Use size info.
13970 (cgraph_check_inline_limits): Check size.
13971 (cgraph_default_inline_p): Likewise.
13972 (cgraph_edge_badness): Compute badness based on benefit and size cost.
13973 (cgraph_decide_recursive_inlining): Check size.
13974 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
13976 (cgraph_decide_inlining): Likewise.
13977 (cgraph_decide_inlining_incrementally): Likewise; honor
13978 PARAM_EARLY_INLINING_INSNS.
13979 (likely_eliminated_by_inlining_p): New predicate.
13980 (estimate_function_body_sizes): New function.
13981 (compute_inline_parameters): Use it.
13982 * except.c (must_not_throw_labels): New function.
13983 * except.h (must_not_throw_labels): Declare.
13984 * tree-inline.c (init_inline_once): Kill inlining_weigths
13985 * tree-ssa-structalias.c: Avoid uninitialized warning.
13986 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
13987 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
13988 (PARAM_INLINE_CALL_COST): Remove.
13989 (PARAM_EARLY_INLINING_INSNS): New.
13990 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
13991 (inline-call-cost): Remove.
13992 (early-inlining-insns): New.
13994 2009-05-15 Eric Botcazou <ebotcazou@adacore.com>
13996 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
13998 (print_int_cst_bounds_in_octal_p): Likewise.
13999 (dbxout_type): Adjust calls to above functions. Be prepared to deal
14001 * dwarf2out.c (base_type_die): Likewise.
14002 (is_subrange_type): Delete.
14003 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
14004 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
14005 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
14006 if the destination type is boolean.
14007 (build_range_check): Do not special-case subtypes.
14008 (fold_sign_changed_comparison): Likewise.
14009 (fold_unary): Likewise.
14010 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
14011 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
14012 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
14013 * tree.c (subrange_type_for_debug_p): New predicate based on the
14014 former is_subrange_type.
14015 * tree.h (subrange_type_for_debug_p): Declare.
14016 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
14017 (convert_affine_scev): Remove call to above function.
14018 (chrec_convert_aggressive): Likewise.
14019 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
14020 false for conversions involving subtypes.
14021 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
14022 (vrp_val_min): Likewise.
14023 (needs_overflow_infinity): Likewise.
14024 (extract_range_from_unary_expr): Likewise.
14026 2009-05-15 Paolo Bonzini <bonzini@gnu.org>
14028 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
14029 * config/frv/frv.c: Likewise.
14030 * config/s390/s390.c: Likewise.
14031 * config/sparc/sparc.h: Likewise.
14032 * config/i386/i386.h: Likewise.
14033 * config/i386/i386.c: Likewise.
14034 * config/crx/crx.c: Likewise.
14035 * config/m68hc11/m68hc11.h: Likewise.
14036 * config/iq2000/iq2000.c: Likewise.
14037 * config/mn10300/mn10300.h: Likewise.
14038 * config/mn10300/mn10300.c: Likewise.
14039 * config/m68k/m68k.c: Likewise.
14040 * config/rs6000/rs6000.c: Likewise.
14041 * config/rs6000/xcoff.h: Likewise.
14042 * config/rs6000/linux64.h: Likewise.
14043 * config/rs6000/sysv4.h: Likewise.
14044 * config/score/score3.c: Likewise.
14045 * config/score/score7.c: Likewise.
14046 * config/score/score.c: Likewise.
14047 * config/arm/arm.md: Likewise.
14048 * config/mips/mips.c: Likewise.
14049 * config/mips/mips.md: Likewise.
14050 * config/bfin/bfin.h: Likewise.
14051 * config/pa/pa.c: Likewise.
14052 * config/pa/constraints.md: Likewise.
14054 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
14055 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
14056 * config/pdp11/pdp11.h: Use memory_address_p instead.
14058 2009-05-14 Ian Lance Taylor <iant@google.com>
14060 * passes.c (finish_optimization_passes): Change i to int.
14061 * plugin.c (plugins_active_p): Change event to int.
14062 (dump_active_plugins): Likewise.
14063 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
14065 * tree.c (tree_range_check_failed): Change c to unsigned int.
14066 (omp_clause_range_check_failed): Likewise.
14067 (build_common_builtin_nodes): Change mode to int. Add cast.
14068 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
14069 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
14071 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
14072 ++ or -- with a variable of enum type.
14074 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
14077 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
14079 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
14081 * store-motion.c: Do not include params.h
14082 * Makefile.in: Fix dependencies for various files.
14084 2009-05-14 Steven Bosscher <steven@gcc.gnu.org>
14086 * auto-inc-dec.c: Fix pass description, remove apparent
14087 accidental duplication.
14089 2009-05-14 H.J. Lu <hongjiu.lu@intel.com>
14091 PR middle-end/40147
14092 * ipa-utils.h (memory_identifier_string): Moved to ...
14093 * tree.h (memory_identifier_string): Here. Add GTY(()).
14095 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
14097 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
14098 in the former documentation of...
14099 (GO_IF_LEGITIMATE_ADDRESS): ... this.
14100 * ira-conflicts.c (get_dup_num): Use address_operand.
14101 * targhooks.c (default_legitimate_address_p): New.
14102 * targhooks.h (default_legitimate_address_p): New.
14103 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
14105 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
14106 * target.h (struct target): Add legitimate_address_p.
14107 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
14108 (TARGET_INITIALIZER): Include it.
14110 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14111 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
14112 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
14113 (TARGET_LEGITIMATE_ADDRESS_P): New.
14115 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14116 (REG_OK_STRICT_P): Delete.
14117 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
14118 (frv_legitimate_address_p_1): ... this.
14119 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
14120 (frv_legitimate_address_p_1): ... the renamed old
14121 frv_legitimate_address_p.
14122 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
14123 (TARGET_LEGITIMATE_ADDRESS_P): New.
14125 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14126 * config/s390/s390-protos.h (legitimate_address_p): Remove.
14127 * config/s390/s390.c (legitimate_address_p): Rename to...
14128 (s390_legitimate_address_p): ... this, make static.
14129 (legitimize_address): Adjust call.
14130 (TARGET_LEGITIMATE_ADDRESS_P): New.
14131 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
14133 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14134 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
14135 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
14136 (TARGET_LEGITIMATE_ADDRESS_P): New.
14138 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14139 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
14140 * config/spu/spu.c (spu_legitimate_address): Rename to...
14141 (spu_legitimate_address_p): ... this, make static.
14142 (TARGET_LEGITIMATE_ADDRESS_P): New.
14144 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14145 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
14146 * config/sparc/sparc.c (legitimate_address_p): Rename to...
14147 (sparc_legitimate_address_p): ... this, make static and return bool.
14148 (legitimize_address): Adjust call.
14149 (TARGET_LEGITIMATE_ADDRESS_P): New.
14151 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14152 * config/i386/i386-protos.h (legitimate_address_p): Remove.
14153 * config/i386/i386.c (legitimate_address_p): Rename to...
14154 (ix86_legitimate_address_p): ... this, make static.
14155 (constant_address_p): Move after it, adjust call.
14156 (TARGET_LEGITIMATE_ADDRESS_P): New.
14158 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14159 * config/avr/avr-protos.h (legitimate_address_p): Remove.
14160 * config/avr/avr.c (legitimate_address_p): Rename to...
14161 (avr_legitimate_address_p): ... this, make static.
14162 (legitimize_address): Adjust call.
14163 (TARGET_LEGITIMATE_ADDRESS_P): New.
14165 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14166 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
14167 * config/crx/crx.c (crx_legitimate_address_p): Make static.
14168 (TARGET_LEGITIMATE_ADDRESS_P): New.
14170 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14171 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
14172 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
14173 (TARGET_LEGITIMATE_ADDRESS_P): New.
14175 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14176 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
14178 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14180 (TARGET_LEGITIMATE_ADDRESS_P): New.
14182 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14183 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
14185 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
14187 (m68hc11_legitimate_address_p): ... this, make static.
14188 (go_if_legitimate_address_internal): Rename to...
14189 (m68hc11_legitimate_address_p_1): ... this.
14190 (legitimize_address): Adjust call.
14191 (TARGET_LEGITIMATE_ADDRESS_P): New.
14193 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14194 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
14195 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
14196 (TARGET_LEGITIMATE_ADDRESS_P): New.
14198 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14199 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
14200 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
14201 (mn10300_legitimate_address_p): ... this, make static.
14202 (TARGET_LEGITIMATE_ADDRESS_P): New.
14204 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14205 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
14206 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
14207 (TARGET_LEGITIMATE_ADDRESS_P): New.
14209 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14210 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
14211 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
14212 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14213 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
14214 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
14215 (rs6000_legitimate_address_p): ... this, make static.
14216 (TARGET_LEGITIMATE_ADDRESS_P): New.
14217 (REG_MODE_OK_FOR_BASE_P): Delete.
14218 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
14220 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14221 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
14223 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
14224 static, adjust types.
14225 (TARGET_LEGITIMATE_ADDRESS_P): New.
14227 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14228 * config/score/score.c (score_address_p): Rename to...
14229 (score_legitimate_address_p): ... this.
14230 (TARGET_LEGITIMATE_ADDRESS_P): New.
14231 * config/score/score3.c (score3_address_p): Rename to...
14232 (score3_legitimate_address_p): ... this.
14233 * config/score/score7.c (score7_address_p): Rename to...
14234 (score7_legitimate_address_p): ... this.
14236 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
14237 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
14238 GO_IF_LEGITIMATE_ADDRESS): Delete.
14239 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
14240 thumb2_legitimate_address_p): Delete.
14241 (arm_legitimate_address_p): Rename to...
14242 (arm_legitimate_address_outer_p): ... this.
14243 * config/arm/constraints.md ("Uq"): Adjust call.
14244 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
14245 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
14247 (arm_legitimate_address_outer_p): ... this.
14248 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
14250 (TARGET_LEGITIMATE_ADDRESS_P): New.
14252 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14253 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
14254 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
14255 (TARGET_LEGITIMATE_ADDRESS_P): New.
14257 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14258 * config/vax/vax-protos.h (legitimate_address_p): Remove.
14259 * config/vax/vax.c (legitimate_address_p): Rename to...
14260 (vax_legitimate_address_p): ... this, make static.
14261 (TARGET_LEGITIMATE_ADDRESS_P): New.
14263 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14264 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
14265 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
14266 (TARGET_LEGITIMATE_ADDRESS_P): New.
14268 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14269 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
14270 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
14271 (mmix_legitimate_address_p): ... this, make static.
14272 (TARGET_LEGITIMATE_ADDRESS_P): New.
14274 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
14275 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
14276 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
14277 (TARGET_LEGITIMATE_ADDRESS_P): New.
14279 2009-05-14 Paolo Bonzini <bonzini@gnu.org>
14281 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
14282 of MODE_COMPLEX_INT.
14284 2009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14286 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
14287 LCT_NORMAL in function call.
14288 * mips-tdump.c (print_file_desc): Add cast to enum type.
14289 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
14290 (mark_stabs): Add casts to enum types.
14291 (parse_stabs_common): Add casts to enum types.
14293 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
14295 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
14296 Check for invalid values of LETTER.
14298 2009-05-13 Taras Glek <tglek@mozilla.com>
14300 * attribs.c (register_attribute): moved out attribute registration
14301 into register_attribute.
14302 * doc/plugins.texi: Documented register_attribute and
14304 * gcc-plugin.h: Added forward decl for register_attribute.
14305 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
14306 * plugin.c (register_callback, invoke_plugin_callbacks): Added
14307 PLUGIN_ATTRIBUTES boilerplate.
14309 2009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
14311 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
14312 values even in sentinel and empty entries.
14313 (ms_printf_flag_specs): Likewise.
14314 (ms_scanf_flag_specs): Likewise.
14315 (ms_strftime_flag_specs): Likewise.
14316 (ms_print_char_table): Likewise.
14317 (ms_scan_char_table): Likewise.
14318 (ms_time_char_table): Likewise.
14320 2009-05-13 Doug Kwan <dougkwan@google.com>
14322 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
14324 2009-05-13 Adam Nemet <anemet@caviumnetworks.com>
14326 * config/mips/mips.md (store): Add attributes for QI and HI.
14328 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
14329 (truncdi<mode>2): ... this new pattern.
14331 2009-05-13 Brad Hards <bradh@kde.org>
14333 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
14335 2009-05-14 Jakub Jelinek <jakub@redhat.com>
14336 Ben Elliston <bje@au.ibm.com>
14338 PR middle-end/40035
14339 * dse.c (check_mem_read_rtx): Guard against width == -1.
14341 2009-05-13 Michael Matz <matz@suse.de>
14343 PR middle-end/39976
14344 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
14345 (trivially_conflicts_p): New function.
14346 (insert_backedge_copies): Use it.
14348 2009-05-13 Janis Johnson <janis187@us.ibm.com>
14350 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
14351 (handle_stdc_pragma): Use new enum constant names.
14352 (handle_pragma_float_const_decimal64): Ditto.
14354 2009-05-13 Ian Lance Taylor <iant@google.com>
14356 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
14359 2009-05-13 Nathan Sidwell <nathan@codesourcery.com>
14361 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
14362 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
14364 * config/m68k/m68k.h (FL_UCLINUX): Define.
14366 2009-05-13 Jan Hubicka <jh@suse.cz>
14368 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
14370 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
14372 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
14373 unless -fschedule-insns is specified.
14375 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
14378 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
14379 TARGET_EXPAND_CBRANCHDI4.
14380 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
14381 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
14382 (cmpeqdi): Fix comment.
14384 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
14386 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
14387 (sh_legitimate_address_p): Likewise.
14388 * config/sh/sh.c (sh_legitimate_index_p): New.
14389 (sh_legitimate_address_p): Likewise.
14390 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
14391 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
14392 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
14393 (MAYBE_BASE_REGISTER_RTX_P): New macro.
14394 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
14395 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
14396 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
14397 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
14398 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
14400 2009-05-12 Jan Hubicka <jh@suse.cz>
14402 * tree-inline.c (estimate_operator_cost): Add operands;
14403 when division happens by constant, it is cheap.
14404 (estimate_num_insns): Loads and stores are not having cost of 0;
14405 EH magic stuff is cheap; when computing runtime cost of switch,
14406 use log2 base of amount of its cases; builtin_expect has cost of 0;
14407 compute cost for moving return value of call.
14408 (init_inline_once): Initialize time_based flags.
14409 * tree-inline.h (eni_weights_d): Add time_based flag.
14411 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
14413 * df-core.c: Update head documentation.
14415 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14418 * rs6000.c (rs6000_generate_compare): Use op1b instead of
14419 shadowing exisiting variable op1.
14421 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
14424 * config/i386/driver-i386.c (processor_signatures): New enum.
14425 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
14426 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
14427 processor signature to detect geode processor.
14429 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
14433 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
14435 * optabs.c (prepare_cmp_insn): Temporarily disable test that
14436 causes spurious differences between trunk and cond-optab branch.
14438 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
14440 * dojump.c (compare_from_rtx): Delete.
14441 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
14442 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
14443 if the comparison does not satisfy the predicate; test predicates for
14444 operands 2 and 3 of a cstore pattern. Don't try cstore optab
14445 further if one existing pattern fails.
14446 * expr.h (compare_from_rtx): Delete.
14447 (prepare_operand): Declare it.
14448 * optabs.c: Change "lib call" to "libcall" throughout.
14449 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
14450 HAVE_conditional_trap, emit_cmp_insn): Delete.
14451 (can_compare_p): Delete cmp_optab case.
14452 (prepare_float_lib_cmp): Return an rtx and a machine mode.
14453 Accept other parameters by value.
14454 (prepare_operand): Make non-static.
14455 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
14456 other parameters by value. Try to widen operands here based on
14457 an optab_methods argument and looking at cbranch_optab.
14458 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
14459 loop. Use cbranch_optab directly.
14460 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
14461 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
14463 (emit_conditional_move, emit_conditional_add): Inline what's needed
14464 of compare_from_rtx, using new prepare_cmp_insn for the rest.
14465 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
14466 with COMPARE. Move cmov_optab and cstore_optab above
14467 with cbranch_optab, move cmp_optab down with ucmp_optab,
14468 remove tst_otpab. Do not initialize trap_rtx.
14469 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
14470 for trap code. Do not check HAVE_conditional_trap. Use
14471 prepare_cmp_insn. Accept no predicate for operand 3.
14472 * optabs.h (OTI_cmp): Mark as used only for libcalls.
14473 (OTI_ctrap, ctrap_optab): New.
14474 (tst_optab): Delete.
14475 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
14476 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
14477 with lookup of ctrap_optab.
14478 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
14480 (ctrap_optab): New.
14482 * combine.c (combine_simplify_rtx, simplify_set): Do not
14483 special case comparing against zero for cc0 machines.
14484 * simplify-rtx.c (simplify_binary_operation_1): Never remove
14485 COMPARE on cc0 machines.
14486 (simplify_relational_operation): Return a new expression when
14487 a COMPARE could be removed.
14488 * final.c (final_scan_insn): Compare cc_status values
14489 against LHS of a (compare FOO (const_int 0)) cc0 source.
14490 Also check if cc_status.value is the full compare.
14492 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
14493 (cstoreMM4): Document.
14494 (conditional_trap): Document ctrapMM4 instead.
14495 (sync_compare_and_swapMM): Refer to cbranchcc4.
14496 (Dependent Patterns): Eliminate obsolete information referring to
14497 the old jump optimization phase.
14498 (Canonicalization): Include cbranchcc4 case, omit canonicalization
14499 of compares with 0 on cc0 machines.
14500 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
14501 avoiding references to cc0. Remove text about storing operands
14503 * doc/tm.texi (Condition Codes): Include blurb on different
14504 condition code representations, separate into subsections for
14505 CC0, MODE_CC and conditional execution.
14507 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
14508 alpha_emit_setcc): Accept operands and a machine mode.
14509 * config/alpha/alpha.c (alpha_emit_conditional_branch):
14510 Get code/op0/op1 from operands, use machine mode argument
14511 instead of alpha_compare.fp_p. Emit the branch here.
14512 (alpha_emit_setcc): Likewise, and return boolean.
14513 (alpha_emit_conditional_move): Likewise. Assert that
14514 cmp_op_mode == cmp_mode, and simplify accordingly.
14515 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
14516 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
14517 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
14519 (stack probe test): Use cbranchdi4.
14520 * config/alpha/predicates.md (alpha_cbranch_operator): New.
14522 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
14523 * config/arc/arc.h (movsicc, movsfcc): Use it.
14524 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
14525 (cbranchsi4, cstoresi4): New.
14526 (cmpsi, bCC and sCC expanders): Remove.
14528 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
14529 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
14530 * config/arm/predicates.md (arm_comparison_operator): Only include
14531 floating-point operators if there is a hardware floating-point unit.
14532 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
14533 deferring to cbranch_cc and cstore_cc respectively.
14534 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
14535 cbranch_cc, cstore_cc): New.
14536 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
14538 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
14540 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
14541 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
14543 (adjust_insn_length): Adjust calls.
14544 (avr_reorg): Handle (compare (foo) (const_int 0)).
14545 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
14546 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
14547 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
14548 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
14550 (cbranchqi4, cbranchhi4, cbranchsi4): New.
14551 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
14553 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
14554 (cbranchsi4, cstorebi4, cstoresi4): New.
14555 (movbisi): This insn is duplicate, split it to zero_extend.
14556 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
14557 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
14558 (bfin_optimize_loop): Use cbranch expander.
14559 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
14560 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
14561 (bfin_bimode_comparison_operator): ... this.
14562 (bfin_direct_comparison_operator): New.
14564 * config/cris/cris.c (cris_normal_notice_update_cc): Look
14565 inside (compare FOO (const_int 0)).
14566 (cris_rtx_costs): Handle ZERO_EXTRACT.
14567 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
14568 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
14569 (*tstdi_v32): Delete.
14570 (*cmpdi_non_v32): Add M alternative for operand 1.
14571 (cmpsi, cmp<mode>): Make private.
14572 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
14574 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
14576 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
14577 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
14578 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
14579 (cc_reg_operand): New.
14580 (any_cond): Delete.
14581 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
14582 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
14583 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
14584 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
14585 crx_expand_scond): Delete.
14587 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
14589 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
14590 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
14592 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
14593 cstoresi4, cstoresf4, cstoredf4): New.
14594 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
14595 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
14596 Receive the entire operands array.
14597 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
14598 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
14599 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
14600 Get test/op0/op1 from the operands array.
14601 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
14603 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
14604 (h8300_expand_store): New.
14605 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
14607 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
14608 (h8300_expand_store): New.
14609 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
14610 or do not try to produce (set (cc0) REG).
14611 (peepholes): Wrap arguments with COMPARE. Add a peephole to
14612 change a compare into a move to a scratch register. Disable some
14613 peepholes when comparing with zero.
14614 (tstsi, tsthi, tstsi, cmpqi): Make private.
14616 (bCC, sCC): Delete.
14617 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
14620 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
14621 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
14622 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
14623 (ix86_emit_i387_log1p): Use cbranchxf2.
14624 (ix86_expand_setcc): Return void.
14625 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
14626 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
14627 cmp<MODEF>, cmpcc): Remove.
14628 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
14629 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
14630 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
14631 (sCC and bCC expanders): Remove.
14632 (stack_protect_test): Use cbranchcc4.
14634 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
14636 (ia64_expand_compare): Accept three rtx by reference and return void.
14637 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
14638 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
14639 from *expr. Update *expr with the BImode comparison to do.
14640 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
14641 cmptf, bCC, sCC, conditional_trap): Delete.
14642 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
14643 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
14644 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
14645 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
14646 * config/ia64/predicates.md (ia64_cbranch_operator): New.
14648 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
14649 type of last argument.
14650 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
14651 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
14652 use machine mode argument instead of branch_type. Remove dead
14653 code for floating-point comparisons.
14654 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
14655 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
14657 (cbranchsi4, cstoresi4): New.
14658 * config/iq2000/predicates.md (reg_or_const_operand): New.
14660 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
14661 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
14662 (b<code>_op): Rewrite to...
14663 (bcc_op): ... this, using match_operator.
14664 (s<code>_op): Rewrite to...
14665 (scc_op): ... this, using match_operator.
14666 (s<code>_24_op): Rewrite to...
14667 (scc_op_24): ... this, using match_operator.
14668 (s<code>_<mode>): Rewrite to...
14669 (cstore<mode>4): ... this, using match_operator.
14670 (s<code>_<mode>_24): Rewrite to...
14671 (cstore<mode>4_24): ... this, using match_operator.
14672 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
14673 m32c_unpend_compare, m32c_expand_scc): Delete.
14674 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
14675 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
14676 (m32c_expand_movcc): Change NE to EQ if necessary.
14677 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
14679 * config/m32r/m32r-protos.h (gen_cond_store): New.
14680 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
14681 (gen_cond_store): New, from sCC patterns.
14682 (m32r_expand_block_move): Use cbranchsi4.
14683 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
14684 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
14685 (cbranchsi4, cstoresi4): New.
14687 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
14689 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
14690 (m68hc11_notice_update_cc): Look into a compare with 0.
14691 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
14693 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
14694 cmphi, cmpqi, bCC): Delete.
14695 (cbranchsi4, cbranchhi4, cbranchqi4): New.
14696 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
14697 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
14700 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
14701 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
14702 * config/m68k/constraints.md (H): New.
14703 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
14704 the define_insn below.
14705 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
14706 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
14707 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
14708 patterns): Wrap RHS with COMPARE.
14709 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
14710 (*cmpdi_internal): Name this pattern.
14711 (cmpdi): Change to define_insn.
14712 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
14713 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
14714 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
14716 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
14717 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
14718 (conditional_trap): Change to...
14719 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
14720 (*conditional_trap): Use the ordered_comparison_operator and
14721 const1_operand predicates.
14722 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
14723 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
14724 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
14725 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
14727 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
14728 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
14729 (mcore_gen_compare): New.
14730 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
14731 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
14732 (mcore_gen_compare): ... this.
14733 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
14734 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
14735 (stack probe pattern): Use cbranchsi4.
14737 * config/mips/predicates.md (mips_cstore_operator): New.
14738 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
14739 * config/mips/mips.md (any_cond): Delete.
14740 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
14742 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
14743 fixuns_truncsfdi2): Use cbranch patterns.
14744 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
14745 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
14746 Adjust call to mips_expand_conditional_branch.
14747 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
14749 * config/mips/mips-protos.h (mips_expand_conditional_branch,
14750 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
14751 * config/mips/mips.c (cmp_operands): Delete.
14752 (mips_emit_compare): Get comparison operands from *op0/*op1.
14753 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
14754 that it succeeds. Use op0/op1 instead of cmp_operands.
14755 (mips_expand_conditional_branch, mips_expand_conditional_move,
14756 mips_expand_conditional_trap): Likewise.
14757 (mips_block_move_loop): Use cbranch patterns.
14758 * config/mips/mips.h (cmp_operands): Delete.
14760 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
14761 (mmix_gen_compare_reg): Just return a register in the right CC mode.
14762 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
14763 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
14764 (*cmpcc_folded): Rename to...
14765 (*cmpdi_folded): this.
14766 (*cmpcc): Rename to...
14768 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
14771 (cbranchdf4): New. Handle invalid comparisons here.
14772 * config/mmix/predicates.md (float_comparison_operator): New.
14774 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
14775 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
14776 * config/mn10300/mn10300.md (tst): Delete.
14777 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
14778 Name these patterns and wrap RHS in a compare.
14779 (*cmpsi): Make this pattern private. Include tst.
14780 (*cmpsf): Make this pattern private.
14781 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
14782 (compare with zero peepholes): Likewise.
14784 (cbranchsi4, cbranchsf4): New.
14785 (casesi): Use cbranchsi4.
14787 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
14788 hppa_branch_type): Delete.
14789 (return_addr_rtx): Use cbranchsi4.
14790 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
14791 Emit CCFPmode comparison here.
14792 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
14793 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
14794 hppa_branch_type): Delete.
14795 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
14796 (movsicc, movdicc): Remove references to hppa_compare_op0,
14797 hppa_compare_op1 and compare_from_rtx.
14798 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
14799 (casesi): Use cbranchsi4.
14801 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
14802 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
14803 * config/pdp11/pdp11.md (register_or_const0_operand): New.
14804 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
14805 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
14807 (cbranchdf4, cbranchhi4, cbranchqi4): New.
14808 (*branch, *branch_inverted): New.
14810 * config/picochip/picochip.md (cbranchhi4): Use
14811 ordered_comparison_operator.
14812 (cmphi, bCC): Remove.
14814 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
14815 (trap_comparison_operator): Delete.
14816 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
14817 rs6000_emit_cbranch): Accept mode and operands.
14818 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
14819 rs6000_compare_fp_p): Delete.
14820 (rs6000_generate_compare): Accept mode and comparison. Extract code
14821 and op0/op1 from there. Replace references to rs6000_compare_op0
14822 and rs6000_compare_op1.
14823 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
14824 extract result from passed operands.
14825 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
14826 extract loc from passed operands.
14827 (rs6000_emit_cmove): Likewise.
14828 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
14829 rs6000_compare_fp_p): Delete.
14830 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
14831 (cbranch<GPR>4, cbranch<FP>4): New.
14832 (cstore<mode>4): New. Consolidate here all choices about when to use
14833 portable or specialized sCC sequences.
14834 (stack_protect_test): Use cbranchsi4.
14835 (conditional_trap): Replace with ctrap<GPR>4.
14836 (conditional trap insn): Replace trap_comparison_operator with
14837 ordered_comparison_operator.
14839 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
14840 (s390_emit_prologue): Use ctrap.
14841 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
14842 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
14843 New predicates replacing...
14844 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
14845 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
14846 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
14847 (add<mode>cc): Do not use s390_compare_op0/op1.
14848 (s<code>): Change to...
14849 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
14850 (seq): Change to...
14851 (cstorecc4): ... this. Handle EQ or NE equally.
14852 (*sne): Un-privatize for use in cstorecc4.
14853 (b<code>): Change to...
14854 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
14855 (conditional_trap): Replace with...
14856 (ctrap<GPR>4, ctrap<FP>4): ... these.
14857 (stack_protect): Use cbranchcc4.
14859 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
14860 * config/score/score-protos.h (score_gen_cmp): Delete.
14861 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
14862 (score_block_move-loop): Use cbranchsi4.
14863 * config/score/score.md (cbranchsi4): New.
14864 (cmpsi, bCC): Delete.
14865 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
14866 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
14867 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
14868 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
14869 * config/score/score3.h (score3_gen_cmp): Delete.
14870 * config/score/score7.h (score7_gen_cmp): Delete.
14872 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
14873 (sh_emit_scc_to_t): ... this. Return void.
14874 (from_compare): Rename to...
14875 (sh_emit_compare_and_branch): ... this.
14876 (sh_emit_compare_and_set): New.
14877 (sh_expand_t_scc): Accept operands.
14878 * config/sh/predicates.md (sh_float_comparison_operator): New.
14879 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
14880 (prepare_scc_operands): Rename to...
14881 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
14883 (sh_emit_cheap_store_flag): New.
14884 (sh_emit_set_t_insn): New.
14885 (from_compare): Rename to...
14886 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
14887 handling of TARGET_SH2E floating point to avoid recursive call.
14888 Generate branch here.
14889 (sh_emit_compare_and_set): New.
14890 (sh_expand_t_scc): Get op0/op1 from arguments.
14891 (sh_emit_cheap_store_flag): New.
14892 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
14894 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
14895 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
14896 (movsicc, movdicc): Do nothing when it recreated operands from
14897 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
14898 prepare_scc_operands (now sh_emit_scc_to_t).
14899 (udivdi3): Use cstoresi4.
14900 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
14901 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
14902 (cbranchint4_media, cbranchfp4_media): New.
14903 (casesi): Use cbranchdi4.
14904 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
14906 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
14907 (movnegt): Remove second operand.
14908 (cbranchsf4, cbranchdf4): New.
14909 (stack_protect): Use cbranchdi4/cbranchsi4.
14911 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
14912 (gen_compare_reg): Accept comparison, extract part of it to...
14913 (gen_compare_reg_1): ... this.
14914 (gen_compare_operator): Delete.
14915 (gen_v9_scc): Accept separate destination, comparison code and arms.
14916 Do not use sparc_compare_op0/sparc_compare_op1.
14917 (emit_scc_insn, emit_conditional_branch_insn): New.
14918 (emit_v9_brxx): Make static. Remove useless assertion.
14919 (sparc_emit_float_lib_cmp): Return RTL instead of calling
14921 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
14922 * config/sparc/sparc-protos.h (gen_compare_reg,
14923 sparc_emit_float_lib_cmp): Adjust prototype.
14924 (emit_scc_insn, emit_conditional_branch_insn): New.
14925 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
14926 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
14927 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
14928 iterators to the top.
14929 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
14930 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
14931 snedi_special_trunc): Delete.
14932 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
14933 and snedi_special_trunc.
14934 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
14935 cbranchdi4, cbranch<F:mode>4): New.
14936 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
14937 here. Use gen_compare_reg instead of gen_compare_operator.
14938 (conditional_trap): Replace with...
14939 (ctrapsi4, ctrapdi4): ... this.
14940 (stack_protect_test): Use cbranchcc4.
14942 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
14944 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
14945 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
14946 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
14947 from operands[0] or operands[3] depending on is_set.
14948 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
14949 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
14950 cmpdf, bCC), sCC: Remove.
14951 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
14952 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
14954 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
14955 spu_emit_branch_or_set.
14957 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
14959 * config/stormy16/stormy16.h (xstormy16_compare_op0,
14960 xstormy16_compare_op1): Delete.
14961 * config/stormy16/stormy16.c (xstormy16_compare_op0,
14962 xstormy16_compare_op1): Delete.
14963 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
14965 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
14966 (cmphi, cmpsi, bCC): Remove.
14968 * config/v850/v850.md (tstsi, cmpsi): Fold into...
14969 (*cmpsi): ... this one.
14970 (cbranchsi4, cstoresi4): New.
14971 (bCC expanders): Delete.
14972 (sCC insns): Fold into...
14973 (*setcc): ... this one.
14974 (casesi): Do not use gen_cmpsi and gen_bgtu.
14975 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
14976 (movsicc): Simplify.
14977 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
14979 * config/vax/vax-protos.h (cond_name): New.
14980 (vax_output_conditional_branch): Remove.
14981 * config/vax/vax.c (cond_name): New.
14982 (vax_output_conditional_branch): Remove.
14983 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
14984 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
14985 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
14986 (bit<VAXint>): Wrap source with (compare).
14987 (b<code> and following unnamed pattern): Rename to *branch and
14988 *branch_reversed. Change macroization to match_operator.
14989 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
14991 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
14992 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
14993 Change last argument to machine_mode.
14994 (xtensa_expand_scc): Add machine_mode argument.
14995 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
14996 (gen_conditional_move, xtensa_expand_conditional_branch,
14997 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
14998 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
14999 Adjust operand numbers.
15000 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
15002 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
15003 (cmpsi, cmpsf, b<code>, s<code>): Delete.
15004 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
15006 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
15008 * optabs.c (prepare_cmp_insn): Temporarily disable test that
15009 causes spurious differences between trunk and cond-optab branch.
15011 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
15014 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
15016 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
15018 * tree.c (iterative_hash_pointer): Delete.
15019 (iterative_hash_expr): Short-circuit handling of NULL pointer.
15020 Hash UIDs and versions of SSA names. Don't special-case built-in
15021 function declarations.
15023 2009-05-11 Ian Lance Taylor <iant@google.com>
15026 * graphite.c: Force -Wc++-compat to only be a warning before
15027 #including "cloog/cloog.h".
15029 2009-05-11 Martin Jambor <mjambor@suse.cz>
15031 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
15033 2009-05-11 Jan Hubicka <jh@suse.cz>
15035 * tree-ssa-loop-ivcanon.c: Include target.h
15036 (struct loop_size): new structure.
15037 (constant_after_peeling): New predicate.
15038 (tree_estimate_loop_size): New function.
15039 (estimated_unrolled_size): Rewrite for new estimates.
15040 (try_unroll_loop_completely): Use new estimates.
15041 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
15043 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
15045 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
15046 libcpp interface change.
15047 (spu_macro_to_expand): Likewise.
15049 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
15051 PR tree-optimization/40026
15052 * gimplify.c (gimplify_init_constructor): Change initial conditional
15053 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
15054 optimize_compound_literals_in_ctor.
15056 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
15058 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
15060 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
15062 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
15064 * tree-vect-data-refs.c (vect_analyze_group_access): Use
15065 HOST_WIDE_INT for gap.
15067 2009-05-11 Ira Rosen <irar@il.ibm.com>
15069 PR tree-optimization/40074
15070 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
15071 account in group size and step comparison.
15073 2009-05-11 Richard Guenther <rguenther@suse.de>
15075 * passes.c (init_optimization_passes): Strip now incorrect comment.
15076 (execute_function_todo): Do not set PROP_alias.
15077 * tree-pass.h (PROP_alias): Remove.
15078 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
15079 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
15080 * tree-nrv.c (pass_return_slot): Likewise.
15081 * tree-object-size.c (pass_object_sizes): Likewise.
15082 * tree-ssa-dom.c (pass_dominator): Likewise.
15083 (pass_phi_only_cprop): Likewise.
15084 * tree-ssa-dse.c (pass_dse): Likewise.
15085 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
15086 (pass_cselim): Likewise.
15087 * tree-ssa-pre.c (pass_pre): Likewise.
15088 (pass_fre): Likewise.
15089 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
15090 * tree-ssa-sink.c (pass_sink_code): Likewise.
15091 * tree-stdarg.c (pass_stdarg): Likewise.
15092 * tree-tailcall.c (pass_tail_calls): Likewise.
15093 * tree-vrp.c (pass_vrp): Likewise.
15095 2009-05-10 Ian Lance Taylor <iant@google.com>
15097 * basic-block.h (enum profile_status): Break out of struct
15098 control_flow_graph.
15099 * cgraph.h (struct inline_summary): Break out of struct
15101 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
15102 of struct cgraph_order_sort.
15103 * combine.c (enum undo_kind): New enum, broken out of struct undo.
15104 * cse.c (struct branch_path): Break out of struct
15105 cse_basic_block_data.
15106 * except.h (enum eh_region_type): Break out of struct eh_region.
15107 * gcc.c (enum add_del): Break out of struct modify_target.
15108 * genrecog.c (enum decision_type): Break out of struct decision_test.
15109 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
15111 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
15112 * regmove.c (enum match_use): New enum, broken out of struct match.
15113 * sched-int.h (enum post_call_group): New enum, broken out of
15115 (struct deps_reg): Break out of struct deps.
15116 * target.h (struct asm_int_op): Break out of struct gcc_target.
15117 * tree-eh.c (struct goto_queue_node): Break out of struct
15119 * tree-inline.h (enum copy_body_cge_which): Break out of
15121 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
15123 * c-decl.c (in_struct, struct_types): New static variables.
15124 (pushtag): Add loc parameter. Change all callers.
15125 (lookup_tag): Add ploc parameter. Change all callers.
15126 (check_compound_literal_type): New function.
15127 (parser_xref_tag): Add loc parameter. Change all callers. If
15128 -Wc++-compat, warn about struct/union/enum types defined within a
15130 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
15131 and loc parameters. Change all callers. Change error calls to
15132 error_at, using loc. For a redefinition, if the location of the
15133 original definition is known, report it. Set in_struct and
15134 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
15135 (finish_struct): Add new parameters enclosing_in_struct and
15136 enclosing_struct_types. Change all callers. Set
15137 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
15138 in the struct. If in a struct, add this struct to struct_types.
15139 (start_enum): Add loc parameter. Change all callers. Use
15140 error_at for errors, using loc. For a redefinition, if the
15141 location of the original definition is known, report it. If in a
15142 struct, add this enum type to struct_types. If -Wc++-compat warn
15143 if in sizeof, typeof, or alignof.
15144 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
15145 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
15146 (c_parser_enum_specifier): Get enum location for start_enum.
15147 (c_parser_struct_or_union_specifier): Get struct location for
15148 start_struct. Save in_struct and struct_types status between
15149 start_struct and finish_struct.
15150 (c_parser_cast_expression): Get location of cast.
15151 (c_parser_alignof_expression): Get location of type.
15152 (c_parser_postfix_expression): Likewise.
15153 (c_parser_postfix_expression_after_paren_type): Add type_loc
15154 parameter. Change all callers. Call check_compound_literal_type.
15155 Use type_loc for error about variable size type.
15156 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
15157 of an enum constant from an enum type defined in a struct or union.
15158 (c_cast_expr): Add loc parameter. Change all callers. If
15159 -Wc++-compat, warn about defining a type in a cast.
15160 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
15161 (start_enum, start_struct, finish_struct): Update declarations.
15162 (parser_xref_tag, c_cast_expr): Update declarations.
15163 (check_compound_literal_type): Declare.
15165 2009-05-11 Ben Elliston <bje@au.ibm.com>
15167 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
15168 for recent libcpp interface change.
15169 (rs6000_macro_to_expand): Likewise.
15171 2009-05-10 Michael Matz <matz@suse.de>
15174 * config/arm/arm.c (require_pic_register): Emit on entry edge,
15175 not at entry of function.
15177 2009-05-10 Richard Guenther <rguenther@suse.de>
15179 PR tree-optimization/40081
15181 * tree-sra.c (instantiate_element): Instantiate scalar replacements
15182 using the main variant of the element type. Do not fiddle with
15183 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
15185 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
15186 structs with volatile fields.
15188 2009-05-10 Jan Hubicka <jh@suse.cz>
15190 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
15191 (estimate_move_cost): Assert that it does not get called for
15193 (estimate_num_insns): Skip VOID types in argument handling.
15194 (optimize_inline_calls): Delete unreachable blocks and verify that
15195 callgraph is valid.
15197 2009-05-10 Jan Hubicka <jh@suse.cz>
15199 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
15200 * cgraph.c (cgraph_mark_address_taken_node): New function.
15201 (dump_cgraph_node): Dump new flag.
15202 * cgraph.h (struct cgraph_node): Add address_taken.
15203 (cgraph_mark_address_taken_node): New function.
15204 * ipa.c (cgraph_postorder): Prioritize functions with address taken
15205 since new direct calls can be born.
15207 2009-05-10 Joseph Myers <joseph@codesourcery.com>
15209 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
15210 tok->val.node.node.
15212 2009-05-10 Jan Hubicka <jh@suse.cz>
15214 PR middle-end/40084
15215 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
15217 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
15218 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
15219 * tree-inline.c (copy_bb): Set frequency correctly.
15220 (fold_marked_statements): Update call to
15221 cgraph_update_edges_for_call_stmt.
15223 2009-05-10 Joseph Myers <joseph@codesourcery.com>
15225 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
15226 identifiers in diagnostics.
15227 * config/arm/arm.c (arm_handle_fndecl_attribute,
15228 arm_handle_isr_attribute): Likewise.
15229 * config/avr/avr.c (avr_handle_progmem_attribute,
15230 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
15231 * config/bfin/bfin.c (handle_int_attribute,
15232 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
15233 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
15234 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
15236 * config/darwin.c (darwin_handle_kext_attribute,
15237 darwin_handle_weak_import_attribute): Likewise.
15238 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
15239 h8300_handle_eightbit_data_attribute,
15240 h8300_handle_tiny_data_attribute): Likewise.
15241 * config/i386/i386.c (ix86_handle_cconv_attribute,
15242 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
15243 * config/i386/winnt.c (ix86_handle_shared_attribute,
15244 ix86_handle_selectany_attribute): Likewise.
15245 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
15246 * config/m32c/m32c.c (function_vector_handler): Likewise.
15247 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
15248 m68hc11_handle_fntype_attribute): Likewise.
15249 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
15250 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
15251 * config/mips/mips.c (mips_insert_attributes,
15252 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
15253 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
15254 rs6000_handle_struct_attribute): Likewise.
15255 * config/sh/sh.c (sh_insert_attributes,
15256 sh_handle_resbank_handler_attribute,
15257 sh_handle_interrupt_handler_attribute,
15258 sh2a_handle_function_vector_handler_attribute,
15259 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
15261 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
15262 * config/spu/spu.c (spu_handle_fndecl_attribute,
15263 spu_handle_vector_attribute): Likewise.
15264 * config/stormy16/stormy16.c
15265 (xstormy16_handle_interrupt_attribute): Likewise.
15266 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
15267 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
15269 2009-05-10 Joseph Myers <joseph@codesourcery.com>
15271 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
15272 (pp_translate_identifiers): New.
15273 (pp_identifier): Only conditionally translate identifier to locale
15275 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
15276 (pp_base_tree_identifier): Only conditionally translate identifier
15277 to locale character set.
15278 * c-pretty-print.c (M_): Define.
15279 (pp_c_type_specifier, pp_c_primary_expression): Mark English
15280 fragments for conditional translation with M_.
15281 * tree-pretty-print.c (maybe_init_pretty_print): Disable
15282 identifier translation.
15284 2009-05-10 Richard Guenther <rguenther@suse.de>
15286 PR tree-optimization/40081
15287 * tree-sra.c (instantiate_element): Instantiate scalar replacements
15288 using the main variant of the element type. Do not fiddle with
15289 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
15291 2009-05-09 Jan Hubicka <jh@suse.cz>
15293 PR middle-end/40080
15294 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
15295 indirect calls; verify cgraph afterwards.
15297 2009-05-09 Jan Hubicka <jh@suse.cz>
15300 * ipa.c (update_inlined_to_pointer): New function.
15301 (cgraph_remove_unreachable_nodes): Use it.
15303 2009-05-09 Jan Hubicka <jh@suse.cz>
15305 * tree-eh.c (struct leh_state): Remove prev_try.
15306 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
15307 not track prev_try.
15308 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
15309 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
15310 remove_eh_handler_and_replace, foreach_reachable_handler,
15311 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
15312 * except.h (struct eh_region): Remove eh_region_u_cleanup.
15313 (gen_eh_region_cleanup): Update prototype.
15315 2009-05-09 Jan Hubicka <jh@suse.cz>
15317 PR middle-end/40043
15318 * except.c (copy_eh_region): Always set prev_try.
15319 (redirect_eh_edge_to_label): Find outer try.
15320 (foreach_reachable_handler): When looking for prev try
15321 handle case where previous try is not going to be taken.
15323 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
15325 PR tree-optimization/40049
15326 * tree-vect-stmts.c (vectorizable_operation): If the machine has
15327 only vector/vector shifts, convert the type of the constant to the
15328 appropriate type to avoid building incorrect trees, which
15329 eventually have problems with garbage collection.
15331 2009-05-08 Joseph Myers <joseph@codesourcery.com>
15333 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
15334 -1 for complex floating-point types if honoring signed zeros.
15336 2009-05-08 Jan Hubicka <jh@suse.cz>
15338 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
15339 argument; handle correctly when profile is absent.
15340 (build_cgraph_edges): Update.
15341 (rebuild_cgraph_edges): Update.
15342 * cgraph.c: Do not include varray.h.
15343 (cgraph_set_call_stmt_including_clones): New function.
15344 (cgraph_create_edge_including_clones): Likewise
15345 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
15346 (cgraph_update_edges_for_call_stmt): Handle clones.
15347 (cgraph_remove_node): Handle clone tree.
15348 (cgraph_remove_node_and_inline_clones): New function.
15349 (dump_cgraph_node): Dump clone tree.
15350 (cgraph_clone_node): Handle clone tree.
15351 (clone_function_name): Bring here from tree-inline.c.
15352 (cgraph_create_virtual_clone): New function.
15353 * cgraph.h (ipa_replace_map): Move here from ipa.h.
15354 (cgraph_clone_info): New function.
15355 (strut cgraph_node): Add clone_info and new clone tree pointers.
15356 (cgraph_remove_node_and_inline_clones,
15357 cgraph_set_call_stmt_including_clones,
15358 cgraph_create_edge_including_clones,
15359 cgraph_create_virtual_clone): Declare.
15360 (cgraph_function_versioning): Use VEC argument.
15361 (compute_call_stmt_bb_frequency): Update prototype.
15362 (cgraph_materialize_all_clones): New function.
15363 * ipa-cp.c (ipcp_update_cloned_node): Remove.
15364 (ipcp_create_replace_map): Update to VECtors.
15365 (ipcp_update_callgraph): Use virtual clones.
15366 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
15367 (ipcp_update_profiling): Do not update local profiling.
15368 (ipcp_insert_stage): Use VECtors and virtual clones.
15369 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
15370 (clone_of_p): New function.
15371 (cgraph_preserve_function_body_p): Use clone tree.
15372 (cgraph_optimize): Materialize clones.
15373 (cgraph_function_versioning): Update for VECtors.
15374 (save_inline_function_body): Use clone tree.
15375 (cgraph_materialize_clone): New function.
15376 (cgraph_materialize_all_clones): Likewise.
15377 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
15378 * ipa.c: Include gimple.h.
15379 (cgraph_remove_unreachable_nodes): Use clone tree.
15380 * ipa-prop.c (ipa_note_param_call): Update call to
15381 compute_call_stmt_bb_frequencycall.
15382 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
15383 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
15384 (copy_bb): Handle updating of clone tree; add new edge when new call
15386 (expand_call_inline): Be strict about every call having edge.
15387 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
15388 (delete_unreachable_blocks_update_callgraph): New function.
15389 (tree_function_versioning): Use VECtors; always remove unreachable
15390 blocks and fold conditionals.
15391 * tree-inline.h: Do not include varray.h.
15392 (tree_function_versioning): Remove.
15393 * Makefile.in (GTFILES): Remove tree-inline.c
15394 * passes.c (do_per_function): Do only functions having body.
15395 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
15398 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
15399 Andrew Morrow <acm@google.com>
15402 * c-common.c (c_common_attribute_table): Permit deprecated
15403 attribute to take an optional argument.
15404 (handle_deprecated_attribute): If the optional argument to
15405 __attribute__((deprecated)) is not a string ignore the attribute
15406 and emit a warning.
15408 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
15409 * c-typeck.c (build_component_ref): Likewise.
15410 (build_external_ref): Likewise.
15412 * toplev.c (warn_deprecated_use): Add an attribute argument.
15413 Emit the message associated with __attribute__((deprecated)).
15415 * toplev.h (warn_deprecated_use): Updated.
15417 * doc/extend.texi: Document new optional parameter to
15418 __attribute__((deprecated))
15420 2009-05-08 Michael Eager <eager@eagercon.com>
15422 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
15423 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
15425 2009-05-08 Richard Guenther <rguenther@suse.de>
15427 PR tree-optimization/40062
15428 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
15429 Avoid exponential behavior.
15431 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
15433 PR rtl-optimization/33928
15435 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
15436 process_uses, build_single_def_use_links): New.
15437 (update_df): Update use_def_ref.
15438 (forward_propagate_into): Use get_def_for_use instead of use-def
15440 (fwprop_init): Call build_single_def_use_links and let it initialize
15442 (fwprop_done): Free use_def_ref.
15443 (fwprop_addr): Eliminate duplicate call to df_set_flags.
15444 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
15445 df_rd_simulate_one_insn): New.
15446 (df_rd_bb_local_compute_process_def): Update head comment.
15447 (df_chain_create_bb): Use the new RD simulation functions.
15448 * df.h (df_rd_simulate_artificial_defs_at_top,
15449 df_rd_simulate_one_insn): New.
15450 * opts.c (decode_options): Enable fwprop at -O1.
15451 * doc/invoke.texi (-fforward-propagate): Document this.
15453 2009-05-08 Joseph Myers <joseph@codesourcery.com>
15456 * c-typeck.c (build_binary_op): Handle arithmetic between one real
15457 and one complex operand specially.
15458 * tree-complex.c (some_nonzerop): Do not identify a real value as
15459 zero if flag_signed_zeros.
15461 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
15463 PR rtl-optimization/33928
15464 * loop-invariant.c (record_use): Fix && vs. || mishap.
15466 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
15468 PR rtl-optimization/33928
15469 * loop-invariant.c (struct use): Add addr_use_p.
15470 (struct def): Add n_addr_uses.
15471 (struct invariant): Add cheap_address.
15472 (create_new_invariant): Set cheap_address.
15473 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
15474 (record_uses): Pass df_ref to record_use.
15475 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
15478 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
15480 * config/sh/sh.c: Do not include c-pragma.h.
15482 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
15484 * config/spu/spu.c: Remove include of c-common.h.
15486 2009-05-07 Janis Johnson <janis187@us.ibm.com>
15489 * c-common.h (mark_valid_location_for_stdc_pragma,
15490 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
15491 clear_float_const_decimal64, float_const_decimal64_p): New.
15492 * c.opt (Wunsuffixed-float-constants): New.
15493 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
15494 unsuffixed float constant, handle new warning.
15495 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
15496 * c-decl.c (c_scope): New flag float_const_decimal64.
15497 (set_float_const_decimal64, clear_float_const_decimal64,
15498 float_const_decimal64_p): New.
15499 (push_scope): Set new flag.
15500 * c-parser.c (c_parser_translation_unit): Mark when it's valid
15501 to use STDC pragmas.
15502 (c_parser_external_declaration): Ditto.
15503 (c_parser_compound_statement_nostart): Ditto.
15504 * c-pragma.c (valid_location_for_stdc_pragma,
15505 mark_valid_location_for_stdc_pragma,
15506 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
15507 handle_pragma_float_const_decimal64): New.
15508 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
15509 * cp/semantics.c (valid_location_for_stdc_pragma_p,
15510 set_float_const_decimal64, clear_float_const_decimal64,
15511 float_const_decimal64_p): New dummy functions.
15512 * doc/extend.texi (Decimal Float): Remove statement that the
15513 pragma, and suffix for double constants, are not supported.
15514 * doc/invoke.texi (Warning Options): List new option.
15515 (-Wunsuffixed-float-constants): New.
15517 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
15519 * config/i386/i386.c: Do not include c-common.h.
15521 2009-05-07 Mark Heffernan <meheff@google.com>
15523 * doc/invoke.texi (Debugging Options): Document change of debugging
15525 * opts.c (decode_options): Make dump_base_name relative to
15526 aux_base_name directory.
15528 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
15530 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
15531 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
15533 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
15535 * Makefile.in (install-plugin): Simplify a bit.
15537 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
15539 * Makefile.in (OBJS-common): Add regcprop.o.
15541 * timevar.def (TV_CPROP_REGISTERS): New.
15542 * regrename.c (regrename_optimize): Return 0.
15543 (rest_of_handle_regrename): Delete.
15544 (pass_rename_registers): Point to regrename_optimize.
15545 (struct value_data_entry, struct value_data,
15546 kill_value_one_regno, kill_value_regno, kill_value,
15547 set_value_regno, init_value_data, kill_clobbered_value,
15548 kill_set_value, kill_autoinc_value, copy_value,
15549 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
15550 replace_oldest_value_reg, replace_oldest_value_addr,
15551 replace_oldest_value_mem, copyprop_hardreg_forward_1,
15552 debug_value_data, validate_value_data): Move...
15553 * regcprop.c: ... here.
15554 (rest_of_handle_cprop): Delete.
15555 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
15557 2009-05-07 Jakub Jelinek <jakub@redhat.com>
15559 PR middle-end/40057
15560 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
15561 GEN_INT for 1 << bitnum.
15562 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
15563 build_int_cst_type.
15565 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
15567 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
15568 Remove wrong description of "nand" operation.
15570 2009-05-06 Richard Guenther <rguenther@suse.de>
15571 Adam Nemet <anemet@caviumnetworks.com>
15573 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
15574 comment. Add that if LHS is not a gimple register, then RHS1 has
15575 to be a single object (GIMPLE_SINGLE_RHS).
15577 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
15579 * expr.c (get_def_for_expr): Move it up in the file.
15580 (store_field): When expanding a bit-field store, look at the
15581 defining gimple stmt for the masking conversion.
15583 2009-05-06 Janis Johnson <janis187@us.ibm.com>
15585 PR middle-end/39986
15586 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
15587 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
15588 32-bit memcpy into long.
15590 2009-05-06 Jakub Jelinek <jakub@redhat.com>
15592 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
15593 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
15595 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
15596 instead of appending DW_OP_deref*.
15598 2009-05-06 Michael Matz <matz@suse.de>
15600 PR middle-end/40021
15601 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
15602 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
15604 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
15606 * Makefile.in (install-plugin): Fix srcdir handling.
15608 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
15610 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
15611 when processing for not_regs_needed bitmap.
15612 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
15613 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
15614 handling it for rhs.
15616 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
15618 * config/i386/i386.md (unnamed inc/dec peephole): Use
15619 optimize_insn_for_size_p instead of optimize_size.
15620 * config/i386/predicates.md (incdec_operand): Likewise.
15621 (aligned_operand): Likewise.
15622 * config/i386/sse.md (divv8sf3): Likewise.
15623 (sqrtv8sf2): Likewise.
15625 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
15627 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
15629 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
15631 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
15633 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
15634 ssemodesuffixf2c with avxmodesuffixf2c.
15636 2009-05-06 Joseph Myers <joseph@codesourcery.com>
15639 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
15641 2009-05-05 Jakub Jelinek <jakub@redhat.com>
15643 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
15644 (struct tree_base): Adjust spacing for 8 bit boundaries.
15645 (struct tree_decl_common): Add decl_by_reference_flag bit.
15646 (DECL_BY_REFERENCE): Adjust.
15647 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
15648 print DECL_BY_REFERENCE bit.
15649 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
15650 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
15651 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
15652 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
15655 PR middle-end/39666
15656 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
15657 range of the type, but default label is missing, add it with one
15658 of the existing labels instead of adding a new label for it.
15660 2009-05-05 Joseph Myers <joseph@codesourcery.com>
15664 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
15666 * Makefile.in (enable_plugin, plugin_includedir): New.
15667 (install): Depend on install-plugin.
15668 (PLUGIN_HEADERS): New.
15669 (install-plugin): New.
15670 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
15672 2009-05-05 Richard Guenther <rguenther@suse.de>
15674 PR tree-optimization/40022
15675 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
15677 (phivn_valid_p): Fix tuplification error, simplify.
15678 (phiprop_insert_phi): Add dumps.
15679 (propagate_with_phi): Simplify.
15681 2009-05-05 Richard Guenther <rguenther@suse.de>
15683 PR middle-end/40023
15684 * builtins.c (gimplify_va_arg_expr): Properly build the address.
15686 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
15688 * tree.h (strip_float_extensions): Remove duplicate declaration.
15689 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
15690 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
15691 block_ultimate_origin): Rearrange the declarations line to match the
15692 comment that indicates the .c file which the functions are defined.
15693 (dwarf2out_*, set_decl_rtl): Add comment.
15694 (get_base_address): Adjust comment.
15695 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
15696 declarations line and add comment.
15697 (is_builtin_name): Add blank after function name, for clarity.
15699 2009-05-04 Joseph Myers <joseph@codesourcery.com>
15701 * attribs.c (decl_attributes): Use %qE for identifiers in
15703 * cgraphunit.c (verify_cgraph_node): Translate function names to
15704 locale character set in diagnostics.
15705 * coverage.c (get_coverage_counts): Use %qE for identifiers in
15707 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
15708 Document that functions are named in UTF-8.
15709 * expr.c (expand_expr_real_1): Translate function names to locale
15710 character set in diagnostics.
15711 * gimplify.c (omp_notice_variable, omp_is_private,
15712 gimplify_scan_omp_clauses): Use %qE for identifiers in
15714 * langhooks.c (lhd_print_error_function): Translate function names
15715 to locale character set.
15716 * langhooks.h (decl_printable_name): Document that return value is
15717 in internal character set.
15718 * stmt.c: Include pretty-print.h
15719 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
15721 (resolve_operand_name_1): Translate named operand name to locale
15723 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
15725 * toplev.c (announce_function): Translate function names to locale
15727 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
15728 (default_tree_printer): Use pp_identifier or translate identifiers
15729 to locale character set. Mark "<anonymous>" for translation.
15730 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
15731 for identifiers in diagnostics.
15732 * tree.c (handle_dll_attribute): Use %qE for identifiers in
15734 * varasm.c (output_constructor): Use %qE for identifiers in
15737 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
15739 * configure.ac: use ` ` instead of $()
15740 * configure: Regenerate.
15742 2009-05-05 Ben Elliston <bje@au.ibm.com>
15744 * config/pa/linux-atomic.c: Eliminate conditional include of
15745 errno.h on non-LP64 systems to simplify build requirements.
15747 2009-05-04 Joseph Myers <joseph@codesourcery.com>
15749 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
15751 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
15752 and pass value to identifier_to_locale.
15753 (warn_variable_length_array): Make name a tree.
15754 (grokdeclarator): Separate diagnostic texts for named and unnamed
15755 declarators. Use %qE for named declarators.
15756 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
15758 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
15759 identifiers in diagnostics.
15760 * c-typeck.c (push_member_name, start_init): Pass identifiers to
15761 identifier_to_locale. Mark "anonymous" strings for translation.
15763 2009-05-04 Michael Eager <eager@eagercon.com>
15765 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
15766 address for DImode/DFmode only if double-precision FP regs.
15768 2009-05-04 Michael Eager <eager@eagercon.com>
15770 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
15771 TARGET_SINGLE_FLOAT check.
15773 2009-05-04 Michael Eager <eager@eagercon.com>
15775 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
15777 2009-05-04 Michael Eager <eager@eagercon.com>
15779 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
15780 * config/rs6000/t-xilinx: New
15782 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
15784 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
15785 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
15786 * gcc/explow.c (memory_address): Use target hook.
15787 * gcc/targhooks.c (default_legitimize_address): New.
15788 * gcc/targhooks.h (default_legitimize_address): New.
15789 * gcc/target.h (legitimize_address): New.
15790 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
15791 (TARGET_INITIALIZER): Include it.
15792 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
15794 * config/bfin/bfin-protos.h (legitimize_address): Remove.
15795 * config/bfin/bfin.c (legitimize_address): Remove.
15796 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
15797 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
15799 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
15800 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
15802 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
15803 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
15804 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
15805 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
15806 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
15807 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
15808 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
15809 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
15810 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
15811 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
15812 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
15813 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
15814 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
15815 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
15816 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
15817 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
15818 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
15819 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
15820 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
15821 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
15822 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
15823 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
15824 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
15826 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
15827 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
15828 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
15829 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
15830 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
15831 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
15832 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
15833 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
15834 (thumb_legitimize_address): Delete.
15835 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
15836 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
15837 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
15838 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
15839 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
15840 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
15842 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
15845 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
15846 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
15847 * config/m32r/m32r.c (m32r_legitimize_address): New.
15848 * config/m68k/m68k.c (m68k_legitimize_address): New.
15849 * config/score/score.c (score_legitimize_address): Standardize.
15850 * config/score/score3.c (score3_legitimize_address): Standardize.
15851 * config/score/score3.h (score3_legitimize_address): Adjust.
15852 * config/score/score7.c (score7_legitimize_address): Standardize.
15853 * config/score/score7.h (score7_legitimize_address): Adjust.
15854 * config/sh/sh.c (sh_legitimize_address): New.
15855 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
15857 * gcc/config/s390/s390.c (legitimize_address): Rename to...
15858 (s390_legitimize_address): ... this.
15859 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
15860 (sparc_legitimize_address): ... this.
15861 * gcc/config/i386/i386.c (legitimize_address): Rename to...
15862 (ix86_legitimize_address): ... this.
15863 * gcc/config/avr/avr.c (legitimize_address): Rename to...
15864 (avr_legitimize_address): ... this.
15865 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
15866 (mn10300_legitimize_address): ... this.
15867 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
15868 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
15869 (alpha_expand_mov): Adjust call.
15871 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
15872 * config/spu/spu.c (spu_legitimize_address): Likewise.
15873 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
15874 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
15876 2009-05-04 Joseph Myers <joseph@codesourcery.com>
15878 * intl.c (locale_encoding, locale_utf8): New.
15879 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
15880 * intl.h (locale_encoding, locale_utf8): Declare.
15881 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
15882 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
15884 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
15886 (pp_tree_identifier): Define to call pp_base_tree_identifier.
15887 (pp_base_tree_identifier): Declare as function.
15888 (identifier_to_locale): Declare.
15889 * Makefile.in (pretty-print.o): Update dependencies.
15890 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
15892 2009-05-04 Richard Guenther <rguenther@suse.de>
15894 PR middle-end/40015
15895 * builtins.c (fold_builtin_memory_op): Do not decay to element
15896 type if the size matches the whole array.
15898 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
15900 * expmed.c (synth_mult): When trying out a shift, pass the result
15903 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
15905 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
15906 (shiftsub1_cost): New.
15907 (init_expmed): Compute shiftsub1_cost.
15908 (synth_mult): Optimize multiplications by constants of the form
15909 -(2^^m-1) for some constant positive integer m.
15911 2009-05-03 Richard Guenther <rguenther@suse.de>
15914 * c-typeck.c (array_to_pointer_conversion): Do not built
15915 ADDR_EXPRs of arrays of pointer-to-element type.
15916 * c-gimplify.c (c_gimplify_expr): Revert change fixing
15917 up wrong ADDR_EXPRs after-the-fact.
15918 * c-common.c (strict_aliasing_warning): Strip pointer
15919 conversions for obtaining the original type.
15920 * builtins.c (fold_builtin_memset): Handle array types.
15921 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
15924 2009-05-03 Richard Guenther <rguenther@suse.de>
15926 PR middle-end/23329
15927 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
15928 Do not lose casts from array types with unknown extent to array
15929 types with known extent.
15930 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
15931 alias set compatibility.
15933 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
15935 * flags.h (extra_warnings): Delete.
15936 * toplev.c (process_options): Handle Wuninitialized here.
15937 * opts.c (extra_warnings): Delete.
15938 (set_Wextra): Delete.
15939 (common_handle_option): -Wextra can be handled automatically.
15940 * c-opts.c (c_common_handle_option): Delete obsolete code.
15941 (c_common_post_options): Simplify comment.
15942 * common.opt (W): Add Var.
15944 (Wuninitialized): Initialize to -1.
15946 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
15947 Richard Guenther <rguenther@suse.de>
15949 * expr.c (get_def_for_expr): New function.
15950 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
15951 SSA rather than trees.
15952 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
15953 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
15955 2009-05-03 Joseph Myers <joseph@codesourcery.com>
15957 * c-common.c (reswords): Add _Imaginary.
15958 * c-common.c (enum rid): Add RID_IMAGINARY.
15960 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
15962 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
15963 Patch by Richard Guenther.
15965 2009-05-03 Anatoly Sokolov <aesok@post.ru>
15967 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
15968 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
15969 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
15970 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
15971 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
15972 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
15973 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
15974 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
15975 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
15976 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
15977 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
15978 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
15979 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
15980 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
15981 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
15982 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
15983 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
15984 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
15986 2009-05-02 Richard Guenther <rguenther@suse.de>
15988 PR tree-optimization/39940
15989 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
15992 2009-05-02 Richard Guenther <rguenther@suse.de>
15994 PR middle-end/40001
15995 * tree-ssa.c (execute_update_addresses_taken): Properly check
15996 if we can mark a variable DECL_GIMPLE_REG_P.
15997 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
15998 back to the end of the function.
15999 (is_gimple_reg_type): Remove complex type special casing.
16000 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
16003 2009-05-02 Ben Elliston <bje@au.ibm.com>
16005 * doc/collect2.texi (Collect2): Document search path behaviour
16006 when configured with --with-ld.
16008 2009-05-02 Jan Hubicka <jh@suse.cz>
16010 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
16011 parameter; update callers.
16012 (coalesce_cost_edge): EH edges are costier because they needs
16013 splitting even if not critical and even more costier when there are
16014 multiple EH predecestors.
16016 2009-05-02 Jan Hubicka <jh@suse.cz>
16018 * except.c (remove_eh_handler_and_replace): Handle updating after
16019 removing TRY blocks.
16021 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
16023 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
16025 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
16027 * varasm.c: Do not include c-pragma.h.
16028 * attribs.c: Do not incude c-common.h.
16030 2009-05-01 Michael Matz <matz@suse.de>
16032 * calls.c (initialize_argument_information): Handle SSA names like
16033 decls with a non MEM_P DECL_RTL.
16035 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
16037 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
16038 * ipa-utils.c: Likewise.
16039 * ipa-type-escape.c: Likewise.
16040 * cgraphunit.c Do not include c-common.h.
16041 * ipa-pure-const.c: Likewise.
16042 * tree-if-conv.c: Likewise.
16043 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
16044 * ipa-struct-reorg.c: Likewise.
16045 * tree-nomudflap.c: Likewise.
16046 * tree-ssa-structalias.c: Likewise.
16048 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
16050 * store-motion.c: Many cleanups to make this pass a first-class
16051 citizen instead of an appendix to gcse load motion. Add TODO list
16052 to make this pass faster/cleaner/better.
16054 (struct ls_expr): Post gcse.c-split cleanups.
16055 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
16056 "stores" field to "avail_stores".
16057 (pre_ldst_mems): Rename to store_motion_mems.
16058 (pre_ldst_table): Rename to store_motion_mems_table.
16059 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
16060 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
16061 (ldst_entry): Rename to st_expr_entry, update users.
16062 (free_ldst_entry): Rename to free_st_expr_entry, update users.
16063 (free_ldst_mems): Rename to free_store_motion_mems, update users.
16064 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
16066 (first_ls_expr): Rename to first_st_expr, update users.
16067 (next_ls_expr): Rename to next_st_expr, update users.
16068 (print_ldst_list): Rename to print_store_motion_mems. Print names of
16069 fields properly for store motion instead of names inherited from load
16071 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
16072 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
16075 (ae_kill): Rename to st_kill, update users.
16076 (ae_gen): Rename to st_avloc, update users.
16077 (transp): Rename to st_transp, update users.
16078 (pre_insert_map): Rename to st_insert_map, update users.
16079 (pre_delete_map): Rename to st_delete_map, update users.
16080 (insert_store, build_store_vectors, free_store_memory,
16081 one_store_motion_pass): Update for abovementioned changes.
16083 (gcse_subst_count, gcse_create_count): Remove.
16084 (one_store_motion_pass): New statistics counters "n_stores_deleted"
16085 and "n_stores_created", local variables.
16087 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
16090 (regvec, compute_store_table_current_insn): Remove.
16091 (reg_set_info, reg_clear_last_set): Remove.
16092 (compute_store_table): Use DF caches instead of local dataflow
16095 2009-05-01 Joseph Myers <joseph@codesourcery.com>
16097 * c-objc-common.c (c_tree_printer): Print identifiers with
16098 pp_identifier, not pp_string. Mark "({anonymous})" for
16100 * c-pretty-print.c (pp_c_ws_string): New.
16101 (pp_c_cv_qualifier, pp_c_type_specifier,
16102 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
16103 pp_c_storage_class_specifier, pp_c_function_specifier,
16104 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
16105 pp_c_primary_expression, pp_c_postfix_expression,
16106 pp_c_unary_expression, pp_c_shift_expression,
16107 pp_c_relational_expression, pp_c_equality_expression,
16108 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
16109 use pp_string and pp_c_ws_string in place of pp_identifier and
16110 pp_c_identifier for non-identifiers. Mark English strings for
16112 * c-pretty-print.h (pp_c_ws_string): Declare.
16114 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
16115 Roland McGrath <roland@redhat.com>
16117 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
16118 (ENABLE_LD_BUILDID): New configuration option.
16119 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
16120 (LINK_BUILDID_SPEC): New macro.
16121 (init_spec): If defined, prepend it between LINK_EH_SPEC and
16123 * doc/install.texi: Document --enable-linker-build-id option.
16124 * configure: Rebuild.
16125 * config.in: Rebuild.
16127 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
16129 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
16130 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
16131 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
16132 MIPS_GP_SAVE_AREA_SIZE.
16133 * config/mips/mips.c (struct mips_frame_info): Update comment
16134 before arg_pointer_offset and hard_frame_pointer_offset.
16135 (mips_compute_frame_info): Update diagram before function: to
16136 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
16137 indicate the position of frame_pointer_rtx with -fstack-protector and
16138 to show args_size. Don't allocate cprestore area for leaf functions
16139 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
16141 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
16143 2009-04-30 Michael Matz <matz@suse.de>
16145 PR tree-optimization/39955
16146 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
16148 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
16150 * ira.c (setup_cover_and_important_classes): Use safe macro
16151 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
16153 * genpreds.c (write_tm_preds_h): Output suitable definition of
16154 REG_CLASS_FOR_CONSTRAINT.
16156 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
16158 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
16160 * bitmap.c (bitmap_descriptor): Likewise.
16161 * ggc-common.c (loc_descriptor): Likewise.
16162 * varray.c (varray_descriptor): Likewise.
16163 * vec.c (vec_descriptor): Likewise.
16165 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
16167 * Makefile.in (dce.o): Add $(EXCEPT_H).
16168 * dce.c: Include except.h and delete redundant vector definitions.
16169 (deletable_insn_p): Return false for non-call insns that can throw
16172 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
16174 * gcse.c (ae_gen): Remove.
16175 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
16176 and make non-static function to make it available in store-motion.c.
16177 Update call sites with search-and-replace.
16178 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
16179 extract_mentioned_regs, extract_mentioned_regs_helper,
16180 find_moveable_store, compute_store_table, load_kills_store, find_loads,
16181 store_killed_in_insn, store_killed_after, store_killed_before,
16182 build_store_vectors, insert_insn_start_basic_block, insert-store,
16183 remove_reachable_equiv_notes, replace_store_insn, delete_store,
16184 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
16185 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
16186 * store-motion.c: ...new file. Also copy data structures from gcse.c
16187 and clean up to remove parts not used by store motion.
16188 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
16189 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
16191 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16194 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
16195 when optimizing for size.
16197 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
16199 * gcse.c (gcse_constant_p): Fix typo in last change.
16201 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
16203 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
16205 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
16207 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
16209 2009-04-29 James E. Wilson <wilson@codesourcery.com>
16211 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
16212 CONST_HIGH_PART result.
16214 2009-04-29 Anatoly Sokolov <aesok@post.ru>
16216 * config/avr/avr.c (initial_elimination_offset): Rename to
16217 avr_initial_elimination_offset.
16218 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
16219 change return type to bool.
16220 (avr_can_eliminate): New function.
16221 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
16222 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
16223 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
16224 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
16225 avr_initial_elimination_offset.
16226 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
16227 (avr_initial_elimination_offset): Define.
16229 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
16230 Steven Bosscher <steven@gcc.gnu.org>
16232 PR rtl-optimization/39938
16233 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
16234 * cfgrtl.c: Include insn-attr.h.
16235 (rest_of_pass_free_cfg): New function.
16236 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
16237 * resource.c (init_resource_info): Remove call to df_analyze.
16239 2009-04-29 Richard Guenther <rguenther@suse.de>
16242 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
16243 allow conversion to signed integers.
16245 2009-04-29 Richard Guenther <rguenther@suse.de>
16247 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
16248 shifts of floating point vectors if the shift amount is
16249 a constant multiple of the element size.
16251 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
16252 Michael Matz <matz@suse.de>
16254 PR middle-end/39927
16256 * tree-outof-ssa.c (emit_partition_copy): New function.
16257 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
16258 insert_part_to_rtx_on_edge): Perform the partition base var
16259 copy using emit_partition_copy.
16260 (insert_value_copy_on_edge): Convert constants to the right mode.
16261 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
16262 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
16264 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
16266 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
16267 scan backwards to try to find a constant to initialize it.
16269 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
16270 insn before the loop_end instruction, don't look past labels.
16272 2009-04-29 Richard Guenther <rguenther@suse.de>
16274 PR middle-end/39937
16275 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
16276 loose type conversions.
16277 (forward_propagate_addr_expr): Fix tuplification bug. Remove
16278 stmts only if there are no uses of its definition.
16280 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
16282 * config/bfin/bfin.h (splitting_loops): Declare.
16283 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
16284 Reorder bit definitions to be ascending.
16285 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
16286 * config/bfin/bfin.c (splitting_loops): New variable.
16287 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
16288 (struct loop_info): Remove members INIT and LOOP_INIT.
16289 (bfin_optimize_loop): Don't set them. Reorder the code that generates
16290 the LSETUP sequence. Allow LC to be loaded from any register, but
16291 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
16292 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
16294 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
16295 of reload_completed.
16298 * config/bfin/bfin.md (movsi_insn): Refine constraints.
16300 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
16302 * Makefile.in (PLUGIN_VERSION_H): New.
16303 (OBJS-common): Remove plugin-version.o.
16304 (plugin.o): Depend on (PLUGIN_VERSION_H).
16305 (plugin-version.o): Remove.
16306 * configure: Regenerate
16307 * configure.ac: Create plugin-version.h.
16308 * gcc-plugin.h (plugin_gcc_version): Remove.
16309 (plugin_default_version_check): Change signature.
16310 * plugin-version.c: Remove.
16311 * plugin.c: Include plugin-version.h.
16312 (str_plugin_gcc_version_name): Remove.
16313 (try_init_one_plugin): Pass gcc version to plugin_init.
16314 (plugin_default_version_check): Both gcc and plugin versions are now
16317 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
16319 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
16320 problematic last insns. Test for TYPE_CALL rather than CALL_P.
16321 Remove special case testing for last insn of inner loops. Don't fail
16322 if the loop ends with a jump, emit an extra nop instead.
16324 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
16325 DREGS rather than comparing directly. Remove code that tries to
16326 account for latencies.
16328 2009-04-29 Richard Guenther <rguenther@suse.de>
16330 PR tree-optimization/39941
16331 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
16332 eliminating an indirect call.
16334 2009-04-29 Richard Guenther <rguenther@suse.de>
16336 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
16337 parameter. Allow invariants as base if !require_lvalue.
16338 (verify_gimple_assign_single): Adjust.
16340 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
16342 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
16343 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
16344 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
16345 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
16346 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
16348 * config/bfin/bfin.c (bfin_expand_builtin,
16349 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
16351 2009-04-28 Richard Guenther <rguenther@suse.de>
16353 * tree-vect-loop.c (get_initial_def_for_induction): Use
16354 correct types for pointer increment.
16356 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16358 * toplev.c (print_version): Update GMP version string calculation.
16360 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
16362 PR rtl-optimization/39938
16363 * resource.c (init_resource_info): Add call to df_analyze.
16365 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
16367 * config/alpha/alpha.md (usegp): Cast the result of
16368 alpha_find_lo_sum_using_gp to enum attr_usegp.
16369 * config/alpha/alpha.c (override_options): Remove end-of-structure
16370 marker element from cpu_table. Use array size of cpu_table to handle
16371 -mcpu and -mtune options.
16372 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
16374 2009-04-28 Joseph Myers <joseph@codesourcery.com>
16376 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
16377 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
16378 tune_32 and tune_64.
16379 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
16380 support on PowerPC.
16381 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
16382 * config/rs6000/option-defaults.h: ... here. New file.
16383 (OPT_64, OPT_32): Define.
16384 (MASK_64BIT): Define to 0 if not already defined.
16385 (OPT_ARCH64, OPT_ARCH32): Define.
16386 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
16389 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16391 * config/arm/arm.c (arm_override_options): Emit error on using
16394 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
16396 PR rtl-optimization/39914
16397 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
16398 registers for allocnos created from user-defined variables only
16399 when not optimizing.
16401 2009-04-28 Richard Guenther <rguenther@suse.de>
16403 PR middle-end/39937
16404 * fold-const.c (fold_binary): Use distribute_real_division only
16407 2009-04-28 Steve Ellcey <sje@cup.hp.com>
16409 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
16410 add hpux-stdint.h to tm_file.
16411 (hppa[12]*-*-hpux11*): Ditto.
16412 (ia64*-*-hpux*): Ditto.
16413 * config/hpux-stdint.h: New.
16414 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
16415 __STDC_EXT__ for all compiles.
16416 * config/pa/pa-hpux.h: Ditto.
16417 * config/pa/pa-hpux10.h: Ditto.
16418 * config/pa/pa-hpux11.h: Ditto.
16420 2009-04-28 Catherine Moore <clm@codesourcery.com>
16422 * debug.h (set_name): Add comment.
16424 2009-04-28 Andrew Pinski <pinskia@gmail.com>
16427 * config/darwin.c (machopic_gen_offset): Check
16428 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
16429 * config/arm/arm.c (require_pic_register): Likewise.
16431 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
16433 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
16434 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
16435 m32c_promote_prototypes): Delete.
16437 2009-04-28 Michael Matz <matz@suse.de>
16439 PR middle-end/39922
16440 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
16443 2009-04-28 Richard Guenther <rguenther@suse.de>
16445 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
16447 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16449 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
16450 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
16451 * config/arm/arm-tune.md: Regenerate.
16453 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
16455 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
16456 block if there are complex incoming edges.
16457 (sel_merge_blocks): Remove useless assert.
16458 (sel_redirect_edge_and_branch): Check that edge was redirected.
16459 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
16460 (sel_find_rgns): Delete declaration.
16461 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
16462 the region when it is not a preheader.
16464 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
16467 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
16469 2009-04-28 Richard Guenther <rguenther@suse.de>
16471 * tree.h (SSA_NAME_VALUE): Remove.
16472 (struct tree_ssa_name): Remove value_handle member.
16473 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
16474 array for jump threading.
16475 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
16477 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
16478 * tree-flow.h (threadedge_initialize_values): Declare.
16479 (threadedge_finalize_values): Likewise.
16480 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
16481 (SSA_NAME_VALUE): Define.
16482 (threadedge_initialize_values): New function.
16483 (threadedge_finalize_values): Likewise.
16484 * tree-ssa-dom.c (ssa_name_values): New global variable.
16485 (SSA_NAME_VALUE): Define.
16486 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
16488 2009-04-28 Ira Rosen <irar@il.ibm.com>
16490 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
16491 Use REPORT_VECTORIZED_LOCATIONS instead
16492 REPORT_VECTORIZED_LOOPS.
16493 * tree-vectorizer.c (vect_verbosity_level): Make static.
16494 (vect_loop_location): Rename to vect_location.
16495 (vect_set_verbosity_level): Update comment.
16496 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
16498 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
16499 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
16500 instead REPORT_UNVECTORIZED_LOOPS.
16501 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
16502 and vect_loop_def to vect_external_def and vect_internal_def.
16503 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
16504 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
16505 REPORT_UNVECTORIZED_LOCATIONS.
16506 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
16507 and vect_used_in_loop and to vect_unused_in_scope and
16508 vect_used_in_scope.
16509 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
16510 (vect_verbosity_level): Remove declaration.
16511 (vect_analyze_operations): Likewise.
16512 (vect_analyze_stmt): Declare.
16513 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
16514 REPORT_UNVECTORIZED_LOCATIONS.
16515 (vect_get_loop_niters): Fix indentation.
16516 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
16517 (vect_analyze_loop_operations): New function.
16518 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
16519 vect_analyze_operations.
16520 (vect_is_simple_reduction): Use new names.
16521 (vectorizable_live_operation, vect_transform_loop): Likewise.
16522 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
16523 to specify whether the data references can be a part of interleaving
16525 (vect_analyze_data_ref_dependence): Use new names.
16526 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
16527 (vect_create_addr_base_for_vector_ref): Remove redundant code.
16528 * tree-vect-patterns.c (widened_name_p): Use new names.
16529 (vect_recog_dot_prod_pattern): Likewise.
16530 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
16531 (process_use, vect_mark_stmts_to_be_vectorized,
16532 vect_model_simple_cost, vect_model_store_cost,
16533 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
16534 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
16535 vectorizable_operation, vectorizable_type_demotion,
16536 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
16537 vectorizable_condition): Likewise.
16538 (vect_analyze_operations): Split into vect_analyze_loop_operations
16540 (vect_analyze_stmt): ... new function.
16541 (new_stmt_vec_info): Use new names.
16542 (vect_is_simple_use): Use new names and fix comment.
16543 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
16544 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
16546 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
16549 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
16550 and integer modes for x87 operands. Do not ICE for unsupported size,
16551 generate error instead. Generate error for unsupported operand types.
16552 ['z']: Do not handle HImode memory operands specially. Warning
16553 for floating-point operands. Fallthru to 'Z' for unsupported operand
16554 types. Do not ICE for unsupported size, generate error instead.
16555 (output_387_binary_op): Use %Z to output operands.
16556 (output_fp_compare): Ditto.
16557 (output_387_reg_move): Ditto.
16559 2009-04-28 Ben Elliston <bje@au.ibm.com>
16564 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
16566 * builtins.c (c_strlen): Do not warn here.
16567 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
16568 * c-common.c (pointer_int_sum): Take an explicit location.
16569 Warn about offsets out of bounds.
16570 * c-common.h (pointer_int_sum): Adjust declaration.
16572 2009-04-27 Ian Lance Taylor <iant@google.com>
16574 * collect2.c (is_ctor_dtor): Change type of ret field in struct
16576 * dce.c (run_fast_df_dce): Change type of old_flags to int.
16577 * df-core.c (df_set_flags): Change return type to int. Change
16578 type of old_flags to int.
16579 (df_clear_flags): Likewise.
16580 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
16581 (df_get_conditional_uses): Likewise.
16582 * df.h (df_set_flags, df_clear_flags): Update declarations.
16583 * dwarf2out.c (struct indirect_string_node): Change type of form
16584 field to enum dwarf_form.
16585 (AT_string_form): Change return type to enum dwarf_form.
16586 * fixed-value.c (fixed_compare): Add cast to enum type.
16587 * fwprop.c (update_df): Change 0 to VOIDmode.
16588 * gensupport.c: Change 0 to UNKNOWN.
16589 * gimple.h (gimple_cond_code): Add cast to enum type.
16590 * haifa-sched.c (reemit_notes): Add cast to enum type.
16591 * hooks.c (hook_int_void_no_regs): Remove function.
16592 * hooks.h (hook_int_void_no_regs): Remove declaration.
16593 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
16594 * predict.c (combine_predictions_for_insn): Add casts to enum type.
16595 * real.c (real_arithmetic): Add cast to enum type.
16596 (real_compare): Likewise.
16597 * target.h (struct gcc_target): Change return type of
16598 branch_target_register_class to enum reg_class.
16599 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
16600 default_branch_target_register_class.
16601 * targhooks.c (default_branch_target_register_class): New function.
16602 * targhooks.h (default_branch_target_register_class): Declare.
16603 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
16604 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
16606 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
16608 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
16609 vect_uninitialized_def. Change 0 to ERROR_MARK.
16610 * tree-vect-stmts.c (supportable_widening_operation): Don't
16611 initialize icode1 and icode2.
16612 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
16613 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
16615 (cmn_err_flag_specs): Change 0 to STD_C89.
16616 (cmn_err_char_table): Likewise.
16617 * config/arm/arm.c (get_arm_condition_code): Change type of code
16618 to enum arm_cond_code.
16619 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
16620 (IWMMXT_BUILTIN2): Likewise.
16621 (neon_builtin_type_bits): Don't define typedef.
16622 (neon_builtin_datum): Change type of bits field to int.
16623 (arm_expand_neon_args): Add cast to enum type.
16624 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
16626 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
16627 casts to enum type.
16628 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
16630 * config/mips/mips.md (jal_macro): Return enum constant.
16631 (single_insn): Likewise.
16632 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
16634 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16635 casts to enum type.
16636 * config/s390/s390.c (s390_tune_flags): Change type to int.
16637 (s390_arch_flags): Likewise.
16638 (s390_handle_arch_option): Change flags field of struct pta to int.
16639 * config/s390/s390.h (s390_tune_flags): Update declaration.
16640 (s390_arch_flags): Likewise.
16641 * config/sh/sh.c (prepare_move_operands): Compare
16642 tls_symbolic_operand result with enum constant.
16643 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
16644 (sh_expand_prologue): Add cast to enum type.
16645 (sh_expand_epilogue): Likewise.
16646 (tls_symbolic_operand): Change return type to enum tls_model.
16647 (fpscr_set_from_mem): Add cast to enum type.
16648 (legitimize_pic_address): Compare tls_symbolic_operand result with
16650 (sh_target_reg_class): Change return type to enum reg_class.
16651 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
16653 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
16654 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
16655 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
16656 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
16657 (delayed_branch, tls_call_delay): Likewise.
16658 (eligible_for_sibcall_delay): Likewise.
16659 (eligible_for_return_delay): Likewise.
16660 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
16661 (spu_expand_builtin_1): Likewise.
16663 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
16664 for all types of conversions.
16665 (output_init_element): Issue -Wc++-compat warning if needed when
16666 initializing a bitfield with enum type.
16667 * c-parser.c (c_parser_expression): Set original_type to
16668 original_type of right hand operand of comma operator.
16670 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16672 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
16674 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
16675 * doc/cpp.texi (Standard Predefined Macros)
16676 (Implementation-defined behavior): Likewise.
16677 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
16678 * doc/gimple.texi (GIMPLE Exception Handling)
16679 (@code{GIMPLE_ASSIGN}): Likewise.
16680 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
16681 * doc/invoke.texi (Warning Options, Optimize Options)
16682 (AVR Options, Darwin Options): Likewise.
16683 (Optimize Options): Reformulate -fwhole-program description.
16684 * doc/loop.texi (Lambda): Likewise.
16685 * doc/md.texi (Output Template, Define Constraints)
16686 (Standard Names, Insn Splitting): Likewise.
16687 * doc/options.texi (Option properties): Likewise.
16688 * doc/passes.texi (Tree-SSA passes): Likewise.
16689 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
16690 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
16691 (File Names and DBX): Likewise.
16692 * doc/trouble.texi (Incompatibilities): Likewise.
16694 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
16696 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
16697 instruction is correct.
16699 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
16701 Allow non-constant arguments to conversion intrinsics.
16702 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
16703 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
16704 * spu.c (print_operand): Handle 'v' and 'w'.
16705 (exp2_immediate_p, spu_gen_exp2): Define.
16706 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
16707 spu_convtf_1): Update parameter descriptions.
16708 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
16709 * constraints.md ('v', 'w'): New.
16710 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
16712 (i2f, I2F): New define_mode_attr.
16713 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
16714 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
16715 fixuns_truncv4sfv4si2): Update to use mode attribute.
16716 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
16717 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
16718 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
16719 patterns for combine.
16721 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
16723 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
16724 (cprop, hoist, pre, store_motion): New debug counters.
16725 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
16726 is not an RTL pass anymore.
16727 (pass_profiling): Remove extern decl for pass removed in 2005.
16728 (pass_gcse, pass_jump_bypass): Remove.
16729 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
16730 to 0 for clean state.
16731 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
16732 * cse.c (gate_handle_cse_after_global_opts,
16733 rest_of_handle_cse_after_global_opts): New functions.
16734 (pass_cse_after_global_opts): New pass, does local CSE.
16735 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
16736 (TV_CPROP): New timevar.
16737 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
16738 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
16739 (gcse_main, recompute_all_luids): Remove.
16740 (compute_hash_table_work): Call max_reg_num instead of reading
16742 (cprop_jump): Don't set run_jump_opt_after_gcse.
16743 (constprop_register): Always allow to alter jumps.
16744 (cprop_insn): Likewise.
16745 (do_local_cprop): Likewise.
16746 (local_cprop_pass): Likewise. Return non-zero if something changed.
16747 (cprop): Remove function, fold interesting bits into one_cprop_pass.
16748 (find_implicit_sets): Add note about missed optimization opportunity.
16749 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
16750 pass_rtl_cprop execute function.
16751 Don't bother tracking the pass number, each pass gets its own dumpfile
16753 Always allow to alter jumpsand bypass jumps.
16754 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
16755 will just find no suitable set.
16756 (pre_edge_insert): Fix dumping, this function is for PRE only.
16757 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
16758 pass_rtl_pre execute function.
16759 (hoist_code): Return non-zero if something changed. Keep track of
16760 substitutions and insertions for statistics gathering similar to PRE.
16761 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
16762 called from the pass_rtl_hoist execute function. Show pass statistics.
16763 (compute_store_table): Use max_reg_num directly instead of using the
16764 formerly global max_gcse_regno.
16765 (build_store_vectors): Likewise.
16766 (replace_store_insn): Fix dumping.
16767 (store_motion): Rename to ...
16768 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
16769 pass, called from the pass_rtl_store_motion execute function. Keep
16770 track of substitutions and insertions for statistics gathering similar
16772 (bypass_jumps): Remove, fold interesting bits into ...
16773 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
16774 from the pass_rtl_cprop execute function.
16775 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
16776 pass_jump_bypass): Remove.
16777 (gate_handle_gcse, rest_of_handle_gcse): Remove.
16778 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
16779 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
16780 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
16781 (gate_rtl_store_motion, execute_rtl_store_motion,
16782 pass_rtl_store_motion): New.
16783 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
16784 make it clear that -fcse-skip-blocks is a no-op for backward compat.
16785 * passes.c (init_optimization_passes): Remove pass_gcse and
16786 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
16787 and cse_after_global_opts in place of pass_gcse. Schedule cprop
16788 instead of pass_jump_bypass.
16790 2009-04-27 Richard Guenther <rguenther@suse.de>
16792 PR middle-end/39928
16793 * gimplify.c (gimplify_expr): If we are required to create
16794 a temporary make sure it ends up as register.
16796 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
16799 * config/i386/i386.c (construct_container): Don't call
16800 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
16801 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
16803 2009-04-27 Michael Matz <matz@suse.de>
16805 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
16806 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
16807 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
16808 (dump_replaceable_exprs): Take a bitmap.
16809 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
16811 (expand_gimple_basic_block): Likewise.
16812 * tree-ssa-ter.c (struct temp_expr_table_d): Make
16813 replaceable_expressions member a bitmap.
16814 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
16815 (mark_replaceable): Likewise.
16816 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
16817 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
16819 2009-04-27 Richard Guenther <rguenther@suse.de>
16821 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
16822 (verify_stmts): Dispatch to gimple/type verification code.
16823 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
16824 issue with call argument types.
16826 2009-04-27 Michael Matz <matz@suse.de>
16828 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
16829 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
16832 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
16833 Eric Botcazou <ebotcazou@adacore.com>
16835 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
16836 a label's basic block.
16837 (mark_target_live_regs): Tidy and rework obsolete comments.
16838 Change back DF problem to LIVE. If a label starts a basic block,
16839 assume that all registers that used to be live then still are.
16840 (init_resource_info): If a label starts a basic block, set its
16841 BLOCK_FOR_INSN accordingly.
16842 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
16844 2009-04-27 Richard Guenther <rguenther@suse.de>
16846 * tree-flow-inline.h (function_ann): Remove.
16847 (get_function_ann): Likewise.
16848 * tree-dfa.c (create_function_ann): Remove.
16849 * tree-flow.h (struct static_var_ann_d): Remove.
16850 (struct function_ann_d): Likewise.
16851 (union tree_ann_d): Remove fdecl member.
16852 (function_ann_t): Remove.
16853 (function_ann, get_function_ann, create_function_ann): Remove
16856 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
16858 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
16860 2009-04-27 Jan Hubicka <jh@suse.cz>
16862 * ipa-pure-const.c (struct funct_state_d): New fields
16863 state_previously_known, looping_previously_known; remove
16864 state_set_in_source.
16865 (analyze_function): Use new fields.
16866 (propagate): Avoid assumption that state_set_in_source imply
16869 * tree-ssa-loop-niter.c (finite_loop_p): New function.
16870 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
16871 * cfgloop.h (finite_loop_p): Declare.
16873 2009-04-26 Michael Matz <matz@suse.de>
16875 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
16877 2009-04-26 Michael Matz <matz@suse.de>
16879 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
16880 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
16881 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
16882 pass_mark_used_blocks): Remove.
16883 * tree-optimize.c (pass_free_datastructures,
16884 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
16885 * passes.c (init_optimization_passes): Don't call
16886 pass_mark_used_blocks, remove dead code.
16888 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
16890 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
16891 * tree-ssa-live.h (register_ssa_partition): Likewise.
16893 2009-04-26 Michael Matz <matz@suse.de>
16896 * builtins.c (fold_builtin_next_arg): Handle SSA names.
16897 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
16898 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
16900 (compare_pairs): Swap cost comparison.
16901 (coalesce_ssa_name): Don't use change_partition_var.
16902 * tree-nrv.c (struct nrv_data): Add modified member.
16903 (finalize_nrv_r): Set it.
16904 (tree_nrv): Use it to update statements.
16905 (pass_nrv): Require PROP_ssa.
16906 * tree-mudflap.c (mf_decl_cache_locals,
16907 mf_build_check_statement_for): Use make_rename_temp.
16908 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
16909 * alias.c (find_base_decl): Handle SSA names.
16910 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
16911 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
16912 * rtl.h (set_reg_attrs_for_parm): Declare.
16913 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
16914 to "optimized", remove unused locals at finish.
16915 (execute_free_datastructures): Make global, call
16916 delete_tree_cfg_annotations.
16917 (execute_free_cfg_annotations): Don't call
16918 delete_tree_cfg_annotations.
16920 * ssaexpand.h: New file.
16921 * expr.c (toplevel): Include ssaexpand.h.
16922 (expand_assignment): Handle SSA names the same as register variables.
16923 (expand_expr_real_1): Expand SSA names.
16924 * cfgexpand.c (toplevel): Include ssaexpand.h.
16925 (SA): New global variable.
16926 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
16927 (SSAVAR): New macro.
16928 (set_rtl): New helper function.
16929 (add_stack_var): Deal with SSA names, use set_rtl.
16930 (expand_one_stack_var_at): Likewise.
16931 (expand_one_stack_var): Deal with SSA names.
16932 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
16933 before unique numbers.
16934 (expand_stack_vars): Use set_rtl.
16935 (expand_one_var): Accept SSA names, add asserts for them, feed them
16936 to above subroutines.
16937 (expand_used_vars): Expand all partitions (without default defs),
16938 then only the local decls (ignoring those expanded already).
16939 (expand_gimple_cond): Remove edges when jumpif() expands an
16940 unconditional jump.
16941 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
16942 or remove abnormal edges. Ignore insns setting the LHS of a TERed
16944 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
16945 members of SA; deal with PARM_DECL partitions here; expand
16946 all PHI nodes, free tree datastructures and SA. Commit instructions
16947 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
16948 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
16949 info and statements at start, collect garbage at finish.
16950 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
16951 (VAR_ANN_PARTITION) Remove.
16952 (change_partition_var): Don't declare.
16953 (partition_to_var): Always return SSA names.
16954 (var_to_partition): Only accept SSA names.
16955 (register_ssa_partition): Only check argument.
16956 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
16958 (delete_var_map): Don't free it.
16959 (var_union): Only accept SSA names, simplify.
16960 (partition_view_init): Mark only useful SSA names as used.
16961 (partition_view_fini): Only deal with SSA names.
16962 (change_partition_var): Remove.
16963 (dump_var_map): Use ssa_name instead of partition_to_var member.
16964 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
16966 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
16967 (struct _elim_graph): New member const_dests; nodes member vector of
16969 (set_location_for_edge): New static helper.
16970 (create_temp): Remove.
16971 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
16972 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
16973 (new_elim_graph): Allocate const_dests member.
16974 (clean_elim_graph): Truncate const_dests member.
16975 (delete_elim_graph): Free const_dests member.
16976 (elim_graph_size): Adapt to new type of nodes member.
16977 (elim_graph_add_node): Likewise.
16978 (eliminate_name): Likewise.
16979 (eliminate_build): Don't take basic block argument, deal only with
16980 partition numbers, not variables.
16981 (get_temp_reg): New static helper.
16982 (elim_create): Use it, deal with RTL temporaries instead of trees.
16983 (eliminate_phi): Adjust all calls to new signature.
16984 (assign_vars, replace_use_variable, replace_def_variable): Remove.
16985 (rewrite_trees): Only do checking.
16986 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
16987 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
16988 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
16989 contains_tree_r, MAX_STMTS_IN_LATCH,
16990 process_single_block_loop_latch, analyze_edges_for_bb,
16991 perform_edge_inserts): Remove.
16992 (expand_phi_nodes): New global function.
16993 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
16994 functions, initialize new parameter, remember partitions having a
16996 (finish_out_of_ssa): New global function.
16997 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
16998 don't reset in_ssa_p here, don't disable TER when mudflap.
16999 (pass_del_ssa): Remove.
17000 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
17002 (execute_free_datastructures): Declare.
17003 * Makefile.in (SSAEXPAND_H): New variable.
17004 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
17005 * basic-block.h (commit_one_edge_insertion): Declare.
17006 * passes.c (init_optimization_passes): Move pass_nrv and
17007 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
17008 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
17009 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
17010 (redirect_branch_edge): Deal with super block when expanding, split
17011 out jump patching itself into ...
17012 (patch_jump_insn): ... here, new static helper.
17014 2009-04-26 Michael Matz <matz@suse.de>
17016 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
17017 beyond num_ssa_names.
17018 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
17019 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
17021 2009-04-26 Jakub Jelinek <jakub@redhat.com>
17023 PR inline-asm/39543
17024 * fwprop.c (forward_propagate_asm): New function.
17025 (forward_propagate_and_simplify): Propagate also into __asm, if it
17026 doesn't increase the number of referenced registers.
17029 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
17031 2009-04-26 Jakub Jelinek <jakub@redhat.com>
17033 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
17034 note_nonlocal_vla_type for nonlocal VLAs.
17035 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
17036 contains_remapped_vars, remap_vla_decls): New functions.
17037 (convert_nonlocal_reference_stmt): If not optimizing, call
17038 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
17039 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
17040 if it wasn't found in var_map.
17041 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
17042 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
17043 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
17045 * gimplify.c (nonlocal_vlas): New variable.
17046 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
17048 (gimplify_body): Create and destroy nonlocal_vlas.
17050 * dwarf2out.c (loc_descr_plus_const): New function.
17051 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
17052 mem_loc_descriptor, loc_descriptor_from_tree_1,
17053 descr_info_loc, gen_variable_die): Use it.
17055 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
17056 !TREE_STATIC VAR_DECLs.
17057 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
17058 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
17059 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
17060 DECL_BY_REFERENCE is valid.
17061 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
17062 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
17063 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
17064 Copy DECL_BY_REFERENCE.
17065 (struct nesting_copy_body_data): New type.
17066 (nesting_copy_decl): New function.
17067 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
17068 if they have variable length.
17070 2009-04-26 Michael Matz <matz@suse.de>
17072 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
17073 mark new temporaries for renaming.
17075 2009-04-26 Joseph Myers <joseph@codesourcery.com>
17078 * c-decl.c (global_bindings_p): Return negative value.
17079 (c_variable_size): New. Based on variable_size from
17081 (grokdeclarator): Call c_variable_size not variable_size.
17083 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
17085 * config/i386/i386.c (print_operand) ['z']: Fix typo.
17087 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
17089 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
17090 Redefine it to just use mingw/include.
17091 (ASM_SPEC): Rules for -m32 and -m64.
17092 (LINK_SPEC): Use Likewise.
17093 (SPEC_32): New define.
17094 (SPEC_64): Likewise.
17095 (SUB_LINK_SPEC): Likewise.
17096 (MULTILIB_DEFAULTS): New define.
17097 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
17098 Add multilib options.
17099 (MULTILIB_DIRNAMES): Likewise.
17100 (MULTILIB_OSDIRNAMES): Likewise.
17101 (LIBGCC): Likewise.
17102 (INSTALL_LIBGCC): Likewise.
17104 2009-04-26 Joseph Myers <joseph@codesourcery.com>
17107 * c-tree.h (enum c_inline_static_type): New.
17108 (record_inline_static): Declare.
17109 * c-decl.c (struct c_inline_static, c_inline_statics,
17110 record_inline_static, check_inline_statics): New.
17111 (pop_file_scope): Call check_inline_statics.
17112 (start_decl): Call record_inline_static instead of pedwarning
17113 directly for static in inline function.
17114 * c-typeck.c (build_external_ref): Call record_inline_static
17115 instead of pedwarning directly for static referenced in inline
17118 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
17120 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
17121 not new but only being rescanned.
17122 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
17123 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
17124 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
17125 record_set_info, compute_set, grealloc): Remove.
17126 (recompute_all_luids): New function.
17127 (gcse_main): Don't compute sets, and don't do related memory
17128 allocations/free-ing. If something changed before the end of the
17129 pass, update LUIDs using recompute_all_luids.
17130 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
17131 (free_gcse_mem): Don't free it either.
17132 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
17133 Use the df insn LUIDs.
17134 (load_killed_in_block): Likewise.
17135 (compute_hash_table_work): Don't compute reg_set_in_block.
17136 (compute_transp): Use DF_REG_DEF_CHAINs.
17137 (local_cprop_pass): Don't use compute_sets and related functions.
17138 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
17139 Use get_max_uid() instead of max_cuid.
17140 (insert_insn_end_basic_block, pre_insert_copy_insn,
17141 update_ld_motion_stores): Don't try to
17142 keep reg_set tables up to date.
17143 (pre_insert_copies): Use df insn LUIDs.
17144 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
17145 (reg_set_info): Don't use extra bitmap argument.
17146 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
17147 information to compute regs_set_in_block.
17148 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
17149 (bypass_jumps): Don't use compute_sets and friends.
17151 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17154 * opts.c (undocumented_msg): Do not leave blank even with
17157 2009-04-25 Joseph Myers <joseph@codesourcery.com>
17159 * c-decl.c (build_enumerator): Allow values folding to integer
17160 constants but not integer constant expressions with a pedwarn if
17163 2009-04-25 Joseph Myers <joseph@codesourcery.com>
17166 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
17167 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
17168 type is an integer constant.
17170 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
17173 * config/i386/i386.c (print_operand) ['z']: Revert handling of
17176 2009-04-25 Joseph Myers <joseph@codesourcery.com>
17179 * c-decl.c (grokdeclarator): Diagnose declarations of functions
17180 with variably modified return type and no storage class
17181 specifiers, except for the case of nested functions. Distinguish
17182 extern declarations of functions with variably modified return
17183 types from those of objects with variably modified types.
17185 2009-04-25 Jan Hubicka <jh@suse.cz>
17187 * tree.c (list_equal_p): New function.
17188 * tree.h (list_equal_p): Declare.
17189 * coretypes.h (edge_def, edge, const_edge, basic_block_def
17190 basic_block_def, basic_block, const_basic_block): New.
17191 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
17192 (redirect_eh_edge): New function.
17193 (make_eh_edge_update_phi): EH edges are not abnormal.
17194 * except.c: Include tree-flow.h.
17195 (list_match): New function.
17196 (eh_region_replaceable_by_p): New function.
17197 (replace_region): New function.
17198 (hash_type_list): New function.
17199 (hash_eh_region): New function.
17200 (eh_regions_equal_p): New function.
17201 (merge_peers): New function.
17202 (remove_unreachable_regions): Verify EH tree when checking;
17204 (copy_eh_region_1): New function.
17205 (copy_eh_region): New function.
17206 (push_reachable_handler): New function.
17207 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
17208 regions without label but with live RESX.
17209 * except.h (redirect_eh_edge_to_label): New.
17210 * tree-flow.h (redirect_eh_edge): New.
17211 * coretypes.h (edge_def, edge, const_edge, basic_block_def
17212 basic_block_def, basic_block, const_basic_block): Remove.
17213 * Makefile.in (except.o): Add dependency on tree-flow.h
17214 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
17215 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
17218 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
17221 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
17222 on the destination of memcpy.
17224 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
17226 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
17227 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
17228 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
17230 2009-04-25 Jan Hubicka <jh@suse.cz>
17232 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
17233 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
17234 to be reached by different label than left.
17235 (update_eh_edges): Update comment; remove edge_to_remove if possible
17236 and return true if suceeded.
17237 (cleanup_empty_eh): Accept sharing map; handle shared regions.
17238 (cleanup_eh): Compute sharing map.
17239 * except.c (remove_eh_handler_and_replace): Add argument if we should
17241 (remove_unreachable_regions): Update for label sharing.
17242 (label_to_region_map): Likewise.
17243 (get_next_region_sharing_label): New function.
17244 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
17246 (remove_eh_handler): Update.
17247 (remove_eh_region_and_replace_by_outer_of): New function.
17248 * except.h (struct eh_region): Add next_region_sharing_label.
17249 (remove_eh_region_and_replace_by_outer_of,
17250 get_next_region_sharing_label): Declare.
17251 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
17253 2009-04-25 Jan Hubicka <jh@suse.cz>
17255 * tree-cfg.c (split_critical_edges): Split also edges where we can't
17256 insert code even if they are not critical.
17258 2009-04-25 Jan Hubicka <jh@suse.cz>
17260 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
17261 (gimple_can_remove_branch_p): EH edges won't remove branch by
17263 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
17264 updating of non-abnormal EH edges.
17265 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
17266 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
17267 (split_critical_edges): Split also edges where emitting code on them
17268 will lead to splitting later.
17270 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
17271 H.J. Lu <hongjiu.lu@intel.com>
17274 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
17275 the configured assembler supports fildq and fistpq mnemonics.
17276 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
17277 * configure: Regenerated.
17278 * config.in: Ditto.
17280 * config/i386/i386.c (print_operand): Handle 'Z'.
17281 ['z']: Remove handling of special fild/fist suffixes.
17282 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
17283 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
17284 suffix of fild insn.
17285 (*floatsi<mode>2_vector_mixed): Ditto.
17286 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
17287 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
17288 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
17289 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
17290 * config/i386/gas.h (GAS_MNEMONICS): Remove.
17292 2009-04-25 Ben Elliston <bje@au.ibm.com>
17294 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
17295 the source of a set operation.
17297 2009-04-25 Anatoly Sokolov <aesok@post.ru>
17299 * target.h (struct gcc_target): Add case_values_threshold field.
17300 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
17301 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
17302 * targhooks.c (default_case_values_threshold): New function.
17303 * targhooks.h (default_case_values_threshold): Declare function.
17304 * stmt.c (expand_case): Use case_values_threshold target hook.
17305 * expr.h (case_values_threshold): Remove declartation.
17306 * expr.c (case_values_threshold): Remove function.
17307 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
17309 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
17310 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
17311 (avr_case_values_threshold): Declare as static.
17312 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
17314 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
17315 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
17316 (mn10300_case_values_threshold): New function.
17318 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
17320 * ira.c (setup_cover_and_important_classes): Add enum cast.
17322 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
17324 * genpreds.c (write_enum_constraint_num): Output definition of
17325 CONSTRAINT_NUM_DEFINED_P macro.
17326 * ira.c (setup_cover_and_important_classes): Use
17327 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
17329 2009-04-24 DJ Delorie <dj@redhat.com>
17331 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
17332 __SH2A_SINGLE_ONLY__ also.
17334 2009-04-24 Steve Ellcey <sje@cup.hp.com>
17336 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
17337 (movdf_internal): Ditto.
17338 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
17339 SFmode and DFmode constants.
17340 (ia64_print_operand): Add 'G' format for printing
17341 floating point constants.
17343 2009-04-24 Richard Guenther <rguenther@suse.de>
17345 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
17346 from unsigned additions.
17348 2009-04-24 Joseph Myers <joseph@codesourcery.com>
17350 * c-typeck.c (set_init_index): Allow array designators that are
17351 not integer constant expressions with a pedwarn if pedantic.
17353 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
17355 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
17356 zero if no overlap in nonzero bits between the operands.
17358 2009-04-24 Ian Lance Taylor <iant@google.com>
17360 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
17361 (record_dead_and_set_regs): Likewise.
17362 * df.h (struct df_mw_hardreg): Change flags field to int.
17363 (struct df_base_ref): Likewise.
17364 (struct df): Change changeable_flags field to int.
17365 * df-scan.c (df_defs_record): Change clobber_flags to int.
17366 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
17367 constants rather than #define macros.
17368 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
17369 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
17370 (enum dwarf_calling_convention): Likewise.
17371 (enum dwarf_line_number_x_ops): Likewise.
17372 (enum dwarf_call_frame_info): Likewise.
17373 (enum dwarf_source_language): Likewise.
17374 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
17375 (add_calling_convention_attribute): Likewise.
17376 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
17377 (combine_comparisons): Change compcode to int. Add cast to enum type.
17378 * genrecog.c (maybe_both_true_2): Change c to int.
17379 (write_switch): Likewise. Add cast to enum type.
17380 * gimplify.c (gimplify_omp_for): Handle return values from
17381 gimplify_expr using MIN rather than bitwise or.
17382 (gimplify_expr): Add cast to enum type.
17383 * ipa-prop.c (update_jump_functions_after_inlining): Change
17384 IPA_BOTTOM to IPA_JF_UNKNOWN.
17385 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
17386 Add casts to enum type.
17387 (setup_cover_and_important_classes): Change cl to int. Add casts
17389 (setup_class_translate): Change cl and mode to int.
17390 (ira_init_once): Change mode to int.
17391 (free_register_move_costs): Likewise.
17392 (setup_prohibited_mode_move_regs): Add casts to enum type.
17393 * langhooks.c (add_builtin_function_common): Rework assertion that
17394 value fits bitfield.
17395 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
17396 * omega.c (omega_do_elimination): Avoid math on enum types.
17397 * optabs.c (expand_vec_shift_expr): Remove casts to int.
17398 * opts.c (set_debug_level): Change 2 to enum constant. Use new
17399 int local to handle integral_argment value.
17400 * regmove.c (try_auto_increment): Change PUT_MODE to
17402 * reload.c (push_secondary_reload): Add casts to enum type.
17403 (secondary_reload_class, find_valid_class): Likewise.
17404 * reload1.c (emit_input_reload_insns): Likewise.
17405 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
17406 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
17407 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
17409 * tree.c (build_common_builtin_nodes): Add casts to enum type.
17410 * tree-complex.c (complex_lattice_t): Typedef to int rather than
17412 (expand_complex_libcall): Add casts to enum type.
17413 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
17414 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
17415 with ERROR_MARK, not NUM_TREE_CODES.
17416 (vect_create_epilog_for_reduction): Likewise.
17417 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
17418 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
17419 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
17421 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
17422 vect_unused_in_loop. Change 0 to loop_vect.
17423 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
17424 * var-tracking.c (get_init_value): Change return type to enum
17426 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
17427 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
17429 (arm_override_options): Add casts to enum type.
17430 (arm_emit_tls_decoration): Likewise.
17431 * config/i386/i386.c (ix86_function_specific_restore): Add casts
17433 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
17434 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
17435 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
17437 * config/s390/s390.c (code_for_builtin_64): Change to array of
17439 (code_for_builtin_31): Likewise.
17440 (s390_expand_builtin): Change code_for_builtin to enum insn_code
17442 * config/sparc/sparc.c (sparc_override_options): Change value
17443 field in struct code_model to enum cmodel. In initializer change
17444 0 to NULL and add cast to enum type.
17446 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
17447 Change all callers. Issue a -Wc++-compat warning using
17448 lhs_origtype if necessary.
17449 (convert_for_assignment): Issue -Wc++-compat warnings about
17450 invalid conversions to enum type on assignment.
17451 * c-common.h (build_modify_expr): Update declaration.
17453 2009-04-24 Nick Clifton <nickc@redhat.com>
17455 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
17456 (function_arg_advance): Likewise.
17457 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
17460 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
17462 * config/s390/constraints.md ('I', 'J'): Fix condition.
17464 2009-04-24 Diego Novillo <dnovillo@google.com>
17466 * gengtype-parse.c (parse_error): Add newline after message.
17468 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
17470 * config/i386/sse.md (avxmodesuffixs): Removed.
17471 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
17472 (*avx_pinsr<ssevecsize>): This.
17474 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
17476 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
17477 follow chains of regs with a single definition, and allow expressions
17478 that are function_invariant_p.
17479 (simple_rhs_p): Allow expressions that are function_invariant_p.
17481 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
17483 PR middle-end/39867
17484 * fold-const.c (fold_cond_expr_with_comparison): When folding
17485 > and >= to MAX, make sure the MAX uses the same type as the
17486 comparison's operands.
17488 2009-04-24 Nick Clifton <nickc@redhat.com>
17490 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
17491 addressing for DImode accesses.
17492 (frv_print_operand_address): Handle PLUS case.
17493 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
17495 2009-04-24 Jakub Jelinek <jakub@redhat.com>
17497 PR rtl-optimization/39794
17498 * alias.c (canon_true_dependence): Add x_addr argument.
17499 * rtl.h (canon_true_dependence): Adjust prototype.
17500 * cse.c (check_dependence): Adjust canon_true_dependence callers.
17501 * cselib.c (cselib_invalidate_mem): Likewise.
17502 * gcse.c (compute_transp): Likewise.
17503 * dse.c (scan_reads_nospill): Likewise.
17504 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
17505 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
17506 canon_base_addr of the group, plus optional offset.
17507 (struct group_info): Rename canon_base_mem to
17509 (get_group_info): Set canon_base_addr to canon_rtx of base, not
17510 canon_rtx of base_mem.
17512 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
17514 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
17515 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
17517 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17519 * config/spu/spu-builtins.h: Delete file.
17521 * config/spu/spu.h (enum spu_builtin_type): Move here from
17523 (struct spu_builtin_description): Likewise. Add GTY marker.
17524 Do not use enum spu_function_code or enum insn_code.
17525 (spu_builtins): Add extern declaration.
17527 * config/spu/spu.c: Do not include "spu-builtins.h".
17528 (enum spu_function_code, enum spu_builtin_type_index,
17529 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
17530 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
17531 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
17532 unsigned_V2DI_type_node): Move here from spu-builtins.h.
17533 (spu_builtin_types): Make static. Add GTY marker.
17534 (spu_builtins): Add extern declaration with GTY marker.
17535 Include "gt-spu.h".
17537 * config/spu/spu-c.c: Do not include "spu-builtins.h".
17538 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
17539 Check programmatically whether all parameters are scalar.
17541 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
17543 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
17545 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
17546 assignment from the constructor either if the target is volatile.
17548 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
17550 * config/arm/arm.md (insv): Do not share operands[0].
17552 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
17554 * config/vxlib-tls.c (active_tls_threads): Delete.
17555 (delete_hook_installed): New.
17556 (tls_delete_hook): Don't delete the delete hook.
17557 (tls_destructor): Delete it here.
17558 (__gthread_set_specific): Adjust installing the delete hook.
17559 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
17560 __gthread_leave_tsd_dtor_context.
17562 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
17564 * c-format.c (gcc_tdiag_char_table): Add support for %E.
17566 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
17568 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
17570 (alpha_rtx_costs): Ditto.
17571 (emit_unlikely_jump): Use add_reg_note.
17572 (emit_frame_store_1): Ditto.
17573 (alpha_expand_prologue): Ditto.
17574 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
17575 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
17577 2009-04-23 Nick Clifton <nickc@redhat.com>
17579 * config/v850/v850.md (epilogue): Remove suppressed code.
17580 (return): Rename to return_simple and remove test of frame size.
17581 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
17582 to gen_return_simple.
17584 2009-04-22 Jing Yu <jingyu@google.com>
17587 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
17589 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
17592 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
17593 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
17594 value is a VECTOR_CST, the element type is the element type of the
17597 2009-04-22 DJ Delorie <dj@redhat.com>
17599 * config/m32c/m32c.h: Update GTY annotations to new syntax.
17601 2009-04-22 Jakub Jelinek <jakub@redhat.com>
17603 * alias.c (find_base_term): Move around LO_SUM case, so that
17604 CONST falls through into PLUS/MINUS handling.
17607 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
17608 into 0, use omit_one_operand.
17610 2009-04-23 Ben Elliston <bje@au.ibm.com>
17612 * config/rs6000/linux-unwind.h (get_regs): Remove type
17613 puns. Change the type of `pc' to an array of unsigned ints and
17614 update all users. Constify frame24.
17616 2009-04-22 DJ Delorie <dj@redhat.com>
17618 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
17619 declarations before code.
17620 (current_function_special_page_vector): Likewise.
17621 (m32c_expand_insv): Silence a warning.
17623 2009-04-21 Taras Glek <tglek@mozilla.com>
17625 * alias.c: Update GTY annotations to new syntax.
17626 * basic-block.h: Likewise.
17627 * bitmap.h: Likewise.
17628 * c-common.h: Likewise.
17629 * c-decl.c: Likewise.
17630 * c-parser.c: Likewise.
17631 * c-pragma.c: Likewise.
17632 * c-tree.h: Likewise.
17633 * cfgloop.h: Likewise.
17634 * cgraph.h: Likewise.
17635 * config/alpha/alpha.c: Likewise.
17636 * config/arm/arm.h: Likewise.
17637 * config/avr/avr.h: Likewise.
17638 * config/bfin/bfin.c: Likewise.
17639 * config/cris/cris.c: Likewise.
17640 * config/darwin.c: Likewise.
17641 * config/frv/frv.c: Likewise.
17642 * config/i386/i386.c: Likewise.
17643 * config/i386/i386.h: Likewise.
17644 * config/i386/winnt.c: Likewise.
17645 * config/ia64/ia64.h: Likewise.
17646 * config/iq2000/iq2000.c: Likewise.
17647 * config/mips/mips.c: Likewise.
17648 * config/mmix/mmix.h: Likewise.
17649 * config/pa/pa.c: Likewise.
17650 * config/pa/pa.h: Likewise.
17651 * config/rs6000/rs6000.c: Likewise.
17652 * config/s390/s390.c: Likewise.
17653 * config/sparc/sparc.c: Likewise.
17654 * config/xtensa/xtensa.c: Likewise.
17655 * cselib.h: Likewise.
17656 * dbxout.c: Likewise.
17657 * dwarf2out.c: Likewise.
17658 * except.c: Likewise.
17659 * except.h: Likewise.
17660 * fixed-value.h: Likewise.
17661 * function.c: Likewise.
17662 * function.h: Likewise.
17663 * gimple.h: Likewise.
17664 * integrate.c: Likewise.
17665 * optabs.c: Likewise.
17666 * output.h: Likewise.
17667 * real.h: Likewise.
17669 * stringpool.c: Likewise.
17670 * tree-data-ref.c: Likewise.
17671 * tree-flow.h: Likewise.
17672 * tree-scalar-evolution.c: Likewise.
17673 * tree-ssa-address.c: Likewise.
17674 * tree-ssa-alias.h: Likewise.
17675 * tree-ssa-operands.h: Likewise.
17676 * tree.c: Likewise.
17677 * tree.h: Likewise.
17678 * varasm.c: Likewise.
17679 * varray.h: Likewise.
17681 * coretypes.h: Do not define GTY macro if it is already defined.
17682 * doc/gty.texi: Update GTY documentation to new syntax.
17683 * gengtype-lex.l: Enforce attribute-like syntax for GTY
17684 annotations on structs.
17685 * gengtype-parse.c: Likewise.
17687 2009-04-22 Mark Heffernan <meheff@google.com>
17689 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
17691 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
17693 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
17696 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
17698 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
17699 the same as a PLUS without a shift. Increase the cost of a
17702 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17704 * Makefile.in: Update dependencies.
17705 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
17706 * errors.h: Remove bogus comment about compatibility.
17707 (warning): Update declaration.
17708 * genautomata.c: Update all calls to warning.
17709 * gimple.c: Do not include errors.h. Include toplev.h.
17710 * tree-ssa-structalias.c: Do not include errors.h.
17711 * omega.c: Likewise.
17712 * tree-ssa-reassoc.c: Likewise.
17713 * config/spu/spu-c.c: Likewise.
17714 * config/spu/t-spu-elf: Update dependencies.
17716 2009-04-22 Richard Guenther <rguenther@suse.de>
17718 PR tree-optimization/39824
17719 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
17720 make sure the types are compatible.
17722 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
17725 * c-common.c (c_parse_error): Take a token_flags parameter.
17726 Use token_type for the token type instead.
17727 Pass token_flags to cpp_type2name.
17728 * c-common.h (c_parse_error): Update declaration.
17729 * c-parser.c (c_parser_error): Pass 0 as token flags.
17731 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
17733 PR rtl-optimization/39580
17734 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
17736 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17738 * function.c (expand_function_end): Do not emit a jump to the "naked"
17739 return label for fall-through returns.
17740 * except.c (sjlj_emit_function_exit): Always place the call to the
17741 unregister function at the location installed by expand_function_end.
17743 2009-04-22 Richard Guenther <rguenther@suse.de>
17745 PR tree-optimization/39845
17746 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
17747 (gen_inbound_check): Likewise.
17749 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
17751 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
17753 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
17754 * config/vxlib.c (__gthread_once): Add race guard for PPC.
17756 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
17758 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
17759 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
17760 shift counts to avoid out-of-bounds array accesses.
17762 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
17764 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
17765 (Pmode): Move above.
17767 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
17769 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
17770 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
17771 GET_CODE macro. Use IN_RANGE macro where appropriate.
17772 * config/alpha/alpha.h: Ditto.
17773 * config/alpha/alpha.md: Ditto.
17774 * config/alpha/constraints.md: Ditto.
17775 * config/alpha/predicates.md: Ditto.
17777 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
17779 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
17780 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17781 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17782 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17783 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17784 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17785 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17786 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17787 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17788 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17789 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17790 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17791 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17792 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17793 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17794 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17795 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17796 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17797 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17798 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17799 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17800 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17801 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17802 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17803 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17804 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17805 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
17807 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
17809 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
17810 references from comments.
17811 * cfgbuild.c: (count_basic_blocks): Delete.
17812 (find_basic_blocks_1): Delete.
17813 (find_basic_blocks): Delete.
17814 * except.c (finish_eh_generation): Make static. Move comment from
17815 except.h here. Remove find_basic_blocks references from comments.
17816 * except.h (finish_eh_generation): Delete.
17817 * basic-block.h (find_basic_blocks): Delete.
17818 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
17820 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
17822 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
17823 (sdbout_parms): Likewise.
17825 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
17827 * config/sh/sh.c (prepare_cbranch_operands): Use
17828 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
17829 (expand_cbranchdi4): Likewise.
17830 (from_compare): Add cast to enum type.
17831 (expand_cbranchsi4): Use add_reg_note.
17832 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
17833 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
17834 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
17835 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
17836 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
17837 instead of CODE_FOR_nothing.
17838 (cbranchdi4): Likewise. Fix the order of arguments for
17840 (push_fpscr): Use add_reg_note.
17841 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
17842 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
17844 2009-04-21 Joseph Myers <joseph@codesourcery.com>
17846 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
17847 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
17848 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
17849 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
17850 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
17851 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
17852 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
17853 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
17854 config/alpha/x-vms, config/arc/t-arc,
17855 config/arm/README-interworking, config/arm/arm-c.c,
17856 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
17857 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
17858 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
17859 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
17860 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
17861 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
17862 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
17863 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
17864 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
17865 config/cris/t-elfmulti, config/crx/t-crx,
17866 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
17867 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
17868 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
17869 config/h8300/t-h8300, config/i386/athlon.md,
17870 config/i386/darwin-libgcc.10.4.ver,
17871 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
17872 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
17873 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
17874 config/i386/t-linux64, config/i386/t-nwld,
17875 config/i386/t-rtems-i386, config/i386/t-sol2-10,
17876 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
17877 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
17878 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
17879 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
17880 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
17881 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
17882 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
17883 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
17884 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
17885 config/m68k/t-uclinux, config/mcore/t-mcore,
17886 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
17887 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
17888 config/mips/crtn.asm, config/mips/irix-crti.asm,
17889 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
17890 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
17891 config/mips/mips-fixed.md, config/mips/sb1.md,
17892 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
17893 config/mips/t-iris6, config/mips/t-isa3264,
17894 config/mips/t-libgcc-mips16, config/mips/t-linux64,
17895 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
17896 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
17897 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
17898 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
17899 config/mn10300/t-linux, config/mn10300/t-mn10300,
17900 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
17901 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
17902 config/picochip/libgccExtras/clzsi2.asm,
17903 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
17904 config/rs6000/darwin-libgcc.10.4.ver,
17905 config/rs6000/darwin-libgcc.10.5.ver,
17906 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
17907 config/rs6000/t-aix43, config/rs6000/t-aix52,
17908 config/rs6000/t-darwin, config/rs6000/t-fprules,
17909 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
17910 config/rs6000/t-lynx, config/rs6000/t-netbsd,
17911 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
17912 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
17913 config/rs6000/t-rtems, config/rs6000/t-spe,
17914 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
17915 config/score/t-score-elf, config/sh/divcost-analysis,
17916 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
17917 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
17918 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
17919 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
17920 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
17921 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
17922 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
17923 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
17924 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
17925 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
17926 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
17927 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
17928 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
17929 limitx.h, version.c, xcoff.h: Add copyright and license notices.
17930 * config/h8300/genmova.sh: Include copyright and license notices
17931 in generated output.
17932 * config/h8300/mova.md: Regenerate.
17933 * doc/install.texi2html: Include word "Copyright" in copyright
17934 notice and use name "Free Software Foundation, Inc.".
17935 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
17936 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
17937 ChangeLog-2007, ChangeLog-2008: Correct dates.
17939 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
17941 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
17942 NE_EXPR operations as well.
17943 * c-parser.c (c_parser_condition): Do not set location information on
17945 (c_parser_conditional_expression): Likewise.
17946 (c_parser_binary_expression): Set location information on operators.
17947 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
17948 TRUTH_NOT_EXPR has been folded.
17949 * fold-const.c (fold_truth_not_expr): Copy location information from
17950 the incoming expression to the outgoing one.
17951 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
17952 recursive calls on the LHS of the operator but pass that of the
17953 operator to recursive calls on the RHS of the operator. Set it
17955 (shortcut_cond_expr): Set the locus of the operator on the second
17956 COND_EXPR and that of the expression on the first in degenerate cases.
17957 Pass the locus of the expression to calls to shortcut_cond_r.
17958 Set the locus of the 'then' block on the associated jump, if any.
17959 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
17960 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
17961 expression to call to gimplify_boolean_expr.
17963 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
17965 * config.gcc: Add additional configuration for
17966 i686-w64-mingw* and x86_64-w64-mingw* triplet.
17967 * config/i386/mingw-w64.h: New mingw-w64 specific header.
17968 (CPP_SPEC): Redefine for allowing -municode option.
17969 (STARTFILE_SPEC): Likewise.
17970 * config/i386/t-mingw-w64: New.
17971 * config/i386/mingw-w64.opt: New.
17972 (municode): Add new target option.
17973 * doc/invoke.texi (municode): Add documentation for new option.
17975 2009-04-21 Ian Lance Taylor <iant@google.com>
17977 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17978 Correct test for number of arguments.
17979 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
17981 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
17983 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
17984 argument of emit_library_call.
17986 2009-04-21 Richard Guenther <rguenther@suse.de>
17988 PR middle-end/39829
17989 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
17990 inside VIEW_CONVERT_EXPRs.
17992 2009-04-21 Martin Jambor <mjambor@suse.cz>
17994 * tree-switch-conversion.c (build_constructors): Split a long line.
17995 (constructor_contains_same_values_p): New function.
17996 (build_one_array): Create assigns of constants if possible, do not
17997 call mark_sym_for_renaming, call update_stmt.
17998 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
17999 make_rename_temp. Do not call mark_symbols_for_renaming, call
18001 (gen_def_assigns): Do not call mark_symbols_for_renaming or
18002 find_new_referenced_vars, call update_stmt.
18003 (gen_inbound_check): Use create_tmp_var and create ssa names manually
18004 instead of calling make_rename_temp. Do not call
18005 find_new_referenced_vars or mark_symbols_for_renaming, call
18008 2009-04-21 Richard Guenther <rguenther@suse.de>
18010 PR tree-optimization/39827
18011 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
18012 (tree_ssa_phiprop): Pass the correct array size.
18014 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
18016 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
18018 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
18021 * c-typeck.c (lvalue_p): Move declaration ...
18022 * c-common.h (lvalue_p): ... to here.
18023 * c-common.c (candidate_equal_p): New.
18024 (add_tlist): Use it.
18025 (merge_tlist): Use it.
18026 (warn_for_collisions_1): Likewise.
18027 (warning_candidate_p): Accept more candidates.
18028 (verify_tree): A warning candidate can be an expression. Use
18031 2009-04-21 Ben Elliston <bje@au.ibm.com>
18034 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
18035 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
18036 options. Remove -mcall-solaris documentation.
18038 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
18041 * doc/invoke.texi (-Wlong-long): Update description.
18042 * c-lex (interpret_integer): Only warn if there was no previous
18043 overflow and -Wlong-long is enabled.
18044 * c-decl.c (declspecs_add_type): Drop redundant flags.
18045 * c.opt (Wlong-long): Init to -1.
18046 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
18047 and front-end warn_long_long. Wlong-long only depends on other
18048 flags if it is uninitialized.
18049 * c-parser.c (disable_extension_diagnostics): warn_long_long is
18050 the same for CPP and FE.
18051 (restore_extension_diagnostics): Likewise.
18053 2009-04-20 Ian Lance Taylor <iant@google.com>
18055 Fix enum conversions which are invalid in C++:
18056 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
18057 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
18058 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
18059 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
18060 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
18061 (dbxout_parms): Likewise.
18062 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
18063 (df_clear_flags): Likewise.
18064 * df-problems.c (df_rd_bb_local_compute_process_def): Change
18065 top_flag parameter to int.
18066 (df_chain_create_bb_process_use): Likewise.
18067 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
18069 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
18070 (df_ref_create_structure, df_def_record_1): Likewise.
18071 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
18072 (df_notes_rescan): Change 0 to VOIDmode in function call.
18073 (df_get_call_refs, df_insn_refs_collect): Likewise.
18074 (df_bb_regs_collect): Likewise.
18075 (df_entry_block_defs_collect): Likewise.
18076 (df_exit_block_uses_collect): Likewise.
18077 * df.h: Update declarations.
18078 * double-int.c (double_int_divmod): Add cast to enum type.
18079 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
18080 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
18081 (based_loc_descr): Likewise.
18082 (loc_descriptor_from_tree_1): Change first_op and second_op to
18083 enum dwarf_location_atom. Add cast to enum type.
18084 * expmed.c (init_expmed): Change 0 to SET in function call.
18085 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
18086 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
18087 (do_store_flag): Likewise.
18088 * fixed-value.h (struct fixed_value): Change mode to enum
18090 * function.c (assign_parms): Change 0 to VOIDmode in function call.
18091 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
18093 (insert_insn_decl, insert_decl, insert_state): Likewise.
18094 (automata_list_finish): Likewise.
18095 * genrecog.c (process_define_predicate): Add cast to enum type.
18096 * gensupport.c (init_predicate_table): Add cast to enum type.
18097 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
18099 (gimple_build_call_1, gimple_build_label): Likewise.
18100 (gimple_build_goto, gimple_build_asm_1): Likewise.
18101 (gimple_build_switch_1, gimple_build_cdt): Likewise.
18102 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
18103 (enum fallback): Rename from enum fallback_t.
18104 (fallback_t): Typedef as int.
18105 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
18106 GSI_SAME_STMT in function call.
18107 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
18109 (setup_reg_class_relations): Likewise.
18110 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
18111 (setup_prohibited_class_mode_regs): Add cast to enum type.
18112 (setup_prohibited_mode_move_regs): Likewise.
18113 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
18114 (record_address_regs): Change i to enum reg_class.
18115 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
18116 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
18117 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
18118 (GET_MODE_2XWIDER_MODE): Likewise.
18119 (GET_CLASS_NARROWEST_MODE): Likewise.
18120 * omp-low.c (expand_omp_for): Add cast to enum type.
18121 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
18122 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
18123 * postreload.c (reload_cse_simplify_operands): Change rclass local
18125 * predict.c (combine_predictions_for_insn): Change best_predictor
18126 and predictor to enum br_predictor.
18127 (combine_predictions_for_bb): Likewise.
18128 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
18129 use SET_PREDICT_EXPR_OUTCOME.
18130 * real.c (real_arithmetic): Change icode to code in function call.
18131 * reginfo.c (init_move_cost): Add casts to enum type.
18132 (init_reg_sets_1, init_fake_stack_mems): Likewise.
18133 * regmove.c (regclass_compatible_p): Change class0 and class1 to
18135 * reload.c (find_valid_class): Add casts to enum type.
18136 (push_reload): Change 0 to NO_REGS in function call.
18137 (find_reloads): Change this_alternative to array of enum
18138 reg_class. Remove some now-unnecessary casts.
18139 (make_memloc): Change 0 to VOIDmode in function call.
18140 * reload1.c (reload): Change 0 to VOIDmode in function call.
18141 (eliminate_regs_1, elimination_effects): Likewise.
18142 (eliminate_regs_in_insn): Likewise.
18143 (emit_input_reload_insns): Add cast to enum type.
18144 (delete_output_reload): Change 0 to VOIDmode in function call.
18145 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
18146 to enum type in function call.
18147 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
18148 (SET_PREDICT_EXPR_OUTCOME): Define.
18149 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
18150 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
18151 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
18152 (dump_function): Likewise.
18153 * tree-dump.h: Update declarations.
18154 * tree-pass.h: Update declarations.
18155 * varasm.c (assemble_integer): Change mclass to enum mode_class.
18156 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
18158 (arm_rtx_costs_1): Correct parenthesization.
18159 (arm_rtx_costs): Add casts to enum type.
18160 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
18161 (vfp_emit_fstmd): Use add_rg_note.
18162 (emit_multi_reg_push, emit_sfm): Likewise.
18163 (thumb_set_frame_pointer): Likewise.
18164 (arm_expand_prologue): Likewise.
18165 (arm_regno_class): Change return type to enum reg_class.
18166 (thumb1_expand_prologue): Use add_reg_note.
18167 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
18168 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
18170 * config/arm/gentune.sh: Add cast to enum type.
18171 * config/arm/arm-tune.md: Rebuild.
18172 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
18173 (ix86_split_fp_branch, predict_jump): Likewise.
18174 (ix86_expand_multi_arg_builtin): Change sub_code from enum
18175 insn_code to enum rtx_code.
18176 (ix86_builtin_vectorized_function): Add cast to enum type.
18177 * config/i386/i386.md (truncdfsf2): Change slot to enum
18179 (truncxf<mode>2, isinf<mode>2): Likewise.
18180 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
18182 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
18183 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
18184 (insert_bundle_state): Change 1 to INSERT in function call.
18185 (ia64_add_bundle_selector_before): Likewise.
18186 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
18187 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
18188 (restore_stack_nonlocal): Likewise.
18189 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
18191 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
18193 (mips_rtx_costs): Likewise.
18194 (mips_override_options): Add casts to enum type.
18195 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
18197 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
18198 (store_reg, set_reg_plus_d): Likewise.
18199 (hppa_expand_prologue, hppa_profile_hook): Likewise.
18200 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
18202 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
18204 (emit_unlikely_jump): Use add_reg_note.
18205 (rs6000_emit_allocate_stack): Likewise.
18206 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
18207 (output_toc): Change 1 to INSERT in function call.
18208 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
18209 (rs6000_initialize_trampoline): Likewise.
18210 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
18212 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
18213 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
18214 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
18215 (save_gprs): Use add_reg_note.
18216 (s390_emit_prologue): Likewise.
18217 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
18218 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
18219 (sparc_fold_builtin): Add cast to enum type.
18220 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
18222 (spu_expand_prologue): Use add_reg_note.
18223 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
18225 2009-04-20 Ian Lance Taylor <iant@google.com>
18227 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
18228 (c_parser_postfix_expression_after_primary): Get VEC for list of
18229 arguments. Get original types of arguments. Call
18230 build_function_call_vec.
18231 (cached_expr_list_1, cached_expr_list_2): New static variables.
18232 (c_parser_expr_list): Change return type to VEC *. Add
18233 p_orig_types parameter. Change all callers.
18234 (c_parser_release_expr): New static function.
18235 (c_parser_vec_to_tree_list): New static function.
18236 * c-typeck.c (build_function_call): Rewrite to build a VEC and
18237 call build_function_call_vec.
18238 (build_function_call_vec): New function, based on old
18239 build_function_call.
18240 (convert_arguments): Remove nargs and argarray parameters. Change
18241 values to a VEC. Add origtypes parameter.
18242 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
18243 (convert_for_assignment): Add origtype parameter. Change all
18244 callers. If warn_cxx_compat, check for conversion to an enum
18245 type when calling a function.
18246 (store_init_value): Add origtype parameter. Change all callers.
18247 (digest_init): Likewise.
18248 (struct init_node): Add origtype field.
18249 (add_pending_init): Add origtype parameter. Change all callers.
18250 (output_init_element): Likewise.
18251 (output_pending_init_elements): Pass origtype from init_node to
18252 output_init_element.
18253 (process_init_element): Pass origtype from c_expr to
18254 output_init_element.
18255 (c_finish_return): Add origtype parameter. Change all callers.
18256 * c-common.c (sync_resolve_size): Change params to VEC *. Change
18258 (sync_resolve_params): Likewise.
18259 (sync_resolve_return): Change params to first_param. Change caller.
18260 (resolve_overloaded_builtins): Change params to VEC *. Change
18261 callers. Save first parameter around call to build_function_call_vec.
18262 * c-decl.c (finish_decl): Add origtype parameter. Change all
18263 callers. Call build_function_call_vec rather than
18264 build_function_call for cleanup.
18265 * c-tree.h: Update declarations.
18266 * c-common.h: Update declarations.
18267 * stub-objc.c (objc_rewrite_function_call): Change parameter from
18268 params to first_param.
18269 * target.h (struct gcc_target): Change resolve_overloaded_builtin
18270 params parameter from tree to void *.
18271 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18272 Change arglist parameter to have type void *, and to be a pointer
18274 * config/rs6000/rs6000-protos.h
18275 (altivec_resolve_overloaded_builtin): Update declaration.
18276 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
18277 fnargs parameter to have type void *, and to be a pointer to a
18278 VEC. Call build_function_call_vec instead of
18279 build_function_call.
18280 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
18282 2009-04-20 Joey Ye <joey.ye@intel.com>
18283 Xuepeng Guo <xuepeng.guo@intel.com>
18284 H.J. Lu <hongjiu.lu@intel.com>
18286 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
18288 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
18289 (IX86_LEA_PRIORITY): Likewise.
18290 (distance_non_agu_define): New function.
18291 (distance_agu_use): Likewise.
18292 (ix86_lea_for_add_ok): Likewise.
18293 (ix86_dep_by_shift_count): Likewise.
18295 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
18296 should split for LEA.
18298 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
18300 (ix86_dep_by_shift_count): Likewise.
18302 2009-04-20 Richard Guenther <rguenther@suse.de>
18304 * expr.c (handled_component_p): Move ...
18305 * tree.h (handled_component_p): ... here.
18306 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
18307 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
18308 and REALPART_EXPR to be in one group.
18310 2009-04-20 Richard Guenther <rguenther@suse.de>
18312 * basic-block.h (get_all_dominated_blocks): Declare.
18313 * dominance.c (get_all_dominated_blocks): New function.
18314 * tree-cfg.c (get_all_dominated_blocks): Remove.
18315 (remove_edge_and_dominated_blocks): Adjust.
18316 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
18317 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
18318 instead of recursing.
18320 2009-04-20 Doug Kwan <dougkwan@google.com>
18322 * cgraph.h (cgraph_node_ptr): New type for vector functions.
18323 (struct cgraph_node_set_def): New type.
18324 (cgraph_node_set) New type. Also declare vector functions.
18325 (struct cgraph_node_set_element_def): New type.
18326 (cgraph_node_set_element): Ditto.
18327 (cgraph_node_set_iterator): New iterator type.
18328 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
18329 cgraph_node_set_remove, dump_cgraph_node_set,
18330 debug_cgraph_node_set): New prototypes.
18331 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
18332 cgraph_node_set_size): New inlines.
18333 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
18334 including cgraph.h.
18335 (struct ipa_opt_pass): Add struct cgraph_node_set_def
18336 argument to function 'write_summary'.
18337 * ipa.c: Include ggc.h.
18338 (hash_cgraph_node_set_element,
18339 eq_cgraph_node_set_element, cgraph_node_set_new,
18340 cgraph_node_set_add, cgraph_node_set_remove,
18341 cgraph_node_set_find, dump_cgraph_node_set,
18342 debug_cgraph_node_set): New functions.
18343 * Makefile.in (ipa.o): Add dependency on GGC_H.
18345 2009-04-20 Ira Rosen <irar@il.ibm.com>
18347 PR tree-optimization/39675
18348 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
18349 check of the return code of vect_schedule_slp. Check that
18350 stmt_vec_info still exists for the statement, before checking its
18351 vectorization type.
18353 2009-04-20 Michael Matz <matz@suse.de>
18355 * Makefile.in (generated_files): Take out $(simple_generated_c).
18357 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
18359 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
18360 (UINTPTR_TYPE): Likewise.
18362 2009-04-19 Joseph Myers <joseph@codesourcery.com>
18365 * c-typeck.c (digest_init): Check for initializing an array with a
18368 2009-04-19 Joseph Myers <joseph@codesourcery.com>
18371 * c-semantics.c (pop_stmt_list): Propagate
18372 STATEMENT_LIST_HAS_LABEL to parent statement list.
18374 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
18376 * config/mips/mips.h (mips_tune_attr): New macro.
18377 * config/mips/mips.md (cpu): Use it.
18379 2009-04-19 Joseph Myers <joseph@codesourcery.com>
18382 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
18385 2009-04-19 Diego Novillo <dnovillo@google.com>
18387 * toplev.c (compile_file): Move call to coverage_finish ...
18388 * cgraphunit.c (ipa_passes): ... here.
18389 Call cgraph_process_new_functions.
18390 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
18391 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
18393 2009-04-19 Jan Hubicka <jh@suse.cz>
18395 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
18397 (dump_cgraph_node): Dump can throw external flag.
18398 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
18400 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
18404 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
18405 * common.opt (Wlogical-op): Move from here...
18406 * c.opt (Wlogical-op): ... to here.
18407 * c-typeck.c (parser_build_binary_op): Update call to
18408 warn_logical_operator.
18409 * c-opts.c (c_common_post_options): Enable warn_logical_op with
18411 * c-common.c (warn_logical_op): Update.
18412 * c-common.h (warn_logical_op): Update declaration.
18414 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
18416 * tree.c (protected_set_expr_location): Fix formatting.
18418 2009-04-18 Joseph Myers <joseph@codesourcery.com>
18421 * c-typeck.c (readonly_warning): new.
18422 (build_unary_op, build_modify_expr): Use readonly_warning for
18423 storing into something readonly but not const-qualified.
18425 2009-04-18 Joseph Myers <joseph@codesourcery.com>
18428 * c-typeck.c (build_unary_op): Check for taking address of
18429 expression of type void.
18431 2009-04-18 Joseph Myers <joseph@codesourcery.com>
18434 * c-typeck.c (build_function_call): Check for calling a function
18435 with qualified void return types. Call require_complete_type when
18438 2009-04-18 Jan Hubicka <jh@suse.cz>
18440 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
18442 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
18443 can_throw_external flag.
18444 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
18445 * ipa-pure-const.c (ignore_edge): New function.
18446 (propagate): Compute order for NOTHROW computation; set NOTHROWs
18447 only over can_throw_external edges.
18448 (local_pure_const): Add nothrow flag.
18449 * ipa-utils.c (searchc): Add ignore_edge callback.
18450 (ipa_utils_reduced_inorder): Add ignore_edge callback.
18451 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
18452 (set_nothrow_function_flags): Update cgraph.
18453 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
18455 2009-04-18 Richard Guenther <rguenther@suse.de>
18457 PR middle-end/39804
18458 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
18459 (fold_stmt): ... this and ...
18460 (fold_stmt_inplace): ... this.
18461 (fold_stmt_1): Fold references in calls and asms.
18462 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
18464 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
18466 * tree-vrp.c (ssa_name_nonzero_p): Remove.
18467 * tree.h: Remove the prototype for ssa_name_nonzero_p.
18469 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
18471 * tree.c (function_args_count): Remove.
18472 * tree.h: Remove the prototype for function_args_count.
18474 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
18476 * tree-iterator.c (expr_only): Remove.
18477 * tree.h: Remove the prototype for expr_only.
18479 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
18481 * reginfo.c (cannot_change_mode_set_regs): Remove.
18482 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
18484 2009-04-08 Anatoly Sokolov <aesok@post.ru>
18486 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
18487 whether operands 0 and 1 overlaps.
18489 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
18491 PR middle-end/36902
18492 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
18493 pointer. Use warning_at instead of warning.
18494 (search_for_addr_array): Likewise.
18495 (check_array_bounds): Likewise.
18496 (check_all_array_refs): Check that the incoming edge is not in the
18497 list of edges to be removed.
18498 (check_all_array_refs): Avoid the temporal pointer.
18499 (vrp_visit_cond_stmt): Fix typo.
18500 (simplify_switch_using_ranges): Handle the case where the switch
18501 index is an integer constant.
18503 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
18505 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
18507 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
18509 * doc/extend.texi, doc/invoke.texi: Fix typos.
18511 2009-04-17 Cary Coutant <ccoutant@google.com>
18513 * tree-flow-inline.h (get_lineno): Fix inverted test.
18515 2009-04-17 Diego Novillo <dnovillo@google.com>
18517 * tree-ssa-pre.c (create_expression_by_pieces): Remove
18518 assertion for AVAIL_OUT.
18520 2009-04-17 Mike Frysinger <vapier@gentoo.org>
18523 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
18524 * config/sh/linux-atomic.asm: Likewise.
18526 2009-04-17 Diego Novillo <dnovillo@google.com>
18528 * except.c (debug_eh_tree): New.
18529 (struct eh_region, struct eh_status): Move ...
18530 * except.h: ... here.
18531 (add_type_for_runtime): Declare extern.
18532 (lookup_type_for_runtime): Likewise.
18533 (debug_eh_tree): Declare.
18534 * Makefile.in (GTFILES): List except.h before except.c
18536 2009-04-17 Diego Novillo <dnovillo@google.com>
18538 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
18539 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
18540 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
18541 (find_vars_r): ... here.
18542 * tree-flow.h (find_referenced_vars_in): Declare.
18543 * tree-ssa-pre.c (create_expression_by_pieces): Assert
18544 that AVAIL_OUT exists for BLOCK.
18545 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
18546 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
18547 (tree-parloops.o): Likewise.
18549 2009-04-17 Simon Baldwin <simonb@google.com>
18551 * toplev.c (default_tree_printer): Add handling for %E format.
18553 2009-04-17 Diego Novillo <dnovillo@google.com>
18555 * tree-pretty-print.c (dump_generic_node): Add break after
18556 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
18557 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
18558 FUNCTION_TYPE together. Call print_struct_decl when printing
18559 structures and TDF_SLIM is not given.
18560 (print_struct_decl): Fix logic for detecting recursion.
18562 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
18565 * gcc.c (create_at_file): New.
18566 (compile_input_file_p): New.
18567 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
18568 * main.c (main): Update call to toplev_main.
18569 * toplev.c (toplev_main): Change signature. Call expandargv.
18570 * toplev.h (toplev_main): Change signature.
18572 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
18574 * dwarf2out.c (field_byte_offset): Use the type size as the field size
18575 if the latter is not constant.
18577 2009-04-17 David Edelsohn <edelsohn@gnu.org>
18579 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
18581 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
18583 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
18584 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
18586 2009-04-17 Richard Guenther <rguenther@suse.de>
18588 * tree-ssa-structalias.c (get_constraint_for_component_ref):
18589 Handle component references view-converting an invariant address.
18591 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
18593 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
18594 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
18595 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
18596 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
18597 Use @deftypevr rather than @deftypevar.
18599 2009-04-17 Richard Guenther <rguenther@suse.de>
18601 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
18602 (get_prop_source_stmt): Likewise.
18603 (can_propagate_from): Likewise.
18605 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
18607 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
18608 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
18609 (--with-multilib-list): Add default value.
18610 * configure: Regenerate.
18611 * Makefile.in (TM_ENDIAN_CONFIG): Define.
18612 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
18613 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
18614 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
18615 Don't add default cpu to multilib list unnecessarily, but do enable
18616 the relevant compiler option..
18617 Add support for --with-multilib-list=<blank> and
18618 --with-multilib-list=!<somelib> to supress unwanted multilibs.
18619 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
18620 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
18621 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
18622 TM_MULTILIB_CONFIG.
18623 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
18624 (MULTILIB_OSDIRNAMES): New variable.
18625 * config/sh/t-1e: Delete file.
18626 * config/sh/t-mlib-sh1: Delete file.
18627 * config/sh/t-mlib-sh2: Delete file.
18628 * config/sh/t-mlib-sh2a: Delete file.
18629 * config/sh/t-mlib-sh2a-nofpu: Delete file.
18630 * config/sh/t-mlib-sh2a-single: Delete file.
18631 * config/sh/t-mlib-sh2a-single-only: Delete file.
18632 * config/sh/t-mlib-sh2e: Delete file.
18633 * config/sh/t-mlib-sh3e: Delete file.
18634 * config/sh/t-mlib-sh4: Delete file.
18635 * config/sh/t-mlib-sh4-nofpu: Delete file.
18636 * config/sh/t-mlib-sh4-single: Delete file.
18637 * config/sh/t-mlib-sh4-single-only: Delete file.
18638 * config/sh/t-mlib-sh4a: Delete file.
18639 * config/sh/t-mlib-sh4a-nofpu: Delete file.
18640 * config/sh/t-mlib-sh4a-single: Delete file.
18641 * config/sh/t-mlib-sh4a-single-only: Delete file.
18642 * config/sh/t-mlib-sh4al: Delete file.
18643 * config/sh/t-mlib-sh5-32media: Delete file.
18644 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
18645 * config/sh/t-mlib-sh5-64media: Delete file.
18646 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
18647 * config/sh/t-mlib-sh5-compact: Delete file.
18648 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
18649 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
18650 * doc/install.texi (Options specification): Add
18651 --with-multilib-list and --with-endian.
18653 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
18655 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
18657 (OBJS-common): Add plugin-version.o.
18658 (plugin-version.o): New.
18659 * gcc-plugin.h (plugin_gcc_version): New.
18660 (plugin_default_version_check): New.
18661 (plugin_init_func, plugin_init): Add version argument.
18662 * plugin-version.c: New.
18663 * plugin.c (str_plugin_gcc_version_name): New.
18664 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
18665 pass it to the init function.
18666 (plugin_default_version_check): New.
18668 2009-04-17 Richard Guenther <rguenther@suse.de>
18670 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
18671 for decl-vs-decl disambiguation.
18673 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
18675 * config/s390/s390.h (s390_tune_attr): New macro definition.
18676 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
18678 2009-04-17 Richard Guenther <rguenther@suse.de>
18680 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
18681 (fold_stmt_r): Likewise.
18682 (maybe_fold_reference): New function.
18683 (fold_gimple_assign): Handle cases fold_stmt_r did.
18684 (fold_stmt): Do not use fold_stmt_r.
18685 (fold_stmt_inplace): Likewise.
18687 2009-04-17 Richard Guenther <rguenther@suse.de>
18689 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
18690 (record_equivalences_from_stmt): Remove useless checks and
18692 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
18693 the type is already suitable.
18695 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
18697 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
18699 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
18701 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
18702 (CMPtype): Define as __gcc_CMPtype.
18704 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
18706 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
18707 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
18709 2009-04-17 Richard Guenther <rguenther@suse.de>
18711 PR tree-optimization/39746
18712 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
18713 special-casing for builtins and static variable use/def.
18714 (call_may_clobber_ref_p_1): Likewise.
18716 2009-04-16 Ian Lance Taylor <iant@google.com>
18718 * df.h: Include "timevar.h".
18719 (struct df_problem): Change tv_id field to timevar_id_t.
18720 * tree-pass.h: Include "timevar.h".
18721 (struct opt_pass): Change tv_id field to timevar_id_t.
18722 * timevar.h (timevar_id_t): Define TV_NONE.
18723 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
18724 TV_NONE rather than tv_id != 0.
18725 (execute_one_pass): Likewise.
18726 * Makefile.in (DF_H): Add $(TIMEVAR_H).
18727 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
18728 dependencies to $(TREE_PASS_H).
18729 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
18731 (pass_branch_target_load_optimize2): Likewise.
18732 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
18733 (pass_outof_cfg_layout_mode): Likewise.
18734 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
18735 (pass_rebuild_cgraph_edges): Likewise.
18736 (pass_remove_cgraph_callee_edges): Likewise.
18737 * df-core.c (pass_df_initialize_opt): Likewise.
18738 (pass_df_initialize_no_opt): Likewise.
18739 (pass_df_finish): Likewise.
18740 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
18741 * except.c (pass_set_nothrow_function_flags): Likewise.
18742 (pass_convert_to_eh_region_ranges): Likewise.
18743 * final.c (pass_compute_alignments): Likewise.
18744 * function.c (pass_instantiate_virtual_regs): Likewise.
18745 (pass_init_function): Likewise.
18746 (pass_leaf_regs): Likewise.
18747 (pass_match_asm_constraints): Likewise.
18748 * gimple-low.c (pass_lower_cf): Likewise.
18749 (pass_mark_used_blocks): Likewise.
18750 * init-regs.c (pass_initialize_regs): Likewise.
18751 * integrate.c (pass_initial_value_sets): Likewise.
18752 * ira.c (pass_ira): Likewise.
18753 * jump.c (pass_cleanup_barriers): Likewise.
18754 * omp-low.c (pass_expand_omp): Likewise.
18755 (pass_lower_omp): Likewise.
18756 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
18757 * recog.c (pass_split_all_insns): Likewise.
18758 (pass_split_after_reload): Likewise.
18759 (pass_split_before_regstack): Likewise.
18760 (pass_split_before_sched2): Likewise.
18761 (pass_split_for_shorten_branches): Likewise.
18762 * reginfo.c (pass_reginfo_init): Likewise.
18763 (pass_subregs_of_mode_init): Likewise.
18764 (pass_subregs_of_mode_finish): Likewise.
18765 * passes.c (pass_postreload): Likewise.
18766 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
18767 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
18768 (pass_warn_function_return): Likewise.
18769 (pass_warn_function_noreturn): Likewise.
18770 * tree-complex.c (pass_lower_complex): Likewise.
18771 (pass_lower_complex_O0): Likewise.
18772 * tree-if-conv.c (pass_if_conversion): Likewise.
18773 * tree-into-ssa.c (pass_build_ssa): Likewise.
18774 * tree-mudflap.c (pass_mudflap_1): Likewise.
18775 (pass_mudflap_2): Likewise.
18776 * tree-nomudflap.c (pass_mudflap_1): Likewise.
18777 (pass_mudflap_2): Likewise.
18778 * tree-nrv.c (pass_return_slot): Likewise.
18779 * tree-object-size.c (pass_object_sizes): Likewise.
18780 * tree-optimize.c (pass_all_optimizations): Likewise.
18781 (pass_early_local_passes): Likewise.
18782 (pass_all_early_optimizations): Likewise.
18783 (pass_cleanup_cfg): Likewise.
18784 (pass_cleanup_cfg_post_optimizing): Likewise.
18785 (pass_free_datastructures): Likewise.
18786 (pass_free_cfg_annotations): Likewise.
18787 (pass_fixup_cfg): Likewise.
18788 (pass_init_datastructures): Likewise.
18789 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
18790 (pass_late_warn_uninitialized): Likewise.
18791 (pass_update_address_taken): Likewise.
18792 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
18793 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
18794 (pass_cse_sincos): Likewise.
18795 (pass_convert_to_rsqrt): Likewise.
18796 * tree-ssa-structalias.c (pass_build_alias): Likewise.
18797 * tree-stdarg.c (pass_stdarg): Likewise.
18798 * tree-tailcall.c (pass_tail_recursion): Likewise.
18799 (pass_tail_calls): Likewise.
18800 * tree-vect-generic.c (pass_lower_vector): Likewise.
18801 (pass_lower_vector_ssa): Likewise.
18802 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
18804 2009-04-16 Joseph Myers <joseph@codesourcery.com>
18806 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
18808 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
18810 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
18811 logical and signext.
18813 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
18816 * config/sh/predicates.md (arith_operand): Check if the operand
18817 of TRUNCATE is a REG.
18819 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
18821 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
18822 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
18824 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
18826 * tree-iterator.c (tsi_split_statement_list_after,
18827 tsi_split_statement_list_before): Remove.
18828 * tree-iterator.h: Remove the prototypes for
18829 tsi_split_statement_list_after and tsi_split_statement_list_before.
18831 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
18833 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
18834 * tree-ssa-propagate.h: Remove the prototype for
18835 stmt_makes_single_load.
18837 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
18839 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
18840 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
18842 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
18844 * tree-iterator.c (EXPR_LAST_BODY): Remove.
18846 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
18848 * except.c (eh_region_outer_p): Remove.
18849 * except.h: Remove the prototype for eh_region_outer_p.
18851 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
18853 * function.c (current_function_assembler_name): Remove.
18854 * function.h: Remove the prototype for
18855 current_function_assembler_name.
18857 2009-04-16 Ian Lance Taylor <iant@google.com>
18859 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
18860 (add_reg_note): Call alloc_reg_note.
18861 * rtl.h (alloc_reg_note): Declare.
18862 * combine.c (try_combine): Use alloc_reg_note.
18863 (recog_for_combine, move_deaths): Likewise.
18864 (distribute_notes): Use alloc_reg_note and add_reg_note.
18865 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
18866 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
18867 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
18869 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
18871 PR rtl-optimization/39762
18872 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
18873 ira_may_move_out_cost): Add comments about way of their usage.
18874 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
18876 * ira-conflicts.c (process_regs_for_copy): Use function
18877 ira_get_register_move_cost instead of global
18878 ira_register_move_cost.
18880 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
18881 color_pass, move_spill_restore, update_curr_costs): Ditto.
18883 * ira-lives.c (process_single_reg_class_operands): Ditto.
18885 * ira-emit.c (emit_move_list): Ditto.
18887 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
18888 (record_reg_classes): Ditto. Use functions
18889 ira_get_register_move_cost and ira_get_may_move_cost instead of
18890 global vars ira_register_move_cost, ira_may_move_out_cost and
18891 ira_may_move_in_cost.
18892 (record_address_regs): Don't call ira_init_register_move_cost.
18893 Use function ira_get_may_move_cost instead of global
18894 ira_may_move_in_cost.
18895 (process_bb_node_for_hard_reg_moves): Use function
18896 ira_get_register_move_cost instead of global ira_register_move_cost.
18897 (ira_costs): Don't call ira_init_register_move_cost.
18899 2009-04-16 Richard Guenther <rguenther@suse.de>
18901 * tree-cfg.c (verify_gimple_assign_binary):
18902 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
18903 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
18904 (create_general_new_stmt): Note that this function is broken.
18906 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
18908 * common.opt (fhelp): Add Var(help_flag).
18909 * gcc-plugin.h (plugin_info): Add help.
18910 * plugin.c (plugin_name_args): Add help.
18911 (register_plugin_info): Set plugin->help.
18912 (print_help_one_plugin): New.
18913 (print_plugins_help): New.
18914 * plugin.h (print_plugins_help): New.
18915 * toplev.c (toplev_main): Call print_plugins_help if needed.
18917 2009-04-16 Richard Guenther <rguenther@suse.de>
18919 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
18920 (gimple_ior_addresses_taken_1): New function.
18921 (gimple_ior_addresses_taken): Likewise.
18922 * gimple.h (struct gimple_statement_with_ops_base): Remove
18923 addresses_taken member.
18924 (gimple_ior_addresses_taken): Declare.
18925 (gimple_addresses_taken, gimple_addresses_taken_ptr,
18926 gimple_set_addresses_taken): Remove.
18927 * ipa-reference.c (mark_address): New function.
18928 (scan_stmt_for_static_refs): Use it for marking addresses taken.
18929 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
18930 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
18931 (gimple_add_to_addresses_taken): Remove.
18932 (get_tmr_operands): Call mark_address_taken.
18933 (get_asm_expr_operands): Likewise.
18934 (get_expr_operands): Likewise.
18935 (build_ssa_operands): Do not clear the addresses_taken bitmap.
18936 (free_stmt_operands): Do not free it.
18937 * tree-ssa.c (delete_tree_ssa): Likewise.
18938 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
18940 2009-04-16 Richard Guenther <rguenther@suse.de>
18942 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
18943 (walk_stmt_load_store_ops): Likewise.
18944 * gimple.c (get_base_loadstore): New function.
18945 (walk_stmt_load_store_addr_ops): Likewise.
18946 (walk_stmt_load_store_ops): Likewise.
18947 * ipa-pure-const.c (check_op): Simplify.
18948 (check_load, check_store): New functions.
18949 (check_stmt): Use walk_stmt_load_store_ops.
18950 * ipa-reference.c (mark_load): Adjust signature.
18951 (mark_store): Likewise.
18952 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
18954 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
18956 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
18957 (plugin_info): New.
18958 * opts.c (common_handle_option): Don't call print_version.
18959 * plugin.c (plugin_name_args): Add version.
18960 (register_plugin_info): New.
18961 (register_callback): Handle PLUGIN_INFO.
18962 (try_init_one_plugin): New.
18963 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
18965 (finalize_one_plugin): New.
18966 (finalize_plugins): New.
18967 (print_one_plugin): New.
18968 (print_plugins_versions): New.
18969 * plugin.h (print_plugins_versions): New.
18970 (finalize_plugins): New.
18971 * toplev.c (compile_file): Don't call initialize_plugins.
18972 (print_version): Call print_plugins_versions.
18973 (toplev_main): Call initialize_plugins. Print version if needed.
18974 Call finalize_plugins.
18976 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
18978 * common.opt (fversion): New.
18979 * gcc.c (print_version): New.
18980 (process_command): Don't print the version. Just set print_version.
18981 (main): Print version. Call subprocesses if print_version and
18982 verbose_flag are set.
18983 * opts.c (common_handle_option): Handle OPT_fversion.
18985 2009-04-16 Richard Guenther <rguenther@suse.de>
18986 Ira Rosen <irar@il.ibm.com>
18988 PR tree-optimization/39698
18989 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
18990 type of the reduction variable. Only generate the def if
18993 * omp-low.c (expand_omp_for_generic): When converting to a pointer
18994 make sure to first convert to an integer of the same precision.
18995 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
18996 the type of the evolution correctly in computing the new
18997 induction variable base.
18999 2009-04-16 Richard Guenther <rguenther@suse.de>
19001 PR middle-end/39625
19002 * tree-cfg.c (make_blocks): Split statements with to-be
19003 abnormal SSA names on the lhs.
19005 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
19007 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
19008 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
19009 * c-typeck.c (really_start_incremental_init): Likewise.
19010 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
19011 (TARGET_INITIALIZER): Remove it.
19012 * target.h (struct target): Remove vector_opaque_p.
19013 * tree.c (build_opaque_vector_type): New.
19014 * tree.h (TYPE_VECTOR_OPAQUE): New.
19015 (build_opaque_vector_type): Declare.
19016 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
19017 * config/rs6000/rs6000.c (build_opaque_vector_type,
19018 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
19019 (rs6000_init_builtins): Use build_opaque_vector_type for
19020 opaque_V4SI_type_node.
19022 2009-04-15 Catherine Moore <clm@codesourcery.com>
19024 * debug.h (set_name): Declare.
19025 * dwarf2out.c (dwarf2out_set_name): Declare.
19026 (dwarf2_debug_hooks): Add set_name.
19027 (find_AT_string): New.
19028 (add_AT_string): Call find_AT_string.
19029 (dwarf2out_set_name): New.
19030 * cp/decl.c (grokdeclarator): Call set_name.
19031 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
19032 * debug.c (do_nothing_debug_hooks): Likewise.
19033 * dbxout.c (dbx_debug_hooks): Likewise.
19034 * sdbout.c (sdb_debug_hooks): Likewise.
19036 2009-04-15 Michael Eager <eager@eagercon.com>
19038 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
19039 reg for single-precision FPU.
19040 * config/rs6000/rs6000.md (movsi_internal1): Only for
19041 !TARGET_SINGLE_FPU.
19042 (movsi_internal1_single): New. Add pattern to move SI values to/from
19043 single-precision FP regs.
19045 2009-04-15 Richard Guenther <rguenther@suse.de>
19047 * omp-low.c (lower_rec_input_clauses): Build correct address
19049 (expand_omp_for_generic): Fix multiplication type.
19050 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
19051 (generate_memset_zero): Fix types.
19052 * tree-profile.c (prepare_instrumented_value): Correctly
19055 2009-04-15 Ian Lance Taylor <iant@google.com>
19057 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
19058 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
19059 for -Wall and for -Wc++-compat.
19060 (c_common_post_options): For C++, set warn_enum_compare if not
19062 * c-tree.h (struct c_expr): Add field original_type.
19063 (build_external_ref): Update declaration.
19064 * c-parser.c (c_parser_braced_init): Set original_type.
19065 (c_parser_initelt): Likewise.
19066 (c_parser_expr_no_commas): Likewise.
19067 (c_parser_conditional_expression): Likewise.
19068 (c_parser_cast_expression): Likewise.
19069 (c_parser_unary_expression): Likewise. Pull setting of
19070 original_code to top of function.
19071 (c_parser_sizeof_expression): Set original_type.
19072 (c_parser_alignof_expression): Likewise.
19073 (c_parser_postfix_expression): Likewise. Pull setting of
19074 original_code to top of function.
19075 (c_parser_postfix_expression_after_paren_type): Set original_type.
19076 (c_parser_postfix_expression_after_primary): Likewise.
19077 (c_parser_expression): Likewise.
19078 * c-typeck.c (build_external_ref): Add type parameter. Change all
19080 (c_expr_sizeof_expr): Set original_type field.
19081 (parser_build_unary_op): Likewise.
19082 (parser_build_binary_op): Likewise. Optionally warn about
19083 comparisons of enums of different types.
19084 (digest_init): Set original_type field.
19085 (really_start_incremental_init): Likewise.
19086 (push_init_level, pop_init_level): Likewise.
19087 * doc/invoke.texi (Warning Options): -Wenum-compare now
19090 2009-04-15 Richard Guenther <rguenther@suse.de>
19092 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
19093 out a necessary conversion.
19094 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
19095 names we didn't value number.
19096 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
19098 2009-04-15 Richard Guenther <rguenther@suse.de>
19100 PR tree-optimization/39764
19101 * tree-ssa-ccp.c (get_value): Canonicalize value with
19102 canonicalize_float_value.
19104 2009-04-15 Jan Hubicka <jh@suse.cz>
19106 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
19107 Wrong version of patch.
19109 2009-04-15 Jan Hubicka <jh@suse.cz>
19111 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
19113 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
19115 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
19116 our distinct integral and vector types.
19118 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
19120 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
19121 * init.c (build_vtbl_address): Remove call to assemble_external.
19123 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19125 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
19126 output for other floating point modes.
19128 2009-04-14 Diego Novillo <dnovillo@google.com>
19130 * diagnostic.c (diagnostic_report_diagnostic): Do not
19131 warn about loaded plugins for DK_ERROR and DK_WARNING.
19132 * c-decl.c (declspecs_add_type): Move call to
19133 invoke_plugin_callbacks ...
19134 * c-parser.c (c_parser_declspecs): ... here.
19135 * plugin.c (dump_active_plugins): Tidy output.
19137 2009-04-14 Diego Novillo <dnovillo@google.com>
19138 Le-Chun Wu <lcwu@google.com>
19140 * configure.ac: Add --enable-plugin support.
19141 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
19142 * Makefile.in (PLUGIN_H): Define.
19143 Export ENABLE_PLUGIN and GMPINC to site.exp.
19144 Add PLUGINLIBS to link command.
19145 Add/modify dependencies for plugin.o and files including plugin.h.
19147 * config.in: Regenerate.
19149 * opts.c (common_handle_option): Handle OPT_fplugin_ and
19152 2009-04-14 Le-Chun Wu <lcwu@google.com>
19154 * tree-pass.h (register_one_dump_file): Add a prototype for
19155 register_one_dump_file.
19156 * toplev.c (compile_file): Call initialize_plugins.
19157 (do_compile): Call invoke_plugin_callbacks.
19158 (toplev_main): Call invoke_plugin_callbacks.
19159 * common.opt: Add -fplugin= and -fplugin-arg-.
19160 * gcc-plugin.h: New public header file for plugins to include.
19161 * plugin.c: New source file.
19162 * plugin.h: New internal header file.
19163 * passes.c (register_one_dump_file): Make it external.
19165 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
19167 2009-04-14 Diego Novillo <dnovillo@google.com>
19169 * doc/plugins.texi: New.
19170 * doc/gccint.texi: Add reference to Plugins chapter.
19171 * doc/invoke.texi: Document -fplugin and -fplugin-arg
19172 * diagnostic.c (diagnostic_report_diagnostic): Warn about
19173 loaded plugins, if any.
19174 * timevar.def (TV_PLUGIN_INIT): Define.
19175 (TV_PLUGIN_RUN): Define.
19176 * plugin.c: Include timevar.h
19177 (plugins_active_p): New.
19178 (dump_active_plugins): New.
19179 (debug_active_plugins): New.
19181 2009-04-14 Joseph Myers <joseph@codesourcery.com>
19183 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
19185 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
19187 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
19189 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
19190 the same as a minus without a shift.
19192 2009-04-14 Nick Clifton <nickc@redhat.com>
19194 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
19195 comparisons with small integers will always produce a short
19198 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
19201 2008-12-19 Diego Novillo <dnovillo@google.com>
19203 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
19205 2009-04-14 Richard Guenther <rguenther@suse.de>
19207 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
19209 (verify_gimple_assign_binary): Likewise. Handle shifts and
19211 (verify_gimple_phi): Print the mismatched argument position.
19212 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
19214 (vect_update_init_of_dr): Likewise.
19215 * matrix-reorg.c (transform_access_sites): Do what the
19217 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
19219 2009-04-13 Michael Eager <eager@eagercon.com>
19221 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
19222 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
19223 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
19224 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
19225 remove duplicate config
19227 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
19229 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
19230 file_name:line_number type locator of the call site.
19232 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
19234 * genautomata.c: Put blank after comma.
19235 (automaton_decls): New.
19236 (struct unit_usage): Add comments to member next.
19237 (store_alt_unit_usage): Keep the list ordered.
19238 (unit_present_on_list_p, equal_alternatives_p): New.
19239 (check_regexp_units_distribution): Check units distribution
19240 correctness correctly.
19241 (main): Don't write automata if error is found. Return correct
19244 * config/m68k/cf.md (cfv4_ds): Remove.
19245 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
19246 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
19248 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
19249 power4-load-ext, power4-store, power4-store-update,
19250 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
19251 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
19252 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
19253 power4-sqrt, power4-isync): Modify reservation to make correct
19254 unit distribution to automata.
19256 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
19257 power5-store-update, power5-two, power5-three, power5-lmul,
19258 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
19260 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
19262 * except.c (pass_set_nothrow_function_flags): Set name and add
19264 (set_nothrow_function_flags): Mention in the dump file when
19265 changing a function to nothrow.
19267 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
19270 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
19271 instead of unsigned long.
19273 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19275 * config/arm/arm.c (return_used_this_function): Remove.
19276 (arm_output_function_prologue): Remove use of
19277 return_used_this_function.
19278 (output_return_instruction): Replace use of
19279 return_used_this_function
19280 by cfun->machine->return_used_this_function.
19281 (arm_output_epilogue): Likewise.
19282 (arm_output_function_epilogue): Likewise.
19283 (thumb_unexpanded_epilogue): Likewise.
19284 * config/arm/arm.h (struct machine_function):
19285 New member return_used_this_function.
19287 2009-04-12 Mark Mitchell <mark@codesourcery.com>
19289 * doc/install.texi: Correct description of default directory for
19290 --with-gxx-include-dir.
19292 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
19294 * fold-const.c (build_range_check): Properly deal with enumeral and
19295 boolean base types.
19297 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
19299 * doc/invoke.texi (max_gcse_passes): Remove documentation.
19300 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
19301 * params.h (MAX_GCSE_PASSES): Remove.
19302 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
19303 in sequence. Remove ability to run multiple passes.
19304 (bypass_jumps): Report run as third CPROP pass.
19306 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
19308 PR middle-end/39651
19309 * except.c (can_throw_external): Look at each insn in a SEQUENCE
19310 when deciding whether the whole SEQUENCE can throw.
19312 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
19315 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
19316 offseted label references.
19318 2009-04-11 Jan Hubicka <jh@suse.cz>
19320 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
19322 2009-04-11 Richard Guenther <rguenther@suse.de>
19324 PR middle-end/39732
19325 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
19326 return variables as TREE_ADDRESSABLE.
19328 2009-04-11 Richard Guenther <rguenther@suse.de>
19330 PR tree-optimization/39713
19331 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
19332 reference trees have SSA_NAME operands.
19334 2009-04-11 Richard Guenther <rguenther@suse.de>
19337 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
19338 address expressions.
19340 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
19342 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
19343 match changes in Cygwin 1.7
19344 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
19345 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
19347 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
19349 PR tree-optimization/39701
19350 * doc/invoke.texi (Optimization Options): Document change in
19351 meaning and initialization of -fdelete-null-pointer-checks.
19353 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
19355 PR middle-end/39701
19356 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
19358 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
19361 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
19363 2009-04-10 Chao-ying Fu <fu@mips.com>
19365 * doc/tm.texi (Instruction Output): Document
19366 TARGET_ASM_FINAL_POSTSCAN_INSN.
19367 * target.h (final_postscan_insn): New field in asm_out.
19368 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
19369 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
19370 * final.c (final_scan_insn): Call
19371 targetm.asm_out.final_postscan_insn after outputting
19372 an asm macro and a normal instruction.
19374 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
19375 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
19376 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
19377 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
19378 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
19380 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
19382 PR middle-end/39701
19383 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
19384 variables as non-NULL even with -fdelete-null-pointer-checks.
19386 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
19388 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
19390 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
19393 * config/i386/i386.c (classify_argument): Handle SCmode with
19394 (bit_offset % 64) != 0.
19396 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
19398 * doc/invoke.texi (Optimize Options): Add cross-reference to
19399 -Q --help=optimizers examples.
19401 2009-04-10 Ben Elliston <bje@au.ibm.com>
19404 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
19405 regalign for the reg == fpr and TDmode case.
19407 2009-04-09 David Ayers <ayers@fsfe.org>
19410 * objc/objc-act.c (warn_with_method): Remove helper function.
19411 (check_duplicates): Call warning and inform directly.
19412 (really_start_method): Likewise.
19414 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
19416 * expmed.c (expand_divmod): Always use a comparison for a division
19417 by a large unsigned integer.
19419 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
19420 for things others than variables or functions as nonzero.
19422 2009-04-09 Nick Clifton <nickc@redhat.com>
19424 * unwind-compat.c: Change copyright header to refer to version
19425 3 of the GNU General Public License with version 3.1 of the
19426 GCC Runtime Library Exception and to point readers at the
19427 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
19428 * config/alpha/crtfastmath.c: Likewise.
19429 * config/alpha/linux-unwind.h: Likewise.
19430 * config/alpha/qrnnd.asm: Likewise.
19431 * config/alpha/vms-crt0-64.c: Likewise.
19432 * config/alpha/vms-crt0.c: Likewise.
19433 * config/alpha/vms-dwarf2.asm: Likewise.
19434 * config/alpha/vms-dwarf2eh.asm: Likewise.
19435 * config/alpha/vms-psxcrt0-64.c: Likewise.
19436 * config/alpha/vms-psxcrt0.c: Likewise.
19437 * config/alpha/vms_tramp.asm: Likewise.
19438 * config/arc/initfini.c: Likewise.
19439 * config/arc/lib1funcs.asm: Likewise.
19440 * config/arm/bpabi-v6m.S: Likewise.
19441 * config/arm/bpabi.S: Likewise.
19442 * config/arm/bpabi.c: Likewise.
19443 * config/arm/crti.asm: Likewise.
19444 * config/arm/crtn.asm: Likewise.
19445 * config/arm/ieee754-df.S: Likewise.
19446 * config/arm/ieee754-sf.S: Likewise.
19447 * config/arm/lib1funcs.asm: Likewise.
19448 * config/arm/libunwind.S: Likewise.
19449 * config/arm/linux-atomic.c: Likewise.
19450 * config/arm/mmintrin.h: Likewise.
19451 * config/arm/pr-support.c: Likewise.
19452 * config/arm/unaligned-funcs.c: Likewise.
19453 * config/arm/unwind-arm.c: Likewise.
19454 * config/arm/unwind-arm.h: Likewise.
19455 * config/avr/libgcc.S: Likewise.
19456 * config/bfin/crti.s: Likewise.
19457 * config/bfin/crtlibid.s: Likewise.
19458 * config/bfin/crtn.s: Likewise.
19459 * config/bfin/lib1funcs.asm: Likewise.
19460 * config/bfin/linux-unwind.h: Likewise.
19461 * config/cris/arit.c: Likewise.
19462 * config/cris/cris_abi_symbol.c: Likewise.
19463 * config/darwin-64.c: Likewise.
19464 * config/darwin-crt2.c: Likewise.
19465 * config/darwin-crt3.c: Likewise.
19466 * config/darwin.h: Likewise.
19467 * config/dbxelf.h: Likewise.
19468 * config/dfp-bit.c: Likewise.
19469 * config/dfp-bit.h: Likewise.
19470 * config/elfos.h: Likewise.
19471 * config/fixed-bit.c: Likewise.
19472 * config/fixed-bit.h: Likewise.
19473 * config/fp-bit.c: Likewise.
19474 * config/fp-bit.h: Likewise.
19475 * config/fr30/crti.asm: Likewise.
19476 * config/fr30/crtn.asm: Likewise.
19477 * config/fr30/lib1funcs.asm: Likewise.
19478 * config/freebsd-spec.h: Likewise.
19479 * config/frv/cmovd.c: Likewise.
19480 * config/frv/cmovh.c: Likewise.
19481 * config/frv/cmovw.c: Likewise.
19482 * config/frv/frvbegin.c: Likewise.
19483 * config/frv/frvend.c: Likewise.
19484 * config/frv/lib1funcs.asm: Likewise.
19485 * config/glibc-stdint.h: Likewise.
19486 * config/h8300/clzhi2.c: Likewise.
19487 * config/h8300/crti.asm: Likewise.
19488 * config/h8300/crtn.asm: Likewise.
19489 * config/h8300/ctzhi2.c: Likewise.
19490 * config/h8300/fixunssfsi.c: Likewise.
19491 * config/h8300/lib1funcs.asm: Likewise.
19492 * config/h8300/parityhi2.c: Likewise.
19493 * config/h8300/popcounthi2.c: Likewise.
19494 * config/i386/ammintrin.h: Likewise.
19495 * config/i386/att.h: Likewise.
19496 * config/i386/avxintrin.h: Likewise.
19497 * config/i386/biarch64.h: Likewise.
19498 * config/i386/bmmintrin.h: Likewise.
19499 * config/i386/cpuid.h: Likewise.
19500 * config/i386/cross-stdarg.h: Likewise.
19501 * config/i386/crtfastmath.c: Likewise.
19502 * config/i386/crtprec.c: Likewise.
19503 * config/i386/cygming-crtbegin.c: Likewise.
19504 * config/i386/cygming-crtend.c: Likewise.
19505 * config/i386/cygwin.asm: Likewise.
19506 * config/i386/emmintrin.h: Likewise.
19507 * config/i386/gmm_malloc.h: Likewise.
19508 * config/i386/gthr-win32.c: Likewise.
19509 * config/i386/i386.h: Likewise.
19510 * config/i386/immintrin.h: Likewise.
19511 * config/i386/linux-unwind.h: Likewise.
19512 * config/i386/linux64.h: Likewise.
19513 * config/i386/mm3dnow.h: Likewise.
19514 * config/i386/mmintrin-common.h: Likewise.
19515 * config/i386/mmintrin.h: Likewise.
19516 * config/i386/nmmintrin.h: Likewise.
19517 * config/i386/pmm_malloc.h: Likewise.
19518 * config/i386/pmmintrin.h: Likewise.
19519 * config/i386/smmintrin.h: Likewise.
19520 * config/i386/sol2-c1.asm: Likewise.
19521 * config/i386/sol2-ci.asm: Likewise.
19522 * config/i386/sol2-cn.asm: Likewise.
19523 * config/i386/sol2-gc1.asm: Likewise.
19524 * config/i386/tmmintrin.h: Likewise.
19525 * config/i386/unix.h: Likewise.
19526 * config/i386/w32-unwind.h: Likewise.
19527 * config/i386/wmmintrin.h: Likewise.
19528 * config/i386/x86-64.h: Likewise.
19529 * config/i386/x86intrin.h: Likewise.
19530 * config/i386/xmmintrin.h: Likewise.
19531 * config/ia64/crtbegin.asm: Likewise.
19532 * config/ia64/crtend.asm: Likewise.
19533 * config/ia64/crtfastmath.c: Likewise.
19534 * config/ia64/crti.asm: Likewise.
19535 * config/ia64/crtn.asm: Likewise.
19536 * config/ia64/fde-glibc.c: Likewise.
19537 * config/ia64/lib1funcs.asm: Likewise.
19538 * config/ia64/linux-unwind.h: Likewise.
19539 * config/ia64/quadlib.c: Likewise.
19540 * config/ia64/unwind-ia64.c: Likewise.
19541 * config/linux.h: Likewise.
19542 * config/m32c/m32c-lib1.S: Likewise.
19543 * config/m32c/m32c-lib2-trapv.c: Likewise.
19544 * config/m32c/m32c-lib2.c: Likewise.
19545 * config/m32r/initfini.c: Likewise.
19546 * config/m68hc11/larith.asm: Likewise.
19547 * config/m68hc11/m68hc11-crt0.S: Likewise.
19548 * config/m68k/cf.md: Likewise.
19549 * config/m68k/crti.s: Likewise.
19550 * config/m68k/crtn.s: Likewise.
19551 * config/m68k/lb1sf68.asm: Likewise.
19552 * config/m68k/linux-unwind.h: Likewise.
19553 * config/mcore/crti.asm: Likewise.
19554 * config/mcore/crtn.asm: Likewise.
19555 * config/mcore/lib1.asm: Likewise.
19556 * config/mips/linux-unwind.h: Likewise.
19557 * config/mips/loongson.h: Likewise.
19558 * config/mips/mips16.S: Likewise.
19559 * config/mmix/crti.asm: Likewise.
19560 * config/mmix/crtn.asm: Likewise.
19561 * config/pa/fptr.c: Likewise.
19562 * config/pa/hpux-unwind.h: Likewise.
19563 * config/pa/lib2funcs.asm: Likewise.
19564 * config/pa/linux-atomic.c: Likewise.
19565 * config/pa/linux-unwind.h: Likewise.
19566 * config/pa/milli64.S: Likewise.
19567 * config/pa/quadlib.c: Likewise.
19568 * config/pa/stublib.c: Likewise.
19569 * config/picochip/libgccExtras/adddi3.asm: Likewise.
19570 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
19571 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
19572 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
19573 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
19574 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
19575 * config/picochip/libgccExtras/divmod15.asm: Likewise.
19576 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
19577 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
19578 * config/picochip/libgccExtras/longjmp.asm: Likewise.
19579 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
19580 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
19581 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
19582 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
19583 * config/picochip/libgccExtras/setjmp.asm: Likewise.
19584 * config/picochip/libgccExtras/subdi3.asm: Likewise.
19585 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
19586 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
19587 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
19588 * config/rs6000/750cl.h: Likewise.
19589 * config/rs6000/altivec.h: Likewise.
19590 * config/rs6000/biarch64.h: Likewise.
19591 * config/rs6000/crtresfpr.asm: Likewise.
19592 * config/rs6000/crtresgpr.asm: Likewise.
19593 * config/rs6000/crtresxfpr.asm: Likewise.
19594 * config/rs6000/crtresxgpr.asm: Likewise.
19595 * config/rs6000/crtsavfpr.asm: Likewise.
19596 * config/rs6000/crtsavgpr.asm: Likewise.
19597 * config/rs6000/darwin-asm.h: Likewise.
19598 * config/rs6000/darwin-fallback.c: Likewise.
19599 * config/rs6000/darwin-fpsave.asm: Likewise.
19600 * config/rs6000/darwin-ldouble.c: Likewise.
19601 * config/rs6000/darwin-tramp.asm: Likewise.
19602 * config/rs6000/darwin-unwind.h: Likewise.
19603 * config/rs6000/darwin-vecsave.asm: Likewise.
19604 * config/rs6000/darwin-world.asm: Likewise.
19605 * config/rs6000/e500crtres32gpr.asm: Likewise.
19606 * config/rs6000/e500crtres64gpr.asm: Likewise.
19607 * config/rs6000/e500crtres64gprctr.asm: Likewise.
19608 * config/rs6000/e500crtrest32gpr.asm: Likewise.
19609 * config/rs6000/e500crtrest64gpr.asm: Likewise.
19610 * config/rs6000/e500crtresx32gpr.asm: Likewise.
19611 * config/rs6000/e500crtresx64gpr.asm: Likewise.
19612 * config/rs6000/e500crtsav32gpr.asm: Likewise.
19613 * config/rs6000/e500crtsav64gpr.asm: Likewise.
19614 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
19615 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
19616 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
19617 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
19618 * config/rs6000/eabi-ci.asm: Likewise.
19619 * config/rs6000/eabi-cn.asm: Likewise.
19620 * config/rs6000/eabi.asm: Likewise.
19621 * config/rs6000/linux-unwind.h: Likewise.
19622 * config/rs6000/linux64.h: Likewise.
19623 * config/rs6000/paired.h: Likewise.
19624 * config/rs6000/paired.md: Likewise.
19625 * config/rs6000/ppc64-fp.c: Likewise.
19626 * config/rs6000/ppu_intrinsics.h: Likewise.
19627 * config/rs6000/rs6000.h: Likewise.
19628 * config/rs6000/si2vmx.h: Likewise.
19629 * config/rs6000/sol-ci.asm: Likewise.
19630 * config/rs6000/sol-cn.asm: Likewise.
19631 * config/rs6000/spe.h: Likewise.
19632 * config/rs6000/spu2vmx.h: Likewise.
19633 * config/rs6000/sysv4.h: Likewise.
19634 * config/rs6000/tramp.asm: Likewise.
19635 * config/rs6000/vec_types.h: Likewise.
19636 * config/s390/linux-unwind.h: Likewise.
19637 * config/s390/tpf-unwind.h: Likewise.
19638 * config/score/crti.asm: Likewise.
19639 * config/score/crtn.asm: Likewise.
19640 * config/sh/crt1.asm: Likewise.
19641 * config/sh/crti.asm: Likewise.
19642 * config/sh/crtn.asm: Likewise.
19643 * config/sh/divtab-sh4-300.c: Likewise.
19644 * config/sh/divtab-sh4.c: Likewise.
19645 * config/sh/divtab.c: Likewise.
19646 * config/sh/lib1funcs-4-300.asm: Likewise.
19647 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
19648 * config/sh/lib1funcs.asm: Likewise.
19649 * config/sh/lib1funcs.h: Likewise.
19650 * config/sh/linux-atomic.asm: Likewise.
19651 * config/sh/linux-unwind.h: Likewise.
19652 * config/sh/shmedia.h: Likewise.
19653 * config/sh/sshmedia.h: Likewise.
19654 * config/sh/ushmedia.h: Likewise.
19655 * config/sparc/crtfastmath.c: Likewise.
19656 * config/sparc/linux-unwind.h: Likewise.
19657 * config/sparc/sol2-c1.asm: Likewise.
19658 * config/sparc/sol2-ci.asm: Likewise.
19659 * config/sparc/sol2-cn.asm: Likewise.
19660 * config/spu/divmodti4.c: Likewise.
19661 * config/spu/divv2df3.c: Likewise.
19662 * config/spu/float_disf.c: Likewise.
19663 * config/spu/float_unsdidf.c: Likewise.
19664 * config/spu/float_unsdisf.c: Likewise.
19665 * config/spu/float_unssidf.c: Likewise.
19666 * config/spu/mfc_multi_tag_release.c: Likewise.
19667 * config/spu/mfc_multi_tag_reserve.c: Likewise.
19668 * config/spu/mfc_tag_release.c: Likewise.
19669 * config/spu/mfc_tag_reserve.c: Likewise.
19670 * config/spu/mfc_tag_table.c: Likewise.
19671 * config/spu/multi3.c: Likewise.
19672 * config/spu/spu_internals.h: Likewise.
19673 * config/spu/spu_intrinsics.h: Likewise.
19674 * config/spu/spu_mfcio.h: Likewise.
19675 * config/spu/vec_types.h: Likewise.
19676 * config/spu/vmx2spu.h: Likewise.
19677 * config/stormy16/stormy16-lib2.c: Likewise.
19678 * config/svr4.h: Likewise.
19679 * config/sync.c: Likewise.
19680 * config/v850/lib1funcs.asm: Likewise.
19681 * config/vxlib-tls.c: Likewise.
19682 * config/vxlib.c: Likewise.
19683 * config/vxworks-dummy.h: Likewise.
19684 * config/xtensa/crti.asm: Likewise.
19685 * config/xtensa/crtn.asm: Likewise.
19686 * config/xtensa/ieee754-df.S: Likewise.
19687 * config/xtensa/ieee754-sf.S: Likewise.
19688 * config/xtensa/lib1funcs.asm: Likewise.
19689 * config/xtensa/lib2funcs.S: Likewise.
19690 * config/xtensa/linux-unwind.h: Likewise.
19691 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
19692 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
19693 * coretypes.h: Likewise.
19694 * crtstuff.c: Likewise.
19695 * defaults.h: Likewise.
19696 * dwarf2.h: Likewise.
19697 * emutls.c: Likewise.
19698 * gbl-ctors.h: Likewise.
19699 * gcov-io.h: Likewise.
19700 * ginclude/float.h: Likewise.
19701 * ginclude/iso646.h: Likewise.
19702 * ginclude/stdarg.h: Likewise.
19703 * ginclude/stdbool.h: Likewise.
19704 * ginclude/stddef.h: Likewise.
19705 * ginclude/stdfix.h: Likewise.
19706 * ginclude/stdint-gcc.h: Likewise.
19707 * ginclude/tgmath.h: Likewise.
19708 * gthr-aix.h: Likewise.
19709 * gthr-dce.h: Likewise.
19710 * gthr-gnat.c: Likewise.
19711 * gthr-gnat.h: Likewise.
19712 * gthr-lynx.h: Likewise.
19713 * gthr-mipssde.h: Likewise.
19714 * gthr-nks.h: Likewise.
19715 * gthr-posix.c: Likewise.
19716 * gthr-posix.h: Likewise.
19717 * gthr-posix95.h: Likewise.
19718 * gthr-rtems.h: Likewise.
19719 * gthr-single.h: Likewise.
19720 * gthr-solaris.h: Likewise.
19721 * gthr-tpf.h: Likewise.
19722 * gthr-vxworks.h: Likewise.
19723 * gthr-win32.h: Likewise.
19724 * gthr.h: Likewise.
19725 * libgcc2.c: Likewise.
19726 * libgcc2.h: Likewise.
19727 * libgcov.c: Likewise.
19728 * tsystem.h: Likewise.
19729 * typeclass.h: Likewise.
19730 * unwind-c.c: Likewise.
19731 * unwind-compat.h: Likewise.
19732 * unwind-dw2-fde-compat.c: Likewise.
19733 * unwind-dw2-fde-darwin.c: Likewise.
19734 * unwind-dw2-fde-glibc.c: Likewise.
19735 * unwind-dw2-fde.c: Likewise.
19736 * unwind-dw2-fde.h: Likewise.
19737 * unwind-dw2.c: Likewise.
19738 * unwind-dw2.h: Likewise.
19739 * unwind-generic.h: Likewise.
19740 * unwind-pe.h: Likewise.
19741 * unwind-sjlj.c: Likewise.
19742 * unwind.inc: Likewise.
19743 * config/arm/neon-gen.ml: Change generated copyright header to
19744 refer to version 3 of the GNU General Public License with
19745 version 3.1 of the GCC Runtime Library Exception and to point
19746 readers at the COPYING3 and COPYING3.RUNTIME files and the
19747 FSF's license web page.
19748 * config/arm/arm_neon.h: Regenerate.
19750 2009-04-09 Jakub Jelinek <jakub@redhat.com>
19752 * config/cris/cris.md: Change copyright header to refer to version
19753 3 of the GNU General Public License.
19754 * doc/install.texi2html: Change copyright header to refer to version
19755 3 of the GNU General Public License and to point readers at the
19756 COPYING3 file and the FSF's license web page.
19757 * config/vax/linux.h: Likewise.
19759 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
19761 * config/i386/i386.md (cmpcc): New.
19762 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
19763 (sync_compare_and_swap_cc*): Delete.
19765 * config/s390/s390.c (s390_compare_emitted): Remove.
19766 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
19767 s390_compare_emitted used to be handled. Assert that modes match.
19768 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
19769 refer to sync_compare_and_swap_ccsi.
19770 * config/s390/s390.h (s390_compare_emitted): Remove.
19771 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
19772 instead of s390_compare_emitted.
19773 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
19774 instead of s390_compare_emitted.
19775 * config/s390/s390.md (cmpcc): New.
19776 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
19777 CC_REGNUM, do not pretend it's set.
19778 (sync_compare_and_swap_cc*): Delete.
19779 * config/s390/predicates.md (cc_reg_operand): New.
19781 * expr.c (sync_compare_and_swap_cc): Delete.
19782 * optabs.h (sync_compare_and_swap_cc): Delete.
19783 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
19784 is being used with can_compare_p.
19785 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
19786 (find_cc_set): New.
19787 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
19788 look for a MODE_CC set instead. Use emit_store_flag.
19789 (expand_compare_and_swap_loop): Likewise, with some additional
19790 complication to avoid a force_reg when useless. Use
19791 emit_cmp_and_jump_insns.
19792 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
19793 * doc/md.texi (sync_compare_and_swap_cc): Merge with
19794 sync_compare_and_swap documentation.
19796 2009-04-09 Jan Hubicka <jh@suse.cz>
19798 * except.c (find_prev_try): Break out from ....
19799 (duplicate_eh_regions): ... here; properly update prev_try pointers
19800 when duplication part of tree.
19801 (dump_eh_tree): Improve dumping.
19802 (verify_eh_region): New.
19803 (verify_eh_tree): Use it.
19805 2009-04-06 Richard Guenther <rguenther@suse.de>
19807 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
19808 &ARRAY addresses by adjusting their types and prepending
19810 * tree-cfg.c (verify_gimple_assign_single): Verify that
19811 addresses are correct.
19813 2009-04-09 Richard Guenther <rguenther@suse.de>
19815 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
19816 indices into an array reference if possible.
19817 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
19818 Fold POINTER_PLUS_EXPR statements with invariant address.
19820 2009-04-09 Alan Modra <amodra@bigpond.net.au>
19823 * config.gcc (powerpc64-*-linux*): Always build biarch.
19825 2009-04-09 Joseph Myers <joseph@codesourcery.com>
19828 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
19829 it and pedwarn if this results in an INTEGER_CST.
19831 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19833 * doc/install.texi: Update minimum GMP version. Remove obsolete
19834 text in MPFR section.
19836 2009-04-08 Jakub Jelinek <jakub@redhat.com>
19838 * dwarf2out.c (class_scope_p): New static inline.
19839 (class_or_namespace_scope_p): Use it.
19840 (gen_variable_die): Use DW_TAG_member tag for static data member
19841 declarations instead of DW_TAG_variable.
19843 PR middle-end/39573
19844 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
19847 2009-04-08 Richard Guenther <rguenther@suse.de>
19849 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
19850 valueize random data.
19852 2009-04-08 David Edelsohn <edelsohn@gnu.org>
19854 * config.gcc (aix tm_file): Add aix-stdint.h.
19855 (aix tm clause use_gcc_stdint): Set to wrap.
19856 * config/rs6000/aix-stdint.h: New file.
19858 2009-04-08 Richard Guenther <rguenther@suse.de>
19860 PR middle-end/36291
19861 * tree-dfa.c (add_referenced_var): Do not recurse into
19862 global initializers.
19863 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
19865 (fold_const_aggregate_ref): Likewise.
19867 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
19869 * recog.c (ordered_comparison_operator): New.
19870 * gensupport.c (std_preds): Add it.
19871 * doc/md.texi (Machine-Independent Predicates): Document it.
19873 2009-04-08 Jan Hubicka <jh@suse.cz>
19875 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
19876 * function.h (rtl_eh): Remove exception_handler_label_map.
19877 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
19878 remove_exception_handler_label, for_each_eh_label_1): Remove.
19879 (rtl_remove_unreachable_regions): Remove.
19880 (convert_from_eh_region_ranges): Do not remove unreachable regions.
19881 (find_exception_handler_labels): Don't build the hashtable.
19882 (maybe_remove_eh_handler): Remove.
19883 (for_each_eh_label): Rewrite to walk the tree.
19884 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
19885 * except.h (maybe_remove_eh_handler): Remove.
19886 * passes.c (init_optimization_passes): Schedule second EH cleanup
19888 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
19889 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
19891 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
19893 * genoutput.c (validate_optab_operands): New.
19894 (gen_insn, gen_expand): Call it.
19896 * genflags.c (gen_insn): Detect misused iterators.
19897 (main): Pass line_no to gen_insn, exit with status 1 on error.
19899 * genextract.c (line_no): Make global.
19900 (VEC_safe_set_locstr): Change assertion to error message.
19901 (main): Exit with status 1 on error.
19903 2009-04-08 Joseph Myers <joseph@codesourcery.com>
19907 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
19908 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
19909 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
19910 * c-convert.c (convert): Do not call fold on results of conversion
19911 functions when the result is a C_MAYBE_CONST_EXPR.
19912 * c-parser.c (c_parser_postfix_expression): Do not fold condition
19913 of __builtin_choose_expr.
19914 * c-typeck.c (remove_c_maybe_const_expr): New.
19915 (build_unary_op, build_conditional_expr, build_compound_expr,
19916 build_binary_op, c_objc_common_truthvalue_conversion): Call
19917 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
19920 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
19922 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
19923 CODE to produce a new one. Add a prototype to use fold_convert_const
19925 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
19928 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
19929 mix declarations and code.
19931 2009-04-08 Ben Elliston <bje@au.ibm.com>
19933 * gcc.c: Replace `CC' with `GCC' throughout.
19935 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
19937 * doc/invoke.texi: Document Atom support.
19939 2009-04-07 Jason Merrill <jason@redhat.com>
19942 * c-common.h, c-common.c: Add flag_pretty_templates.
19943 * c-opts.c (c_common_handle_option): Set it.
19944 * c.opt: Add -fno-pretty-templates.
19945 * doc/invoke.texi (C++ Dialect Options): Likewise.
19947 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
19949 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
19950 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
19951 (ia64_expand_builtin): Likewise.
19953 2009-04-07 Martin Jambor <mjambor@suse.cz>
19955 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
19956 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
19957 ADDR_EXPRS are include too.
19959 2009-04-07 Richard Guenther <rguenther@suse.de>
19961 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
19962 decls are only used if passes as parameters or if they are
19963 local statics and the call is not to a builtin.
19964 (call_may_clobber_ref_p_1): Likewise.
19966 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
19968 * expr.c (do_store_flag): Remove last argument. Simplify code
19969 to avoid duplication of tests already done by can_compare_p.
19970 (expand_expr_real_1): Adjust caller.
19972 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
19974 * optabs.c (can_compare_p): Test the predicate of a
19975 cbranch and cstore pattern.
19977 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
19979 * expr.c (convert_move): Use emit_store_flag instead of
19982 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
19984 * config/i386/i386.c (ix86_compare_emitted): Remove.
19985 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
19986 ix86_compare_op0 like ix86_compare_emitted used to be handled.
19987 * config/i386/i386.h (ix86_compare_emitted): Remove.
19988 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
19989 instead of ix86_compare_emitted.
19990 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
19992 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
19994 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
19995 Add t-sysroot-suffix to tmake_file.
19996 * config/print-sysroot-suffix.sh: New file.
19997 * config/t-sysroot-suffix: New file.
19999 2009-04-07 Ben Elliston <bje@au.ibm.com>
20001 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
20002 as the latter produces a warning when the target does not support
20005 2009-04-07 Ben Elliston <bje@au.ibm.com>
20007 * dfp.c: Replace type punning assignments with memcpy throughout.
20008 * Makefile.in (dfp.o-warn): Remove.
20010 2009-04-07 Alan Modra <amodra@bigpond.net.au>
20013 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
20014 Include soft-fp/t-softfp after rs6000/t-linux64.
20016 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
20018 * stor-layout.c (set_sizetype): Use the full precision of their
20019 machine mode for bitsize types.
20021 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
20023 * config/i386/i386.md: Revert 2 accidental checkins.
20025 2009-04-06 Joey Ye <joey.ye@intel.com>
20026 Xuepeng Guo <xuepeng.guo@intel.com>
20027 H.J. Lu <hongjiu.lu@intel.com>
20029 Atom pipeline model, tuning and insn selection.
20030 * config.gcc (atom): Add atom config options and target.
20032 * config/i386/atom.md: New.
20034 * config/i386/i386.c (atom_cost): New cost.
20035 (m_ATOM): New macro flag.
20036 (initial_ix86_tune_features): Set m_ATOM.
20037 (x86_accumulate_outgoing_args): Likewise.
20038 (x86_arch_always_fancy_math_387): Likewise.
20039 (processor_target): Add Atom cost.
20040 (cpu_names): Add Atom cpu name.
20041 (override_options): Set Atom ISA.
20042 (ix86_issue_rate): New case PROCESSOR_ATOM.
20043 (ix86_adjust_cost): Likewise.
20045 * config/i386/i386.h (TARGET_ATOM): New target macro.
20046 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
20047 (TARGET_OPT_AGU): New target option.
20048 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
20049 (processor_type): Add PROCESSOR_ATOM.
20051 * config/i386/i386.md (cpu): Add new value "atom".
20052 (use_carry, movu): New attr.
20053 (atom.md): Include atom.md.
20054 (adddi3_carry_rex64): Set attr "use_carry".
20055 (addqi3_carry): Likewise.
20056 (addhi3_carry): Likewise.
20057 (addsi3_carry): Likewise.
20058 (*addsi3_carry_zext): Likewise.
20059 (subdi3_carry_rex64): Likewise.
20060 (subqi3_carry): Likewise.
20061 (subhi3_carry): Likewise.
20062 (subsi3_carry): Likewise.
20063 (x86_movdicc_0_m1_rex64): Likewise.
20064 (*x86_movdicc_0_m1_se): Likewise.
20065 (x86_movsicc_0_m1): Likewise.
20066 (*x86_movsicc_0_m1_se): Likewise.
20067 (*adddi_1_rex64): Emit add insn as much as possible.
20068 (*addsi_1): Likewise.
20069 (return_internal): Set atom_unit.
20070 (return_internal_long): Likewise.
20071 (return_pop_internal): Likewise.
20072 (*rcpsf2_sse): Set atom_sse_attr attr.
20073 (*qrt<mode>2_sse): Likewise.
20074 (*prefetch_sse): Likewise.
20076 * config/i386/i386-c.c (ix86_target_macros_internal): New case
20078 (ix86_target_macros_internal): Likewise.
20080 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
20081 (*prefetch_sse_rex): Likewise.
20082 (sse_rcpv4sf2): Likewise.
20083 (sse_vmrcpv4sf2): Likewise.
20084 (sse_sqrtv4sf2): Likewise.
20085 (<sse>_vmsqrt<mode>2): Likewise.
20086 (sse_ldmxcsr): Likewise.
20087 (sse_stmxcsr): Likewise.
20088 (*sse_sfence): Likewise.
20089 (sse2_clflush): Likewise.
20090 (*sse2_mfence): Likewise.
20091 (*sse2_lfence): Likewise.
20092 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
20093 (<sse>_movup<ssemodesuffixf2c>): Likewise.
20094 (avx_movdqu<avxmodesuffix>): Likewise.
20095 (avx_lddqu<avxmodesuffix>): Likewise.
20096 (sse2_movntv2di): Change attr "type" to "ssemov".
20097 (sse2_movntsi): Likewise.
20098 (rsqrtv8sf2): Change attr "type" to "sseadd".
20099 (sse3_addsubv2df3): Set attr "atom_unit".
20100 (sse3_h<plusminus_insn>v4sf3): Likewise.
20101 (*sse2_pmaddwd): Likewise.
20102 (*vec_extractv2di_1_rex64): Likewise.
20103 (*vec_extractv2di_1_avx): Likewise.
20104 (sse2_psadbw): Likewise.
20105 (ssse3_phaddwv8hi3): Likewise.
20106 (ssse3_phaddwv4hi3): Likewise.
20107 (ssse3_phadddv4si3): Likewise.
20108 (ssse3_phadddv2si3): Likewise.
20109 (ssse3_phaddswv8hi3): Likewise.
20110 (ssse3_phaddswv4hi3): Likewise.
20111 (ssse3_phsubwv8hi3): Likewise.
20112 (ssse3_phsubwv4hi3): Likewise.
20113 (ssse3_phsubdv4si3): Likewise.
20114 (ssse3_phsubdv2si3): Likewise.
20115 (ssse3_phsubswv8hi3): Likewise.
20116 (ssse3_phsubswv4hi3): Likewise.
20117 (ssse3_pmaddubsw128): Likewise.
20118 (sse3_pmaddubsw: Likewise.
20119 (ssse3_palignrti): Likewise.
20120 (ssse3_palignrdi): Likewise.
20122 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
20124 * doc/install.texi (Specific): Fix two cross-references to MinGW.
20126 2009-04-06 Richard Guenther <rguenther@suse.de>
20128 PR tree-optimization/28868
20129 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
20130 of which PHI results we inserted.
20131 (insert_into_preds_of_block): Record inserted PHIs.
20132 (eliminate): Eliminate redundant PHI nodes.
20133 (init_pre): Init inserted_phi_names.
20135 2009-04-06 Richard Guenther <rguenther@suse.de>
20137 PR tree-optimization/39643
20138 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
20139 IMAGPART_EXPRs of complex constants.
20140 (execute_fold_all_builtins): If we folded a call queue
20141 TODO_update_address_taken.
20143 2009-04-06 Jan Hubicka <jh@suse.cz>
20145 PR middle-end/39659
20146 * except.c (remove_unreachable_regions): Propagate may_contain_throw
20149 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
20151 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
20153 (ic_invalidate_array): Likewise.
20155 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
20157 * calls.c (emit_library_call_value_1): Fix a problem with parameter
20158 alignment for library calls.
20160 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
20162 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
20163 (mingw32 tm clause use_gcc_stdint): Set to wrap.
20164 * config/i386/mingw-stdint.h: New file.
20166 2009-04-05 Richard Guenther <rguenther@suse.de>
20168 PR tree-optimization/39648
20169 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
20170 our &A vs. &A[0] IL deficiencies.
20172 2009-04-04 Jan Hubicka <jh@suse.cz>
20174 * except.c (sjlj_find_directly_reachable_regions): Be ready for
20175 removed toplevel regions.
20176 (sjlj_mark_call_sites): Likewise.
20178 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
20180 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
20181 (cygwin tm clause use_gcc_stdint): Set to wrap.
20182 * config/i386/cygwin-stdint.h: New file.
20184 2009-04-04 Richard Guenther <rguenther@suse.de>
20186 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
20187 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
20188 single-argument PHIs if we are in loop-closed SSA form.
20189 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
20190 for the pre-condition.
20191 (slpeel_tree_peel_loop_to_edge): Likewise.
20192 (vect_build_loop_niters): Take an optional sequence to append stmts.
20193 (vect_generate_tmps_on_preheader): Likewise.
20194 (vect_do_peeling_for_loop_bound): Take extra guards for the
20196 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
20197 the cost model check.
20198 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
20199 guards if we are going to peel. Do not apply versioning in that case.
20200 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
20201 (vect_do_peeling_for_loop_bound): Likewise.
20202 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
20203 loop bound only record extra pre-conditions, do not apply loop
20206 2009-04-04 Richard Guenther <rguenther@suse.de>
20208 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
20211 2009-04-04 Jan Hubicka <jh@suse.cz>
20213 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
20214 last_basic_block for size of bb->index indexed array.
20215 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
20216 compute_out, link_btr_uses, build_btr_def_use_webs,
20217 build_btr_def_use_webs, migrate_btr_defs): Likewise.
20219 2009-04-04 Jan Hubicka <jh@suse.cz>
20221 * except.c (remove_eh_handler_and_replace): Break out from ...
20222 (remove_eh_handler): ... here.
20223 (bring_to_root): New function.
20224 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
20225 handled ones, bring others to root of tree.
20227 2009-04-04 Jan Hubicka <jh@suse.cz>
20229 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
20230 (all_phis_safe_to_merge): New function.
20231 (update_info): New structure.
20232 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
20233 (cleanup_empty_eh): Update SSA if possible.
20235 2009-04-04 Richard Guenther <rguenther@suse.de>
20237 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
20238 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
20239 (append_vuse): Likewise.
20241 2009-04-04 Jakub Jelinek <jakub@redhat.com>
20243 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
20244 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
20245 instead of REG_UNSAVED for DW_CFA_undefined.
20246 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
20247 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
20250 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
20253 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
20254 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
20255 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
20257 2009-04-04 Richard Guenther <rguenther@suse.de>
20259 PR tree-optimization/8781
20260 PR tree-optimization/37892
20261 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
20262 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
20263 (valueize_refs): Call it for *& valueizations.
20264 (shared_reference_ops_from_ref): Rename to ...
20265 (valueize_shared_reference_ops_from_ref): ... this and valueize.
20266 (shared_reference_ops_from_call): Rename to ...
20267 (valueize_shared_reference_ops_from_call): ... this and valueize.
20268 (vn_reference_lookup): Update.
20269 (visit_reference_op_call): Likewise.
20270 * tree-ssa-pre.c (phi_translate_1): Fold *&.
20271 (eliminate): Value-replace the call address in call statements.
20273 2009-04-04 Richard Guenther <rguenther@suse.de>
20275 PR tree-optimization/39636
20276 * tree-ssa-forwprop.c
20277 (forward_propagate_addr_into_variable_array_index): Check for
20278 GIMPLE_ASSIGN before accessing the rhs code.
20280 2009-04-03 Jason Merrill <jason@redhat.com>
20282 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
20284 2009-04-03 Steve Ellcey <sje@cup.hp.com>
20286 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
20287 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
20288 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
20289 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
20290 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
20291 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
20292 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
20293 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
20294 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
20295 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
20296 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
20297 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
20298 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
20299 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
20300 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
20301 Use fr_reg_or_fp01_operand instead of fr_register_operand
20303 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
20304 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
20305 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
20307 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
20309 PR rtl-optimization/39607
20310 PR rtl-optimization/39631
20314 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
20315 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
20316 instead of DF_LR_OUT.
20317 * ira-lives.c (process_bb_node_lives): Ditto.
20318 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
20319 instead of DF_LR_{OUT,IN}.
20320 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
20321 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
20323 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
20325 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
20326 (execute_lower_omp): Always run but take the short way out if -fopenmp
20328 (gate_lower_omp): Remove, forcing the pass manager to always run the
20329 pass and always set PROP_gimple_lomp.
20330 (pass_lower_omp): Remove gate function.
20331 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
20332 PROP_trees. Instead, require it.
20333 * ipa-cp.c (pass_ipa_cp): Likewise.
20334 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
20335 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
20336 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
20337 and PROP_gimple_leh.
20339 2009-04-03 Richard Guenther <rguenther@suse.de>
20341 PR middle-end/13146
20342 PR tree-optimization/23940
20343 PR tree-optimization/33237
20344 PR middle-end/33974
20345 PR middle-end/34093
20346 PR tree-optimization/36201
20347 PR tree-optimization/36230
20348 PR tree-optimization/38049
20349 PR tree-optimization/38207
20350 PR tree-optimization/38230
20351 PR tree-optimization/38301
20352 PR tree-optimization/38585
20353 PR middle-end/38895
20354 PR tree-optimization/38985
20355 PR tree-optimization/39299
20356 * tree-ssa-structalias.h: Remove.
20357 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
20358 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
20359 (struct vuse_element_d): Remove.
20360 (struct vuse_vec_d): Likewise.
20361 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
20362 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
20363 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
20364 VUSE_ELEMENT_VAR): Likewise.
20365 (struct voptype_d): Likewise.
20366 (NUM_VOP_FREE_BUCKETS): Likewise.
20367 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
20368 (struct stmt_operands_d): Remove.
20369 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
20370 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
20371 VDEF_NUM, VDEF_VECT): Likewise.
20372 (copy_virtual_operands): Remove.
20373 (operand_build_cmp): Likewise.
20374 (create_ssa_artificial_load_stmt): Likewise.
20375 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
20376 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
20377 vuse_index and mayuse_index members. Pack and move done and iter_type
20378 members to the front.
20379 (SSA_OP_VMAYUSE): Remove.
20380 (SSA_OP_VIRTUAL_USES): Adjust.
20381 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
20382 (unlink_stmt_vdef): Declare.
20383 (add_to_addressable_set): Remove.
20384 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
20385 (vrp_visit_stmt): Likewise.
20386 * doc/tree-ssa.texi (Alias analysis): Update.
20387 * doc/invoke.texi (max-aliased-vops): Remove docs.
20388 (avg-aliased-vops): Likewise.
20389 * tree-into-ssa.c (syms_to_rename): Remove.
20390 (need_to_update_vops_p): Likewise.
20391 (need_to_initialize_update_ssa_p): Rename to ...
20392 (update_ssa_initialized_fn): ... this. Track function we are
20394 (symbol_marked_for_renaming): Simplify.
20395 (add_new_name_mapping): Do not set need_to_update_vops_p.
20396 (dump_currdefs): Use SYMS_TO_RENAME.
20397 (rewrite_update_stmt): Always walk all uses/defs.
20398 (dump_update_ssa): Adjust.
20399 (init_update_ssa): Take function argument. Track what we are
20401 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
20402 (create_new_def_for): Initialize for cfun, assert we are initialized
20404 (mark_sym_for_renaming): Simplify.
20405 (mark_set_for_renaming): Do not initialize update-ssa.
20406 (need_ssa_update_p): Simplify. Take function argument.
20407 (name_mappings_registered_p): Assert we ask for the correct function.
20408 (name_registered_for_update_p): Likewise.
20409 (ssa_names_to_replace): Likewise.
20410 (release_ssa_name_after_update_ssa): Likewise.
20411 (update_ssa): Likewise. Use SYMS_TO_RENAME.
20412 (dump_decl_set): Do not print a newline.
20413 (debug_decl_set): Do it here.
20414 (dump_update_ssa): And here.
20415 * tree-ssa-loop-im.c (move_computations): Adjust.
20416 (movement_possibility): Likewise.
20417 (determine_max_movement): Likewise.
20418 (gather_mem_refs_stmt): Likewise.
20419 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
20420 or NAME_MEMORY_TAG.
20421 * tree-complex.c (update_all_vops): Remove.
20422 (expand_complex_move): Adjust.
20423 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
20424 Simplify test for memory referencing statement. Exclude
20425 non-invariant ADDR_EXPRs.
20426 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
20427 * tree-loop-distribution.c (generate_memset_zero): Adjust.
20428 (rdg_flag_uses): Likewise.
20429 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
20431 (tree_optimize_tail_calls_1): Also split the
20432 edge from the entry block if we have degenerate PHI nodes in
20433 the first basic block.
20434 * tree.c (init_ttree): Remove memory-tag related code.
20435 (tree_code_size): Likewise.
20436 (tree_node_structure): Likewise.
20437 (build7_stat): Re-write to be build6_stat.
20438 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
20439 (SSA_VAR_P): Adjust.
20440 (struct tree_memory_tag): Remove.
20441 (struct tree_memory_partition_tag): Likewise.
20442 (union tree_node): Adjust.
20443 (build7): Re-write to be build6.
20444 * tree-pass.h (pass_reset_cc_flags): Remove.
20445 (TODO_update_address_taken): New flag.
20446 (pass_simple_dse): Remove.
20447 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
20448 * params.h (MAX_ALIASED_VOPS): Remove.
20449 (AVG_ALIASED_VOPS): Likewise.
20450 * omp-low.c (expand_omp_taskreg): Update SSA form.
20451 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
20452 aliases the lhs in a copy stmt.
20453 * tree-ssa-dse.c (struct address_walk_data): Remove.
20454 (memory_ssa_name_same): Likewise.
20455 (memory_address_same): Likewise.
20456 (get_kill_of_stmt_lhs): Likewise.
20457 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
20458 unused stores. Look through PHI nodes into post-dominated regions.
20459 (dse_optimize_stmt): Simplify. Properly remove stores.
20460 (tree_ssa_dse): Compute dominators.
20461 (execute_simple_dse): Remove.
20462 (pass_simple_dse): Likewise.
20463 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
20464 gimple_loaded_syms and gimple_stored_syms computation.
20465 * toplev.c (dump_memory_report): Dump alias and pta stats.
20466 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
20467 (vn_reference_eq): Likewise.
20468 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
20469 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
20470 valueize_vuses): Remove.
20471 (get_def_ref_stmt_vuses): Simplify. Rename to ...
20472 (get_def_ref_stmt_vuse): ... this.
20473 (vn_reference_lookup_2): New function.
20474 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
20475 walking equivalent vuses. Simplify.
20476 (vn_reference_lookup): Likewise.
20477 (vn_reference_insert): Likewise.
20478 (vn_reference_insert_pieces): Likewise.
20479 (visit_reference_op_call): Simplify.
20480 (visit_reference_op_load): Likewise.
20481 (visit_reference_op_store): Likewise.
20482 (init_scc_vn): Remove shared_lookup_vuses initialization.
20483 (free_scc_vn): Remove shared_lookup_vuses freeing.
20484 (sort_vuses, sort_vuses_heap): Remove.
20485 (get_ref_from_reference_ops): Export.
20486 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
20487 vector with single vuse pointer.
20488 (vn_reference_lookup_pieces, vn_reference_lookup,
20489 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
20490 (shared_vuses_from_stmt): Remove.
20491 (get_ref_from_reference_ops): Declare.
20492 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
20493 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
20494 memory-tag related code.
20495 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
20496 (likely_value): Add comment, skip static-chain of call statements.
20497 (surely_varying_stmt_p): Adjust.
20498 (gimplify_and_update_call_from_tree): Likewise.
20499 (execute_fold_all_builtins): Do not rebuild alias info.
20500 (gimplify_and_update_call_from_tree): Properly update VOPs.
20501 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
20502 (copy_ref_info): Remove memory-tag related code.
20503 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
20504 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
20505 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
20507 * tree-ssa-dom.c (gimple_p): Remove typedef.
20508 (eliminate_redundant_computations): Adjust.
20509 (record_equivalences_from_stmt): Likewise.
20510 (avail_expr_hash): Likewise.
20511 (avail_expr_eq): Likewise.
20512 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
20513 (stmt_makes_single_load): Likewise.
20514 (stmt_makes_single_store): Likewise.
20515 * tree-ssa-alias.c: Rewrite completely.
20516 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
20517 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
20518 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
20519 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
20520 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
20521 Remove public functions.
20522 (pass_reset_cc_flags): Remove.
20523 (pass_build_alias): Move ...
20524 * tree-ssa-structalias.c (pass_build_alias): ... here.
20525 * tree-ssa-alias.c (may_be_aliased): Move ...
20526 * tree-flow-inline.h (may_be_aliased): ... here.
20527 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
20528 count_uses_and_derefs): Move ...
20529 * gimple.c: ... here.
20530 * gimple.h (count_uses_and_derefs): Declare.
20531 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
20532 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
20533 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
20534 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
20535 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
20536 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
20537 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
20539 * tree-dfa.c (refs_may_alias_p): Move ...
20540 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
20541 * tree-ssa-alias.h: New file.
20542 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
20543 (statement_sink_location): Likewise.
20544 * opts.c (decode_options): Do not adjust max-aliased-vops or
20545 avg-aliased-vops values.
20546 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
20547 (TV_CALL_CLOBBER): Likewise.
20548 (TV_FLOW_SENSITIVE): Likewise.
20549 (TV_FLOW_INSENSITIVE): Likewise.
20550 (TV_MEMORY_PARTITIONING): Likewise.
20551 (TV_ALIAS_STMT_WALK): New timevar.
20552 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
20553 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
20554 (get_address_description): Remove memory-tag related code.
20555 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
20556 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
20557 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
20558 and immediate uses in statements. Document.
20559 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
20560 (dump_symbols): Remove.
20561 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
20562 * alias.c (get_deref_alias_set): New function split out from ...
20563 (get_alias_set): ... here.
20564 * alias.h (get_deref_alias_set): Declare.
20565 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
20566 type parameter. Remove restrict pointer handling. Create a
20567 ref-all pointer in case type-based alias sets do not conflict.
20568 (vect_analyze_data_refs): Remove SMT related code.
20569 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
20570 (vectorizable_load): Likewise.
20571 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
20572 (DR_SYMBOL_TAG, DR_VOPS): Remove.
20573 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
20574 Ignore vops and SMTs.
20575 (dr_analyze_alias): Likewise..
20576 (free_data_ref): Likewise.
20577 (create_data_ref): Likewise.
20578 (analyze_all_data_dependences): Likewise.
20579 (get_references_in_stmt): Adjust.
20580 * tree-flow-inline.h (gimple_aliases_computed_p,
20581 gimple_addressable_vars, gimple_call_clobbered_vars,
20582 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
20583 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
20584 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
20585 gimple_mem_ref_stats): Remove.
20586 (gimple_vop): New function.
20587 (op_iter_next_use): Remove vuses and mayuses cases.
20588 (op_iter_next_def): Remove vdefs case.
20589 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
20590 (clear_and_done_ssa_iter): Do not set removed fields.
20591 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
20592 Assert we are not iterating over vuses or vdefs if not also
20593 iterating over uses or defs.
20594 (op_iter_init_use): Likewise.
20595 (op_iter_init_def): Likewise.
20596 (op_iter_next_vdef): Remove.
20597 (op_iter_next_mustdef): Likewise.
20598 (op_iter_init_vdef): Likewise.
20599 (compare_ssa_operands_equal): Likewise.
20600 (link_use_stmts_after): Handle vuse operand.
20601 (is_call_used): Use is_call_clobbered.
20602 (is_call_clobbered): Global variables are always call clobbered,
20603 query the call-clobbers bitmap.
20604 (mark_call_clobbered): Ignore global variables.
20605 (clear_call_clobbered): Likewise.
20606 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
20607 virtual operands sanity check.
20608 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
20610 (TARGET_MEM_REF): Remove TMR_TAG operand.
20611 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
20612 Remove call-clobber related code.
20613 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
20614 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
20615 partitions or escape reason.
20616 (get_single_def_stmt, get_single_def_stmt_from_phi,
20617 get_single_def_stmt_with_phi): Remove.
20618 (dump_referenced_vars): Tidy.
20619 (get_ref_base_and_extent): Allow bare decls.
20620 (collect_dfa_stats): Adjust.
20621 * graphite.c (rename_variables_in_stmt): Adjust.
20622 (graphite_copy_stmts_from_block): Likewise.
20623 (translate_clast): Likewise.
20624 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
20626 (translate_vuse_through_block): Use the oracle.
20627 (phi_translate_1): Adjust.
20628 (value_dies_in_block_x): Use the oracle. Cache the outcome
20630 (valid_in_sets): Check if the VUSE for
20631 a REFERENCE is available.
20632 (eliminate): Do not remove stmts during elimination,
20633 instead queue and remove them afterwards.
20634 (do_pre): Do not rebuild alias info.
20635 (pass_pre): Run TODO_rebuild_alias before PRE.
20636 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
20637 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
20638 (mark_all_v_defs_stmt): Remove.
20639 (mark_all_v_defs_seq): Adjust.
20640 (sra_replace): Likewise.
20641 (scalarize_use): Likewise.
20642 (scalarize_copy): Likewise.
20643 (scalarize_init): Likewise.
20644 (scalarize_ldst): Likewise.
20645 (todoflags): Remove.
20646 (tree_sra): Do not rebuild alias info.
20647 (tree_sra_early): Adjust.
20648 (pass_sra): Run TODO_update_address_taken before SRA.
20649 * tree-predcom.c (set_alias_info): Remove.
20650 (prepare_initializers_chain): Do not call it.
20651 (mark_virtual_ops_for_renaming): Adjust.
20652 (mark_virtual_ops_for_renaming_list): Remove.
20653 (initialize_root_vars): Adjust.
20654 (initialize_root_vars_lm): Likewise.
20655 (prepare_initializers_chain): Likewise.
20656 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
20657 (may_propagate_copy_into_stmt): Likewise.
20658 (merge_alias_info): Do nothing for now.
20659 (propagate_tree_value_into_stmt): Adjust.
20660 (stmt_may_generate_copy): Likewise.
20661 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
20662 not mark symbols for renaming.
20663 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
20664 with the same statement, make sure to update the new pointed-to one.
20665 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
20666 call statements, do not mark symbols for renaming.
20667 (mark_operand_necessary): Dump something.
20668 (ref_may_be_aliased): New function.
20669 (mark_aliased_reaching_defs_necessary_1): New helper function.
20670 (mark_aliased_reaching_defs_necessary): Likewise.
20671 (mark_all_reaching_defs_necessary_1): Likewise.
20672 (mark_all_reaching_defs_necessary): Likewise.
20673 (propagate_necessity): Do not process virtual PHIs. For
20674 non-aliased loads mark all reaching definitions as necessary.
20675 For aliased loads and stores mark the immediate dominating
20676 aliased clobbers as necessary.
20677 (visited): New global static.
20678 (perform_tree_ssa_dce): Free visited bitmap after propagating
20680 (remove_dead_phis): Perform simple dead virtual PHI removal.
20681 (remove_dead_stmt): Properly unlink virtual operands when
20683 (eliminate_unnecessary_stmts): Schedule PHI removal after
20685 * tree-ssa-ter.c (is_replaceable_p): Adjust.
20686 (process_replaceable): Likewise.
20687 (find_replaceable_in_bb): Likewise.
20688 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
20689 based on the single gimple vop.
20690 (verify_flow_insensitive_alias_info): Remove.
20691 (verify_flow_sensitive_alias_info): Likewise.
20692 (verify_call_clobbering): Likewise.
20693 (verify_memory_partitions): Likewise.
20694 (verify_alias_info): Likewise.
20695 (verify_ssa): Adjust..
20696 (execute_update_addresses_taken): Export. Update SSA
20697 manually. Optimize only when optimizing. Use a local bitmap.
20698 (pass_update_address_taken): Remove TODO_update_ssa, add
20700 (pass_update_address_taken): Just use TODO_update_address_taken.
20701 (init_tree_ssa): Do not initialize addressable_vars.
20702 (verify_ssa): Verify new VUSE / VDEF properties.
20703 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
20704 Do not call verify_alias_info.
20705 (delete_tree_ssa): Clear the VUSE, VDEF operands.
20706 Do not free the loaded and stored syms bitmaps. Reset the escaped
20707 and callused solutions. Do not free addressable_vars.
20708 Remove memory-tag related code.
20709 (warn_uninitialized_var): Aliases are always available.
20710 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
20711 * lambda-code.c (can_put_in_inner_loop): Adjust.
20712 (can_put_after_inner_loop): Likewise.
20713 (perfect_nestify): Likewise.
20714 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
20715 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
20716 (vectorizable_conversion): Do not mark symbols for renaming.
20717 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
20718 (expand_call_inline): Unlink the calls virtual operands before
20720 (tree_function_versioning): Do not call update_ssa if we are not
20721 updating clones. Simplify.
20722 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
20723 (propagate_with_phi): Likewise..
20724 * tree-outof-ssa.c (create_temp): Remove memory tag and call
20725 clobber code. Assert we are not aliased or global.
20726 * tree-flow.h: Include tree-ssa-alias.h
20727 (enum escape_type): Remove.
20728 (struct mem_sym_stats_d): Likewise.
20729 (struct mem_ref_stats_d): Likewise.
20730 (struct gimple_df): Add vop member. Remove global_var,
20731 call_clobbered_vars, call_used_vars, addressable_vars,
20732 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
20733 escaped and callused members.
20734 (struct ptr_info_def): Remove all members, add points-to solution
20736 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
20737 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
20738 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
20739 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
20740 (tree-ssa-alias.o): Likewise.
20741 (toplev.o): Add tree-ssa-alias.h
20742 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
20743 * gimple.c (gimple_set_bb): Fix off-by-one error.
20744 (is_gimple_reg): Do not handle memory tags.
20745 (gimple_copy): Also copy virtual operands.
20746 Delay updating the statement. Do not reset loaded and stored syms.
20747 (gimple_set_stored_syms): Remove.
20748 (gimple_set_loaded_syms): Likewise.
20749 (gimple_call_copy_skip_args): Copy the virtual operands
20750 and mark the new statement modified.
20751 * tree-ssa-structalias.c (may_alias_p): Remove.
20752 (set_uids_in_ptset): Take the alias set to prune with as
20753 parameter. Fold in the alias test of may_alias_p.
20754 (compute_points_to_sets): Compute whether a ptr is dereferenced
20755 in a local sbitmap.
20756 (process_constraint): Deal with &ANYTHING on the lhs, reject all
20757 other ADDRESSOF constraints on the lhs.
20758 (get_constraint_for_component_ref): Assert that we don't get
20759 ADDRESSOF constraints from the base of the reference.
20760 Properly generate UNKNOWN_OFFSET for DEREF if needed.
20761 (struct variable_info): Remove collapsed_to member.
20762 (get_varinfo_fc): Remove.
20763 (new_var_info): Do not set collapsed_to.
20764 (dump_constraint): Do not follow cycles.
20765 (dump_constraint_graph): Likewise.
20766 (build_pred_graph): Likewise.
20767 (build_succ_graph): Likewise.
20768 (rewrite_constraints): Likewise.
20769 (do_simple_structure_copy): Remove.
20770 (do_rhs_deref_structure_copy): Remove.
20771 (do_lhs_deref_structure_copy): Remove.
20772 (collapse_rest_of_var): Remove.
20773 (do_structure_copy): Re-implement.
20774 (pta_stats): New global variable.
20775 (dump_pta_stats): New function.
20776 (struct constraint_expr): Make offset signed.
20777 (UNKNOWN_OFFSET): Define special value.
20778 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
20779 (solution_set_expand): New helper function split out from ...
20780 (do_sd_constraint): ... here.
20781 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
20782 (do_ds_constraint): Likewise.
20783 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
20784 and CALLUSED = *CALLUSED.
20785 (set_union_with_increment): Make inc argument signed.
20786 (type_safe): Remove.
20787 (get_constraint_for_ptr_offset): Handle unknown and negative
20789 (first_vi_for_offset): Handle offsets before start. Bail
20790 out early for offsets beyond the variable extent.
20791 (first_or_preceding_vi_for_offset): New function.
20792 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
20793 Together with ESCAPED = *ESCAPED this properly computes reachability.
20794 (find_what_var_points_to): New function.
20795 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
20796 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
20797 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
20798 pt_solutions_intersect): New functions.
20799 (compute_call_used_vars): Remove.
20800 (compute_may_aliases): New main entry into PTA computation.
20801 * gimple.h (gimple_p): New typedef.
20802 (struct gimple_statement_base): Remove references_memory_p.
20803 (struct gimple_statement_with_memory_ops_base): Remove
20804 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
20806 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
20807 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
20808 gimple_set_references_memory): Remove.
20809 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
20810 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
20812 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
20813 (verify_expr): Allow RESULT_DECL.
20814 (gimple_duplicate_bb): Do not copy virtual operands.
20815 (gimple_duplicate_sese_region): Adjust.
20816 (gimple_duplicate_sese_tail): Likewise.
20817 (mark_virtual_ops_in_region): Remove.
20818 (move_sese_region_to_fn): Do not call it.
20819 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
20820 and pass_simple_dse.
20821 (execute_function_todo): Handle TODO_update_address_taken,
20822 call execute_update_addresses_taken for TODO_rebuild_alias.
20823 (execute_todo): Adjust.
20824 (execute_one_pass): Init dump files early.
20825 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
20827 (create_general_new_stmt): Clear vops.
20828 * tree-ssa-reassoc.c (get_rank): Adjust.
20829 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
20830 symbols for renaming.
20831 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
20832 (PARAM_AVG_ALIASED_VOPS): Likewise.
20833 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
20834 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
20835 * tree-ssa-operands.c: Simplify for new virtual operand representation.
20836 (operand_build_cmp, copy_virtual_operands,
20837 create_ssa_artificial_load_stmt, add_to_addressable_set,
20838 gimple_add_to_addresses_taken): Remove public functions.
20839 (unlink_stmt_vdef): New function.
20841 2009-04-03 Alan Modra <amodra@bigpond.net.au>
20843 * config.gcc (powerpc-*-linux*): Merge variants.
20845 2009-04-02 Chao-ying Fu <fu@mips.com>
20846 James Grosbach <james.grosbach@microchip.com>
20848 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
20849 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
20851 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
20852 keep_interrupts_masked_p, use_debug_exception_return_p.
20853 (mips_attribute_table): Add interrupt, use_shadow_register_set,
20854 keep_interrupts_masked, use_debug_exception_return.
20855 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
20856 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
20858 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
20859 (mips_print_operand): Process COP0 registers to print $0 .. $31
20860 correctly for GAS to process.
20861 (mips_interrupt_extra_call_saved_reg_p): New function.
20862 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
20864 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
20865 (mips_compute_frame_info): Add supports for interrupt context that
20866 includes doubleword accumulators and COP0 registers.
20867 (mips_for_each_saved_acc): New function.
20868 (mips_for_each_saved_gpr_and_fpr): Change the function name from
20869 mips_for_each_saved_reg.
20870 (mips_save_reg): Save accumulators.
20871 (mips_kernel_reg_p): A new for_each_rtx callback.
20872 (mips_expand_prologue): Support interrupt handlers.
20873 (mips_restore_reg): Restore accumulators.
20874 (mips_expand_epilogue): Support interrupt handlers.
20875 (mips_can_use_return_insn): Return false for interrupt handlers.
20876 (mips_epilogue_uses): New function.
20877 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
20878 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
20879 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
20880 cop0_move): New instructions.
20881 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
20882 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
20884 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
20886 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
20887 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
20888 interrupt handlers, we use K0 as the temporary register.
20889 (EPILOGUE_USES): Change to a function call.
20890 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
20891 handlers, we use K0 as the temporary register.
20893 * doc/extend.texi (Function Attributes): Document interrupt,
20894 use_shadow_register_set, keep_interrupts_masked,
20895 use_debug_exception_return for MIPS attributes.
20897 2009-04-03 Alan Modra <amodra@bigpond.net.au>
20899 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
20900 Remove a number of t-files from tmake_file.
20901 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
20902 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
20903 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
20904 target_prototype, not TARGET_PROTOTYPE.
20905 (LINK_OS_GNU_SPEC): Define.
20906 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
20907 and darwin-ldoubdle.c.
20909 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20912 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
20913 (cpp_options): Ditto.
20914 (default_compilers): Ditto.
20915 (display_help): Ditto.
20916 (process_command): Ditto.
20917 (do_spec_1): Ditto.
20918 (set_input): Use lbasename instead of duplicate code.
20919 (save_temps_prefix): New static for -save-temps=obj.
20920 (save_temps_length): Ditto.
20922 * doc/invoke.texi (-save-temps=obj): Document new variant to
20923 -save-temps switch.
20925 2009-04-02 Jeff Law <law@redhat.com>
20927 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
20930 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
20932 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
20933 * configure: Regenerated.
20935 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
20937 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
20938 share the argument list.
20940 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
20944 2009-02-12 Diego Novillo <dnovillo@google.com>
20946 * varpool.c (debug_varpool): New.
20947 * cgraph.h (debug_varpool): Declare.
20949 2009-04-02 Jan Hubicka <jh@suse.cz>
20951 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
20954 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
20956 * config/i386/i386.c (ix86_abi): Move initialization to ...
20957 (override_options): Here.
20959 2009-04-02 Christian Bruel <christian.bruel@st.com>
20961 * config/sh/sh.c (sh_dwarf_register_span): New function.
20962 (TARGET_DWARF_REGISTER_SPAN): Define.
20963 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
20965 2009-04-02 Ira Rosen <irar@il.ibm.com>
20967 PR tree-optimization/39595
20968 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
20969 interleaved loads group is not greater than the SLP group size.
20971 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
20973 * builtins.c (is_builtin_name): New.
20974 (called_as_built_in): Use is_builtin_name.
20975 * tree.h (is_builtin_name): New.
20976 * varasm.c (incorporeal_function_p): Use is_builtin_name
20978 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
20980 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
20982 2009-04-02 Dodji Seketeli <dodji@redhat.com>
20985 * c-decl.c (clone_underlying_type): Move this ...
20986 * c-common.c (set_underlying_type): ... here.
20987 Also, make sure the function properly sets TYPE_STUB_DECL() on
20988 the newly created typedef variant type.
20989 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
20990 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
20993 2009-04-02 Richard Guenther <rguenther@suse.de>
20995 PR tree-optimization/37221
20996 * tree-flow.h (degenerate_phi_result): Declare.
20997 * tree-ssa-dom.c (degenerate_phi_result): Export.
20998 * tree-scalar-evolution.c (analyze_initial_condition): If
20999 the initial condition is defined by a degenerate PHI node
21000 use the degenerate value.
21002 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
21004 PR rtl-optimization/39588
21005 * combine.c (merge_outer_ops): Do not set the constant when this
21007 (simplify_shift_const_1): Do not modify it either in this case.
21009 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
21011 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
21012 tuning is deprecated if -mtune value is set to an Itanium1 variant.
21014 2009-04-01 Janis Johnson <janis187@us.ibm.com>
21017 * c-lex.c (interpret_float): Default (no suffix) is double.
21019 2009-04-1 Xinliang David Li <davidxl@google.com>
21021 * config/i386/i386.c (legitimate_constant_p): Recognize
21022 all one vector constant.
21024 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
21026 * config/vax/vax.c: Add #includes to silence warnings.
21027 Change #include order to silence two warnings.
21029 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
21031 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
21032 (ASM_SPEC): Pass -k to the assembler for PIC code.
21034 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
21036 * config.gcc: Add vax-*-linux* to the switch.
21037 * config/vax/linux.h: New file. (TARGET_VERSION,
21038 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
21040 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
21042 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
21043 Use predicate macros instead of GET_CODE() == foo.
21044 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
21045 ashlsi3, rotrsi3, <unnamed>): Likewise.
21047 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
21049 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
21050 jbbccihi, jbbccisi): Remova trailing whitespace.
21051 * config/vax/constraints.md: Likewise.
21052 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
21053 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
21054 * config/vax/predicates.md: Likewise.
21055 * config/vax/vax.c (print_operand_address, vax_output_int_move,
21056 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
21057 * config/vax/vax.h: Likewise.
21058 * config/vax/vax.md (nonlocal_goto): Likewise.
21060 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
21062 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
21063 (indirectable_address_p, adjacent_operands_p): Add spaces around
21065 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
21067 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
21069 * config/vax/vax.c (legitimate_constant_address_p,
21070 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
21071 index_term_p, reg_plus_index_p, legitimate_address_p,
21072 vax_mode_dependent_address_p): Update comments to match functions
21073 modified by the recent int->bool conversion.
21075 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
21077 * config/vax/builtins.md: Update copyright message.
21078 * config/vax/constraints.md: Likewise.
21079 * config/vax/netbsd-elf.h: Likewise.
21080 * config/vax/predicates.md: Likewise.
21081 * config/vax/vax-protos.h: Likewise.
21082 * config/vax/vax.c: Likewise.
21083 * config/vax/vax.h: Likewise.
21084 * config/vax/vax.md: Likewise.
21085 * config/vax/vax.opt: Likewise.
21087 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
21089 * config/vax/builtins.md (ffssi2, ffssi2_internal,
21090 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
21091 * config/vax/constraints.md (B, R): Likewise.
21092 * config/vax/predicates.md (external_memory_operand,
21093 nonimmediate_addsub_di_operand): Likewise.
21094 * config/vax/vax.c (vax_output_int_add): Likewise.
21095 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
21096 untyped_call): Likewise.
21098 2009-04-01 Matt Thomas <matt@3am-software.com>
21100 * config/vax/predicates.md: New file.
21101 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
21102 external_const_operand, nonsymbolic_operand, external_memory_operand,
21103 indirect_memory_operand, indexed_memory_operand,
21104 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
21105 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
21107 * config/vax/constraints.md: New file.
21108 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
21110 * config/vax/builtins.md: New file.
21111 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
21112 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
21114 * config/vax/vax.opt (mqmath): Add option.
21115 * config/vax/vax.md (isfx): Extend with DI.
21116 (VAXintQH, VAXintQHSD): Define.
21117 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
21118 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
21119 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
21120 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
21121 (movdi): Update constraints and use vax_output_int_move().
21122 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
21123 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
21124 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
21125 nonlocal_goto): New.
21126 (mov<mode>): Extend accepted operand types.
21127 (subdi3_old): Rename from subdi3, change update constraints and use
21128 a new implementation.
21129 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
21130 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
21131 MOVE_RATIO, CLEAR_RATIO): Define.
21132 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
21133 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
21134 (PRINT_OPERAND): Redefine using a function instead of inlined code.
21135 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
21136 (split_quadword_operands): Make static and really allow variable
21138 (print_operand_address): Update for PIC generation.
21139 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
21140 indexable_address_p, fixup_mathdi_operand,
21141 vax_expand_addsub_di_operands, adjacent_operands_p): New.
21142 (vax_float_literal, legitimate_constant_p,
21143 indirectable_constant_address_p, index_term_p,
21144 reg_plus_index_p): Return bool instead of int.
21145 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
21147 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
21149 (vax_output_conditional_branch): Indent.
21150 (legitimate_constant_address_p, indirectable_constant_address_p,
21151 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
21152 vax_mode_dependent_address_p): Return bool instead of int, update for
21154 * config/vax/vax-protos.h (legitimate_constant_address_p,
21155 legitimate_constant_p, legitimate_address_p,
21156 vax_mode_dependent_address_p): Change declaration to bool.
21157 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
21158 vax_expand_addsub_di_operands, vax_output_int_subtract,
21159 vax_output_movmemsi): Declare.
21160 (split_quadword_operands, vax_float_literal): Delete declaration.
21161 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
21162 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
21163 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
21164 ASM_OUTPUT_DWARF_PCREL): Define.
21165 (ASM_SPEC): Change definition to allow PIC generation.
21167 2009-04-01 Steve Ellcey <sje@cup.hp.com>
21169 * doc/sourcebuild.texi: Update front-end requirements.
21171 2009-04-01 Jakub Jelinek <jakub@redhat.com>
21174 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
21175 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
21176 (booldi3_internal3): Use boolean_or_operator instead of
21179 2009-04-01 Joseph Myers <joseph@codesourcery.com>
21182 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
21183 declarator whose size is not an integer constant expression but
21184 folds to an integer constant, then treat it as a constant
21187 2009-04-01 Richard Guenther <rguenther@suse.de>
21189 * fold-const.c (fold_plusminus_mult_expr): Do not fold
21190 i * 4 + 2 to (i * 2 + 1) * 2.
21192 2009-04-01 Jakub Jelinek <jakub@redhat.com>
21195 * c-parser.c (c_parser_asm_statement): Skip until close paren and
21196 return if c_parser_asm_string_literal returned NULL.
21198 2009-04-01 Nick Clifton <nickc@redhat.com>
21200 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
21202 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
21203 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
21204 other typedefs to avoid conflicts with libgcc2.c. Define labels
21205 to gain 16-bit bit-manipulation functions from libgcc2.c and then
21207 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
21208 to gain 16-bit trapping arithmetic functions from libgcc2.c and
21211 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
21213 * varasm.c (default_function_rodata_section): Declare DOT as
21216 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
21217 Andrey Galkin <agalkin@hypercom.com>
21220 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21221 Make object_name unique for each process.
21223 2009-04-01 Jakub Jelinek <jakub@redhat.com>
21226 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
21227 addressable variables in the parallel that could go out of scope while
21228 running queued tasks.
21230 2009-04-01 Anatoly Sokolov <aesok@post.ru>
21232 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
21233 (CASE_VALUES_THRESHOLD): Redefine.
21234 * config/avr/avr.c (avr_override_options): Remove initialization of
21235 avr_case_values_threshold variable.
21236 (avr_case_values_threshold): Remove variable. Add new function.
21237 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
21238 * config/avr/avr.opt (mno-tablejump): Remove option.
21239 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
21241 2009-04-01 DJ Delorie <dj@redhat.com>
21243 * varasm.c (default_function_rodata_section): Don't assume
21244 anything about where the first '.' in the section name is.
21246 2009-04-01 Alan Modra <amodra@bigpond.net.au>
21248 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
21249 rs6000_emit_stack_tie.
21251 2009-03-31 Ian Lance Taylor <iant@google.com>
21253 * tree-eh.c (tree_remove_unreachable_handlers): Compare
21254 gimple_code with GIMPLE_RESX, not RESX.
21256 2009-03-31 Joseph Myers <joseph@codesourcery.com>
21258 * c-common.c (c_get_ident): New.
21259 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
21261 2009-04-01 Ben Elliston <bje@au.ibm.com>
21263 * config/rs6000/sysv4.opt (msdata): Improve option description.
21265 2009-03-31 Steve Ellcey <sje@cup.hp.com>
21267 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
21268 (divdf3_internal_lat): Remove.
21269 (divxf3_internal_lat): Remove.
21270 (divxf3_internal_thr): Remove.
21271 (divxf): Use divxf3_internal.
21272 * config/ia64/div.md (divsf3_internal_lat): New.
21273 (divdf3_internal_lat): New.
21274 (divxf3_internal): New.
21276 2009-03-31 Joseph Myers <joseph@codesourcery.com>
21279 * Makefile.in (USE_GCC_STDINT): Define.
21280 (stmp-int-hdrs): Install stdint.h if applicable.
21281 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
21283 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
21284 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
21285 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
21286 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21287 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
21288 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
21289 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
21290 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21291 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
21292 (c_common_nodes_and_builtins): Initialize
21293 underlying_wchar_type_node. Do not initialize
21294 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
21295 nodes for new types.
21296 (c_stddef_cpp_builtins): Define macros for new types.
21297 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
21299 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
21300 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
21301 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
21302 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
21303 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
21304 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
21305 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
21306 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
21307 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
21308 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
21309 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
21310 int16_type_node, int32_type_node, int64_type_node,
21311 uint8_type_node, uint16_type_node, c_uint32_type_node,
21312 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
21313 int_least32_type_node, int_least64_type_node,
21314 uint_least8_type_node, uint_least16_type_node,
21315 uint_least32_type_node, uint_least64_type_node,
21316 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
21317 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
21318 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
21319 uintptr_type_node): Define.
21320 * c-cppbuiltin.c (builtin_define_constants,
21321 builtin_define_type_minmax): New.
21322 (builtin_define_stdint_macros): Define more macros.
21323 (c_cpp_builtins): Define more limit macros.
21324 (type_suffix): New.
21325 (builtin_define_type_max): Define in terms of
21326 builtin_define_type_minmax. Remove is_long parameter. All
21328 * config.gcc (use_gcc_stdint): Define.
21329 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
21330 Add newlib-stdint.h for generic targets.
21331 * config/glibc-stdint.h, config/newlib-stdint.h,
21332 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
21333 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
21334 * config/score/score.h (UINTPTR_TYPE): Define.
21335 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
21336 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
21337 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21338 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
21339 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
21340 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
21341 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21342 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
21343 * config/spu/spu.h (STDINT_LONG32): Define.
21344 * configure.ac (use_gcc_stdint): Substitute.
21345 * configure: Regenerate.
21346 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
21347 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
21348 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
21349 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
21350 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
21351 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
21352 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
21353 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
21354 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
21355 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
21356 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
21357 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
21358 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
21359 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
21360 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
21361 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
21362 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
21363 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
21364 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
21365 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
21366 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
21367 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
21368 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
21369 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21370 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
21371 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
21372 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
21373 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21374 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
21376 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
21378 * loop-iv.c (suitable_set_for_replacement): Renamed from
21379 simplify_using_assignment; changed to return bool and to accept new
21380 args DEST and SRC. Return true iff we find a source/destination pair
21381 that can be used to make a replacement, and fill SRC and DEST if so.
21382 Remove arg ALTERED. Don't deal with altered regs here. All callers
21384 (simplify_using_initial_values): Deal with altered regs here and track
21385 more precisely the effect they have on the validity of our expression.
21387 * loop-iv.c (simplify_using_condition): A condition of the form
21388 (EQ REG CONST) can be used to simply make a substitution.
21389 (simplify_using_initial_values): Keep track of conditions we have seen
21390 and keep using them to simplify new expressions, while applying the
21391 same substitutions to them as to the expression.
21393 * simplify-rtx.c (simplify_relational_operation_1): Simplify
21394 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
21397 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
21398 changed. Use this when trying to improve the upper bound.
21399 Generate the comparison by using simplify_gen_relational.
21401 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
21403 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
21405 (simplify_using_assignment, simplify_using_initial_values): Call
21406 replace_in_expr to make replacements. Call replace_single_def_regs
21407 once on the initial version of the expression.
21409 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21412 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
21414 2009-03-31 Richard Guenther <rguenther@suse.de>
21416 PR middle-end/31029
21417 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
21418 equality comparisons. Fold C - X CMP X if C % 2 == 1.
21420 2009-03-31 Richard Guenther <rguenther@suse.de>
21422 * tree.h (div_if_zero_remainder): Declare.
21423 * fold-const.c (div_if_zero_remainder): Export.
21424 * tree-ssa-forwprop.c
21425 (forward_propagate_addr_into_variable_array_index): Handle
21426 constant array index addition outside of the variable index.
21428 2009-03-31 Joseph Myers <joseph@codesourcery.com>
21431 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
21432 define_splits, floatunssi<mode>2): Require x87 conversions from
21433 DImode to be permitted.
21435 2009-03-31 Joseph Myers <joseph@codesourcery.com>
21437 PR preprocessor/15638
21438 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
21440 2009-03-31 Richard Guenther <rguenther@suse.de>
21442 PR middle-end/23401
21443 PR middle-end/27810
21444 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
21445 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
21446 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
21447 a separate statement.
21448 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
21449 (lookup_tmp_var): Likewise.
21450 (is_gimple_formal_tmp_or_call_rhs): Remove.
21451 (is_gimple_reg_or_call_rhs): Rename to ...
21452 (is_gimple_reg_rhs_or_call): ... this.
21453 (is_gimple_mem_or_call_rhs): Rename to ...
21454 (is_gimple_mem_rhs_or_call): ... this.
21455 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
21456 DECL_GIMPLE_REG_P only if is_formal is true.
21457 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
21458 for non-proper post-modify expression gimplification.
21459 (gimplify_self_mod_expr): For post-modify expressions gimplify
21460 the lvalue to a minimal lvalue.
21461 (rhs_predicate_for): Remove formal temp case.
21462 (gimplify_modify_expr_rhs): Likewise.
21463 (gimplify_addr_expr): Use is_gimple_reg.
21464 (gimplify_expr): Remove formal temp cases.
21465 (gimple_regimplify_operands): Likewise.
21466 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
21467 and FILTER_EXPR like constants.
21468 * gimple.c (walk_gimple_op): Fix val_only initialization, use
21470 (is_gimple_formal_tmp_rhs): Remove.
21471 (is_gimple_reg_rhs): Remove special casing.
21472 (is_gimple_mem_rhs): Fix.
21473 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
21474 (is_gimple_formal_tmp_var): Remove.
21475 (is_gimple_formal_tmp_reg): Likewise.
21476 (is_gimple_min_lval): Allow invariant component ref parts.
21477 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
21478 is_gimple_formal_tmp_reg): Remove declarations.
21479 * tree-cfg.c (verify_expr): Verify that variables with address
21480 taken do not have DECL_GIMPLE_REG_P set.
21481 * tree-mudflap.c (mf_build_check_statement_for): Use
21482 force_gimple_operand instead of gimplify_expr.
21484 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
21486 * modulo-sched.c (sms_schedule_by_order): Pass the actual
21487 schedulable rows to compute_split_row.
21489 2009-03-31 Ben Elliston <bje@au.ibm.com>
21492 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
21495 2009-03-31 Alan Modra <amodra@bigpond.net.au>
21497 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
21498 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
21499 * configure: Regenerate.
21500 * config.in: Regenerate.
21501 * config/rs6000/rs6000.opt (mtls-markers): Add.
21502 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
21503 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
21504 (tls_ld_aix, tls_ld_sysv): Likewise.
21505 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
21506 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
21508 2009-03-31 Alan Modra <amodra@bigpond.net.au>
21510 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
21512 2009-03-30 Jan Hubicka <jh@suse.cz>
21514 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
21516 (tree_remove_unreachable_handlers): Cleanup EH predecestor
21517 detection and label handling.
21519 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
21521 * ira-int.h (ira_allocno): Rename left_conflicts_num to
21522 left_conflicts_size.
21523 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
21524 ALLOCNO_LEFT_CONFLICTS_SIZE.
21526 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
21527 remove_allocno_from_bucket_and_push,
21528 allocno_spill_priority_compare, push_allocnos_to_stack,
21529 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
21530 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
21531 (setup_allocno_left_conflicts_num): Ditto. Rename to
21532 setup_allocno_left_conflicts_size.
21533 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
21534 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
21535 setup_allocno_left_conflicts_size instead of
21536 setup_allocno_left_conflicts_num.
21538 * ira-build.c (ira_create_allocno): Use
21539 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
21540 ALLOCNO_LEFT_CONFLICTS_NUM.
21542 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
21544 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
21545 instead of DF_LR_OUT.
21547 * ira-lives.c (process_bb_node_lives): Ditto.
21549 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
21550 instead of DF_LR_{OUT,IN}.
21552 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
21554 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
21556 2009-03-30 Jan Hubicka <jh@suse.cz>
21558 * except.c (label_to_region_map): Fix thinko.
21560 2009-03-30 Steve Ellcey <sje@cup.hp.com>
21562 PR middle-end/38237
21563 * tree.h (tree_find_value): New declaration.
21564 * tree.c (tree_find_value): New function.
21565 * varasm.c (assemble_external): Avoid duplicate entries on lists.
21567 2009-03-30 Jakub Jelinek <jakub@redhat.com>
21570 * c-decl.c (struct c_binding): Add locus field.
21571 (bind): Add locus argument, set locus field from it.
21572 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
21573 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
21574 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
21575 implicitly_declare, undeclared_variable, lookup_label,
21576 declare_label, c_make_fname_decl, c_builtin_function,
21577 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
21580 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
21583 * config/i386/i386.c (classify_argument): Check total size of
21586 2009-03-30 Martin Jambor <mjambor@suse.cz>
21588 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
21589 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
21590 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
21593 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
21594 seen_variable_array_ref while also traversing a union.
21596 * tree-inline.c (optimize_inline_calls): Do not call
21597 cgraph_node_remove_callees.
21598 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
21599 (pass_remove_cgraph_callee_edges): New variable.
21600 * passes.c (init_optimization_passes): Add
21601 pass_remove_cgraph_callee_edges after early inlining and before all
21602 late intraprocedural passes.
21604 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
21606 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
21608 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
21609 Fix typos in names.
21611 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
21613 * combine.c (simplify_comparison): Use have_insn_for.
21614 * dojump.c (do_jump): Likewise.
21616 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
21618 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
21619 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
21620 sparc_compare_op0 like sparc_compare_emitted used to be handled.
21621 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
21622 instead of sparc_compare_emitted.
21623 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
21624 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
21625 instead of sparc_compare_emitted.
21627 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
21629 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
21630 enter/exit cfglayout mode.
21631 (pass_partition_block): Require it.
21632 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
21633 (combine_instructions): Track basic blocks instead of labels.
21634 (update_cfg_for_uncondjump): New.
21635 (try_combine): Use it. Update jumps after rescanning.
21636 (pass_combine): Require PROP_cfglayout.
21637 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
21639 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
21641 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
21642 Provide/destroy PROP_cfglayout respectively.
21643 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
21644 * tree-pass.h (PROP_cfglayout): New.
21646 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
21648 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
21649 fold_convert_const_fixed_from_fixed,
21650 fold_convert_const_fixed_from_int,
21651 fold_convert_const_fixed_from_real, fold_negate_const): Do not
21652 set TREE_CONSTANT_OVERFLOW.
21653 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
21654 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
21656 2009-03-30 Ira Rosen <irar@il.ibm.com>
21658 * tree-vect-loop-manip.c: New file.
21659 * tree-vectorizer.c: Update documentation and included files.
21660 (vect_loop_location): Make extern.
21661 (rename_use_op): Move to tree-vect-loop-manip.c
21662 (rename_variables_in_bb, rename_variables_in_loop,
21663 slpeel_update_phis_for_duplicate_loop,
21664 slpeel_update_phi_nodes_for_guard1,
21665 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
21666 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
21667 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
21668 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
21669 find_loop_location): Likewise.
21670 (new_stmt_vec_info): Move to tree-vect-stmts.c.
21671 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
21672 get_vectype_for_scalar_type, vect_is_simple_use,
21673 supportable_widening_operation, supportable_narrowing_operation):
21675 (bb_in_loop_p): Move to tree-vect-loop.c.
21676 (new_loop_vec_info, destroy_loop_vec_info,
21677 reduction_code_for_scalar_code, report_vect_op,
21678 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
21679 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
21680 (vect_supportable_dr_alignment): Likewise.
21681 * tree-vectorizer.h (tree-data-ref.h): Include.
21682 (vect_loop_location): Declare.
21683 Reorganize function declarations according to the new file structure.
21684 * tree-vect-loop.c: New file.
21685 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
21686 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
21687 * tree-vect-data-refs.c: New file.
21688 * tree-vect-patterns.c (timevar.h): Don't include.
21689 * tree-vect-stmts.c: New file.
21690 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
21691 tree-vect-slp.c, tree-vect-loop.c.
21692 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
21693 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
21694 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
21695 (tree-vect-analyze.o): Remove.
21696 (tree-vect-transform.o): Likewise.
21697 (tree-vect-data-refs.o): Add rule.
21698 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
21699 tree-vect-slp.o): Likewise.
21700 (tree-vect-patterns.o): Remove redundant dependencies.
21701 (tree-vectorizer.o): Likewise.
21702 * tree-vect-slp.c: New file.
21704 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21706 * optc-gen.awk: Warn if an option flag has multiple different
21709 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
21711 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
21712 -floop-block): Document dependences on PPL, CLooG and Graphite.
21714 2009-03-30 Joseph Myers <joseph@codesourcery.com>
21716 PR rtl-optimization/323
21717 * c-common.c (c_fully_fold, convert_and_check,
21718 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
21719 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
21720 * c-common.def (EXCESS_PRECISION_EXPR): New.
21721 * c-cppbuiltin.c (builtin_define_float_constants): Define
21722 constants with enough digits for long double.
21723 * c-lex.c (interpret_float): Interpret constant with excess
21724 precision where appropriate.
21725 * c-opts.c (c_common_post_options): Set
21726 flag_excess_precision_cmdline. Give an error for
21727 -fexcess-precision=standard for C++ for processors where the
21728 option is significant.
21729 * c-parser.c (c_parser_conditional_expression): Handle excess
21730 precision in condition.
21731 * c-typeck.c (convert_arguments): Handle arguments with excess
21733 (build_unary_op): Move excess precision outside operation.
21734 (build_conditional_expr): Likewise.
21735 (build_compound_expr): Likewise.
21736 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
21737 (build_modify_expr): Handle excess precision in RHS.
21738 (convert_for_assignment): Handle excess precision in converted
21740 (digest_init, output_init_element, process_init_element): Handle
21741 excess precision in initializer.
21742 (c_finish_return): Handle excess precision in return value.
21743 (build_binary_op): Handle excess precision in operands and add
21744 excess precision as needed for operation.
21745 * common.opt (-fexcess-precision=): New option.
21746 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
21747 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
21748 For standard excess precision, output explicit conversion to and
21749 truncation from XFmode.
21750 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
21751 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
21752 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
21753 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
21754 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
21755 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
21756 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
21757 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
21758 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
21759 define_splits, sqrt<mode>2): Disable where appropriate for
21760 standard excess precision.
21761 * convert.c (convert_to_real): Do not shorten arithmetic to type
21762 for which excess precision would be used.
21763 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
21764 * doc/invoke.texi (-fexcess-precision=): Document option.
21765 (-mfpmath=): Correct index entry.
21766 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
21767 flag_excess_precision): New.
21768 * langhooks.c (lhd_post_options): Set
21769 flag_excess_precision_cmdline.
21770 * opts.c (common_handle_option): Handle -fexcess-precision=.
21771 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
21772 init_excess_precision): New.
21773 (lang_dependent_init_target): Call init_excess_precision.
21774 * tree.c (excess_precision_type): New.
21775 * tree.h (excess_precision_type): Declare.
21777 2009-03-30 Joseph Myers <joseph@codesourcery.com>
21780 * c-typeck.c (build_component_ref): Do not copy qualifiers from
21781 non-lvalue to component.
21783 2009-03-29 Joseph Myers <joseph@codesourcery.com>
21785 PR preprocessor/34695
21786 * Makefile.in (c-opts.o): Depend on c-tree.h.
21787 * c-common.c: Move down include of diagnostic.h.
21788 (done_lexing, c_cpp_error): New.
21789 * c-common.h (done_lexing): Declare.
21790 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
21792 * c-opts.c: Include c-tree.h.
21793 (c_common_init_options): Set preprocessor error callback.
21794 (c_common_handle_option): Do not set preprocessor
21795 inhibit_warnings, warnings_are_errors, warn_system_headers,
21796 pedantic_errors or inhibit_warnings flags.
21797 (c_common_post_options): Do not check cpp_errors (parse_in).
21798 (c_common_finish): Do not output dependencies if there were
21799 errors. Do not check return value of cpp_finish.
21800 * c-ppoutput.c (pp_file_change): Set input_location.
21801 * c-tree.h (c_cpp_error): Declare.
21802 * diagnostic.c (diagnostic_set_info_translated): Also initialize
21804 (diagnostic_build_prefix): Check override_column.
21805 * diagnostic.h (diagnostic_info): Add override_column field.
21806 (diagnostic_override_column): Define.
21808 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
21810 * c-common.c (c_expand_expr, c_staticp): Remove.
21811 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
21812 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
21813 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
21814 * c-gimplify.c (gimplify_compound_literal_expr,
21815 optimize_compound_literals_in_ctor): Remove.
21816 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
21817 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
21818 * c-semantics.c (emit_local_var): Remove.
21820 * langhooks-def.h (lhd_expand_expr): Remove.
21821 * langhooks.c (lhd_expand_expr): Remove.
21822 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
21824 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
21825 handling from c-semantics.c; don't call into langhook.
21826 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
21827 * gimplify.c (gimplify_compound_literal_expr,
21828 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
21829 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
21830 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
21831 as was done in c-gimplify.c.
21832 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
21833 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
21834 Move from c-common.h.
21835 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
21837 * tree.c (staticp): Do not call langhook.
21838 * langhooks.c (lhd_staticp): Delete.
21839 * langhooks-def.h (lhd_staticp): Delete prototype.
21840 (LANG_HOOKS_STATICP): Delete.
21841 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
21843 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
21844 instead of DECL_STMTs.
21846 2009-03-29 Joseph Myers <joseph@codesourcery.com>
21854 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
21856 (fold_call_expr): Return a NOP_EXPR from folding rather than the
21857 contained expression.
21858 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
21859 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
21860 conditional expressions for C.
21861 (decl_constant_value_for_optimization): Move from
21862 decl_constant_value_for_broken_optimization in c-typeck.c. Check
21863 whether optimizing and that the expression is a VAR_DECL not of
21864 array type instead of doing such checks in the caller. Do not
21865 check pedantic. Call gcc_unreachable for C++.
21866 * c-common.def (C_MAYBE_CONST_EXPR): New.
21867 * c-common.h (c_fully_fold, c_save_expr,
21868 decl_constant_value_for_optimization): New prototypes.
21869 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
21870 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
21871 EXPR_INT_CONST_OPERANDS): Define.
21872 * c-convert.c (convert): Strip nops from expression.
21873 * c-decl.c (groktypename): Take extra parameters expr and
21874 expr_const_operands. Update call to grokdeclarator.
21875 (start_decl): Update call to grokdeclarator. Add statement for
21876 expressions used in type of decl.
21877 (grokparm): Update call to grokdeclarator.
21878 (push_parm_decl): Update call to grokdeclarator.
21879 (build_compound_literal): Add parameter non_const and build a
21880 C_MAYBE_COSNT_EXPR if applicable.
21881 (grokdeclarator): Take extra parameters expr and
21882 expr_const_operands. Track expressions used in declaration
21883 specifiers and declarators. Fold array sizes and track whether
21884 they are constant expressions and whether they are integer
21885 constant expressions.
21886 (parser_xref_tag): Set expr and expr_const_operands fields in
21888 (grokfield): Update call to grokdeclarator.
21889 (start_function): Update call to grokdeclarator.
21890 (build_null_declspecs): Set expr and expr_const_operands fields in
21892 (declspecs_add_type): Handle expressions in typeof specifiers.
21893 * c-parser.c (c_parser_declspecs): Set expr and
21894 expr_const_operands fields for declaration specifiers.
21895 (c_parser_enum_specifier): Likewise.
21896 (c_parser_struct_or_union_specifier): Likewise.
21897 (c_parser_typeof_specifier): Likewise. Update call to
21898 groktypename. Fold expression as needed. Return expressions with
21899 type instead of adding statements.
21900 (c_parser_attributes): Update calls to c_parser_expr_list.
21901 (c_parser_statement_after_labels): Fold expression before passing
21902 to objc_build_throw_stmt.
21903 (c_parser_condition): Fold expression.
21904 (c_parser_asm_operands): Fold expression.
21905 (c_parser_conditional_expression): Use c_save_expr. Update call
21906 to build_conditional_expr.
21907 (c_parser_alignof_expression): Update call to groktypename.
21908 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
21909 original_code. Fold expression argument of va_arg. Create
21910 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
21911 argument to va_arg. Update calls to groktypename. Fold array
21912 index for offsetof. Verify that first argument to
21913 __builtin_choose_expr has integer type.
21914 (c_parser_postfix_expression_after_paren_type): Update calls to
21915 groktypename and build_compound_literal. Handle expressions with
21916 side effects in type name.
21917 (c_parser_postfix_expression_after_primary): Update call to
21918 c_parser_expr_list. Set original_code for calls to
21919 __builtin_constant_p.
21920 (c_parser_expr_list): Take extra parameter fold_p. Fold
21921 expressions if requested.
21922 (c_parser_objc_type_name): Update call to groktypename.
21923 (c_parser_objc_synchronized_statement): Fold expression.
21924 (c_parser_objc_receiver): Fold expression.
21925 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
21926 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
21927 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
21928 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
21929 (struct c_typespec): Add elements expr and expr_const_operands.
21930 (struct c_declspecs): Add elements expr and expr_const_operands.
21931 (groktypename, build_conditional_expr, build_compound_literal):
21933 (in_late_binary_op): Declare.
21934 * c-typeck.c (note_integer_operands): New function.
21935 (in_late_binary_op): New variable.
21936 (decl_constant_value_for_broken_optimization): Move to c-common.c
21937 and rename to decl_constant_value_for_optimization.
21938 (default_function_array_conversion): Do not strip nops.
21939 (default_conversion): Do not call
21940 decl_constant_value_for_broken_optimization.
21941 (build_array_ref): Do not fold result.
21942 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
21943 result when operand is a VLA.
21944 (c_expr_sizeof_type): Update call to groktypename. Handle
21945 expressions included in type name. Use C_MAYBE_CONST_EXPR for
21946 result when operand names a VLA type.
21947 (build_function_call): Update call to build_compound_literal.
21948 Only fold result for calls to __builtin_* functions. Strip
21949 NOP_EXPR from INTEGER_CST returned from such functions. Fold
21950 the function designator.
21951 (convert_arguments): Fold arguments. Update call to
21952 convert_for_assignment.
21953 (build_unary_op): Handle increment and decrement of
21954 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
21955 decrement earlier. Fold operand of increment and decrement.
21956 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
21957 built for integer operand. Wrap returns that are INTEGER_CSTs
21958 without being integer constant expressions or that have integer
21959 constant operands without being INTEGER_CSTs.
21960 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
21961 (build_conditional_expr): Add operand ifexp_bcp. Track whether
21962 result is an integer constant expression or can be used in
21963 unevaluated parts of one and avoid folding and wrap as
21964 appropriate. Fold operands before possibly doing -Wsign-compare
21966 (build_compound_expr): Wrap result for C99 if operands can be used
21967 in integer constant expressions.
21968 (build_c_cast): Update call to digest_init. Do not ignore
21969 overflow from casting floating-point constants to integers. Wrap
21970 results that could be confused with integer constant expressions,
21971 null pointer constants or floating-point constants.
21972 (c_cast_expr): Update call to groktypename. Handle expressions
21973 included in type name.
21974 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
21975 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
21976 Update calls to convert_for_assignment.
21977 (convert_for_assignment): Take new parameter
21978 null_pointer_constant. Do not strip nops or call
21979 decl_constant_value_for_broken_optimization. Set
21980 in_late_binary_op for conversions to boolean.
21981 (store_init_value): Update call to digest_init.
21982 (digest_init): Take new parameter null_pointer_constant. Do not
21983 call decl_constant_value_for_broken_optimization. pedwarn for
21984 initializers not constant expressions. Update calls to
21985 convert_for_assignment.
21986 (constructor_nonconst): New.
21987 (struct constructor_stack): Add nonconst element.
21988 (really_start_incremental_init, push_init_level, pop_init_level):
21989 Handle constructor_nonconst and nonconst element.
21990 (set_init_index): Call constant_expression_warning for array
21992 (output_init_element): Fold value. Set constructor_nonconst as
21993 applicable. pedwarn for initializers not constant expressions.
21994 Update call to digest_init. Call constant_expression_warning
21995 where constant initializers are required.
21996 (process_init_element): Use c_save_expr.
21997 (c_finish_goto_ptr): Fold expression.
21998 (c_finish_return): Fold return value. Update call to
21999 convert_for_assignment.
22000 (c_start_case): Fold switch expression.
22001 (c_process_expr_stmt): Fold expression.
22002 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
22003 ensure statement expression is not evaluated in constant expression.
22004 (build_binary_op): Track whether results are integer constant
22005 expressions or may occur in such, disable folding and wrap results
22006 as applicable. Fold operands for -Wsign-compare warnings unless
22008 (c_objc_common_truthvalue_conversion): Handle results folded to
22009 integer constants that are not integer constant expressions.
22010 * doc/extend.texi: Document when typeof operands are evaluated,
22011 that condition of __builtin_choose_expr is an integer constant
22012 expression, and more about use of __builtin_constant_p in
22015 2009-03-29 Richard Guenther <rguenther@suse.de>
22017 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
22018 propagate addresses of array references.
22020 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
22022 * regmove.c (perhaps_ends_bb_p): Remove.
22023 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
22024 from INSN and check that the main loop stays within that basic block.
22025 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
22026 (regmove_forward_pass): Split out from regmove_optimize. Use
22027 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
22028 (regmove_backward_pass): Split out from regmove_optimize. Use
22029 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
22030 (regmove_optimize): Simplify.
22032 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
22035 * config/i386/i386.c (classify_argument): Ignore flexible array
22036 member in struct and warn ABI change.
22038 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
22040 * config/i386/i386-protos.h (ix86_agi_dependent): New.
22042 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
22043 (ix86_adjust_cost): Updated.
22045 2009-03-29 Jan Hubicka <jh@suse.cz>
22047 PR middle-end/28850
22048 * tree-pass.h (pass_cleanup_eh): New function.
22049 (remove_unreachable_regions): Break code handling RTL
22050 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
22051 that can not be reached by runtime.
22052 (can_be_reached_by_runtime): New function.
22053 (label_to_region_map): New function.
22054 (num_eh_regions): New function.
22055 (rtl_remove_unreachable_regions): New function.
22056 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
22057 (remove_eh_region): New function.
22058 * except.h: Include sbitmap and vecprim.
22059 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
22060 num_eh_regions): Declare.
22061 * passes.c (init_optimization_passes): Schedule cleanup_eh.
22062 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
22063 * tree-eh.c (tree_remove_unreachable_handlers): New function.
22064 (tree_empty_eh_handler_p): New function.
22065 (cleanup_empty_eh): New function.
22066 (cleanup_eh): New function.
22067 (pass_cleanup_eh): New function.
22069 2009-03-29 Jan Hubicka <jh@suse.cz>
22071 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
22072 for removed regions.
22074 2009-03-29 Jan Hubicka <jh@suse.cz>
22076 * except.c (dump_eh_tree): Dump all datastructures.
22078 2009-03-29 Jan Hubicka <jh@suse.cz>
22080 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
22081 (duplicate_eh_regions_1): Likewise.
22082 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
22083 vector; call EH verification.
22084 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
22085 Be ready for region being removed.
22087 2009-03-29 Jan Hubicka <jh@suse.cz>
22089 * bitmap.c (bitmap_last_set_bit): New function.
22090 * bitmap.h (bitmap_last_set_bit): Declare.
22092 2009-03-29 David Ayers <ayers@fsfe.org>
22095 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
22096 by calling objc_compare_types and surpress warnings about
22097 incompatible C pointers that are compatible ObjC pointers.
22099 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
22101 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
22102 call initialize_inline_failed.
22103 (initialize_inline_failed): Move it from here ...
22104 * cgraph.c (initialize_inline_failed): ... to here.
22105 (cgraph_create_edge): Call initialize_inline_failed rather than
22106 setting inline_failed directly.
22108 2009-03-29 Ben Elliston <bje@au.ibm.com>
22111 * sysv4.opt (msdata): Improve comment.
22112 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
22113 * sysv4.h (SVR4_ASM_SPEC): Likewise.
22115 2009-03-29 Ben Elliston <bje@au.ibm.com>
22118 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
22119 load and store attributes.
22121 2009-03-29 Ben Elliston <bje@au.ibm.com>
22123 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
22124 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
22125 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
22126 * doc/extend.texi (X86 Built-in Functions): Add index entries for
22127 __builtin_infq and __builtin_huge_valq.
22129 2009-03-28 Anatoly Sokolov <aesok@post.ru>
22131 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
22133 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
22134 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
22136 2009-03-28 Xinliang David Li <davidxl@google.com>
22138 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
22139 (do_dbg_cnt): New function.
22141 2009-03-28 Jan Hubicka <jh@suse.cz>
22143 Merge from pretty-ipa:
22145 2009-03-27 Jan Hubicka <jh@suse.cz>
22147 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
22148 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
22149 * passes.c (function_called_by_processed_nodes_p): New.
22150 * ipa-pure-const.c (check_call): Fix handling of operands.
22151 (analyze_function): Dump debug output for skipped bodies.
22152 (local_pure_const): Use function_called_by_processed_nodes_p.
22153 * dwarf2out.c (reference_to_unused): Use output.
22154 * passes.c (do_per_function_toporder): Likewise.
22156 2008-11-12 Jan Hubicka <jh@suse.cz>
22158 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
22159 * ipa-pure-const.c (funct_state_d): Add can throw field; make
22160 state_set_in_source enum
22161 (check_decl): Ignore memory tags; do not set fake looping flags;
22163 (check_operand, check_tree, check_rhs_var, check_lhs_var,
22164 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
22165 (check_call, analyze_function): Rewrite.
22167 (add_new_function): Update call of analyze_function.
22168 (generate_summary): Add call of analyze_function.
22169 (propagate): Propagate can_throw; handle state_set_in_source correctly.
22170 (local_pure_const): New function.
22171 (pass_local_pure_const): New pass.
22172 * ipa-inline.c (inline_transform): Set after_inlining.
22173 * tree-eh.c (stmt_can_throw_external): New.
22174 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
22175 work with aliasing built.
22176 * tree-flow.h (stmt_can_throw_external): New.
22177 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
22178 and local pure/const pass in early and late optimization queue.
22180 2009-03-28 Martin Jambor <mjambor@suse.cz>
22182 * fold-const.c (get_pointer_modulus_and_residue): New parameter
22184 (fold_binary): Allow function decl aligment consideration is the
22185 second argument is integer constant one.
22186 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
22187 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
22188 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
22190 2009-03-28 Jan Hubicka <jh@suse.cz>
22192 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
22193 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
22194 * function.h (rtl_data): Add nothrow flag.
22195 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
22196 set DECL_NOTHROW for AVAILABLE functions.
22198 2009-03-28 Jakub Jelinek <jakub@redhat.com>
22200 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
22201 following vector keyword has expansion starting with pixel or bool
22202 keyword, expand vector to __vector and pixel or bool to __pixel or
22206 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
22207 warn_if_disallowed_function_p): Removed.
22208 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
22209 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
22210 warning_if_disallowed_function_p.
22211 * flags.h (warn_if_disallowed_function_p,
22212 warn_disallowed_functions): Removed.
22213 * common.opt (Wdisallowed-function-list=): Removed.
22214 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
22216 2009-03-28 Richard Guenther <rguenther@suse.de>
22218 PR tree-optimization/38723
22219 * tree-ssa-pre.c (compute_avail): Add all default definitions to
22222 2009-03-28 Jan Hubicka <jh@suse.cz>
22224 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
22225 test introduced by my previous patch.
22227 2009-03-28 Richard Guenther <rguenther@suse.de>
22229 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
22230 the PHIs value undefined.
22232 2009-03-28 Jan Hubicka <jh@suse.cz>
22234 * tree-pass.h (pass_fixup_cfg): New pass.
22235 * ipa-inline.c (inline_transform): Set
22236 always_inline_functions_inlined/after_inlining.
22237 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
22238 (pass_fixup_cfg): New pass.
22239 * passes.c (init_optimization_passes): Add fixup_cfg.
22241 2009-03-28 Richard Guenther <rguenther@suse.de>
22243 PR tree-optimization/38458
22244 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
22245 argument use the arguments copy-of value.
22247 2009-03-28 Richard Guenther <rguenther@suse.de>
22249 PR tree-optimization/38180
22250 * tree-ssa-ccp.c (get_default_value): Simplify.
22251 (likely_value): Likewise.
22252 (surely_varying_stmt_p): Properly handle VOP case.
22253 (ccp_initialize): Likewise.
22254 (ccp_fold): Handle propagating through *&.
22255 (fold_const_aggregate_ref): Also handle decls.
22257 2009-03-28 Jan Hubicka <jh@suse.cz>
22259 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
22260 * cgraph.h (cgraph_node): Likewise.
22261 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
22262 (cgraph_reset_node): Use process flag.
22263 (cgraph_mark_functions_to_output): Likewise.
22264 (cgraph_expand_function): Likewise.
22265 (cgraph_expand_all_functions): Likewise.
22266 (cgraph_output_in_order): Likewise.
22267 * dwarf2out.c (reference_to_unused): Likewise.
22268 * passes.c do_per_function_toporder): Likewise.
22270 2009-03-28 Jan Hubicka <jh@suse.cz>
22272 Bring from lto-branch:
22274 2008-09-03 Doug Kwan <dougkwan@google.com>
22276 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
22277 enums instead of reason strings.
22278 * cgraph.c (cgraph_create_edge): Same.
22279 (cgraph_inline_failed_string): New function.
22280 * cgraph.h (cgraph_inline_failed_t): New enum type.
22281 (cgraph_inline_failed_string): New prototype.
22282 (struct cgraph_edge): Change type of INLINED_FAILED from constant
22283 char pointer to cgraph_inline_failed_t.
22284 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
22285 (cgraph_default_inline_p): Ditto.
22286 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
22287 to cgraph_inline_failed_t pointer.
22288 * cif-code.def: New file.
22289 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
22291 (cgraph_check_inline_limits): Change type of REASON to pointer to
22292 cgraph_inline_failed_t. Replace reason strings with enums.
22293 (cgraph_default_inline_p): Ditto.
22294 (cgraph_recursive_inlining_p): Ditto.
22295 (update_caller_keys): Change type of FAILED_REASON to
22296 cgraph_inline_failed_t.
22297 (cgraph_set_inline_failed): Change type of REASON to pointer to
22298 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
22299 convert enums to strings for text output.
22300 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
22301 to be of type cgraph_inline_failed_t. Replace reason strings with
22302 enums. Call cgraph_inline_failed_string to covert enums
22303 to strings for text output.
22304 (cgraph_decide_inlining): Replace reason strings with enums.
22305 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
22306 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
22308 * tree-inline.c (expand_call_inline): Change type of REASON
22309 to cgraph_inline_failed_t. Replace reason strings with enums.
22310 Call cgraph_inline_failed_string for text output.
22311 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
22314 2009-03-28 Jan Hubicka <jh@suse.cz>
22316 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
22317 cgraph_clone_node): Remove master clone handling.
22318 (cgraph_is_master_clone, cgraph_master_clone): Remove.
22319 * cgraph.h (master_clone): Remove.
22320 (cgraph_is_master_clone, cgraph_master_clone): Remove.
22321 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
22322 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
22324 2009-03-28 Jan Hubicka <jh@suse.cz>
22326 * cgraph.c (cgraph_function_body_availability): Functions declared
22327 inline are always safe to assume that it is not going to be replaced.
22329 2009-03-28 Richard Guenther <rguenther@suse.de>
22331 PR tree-optimization/38513
22332 * tree-ssa-pre.c (eliminate): Remove redundant stores.
22333 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
22334 EXC_PTR_EXPR and FILTER_EXPR.
22335 (get_ref_from_reference_ops): Likewise.
22337 2009-03-28 Richard Guenther <rguenther@suse.de>
22339 PR tree-optimization/38968
22340 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
22341 Use FLOOR_MOD_EXPR to compute misalignment.
22343 2009-03-28 Richard Guenther <rguenther@suse.de>
22345 PR tree-optimization/37795
22346 * tree.h (combine_comparisons): Declare.
22347 * fold-const.c (combine_comparisons): Export.
22348 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
22350 (ifcombine_iforif): Use combine_comparisons.
22352 2009-03-28 Jan Hubicka <jh@suse.cz>
22354 * tree-eh.c (inlinable_call_p): New function.
22355 (make_eh_edges): Use it.
22356 (verify_eh_edges): Use it.
22357 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
22358 * except.c (reachable_next_level): Add inlinable_function argument
22359 (sjlj_find_directly_reachable_regions): Update.
22360 (add_reachable_handler): Do not set saw_any_handlers.
22361 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
22362 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
22363 Add new inlinable call parameter.
22364 (can_throw_internal, can_throw_external): Update.
22365 * except.h (can_throw_internal_1, can_throw_external_1,
22366 foreach_reachable_handler): Update declaration.
22368 2009-03-28 Joseph Myers <joseph@codesourcery.com>
22370 * config/arm/t-arm-coff, config/h8300/coff.h,
22371 config/i386/i386-aout.h, config/i386/i386-coff.h,
22372 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
22373 config/pdp11/2bsd.h, config/rs6000/aix41.h,
22374 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
22375 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
22376 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
22377 sys-types.h: Remove.
22378 * Makefile.in: Remove protoize and fixproto support and references
22380 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
22381 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
22383 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
22384 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
22385 unprotoize$(exeext).
22386 (rest.encap): Don't depend on $(STMP_FIXPROTO)
22387 (.PHONY): Don't depend on proto.
22388 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
22389 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
22390 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
22391 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
22392 build/gen-protos.o, build/scan.o, xsys-protos.h,
22393 build/fix-header$(build_exeext), build/fix-header.o,
22394 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
22395 stmp-install-fixproto): Remove.
22396 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
22397 SYSCALLS.c or fixproto files.
22398 (install-common): Don't install protoize.
22399 (install-headers-tar, install-headers-cpio, install-headers-cp):
22400 Don't depend on $(STMP_FIXPROTO).
22401 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
22402 install fixproto files or write out fixproto settings.
22403 (uninstall): Don't uninstall protoize.
22404 * config.gcc (use_fixproto): Remove.
22405 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
22406 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
22407 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
22408 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
22409 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
22410 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
22411 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
22412 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
22413 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
22414 * config/t-vxworks (STMP_FIXPROTO): Remove.
22415 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
22416 STMP_FIXPROTO): Remove.
22417 * config.in, configure: Regenerate.
22418 * crtstuff.c (gid_t, uid_t): Don't undefine.
22419 * doc/install.texi: Change m68k-coff to m68k-elf in example.
22420 (arm-*-coff, arm-*-aout: Remove target entries.
22421 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
22422 Remove mention of AIX 4.1.
22423 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
22424 * doc/invoke.texi (Running Protoize): Remove.
22425 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
22426 (Protoize Caveats): Remove.
22427 * tsystem.h: Update comments on headers assumed to exist.
22429 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
22431 * genautomata.c: Add a new year to the copyright. Add a new
22433 (struct insn_reserv_decl): Add comments for member bypass_list.
22434 (find_bypass): Remove.
22435 (insert_bypass): New.
22436 (process_decls): Use insert_bypass.
22437 (output_internal_insn_latency_func): Output all bypasses with the
22438 same input insn in one switch case.
22440 * rtl.def (define_bypass): Describe bypass choice.
22441 * doc/md.texi (define_bypass): Ditto.
22443 2009-03-27 Richard Guenther <rguenther@suse.de>
22445 * gimplify.c (mark_addressable): Export.
22446 * tree-flow.h (mark_addressable): Declare.
22447 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
22448 * tree-ssa.c (verify_phi_args): Verify that address taken
22449 variables have TREE_ADDRESSABLE set.
22451 2009-03-27 Richard Guenther <rguenther@suse.de>
22453 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
22454 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
22455 Do not mark decls TREE_ADDRESSABLE.
22456 (build_fold_addr_expr): Adjust.
22457 (fold_addr_expr): Remove.
22458 (fold_unary): Use build_fold_addr_expr.
22459 (fold_comparison): Likewise.
22460 (split_address_to_core_and_offset): Likewise.
22461 * coverage.c (tree_coverage_counter_addr): Mark the array decl
22463 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
22464 (gimplify_modify_expr_to_memcpy): Mark source and destination
22466 * omp-low.c (create_omp_child_function): Mark the object decl
22468 (lower_rec_input_clauses): Mark the var we take the address of
22470 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
22472 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
22474 PR middle-end/39315
22475 * cfgexpand.c (expand_one_stack_var_at): Change alignment
22476 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
22478 2009-03-27 Richard Guenther <rguenther@suse.de>
22480 PR tree-optimization/39120
22481 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
22483 (handle_lhs_call): Process return constraints. Add escape
22484 constraints if necessary.
22485 (handle_const_call): Fill out return constraints. Make nested
22486 case more precise. Avoid consttmp if possible.
22487 (handle_pure_call): Fill out return constraints. Avoid
22488 callused if possible.
22489 (find_func_aliases): Simplify call handling.
22491 2009-03-27 Richard Guenther <rguenther@suse.de>
22493 PR tree-optimization/39120
22494 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
22495 as a representative.
22496 (solve_graph): Do propagate CALLUSED.
22497 (handle_pure_call): Use a scalar constraint from CALLUSED for
22499 (find_what_p_points_to): CALLUSED shall not appear in poins-to
22502 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
22505 * c-common.c (handle_aligned_attribute): Properly check alignment
22506 overflow. Use (1U << i) instead of (1 << i).
22508 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
22510 * expr.h (get_mem_align_offset): Updated.
22512 * tree.h (tree_decl_common): Change align to "unsigned int" and
22513 move it before pointer_alias_set.
22515 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
22516 Jakub Jelinek <jakub@redhat.com>
22519 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
22520 gr_register_operand with gr_reg_or_0_operand.
22521 (cmpxchg_rel_di): Likewise.
22522 (sync_lock_test_and_set<mode>): Likewise.
22524 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
22526 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
22527 (true_regnum): Likewise.
22529 * rtlanal.c (subreg_info): Moved to ...
22530 * rtl.h (subreg_info): Here. New.
22531 (subreg_get_info): New.
22533 * rtlanal.c (subreg_get_info): Make it extern.
22535 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
22538 * config/i386/i386.c (ix86_abi): New.
22539 (override_options): Handle -mabi=.
22540 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
22541 (ix86_call_abi_override): Likewise.
22542 (init_cumulative_args): Likewise.
22543 (function_arg_advance): Likewise.
22544 (function_arg_64): Likewise.
22545 (function_arg): Likewise.
22546 (ix86_pass_by_reference): Likewise.
22547 (ix86_function_value_regno_p): Likewise.
22548 (ix86_build_builtin_va_list_abi): Likewise.
22549 (setup_incoming_varargs_64): Likewise.
22550 (is_va_list_char_pointer): Likewise.
22551 (ix86_init_machine_status): Likewise.
22552 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
22553 (ix86_function_type_abi): Return enum calling_abi. Rewrite
22554 for 64bit. Replace DEFAULT_ABI with ix86_abi.
22555 (ix86_function_abi): Make it static and return enum calling_abi.
22556 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
22558 (ix86_fn_abi_va_list): Updated.
22560 * config/i386/i386.h (ix86_abi): New.
22561 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
22562 (CONDITIONAL_REGISTER_USAGE): Likewise.
22563 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
22564 (machine_function): Likewise.
22566 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
22568 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
22569 (STACK_BOUNDARY): Likewise.
22570 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
22572 * config/i386/i386.opt (mabi=): New.
22574 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
22575 return enum calling_abi.
22576 (ix86_function_type_abi): Likewise.
22577 (ix86_function_abi): Removed.
22579 * doc/invoke.texi: Document -mabi= option for x86.
22581 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22583 * builtins.c (real_dconstp): Delete.
22584 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
22586 2009-03-27 Dodji Seketeli <dodji@redhat.com>
22587 Jakub Jelinek <jakub@redhat.com>
22590 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
22591 (gen_subprogram_die): When a function is explicit, generate the
22592 DW_AT_explicit attribute.
22593 * langhooks.h (struct lang_hooks_for_decls): Add
22594 function_decl_explicit_p langhook.
22595 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
22596 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
22598 2009-03-27 Jakub Jelinek <jakub@redhat.com>
22600 * builtins.c (fold_builtin_memory_op): Optimize memmove
22601 into memcpy if we can prove source and destination don't overlap.
22603 * tree-inline.c: Include gt-tree-inline.h.
22604 (clone_fn_id_num): New variable.
22605 (clone_function_name): New function.
22606 (tree_function_versioning): Use it.
22607 * Makefile.in (GTFILES): Add tree-inline.c.
22609 2009-03-27 Mark Mitchell <mark@codesourcery.com>
22611 * BASE-VER: Change to 4.5.0.
22613 2009-03-27 Xinliang David Li <davidxl@google.com>
22615 PR tree-optimization/39557
22616 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
22618 2009-03-27 Xinliang David Li <davidxl@google.com>
22620 PR tree-optimization/39548
22621 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
22624 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
22626 * c-common.c (pointer_int_sum): Use %wd on return from
22629 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
22631 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
22632 on return from tree_low_cst.
22634 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
22637 * ginclude/stdarg.h (va_copy): Define also for
22638 __GXX_EXPERIMENTAL_CXX0X__.
22640 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22643 * builtins.h (c_strlen): Do not warn here.
22644 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
22645 * c-common.c (pointer_int_sum): Take an explicit location.
22646 Warn about offsets out of bounds.
22647 * c-common.h (pointer_int_sum): Adjust declaration.
22649 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22651 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
22654 2009-03-26 Jakub Jelinek <jakub@redhat.com>
22657 * opts.c (warn_if_disallowed_function_p): Don't assume
22658 get_callee_fndecl must return non-NULL.
22660 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
22662 PR rtl-optimization/39522
22663 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
22664 when reg_reloaded_valid is set.
22666 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22668 * config/spu/divv2df3.c: New file.
22669 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
22670 (DPBIT_FUNCS): Filter out _div_df.
22672 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
22674 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
22675 a jump insn, count that jump in the distance to the loop start.
22677 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
22680 * config/sh/sh.c (calc_live_regs): Fix condition for global
22681 registers except PIC_OFFSET_TABLE_REGNUM.
22683 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
22686 * doc/invoke.texi (-mconsole): New.
22688 (-mno-cygwin): New.
22690 (-mnop-fun-dllimport): New.
22694 (sub section "i386 and x86-64 Windows Options"): New.
22696 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
22698 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
22699 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
22701 2009-03-25 Richard Guenther <rguenther@suse.de>
22703 PR middle-end/39497
22704 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
22707 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
22709 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
22710 neither of haifa/selective schedulers are working.
22712 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22714 * doc/invoke.texi (Debugging Options): Fix description of
22715 -fno-merge-debug-strings.
22717 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
22719 * config/cris/libgcc.ver: New version-script.
22720 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
22722 * configure.ac <GAS features, nop mnemonic>: Add pattern
22723 crisv32-*-* for "nop".
22724 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
22725 * configure: Regenerate.
22727 2009-03-24 Ira Rosen <irar@il.ibm.com>
22729 PR tree-optimization/39529
22730 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
22731 mark_sym_for_renaming for the tag copied to the new vector
22734 2009-03-24 Arthur Loiret <aloiret@debian.org>
22736 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
22737 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
22738 EXTRA_SPEC_FUNCTIONS.
22739 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
22740 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
22741 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
22742 -march and -mtune options.
22744 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
22746 * config/m68k/t-rtems: Add m5329 multilib.
22748 2009-03-24 Dodji Seketeli <dodji@redhat.com>
22749 Jakub Jelinek <jakub@redhat.com>
22752 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
22755 2009-03-23 Jakub Jelinek <jakub@redhat.com>
22758 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
22759 instead of c_parser_expression_conv, if original_code isn't one of the
22760 4 allowed comparison codes, fail.
22762 2009-03-23 Richard Guenther <rguenther@suse.de>
22764 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
22765 * tree.h (struct tree_type): Likewise.
22766 * reload.h (struct insn_chain): Likewise.
22767 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
22768 * function.h (struct function): Likewise.
22769 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
22771 2009-03-23 Jakub Jelinek <jakub@redhat.com>
22773 PR tree-optimization/39516
22774 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
22776 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
22778 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
22779 should be set true if BITS_PER_WORD of target is bigger than 32
22781 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
22783 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
22784 Translate -B-options to -rpath-link. Correct existing
22785 rpath-link and conditionalize on !nostdlib.
22787 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22789 * doc/extend.texi (Function Attributes, Variable Attributes):
22791 * doc/invoke.texi (Debugging Options, Optimize Options)
22792 (i386 and x86-64 Options, MCore Options): Likewise.
22794 2009-03-20 Jakub Jelinek <jakub@redhat.com>
22797 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
22798 it for block local namespace aliases.
22799 (gen_decl_die): Pass context_die to gen_namespace_die.
22801 2009-03-19 Jakub Jelinek <jakub@redhat.com>
22804 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
22805 minimum or maximum value.
22807 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
22809 * reginfo.c (globalize_reg): Recompute derived reg sets.
22811 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
22814 * libgcc2.c (mprotect): Do not use signed arguments for
22815 VirtualProtect, use DWORD arguments. Also fix the 'may
22816 be used uninitialized' warning for the np variable.
22818 2009-03-19 Jakub Jelinek <jakub@redhat.com>
22821 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
22822 functions using regparm calling conventions when not optimizing.
22823 (ix86_function_sseregparm): Similarly for sseregparm calling
22826 2009-03-19 Li Feng <nemokingdom@gmail.com>
22828 PR middle-end/39500
22829 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
22830 dependence if the first conflict is after niter iterations.
22832 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
22834 PR middle-end/38609
22835 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
22836 functions with dynamic stack-pointer adjustments.
22838 2009-03-19 Ben Elliston <bje@au.ibm.com>
22840 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
22841 option; change to -msdata=data.
22843 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22845 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
22848 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
22851 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
22853 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
22855 * doc/invoke.texi (Code Gen Options): Expand discussion of
22858 2009-03-18 Jakub Jelinek <jakub@redhat.com>
22860 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
22861 * matrix-reorg.c (struct matrix_info): Likewise.
22862 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
22863 * rtl.h (struct mem_attrs): Likewise.
22864 * df.h (struct df): Likewise.
22865 * tree-data-ref.h (struct data_dependence_relation): Likewise.
22866 * ira-int.h (struct ira_allocno): Likewise.
22867 * df-scan.c (struct df_collection_rec): Likewise.
22868 * ira.c (struct equivalence): Likewise.
22869 * function.c (struct temp_slot): Likewise.
22870 * cfgloop.h (struct loop): Likewise.
22873 * function.c (use_register_for_decl): When not optimizing, disregard
22874 register keyword for variables with types containing methods.
22876 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
22878 PR middle-end/39447
22879 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
22880 (is_simple_operand): Call contains_component_ref_p before calling data
22881 reference analysis that would fail on COMPONENT_REFs.
22883 * tree-vrp.c (search_for_addr_array): Fix formatting.
22885 2009-03-18 Richard Guenther <rguenther@suse.de>
22887 * tree-vect-transform.c (vect_loop_versioning): Fold the
22888 generated comparisons.
22889 * tree-vectorizer.c (set_prologue_iterations): Likewise.
22890 (slpeel_tree_peel_loop_to_edge): Likewise.
22892 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22894 PR middle-end/37805
22895 * opts.c (print_specific_help): In addition to `undocumented',
22896 accept `separate' and `joined' flags if passed alone. Describe
22897 output by the first matched one of those.
22898 (common_handle_option): Skip over empty strings.
22899 * gcc.c (display_help): Fix help string for `--help='.
22900 * doc/invoke.texi (Option Summary, Overall Options): With
22901 `--help=', classes and qualifiers can both be repeated, but
22902 only the latter can be negated. One should not pass only
22903 negated qualifiers. Fix markup and examples.
22906 2008-10-14 Jakub Jelinek <jakub@redhat.com>
22907 PR middle-end/37805
22908 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
22909 and -fhelp=separate.
22911 2009-03-17 Jing Yu <jingyu@google.com>
22913 PR middle-end/39378
22914 * function.h (struct rtl_data): Move is_thunk from here...
22915 (struct function): ...to here.
22916 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
22917 * varasm.c (assemble_start_function): Change is_thunk from crtl to
22919 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
22921 (alpha_does_function_need_gp, alpha_start_function): Likewise.
22922 (alpha_output_function_end_prologue): Likewise.
22923 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
22924 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
22925 (rs6000_output_function_epilogue): Likewise.
22926 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
22928 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
22931 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
22932 from different units in a single alternative.
22933 (*truncdfsf_i387): Ditto.
22934 (*truncxfsf2_mixed): Ditto.
22935 (*truncxfdf2_mixed): Ditto.
22937 2009-03-17 Jakub Jelinek <jakub@redhat.com>
22939 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
22940 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
22943 * tree-ssa-live.c (remove_unused_locals): Don't remove local
22944 unused non-artificial variables when not optimizing.
22947 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
22948 DW_TAG_imported_module even if decl is IMPORTED_DECL with
22949 NAMESPACE_DECL in its DECL_INITIAL.
22951 PR middle-end/39443
22952 * optabs.c (set_user_assembler_libfunc): New function.
22953 * expr.h (set_user_assembler_libfunc): New prototype.
22954 * c-common.c: Include libfuncs.h.
22955 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
22956 for memcmp, memset, memcpy, memmove and abort.
22957 * Makefile.in (c-common.o): Depend on libfuncs.h.
22960 * dwarf2out.c (gen_inlined_enumeration_type_die,
22961 gen_inlined_structure_type_die, gen_inlined_union_type_die,
22962 gen_tagged_type_instantiation_die): Removed.
22963 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
22966 2009-03-17 Janis Johnson <janis187@us.ibm.com>
22969 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
22971 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
22972 (check-parallel-%): Ditto.
22973 (check-consistency): Ditto.
22975 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
22977 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
22978 local variable rhs by NULL_TREE.
22980 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
22983 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
22985 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
22988 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
22990 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
22993 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
22994 for ms->sysv ABI calls only in 64bit mode.
22996 * config/i386/i386.md (untyped_call): Support 32bit.
22998 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
23000 * doc/extend.texi: Replace x86_65 with x86_64.
23002 2009-03-16 Jakub Jelinek <jakub@redhat.com>
23004 PR tree-optimization/39455
23005 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
23006 mismatches for POINTER_TYPE_P (type).
23007 (number_of_iterations_le): Likewise.
23009 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
23011 * config/picochip/picochip.c: Removed profiling support.
23012 * config/picochip/picochip.md: Removed profiling instruction.
23013 * config/picochip/picochip.h: Removed profiling builtin.
23015 2009-03-16 Joseph Myers <joseph@codesourcery.com>
23017 * doc/install.texi (--with-host-libstdcxx): Document.
23019 2009-03-14 Anatoly Sokolov <aesok@post.ru>
23022 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
23023 generate a warning if the function name does not begin with
23024 "__vector" and the function has either the 'signal' or 'interrupt'
23025 attribute, from here to ...
23026 (avr_declare_function_name): ...here. New function.
23027 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
23028 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
23030 2009-03-14 Jakub Jelinek <jakub@redhat.com>
23033 * cse.c (fold_rtx): Don't modify original const_arg1 when
23034 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
23035 separate variable instead.
23036 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
23037 from out of range shift counts.
23038 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
23040 2009-03-13 Catherine Moore <clm@codesourcery.com>
23042 * config/i386/x-mingw32 (host-mingw32.o): Replace
23043 diagnostic.h with $(DIAGNOSTIC_H).
23045 2009-03-12 Jakub Jelinek <jakub@redhat.com>
23048 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
23050 * config/i386/sync.md (sync_compare_and_swap<mode>,
23051 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
23052 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
23054 (sync_double_compare_and_swapdi_pic,
23055 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
23056 cmpxchg8b_pic_memory_operand instead of just memory_operand.
23058 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
23061 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
23063 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
23066 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
23067 (avx_addsubv4df3): Likewise.
23068 (*avx_addsubv4sf3): Likewise.
23069 (sse3_addsubv4sf3): Likewise.
23071 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
23074 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
23076 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
23079 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
23080 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
23081 registers for allocnos created from user-defined variables.
23083 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23086 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
23087 of non-integer mode as well.
23089 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
23091 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
23092 for functions for which the parameter types are unknown.
23094 2009-03-11 Jakub Jelinek <jakub@redhat.com>
23097 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
23098 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
23099 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
23100 * config/i386/i386.c (ix86_local_alignment): For
23101 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
23102 long long variables on the stack to avoid dynamic realignment.
23103 Allow the first argument to be a decl rather than type.
23104 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
23106 2009-03-11 Nick Clifton <nickc@redhat.com>
23109 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
23111 Add description to mno-lsim option.
23112 * config/mcore/mcore.h: Remove comment about deprecated m4align
23114 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
23115 * doc/invoke.texi: Add description of mno-lsim and
23116 mstack-increment options.
23118 * config/fr30/fr30.opt: Document the -mno-lsim option.
23119 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
23120 and -mno-lsim options.
23122 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23124 * fold-const.c (fold_comparison): Only call fold_inf_compare
23125 if the mode supports infinities.
23127 2009-03-11 Jason Merrill <jason@redhat.com>
23130 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
23131 end already did. Notice GIMPLE_CALL modifications of the result.
23132 Don't copy debug information from an ignored decl or a decl from
23135 2009-03-10 Richard Guenther <rguenther@suse.de>
23136 Nathan Froyd <froydnj@codesourcery.com>
23138 PR middle-end/37850
23139 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
23140 (__divMODE3): Likewise.
23142 2009-03-09 Jakub Jelinek <jakub@redhat.com>
23144 PR tree-optimization/39394
23145 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
23146 DECL_SIZE_UNIT of variable length FIELD_DECLs.
23148 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23150 * recog.c (verfiy_changes): Disallow renaming of hard regs in
23151 inline asms for register asm ("") declarations.
23153 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
23155 * fold-const.c (fold_unary): Fix comment.
23157 2009-03-07 Jan Hubicka <jh@suse.cz>
23160 * tree-inline.c (setup_one_parameter): Do replacement of const
23161 argument by constant in SSA form.
23163 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23165 PR middle-end/38028
23166 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
23167 determine alignment passed to assign_stack_local.
23168 (assign_parms_unsplit_complex): Likewise.
23169 * except.c (sjlj_build_landing_pads): Likewise.
23171 2009-03-06 Jakub Jelinek <jakub@redhat.com>
23173 PR middle-end/39360
23174 * tree-flow.h (add_referenced_var): Return bool instead of void.
23175 * tree-dfa.c (add_referenced_var): Return result of
23176 referenced_var_check_and_insert call.
23177 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
23178 of referenced_var_check_and_insert.
23181 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
23182 (gen_variable_die): Emit DW_AT_location on abstract static variable's
23183 DIE, don't emit it if abstract origin already has it.
23184 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
23185 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
23187 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23189 * genpreds.c (needs_variable): Fix parentheses at variable name
23191 (write_tm_constrs_h): Indent generated code.
23193 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23195 * doc/extend.texi (Function Attributes): Add documentation
23196 for isr attributes.
23198 2009-03-06 Jakub Jelinek <jakub@redhat.com>
23201 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
23202 take locus from its DECL_SOURCE_LOCATION instead of input_location.
23204 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
23206 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
23209 2009-03-05 Jakub Jelinek <jakub@redhat.com>
23212 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
23213 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
23215 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
23217 * config/i386/i386.md (R8_REG, R9_REG): New constants.
23218 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
23219 constants instead of magic numbers.
23220 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
23222 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
23223 (x86_64_ms_abi_int_parameter_registers): Ditto.
23224 (x86_64_int_return_registers): Ditto.
23225 (ix86_maybe_switch_abi): Ditto.
23226 (ix86_expand_call): Ditto for clobbered_registers array.
23227 (ix86_hard_regno_mode_ok): Ditto.
23228 (x86_extended_QIreg_mentioned_p): Ditto.
23230 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
23232 PR tree-optimization/39349
23233 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
23235 * combine.c (gen_lowpart_for_combine): Use omode when generating
23238 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
23240 PR rtl-optimization/39235
23241 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
23243 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
23245 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
23247 2009-03-04 Richard Guenther <rguenther@suse.de>
23249 PR tree-optimization/39362
23250 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
23251 that occur in abnormal PHIs should be varying.
23253 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
23255 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
23257 (simple_iv): Take loop as an argument instead of statement.
23258 * tree-scalar-evolution.h (simple_iv): Declaration changed.
23259 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
23261 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
23263 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
23264 * matrix-reorg.c (analyze_transpose): Ditto.
23265 * tree-data-ref.c (dr_analyze_innermost): Ditto.
23266 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
23267 * tree-predcom.c (ref_at_iteration): Ditto.
23268 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
23270 2009-03-04 Richard Guenther <rguenther@suse.de>
23272 PR tree-optimization/39358
23273 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
23274 escaped_id and callused_id.
23275 (solve_graph): Likewise.
23277 2009-03-04 Richard Guenther <rguenther@suse.de>
23279 PR tree-optimization/39339
23280 * tree-sra.c (try_instantiate_multiple_fields): Make it
23281 no longer ICE on the above.
23283 2009-03-03 Joseph Myers <joseph@codesourcery.com>
23285 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
23286 that fits within Pmode.
23288 2009-03-03 Steve Ellcey <sje@cup.hp.com>
23290 PR middle-end/10109
23291 * tm.texi (LIBCALL_VALUE): Update description.
23293 2009-03-03 Steve Ellcey <sje@cup.hp.com>
23295 PR middle-end/34443
23296 * doc/extend.texi (section): Update description.
23298 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
23300 PR middle-end/39345
23301 * tree-inline.c (remapped_type): New.
23302 (can_be_nonlocal): Call remapped_type instead of remap_type.
23304 2009-03-03 Jakub Jelinek <jakub@redhat.com>
23307 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
23308 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
23310 2009-03-03 Richard Guenther <rguenther@suse.de>
23312 PR middle-end/39272
23313 * tree.c (tree_nonartificial_location): New function.
23314 * tree.h (tree_nonartificial_location): Declare.
23315 * builtins.c (expand_builtin_memory_chk): Provide location
23316 of the call location for artificial function pieces.
23317 (maybe_emit_chk_warning): Likewise.
23318 (maybe_emit_sprintf_chk_warning): Likewise.
23319 (maybe_emit_free_warning): Likewise.
23320 * expr.c (expand_expr_real_1): Likewise.
23322 2009-03-03 Jakub Jelinek <jakub@redhat.com>
23324 PR tree-optimization/39343
23325 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
23326 COMPONENT_REF t has ARRAY_TYPE.
23328 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
23330 PR middle-end/39335
23331 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
23332 when the type precision of the induction variable should be
23333 larger than the type precision of nit.
23334 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
23335 * graphite.c (graphite_loop_normal_form): Same.
23336 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
23338 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
23340 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
23341 (*call_1_rex64_ms_sysv): Use named constants instead of magic
23342 numbers to describe clobbered registers.
23343 (*call_value_0_rex64_ms_sysv): Ditto.
23344 * config/i386/mmx.md (mmx_emms): Ditto.
23345 (mmx_femms): Ditto.
23347 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
23349 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
23352 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23354 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
23355 (spu_section_type_flags): New function.
23357 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
23359 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
23360 reg_class_contents of FLOAT_REGS into a temporary.
23362 2009-03-02 Richard Guenther <rguenther@suse.de>
23363 Ira Rosen <irar@il.ibm.com>
23365 PR tree-optimization/39318
23366 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
23367 information to the vectorized statement.
23369 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
23371 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
23372 variable. Use defined names instead of magic constants for REX SSE
23375 2009-03-01 Richard Guenther <rguenther@suse.de>
23377 PR tree-optimization/39331
23378 * omp-low.c (lower_send_shared_vars): Do not receive new
23379 values for the reference of DECL_BY_REFERENCE parms or results.
23381 2009-03-01 Jan Hubicka <jh@suse.cz>
23384 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
23385 BLOCK_NONLOCALIZED_VAR): New macros.
23386 (tree_block): Add nonlocalized_vars.
23387 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
23388 gen_decl_die): Add origin argument. Allow generation of die with
23389 origin at hand only.
23390 (gen_member_die, gen_type_die_with_usage, force_decl_die,
23391 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
23393 (gen_block_die): Fix checking for unused blocks.
23394 (process_scope_var): Break out from .... ; work with origins only.
23395 (decls_for_scope) ... here; process nonlocalized list.
23396 (dwarf2out_ignore_block): Look for nonlocalized vars.
23397 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
23399 (dump_scope_block): Dump them.
23400 * tree-inline.c (remap_decls): Handle nonlocalized vars.
23401 (remap_block): Likewise.
23402 (can_be_nonlocal): New predicate.
23403 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
23405 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23407 * configure: Regenerate.
23409 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23411 * optc-gen.awk: No need to duplicate option flags twice.
23412 Reuse help texts for duplicate options which do not have any.
23414 * gcc.c (display_help): Document --version.
23416 * gcc.c (main): If print_help_list and verbose_flag, ensure
23417 driver output comes before subprocess output.
23419 * optc-gen.awk: Assign all remaining fields to help string,
23420 space-separated, for multi-line help in *.opt.
23422 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
23423 -Wno-pedantic-ms-format is for MinGW targets only.
23425 * doc/options.texi (Option file format): Fix bad indentation,
23426 restoring dropped sentence.
23428 2009-02-28 Jan Hubicka <jh@suse.cz>
23430 * tree-inline.c (tree_function_versioning): Output debug info.
23432 2009-02-28 Jan Hubicka <jh@suse.cz>
23435 * tree-inline.c (setup_one_parameter): Do not copy propagate
23436 arguments when not optimizing.
23438 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
23441 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
23442 (avx_addsubv4df3): Likewise.
23443 (*avx_addsubv4sf3): Likewise.
23444 (sse3_addsubv4sf3): Likewise.
23445 (*avx_addsubv2df3): Likewise.
23446 (sse3_addsubv2df3): Likewise.
23447 (avx_unpckhps256): Correct item selectors.
23448 (avx_unpcklps256): Likewise.
23449 (avx_unpckhpd256): Likewise.
23450 (avx_unpcklpd256): Likewise.
23452 2009-02-28 Jan Hubicka <jh@suse.cz>
23454 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
23456 (copy_arguments_for_versioning): If var is declared don't declare it.
23457 (tree_function_versioning): First setup substitutions and then copy
23460 2009-02-27 Jan Hubicka <jh@suse.cz>
23463 * cgraph.h (varpool_output_debug_info): Remove.
23464 * cgraphunit.c (varpool_output_debug_info): Remove.
23465 * dwarf2out.c (deferred_locations_struct): New struct
23466 (deferred_locations): New type.
23467 (deferred_locations_list): New static var.
23468 (deffer_location): New function.
23469 (gen_variable_die): Use it.
23470 (decls_for_scope): Output info on local static vars.
23471 (dwarf2out_finish): Process deferred locations.
23472 * varpool.c (varpool_output_debug_info): Remove.
23474 2009-02-27 Jan Hubicka <jh@suse.cz>
23477 * tree.h (TREE_PROTECTED): Fix comment.
23478 (BLOCK_HANDLER_BLOCK): Remove.
23479 (struct tree_block): Remove handler_block add body_block.
23480 (inlined_function_outer_scope_p): New.
23481 (is_body_block): Remove.
23482 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
23483 * dwarf2out.c (is_inlined_entry_point): Remove.
23484 (add_high_low_attributes): Use inlined_function_outer_scope_p.
23485 (gen_block_die): Use is_inlined_entry_point check. Remove body block
23487 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
23488 * gimplify.c (gimplify_expr): Gimplify body blocks.
23489 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
23490 block with multiple subblocks.
23491 (dump_scope_block): Prettier output; dump more flags and info.
23492 (dump_scope_blocks): New.
23493 (remove_unused_locals): Use dump_scope_blocks.
23494 * tree-flow.h (dump_scope_blocks): Declare.
23495 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
23496 * stmt.c (is_body_block): Remove.
23497 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
23498 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
23500 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
23502 PR middle-end/39308
23503 * graphite.c (graphite_loop_normal_form): Do not call
23504 number_of_iterations_exit from a gcc_assert.
23506 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23508 * config/s390/s390.c (s390_swap_cmp): Look for conditional
23509 jumps if COND is NULL.
23510 (find_cond_jump): New function.
23511 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
23512 * config/s390/s390.md: Remove z10_cobra attribute value.
23514 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
23516 * config/alpha/alpha.h (alpha_expand_mov): Return false if
23517 force_const_mem returns NULL_RTX.
23519 2009-02-26 Jan Hubicka <jh@suse.cz>
23522 * cgraph.h (varpool_output_debug_info): Remove.
23523 * cgraphunit.c (varpool_output_debug_info): Remove.
23524 * dwarf2out.c (deferred_locations_struct): New struct
23525 (deferred_locations): New type.
23526 (deferred_locations_list): New static var.
23527 (deffer_location): New function.
23528 (gen_variable_die): Use it.
23529 (decls_for_scope): Output info on local static vars.
23530 (dwarf2out_finish): Process deferred locations.
23531 * varpool.c (varpool_output_debug_info): Remove.
23533 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
23535 PR rtl-optimization/39241
23536 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
23537 to subreg_offset_representable_p.
23539 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
23541 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
23542 execute function prototype. Get f and nregs from max_reg_num
23543 and get_insns. Remove the first backward pass as it's dead,
23544 guard the forward pass by flag_expensive_optimizations.
23545 (rest_of_handle_regmove): Delete.
23546 (pass_regmove): Replace it with regmove_optimize.
23548 2009-02-25 Martin Jambor <mjambor@suse.cz>
23550 PR tree-optimization/39259
23551 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
23552 calls_alloca function flags.
23553 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
23554 calls are detected.
23556 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
23558 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
23559 flags_set_1_rtx, flags_set_1_set): Delete.
23560 (regmove_optimize): Do not call mark_flags_life_zones.
23562 2009-02-24 Julian Brown <julian@codesourcery.com>
23565 * config/arm/arm.c (require_pic_register): Only set
23566 cfun->machine->pic_reg once per function.
23568 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
23570 * doc/invoke.texi (Link Options): Document an easier way to pass
23571 options that take arguments to the GNU linker using -Xlinker and -Wl.
23573 2009-02-24 Steve Ellcey <sje@cup.hp.com>
23576 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
23578 2009-02-24 Richard Guenther <rguenther@suse.de>
23581 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
23583 2009-02-24 Richard Guenther <rguenther@suse.de>
23584 Zdenek Dvorak <ook@ucw.cz>
23586 PR tree-optimization/39233
23587 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
23588 from converting them to a generic type.
23590 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
23592 PR tree-optimization/39260
23593 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
23594 contains a condition with a real type.
23595 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
23597 2009-02-23 Jason Merrill <jason@redhat.com>
23600 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
23601 narrowing_initializer_constant_valid_p.
23602 (narrowing_initializer_constant_valid_p): Don't return
23603 null_pointer_node for adding a pointer to itself.
23605 2009-02-23 Jan Hubicka <jh@suse.cz>
23608 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
23611 2009-02-23 Jan Hubicka <jh@suse.cz>
23613 PR tree-optimization/37709
23614 * tree.c (block_ultimate_origin): Move here from dwarf2out.
23615 * tree.h (block_ultimate_origin): Declare.
23616 * dwarf2out.c (block_ultimate_origin): Move to tree.c
23617 * tree-ssa-live.c (remove_unused_scope_block_p):
23618 Eliminate blocks containig no instructions nor live variables nor
23620 (dump_scope_block): New function.
23621 (remove_unused_locals): Enable removal of dead blocks by default;
23622 enable dumping at TDF_DETAILS.
23624 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
23626 * config/i386/i386.c (classify_argument): Don't allow COImode
23628 (function_arg_advance_32): Don't allow OImode.
23629 (function_arg_32): Likewise.
23630 (function_value_32): Likewise.
23631 (return_in_memory_32): Likewise.
23632 (function_arg_64): Remove OImode comment.
23634 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
23637 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
23638 ix86_expand_vector_set for V4DImode in 64bit mode only.
23639 (ix86_expand_vector_init_one_var): Likewise.
23641 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
23643 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
23645 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
23648 * loop-iv.c: Revert last change.
23649 * emit-rtl.c: Likewise.
23651 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
23654 * config/i386/i386.c (type_natural_mode): Remove an extra
23655 space in the warning message.
23656 (function_value_32): Handle 32-byte vector modes.
23657 (return_in_memory_32): Likewise.
23659 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
23661 * loop-iv.c (truncate_value): New function.
23662 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
23664 (lowpart_subreg): Move to...
23665 * emit-rtl.c: ...here.
23667 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
23669 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
23670 accidental and undocumented change at revision 140860.
23672 2009-02-21 Joseph Myers <joseph@codesourcery.com>
23674 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
23675 take gimple_seq * arguments.
23676 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
23677 types_compatible_p langhook.
23679 2009-02-20 Mark Mitchell <mark@codesourcery.com>
23680 Joseph Myers <joseph@codesourcery.com>
23682 * config/arm/arm.c (arm_builtin_va_list): New function.
23683 (arm_expand_builtin_va_start): Likewise.
23684 (arm_gimplify_va_arg_expr): Likewise.
23685 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
23686 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
23687 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
23688 (va_list_type): New variable.
23689 (arm_mangle_type): Mangle va_list_type appropriately.
23691 2009-02-20 Jakub Jelinek <jakub@redhat.com>
23693 PR middle-end/39157
23694 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
23695 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
23696 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
23697 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
23698 parameter to 1000 for -O1 by default.
23699 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
23701 * loop-invariant.c: Include params.h.
23702 (move_loop_invariants): Don't call move_single_loop_invariants on
23705 2009-02-20 Jaka Mocnik <jaka@xlab.si>
23707 * calls.c (emit_library_call_value_1): Use slot_offset instead of
23708 offset when calculating bounds for indexing stack_usage_map. Fixes
23709 a buffer overflow with certain target setups.
23711 2009-02-20 Jakub Jelinek <jakub@redhat.com>
23714 * calls.c (expand_call): Clear try_tail_call if caller and callee
23715 disagree in promotion of function return value.
23717 2009-02-19 Jakub Jelinek <jakub@redhat.com>
23720 * c-common.c (c_determine_visibility): If visibility changed and
23721 DECL_RTL has been already set, call make_decl_rtl to update symbol
23724 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
23727 * varasm.c (assemble_variable): Don't check DECL_NAME when
23728 globalizing a variable.
23730 2009-02-19 Joseph Myers <joseph@codesourcery.com>
23733 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
23734 expression before any __builtin_trap call.
23735 * c-typeck.c (build_function_call): Convert and check function
23736 arguments before generating a call to a trap. Evaluate the
23737 function arguments before the trap.
23739 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
23742 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
23743 (UNSPEC_FXAM_MEM): New unspec.
23744 (fxam<mode>2_i387_with_temp): New insn and split pattern.
23745 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
23746 memory using fxam<mode>2_i387_with_temp to remove excess precision.
23748 2009-02-19 Richard Guenther <rguenther@suse.de>
23750 PR tree-optimization/39207
23751 PR tree-optimization/39074
23752 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
23753 storedanything_tree): New.
23754 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
23755 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
23756 (build_succ_graph): Add edges from STOREDANYTHING to all
23758 (init_base_vars): Initialize STOREDANYTHING.
23759 (compute_points_to_sets): Free substitution info after
23760 building the succ graph.
23761 (ipa_pta_execute): Likewise.
23763 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
23765 (do_ds_constraint): Do not add to special var or non-pointer
23767 (type_could_have_pointers): Split out from ...
23768 (could_have_pointers): ... here. For arrays use the element type.
23769 (create_variable_info_for): Initialize may_have_pointers.
23770 (new_var_info): Likewise.
23771 (handle_lhs_call): Make the HEAP variable unknown-sized.
23772 (intra_create_variable_infos): Use a type with pointers for
23773 PARM_NOALIAS, make it unknown-sized.
23775 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
23778 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
23780 2009-02-18 Jason Merrill <jason@redhat.com>
23783 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
23784 value if DECL_EXTERNAL.
23785 * tree-sra.c (sra_walk_gimple_assign): Likewise.
23786 * target.h (gcc_target::binds_local_p): Clarify "module".
23787 * tree.h (TREE_PUBLIC): Clarify "module".
23789 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
23792 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
23793 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
23795 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
23798 * c.opt (Wabi): Support C and ObjC.
23801 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
23803 * config/i386/i386.c (classify_argument): Warn once about the ABI
23804 change when passing union with long double.
23806 * doc/invoke.texi: Update -Wabi for warning psABI changes.
23808 2009-02-18 Joseph Myers <joseph@codesourcery.com>
23811 * c-parser.c (c_parser_compound_statement): Always enter and leave
23814 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23817 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
23819 2009-02-18 Jakub Jelinek <jakub@redhat.com>
23821 PR tree-optimization/36922
23822 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
23823 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
23826 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
23828 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
23831 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
23833 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
23835 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
23837 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
23840 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
23841 Richard Sandiford <rdsandiford@googlemail.com>
23843 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
23844 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
23845 (loongson_biadd): ...this.
23847 2009-02-17 Richard Guenther <rguenther@suse.de>
23849 PR tree-optimization/39202
23850 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
23851 a var make sure to follow existing collapses.
23853 2009-02-17 Richard Guenther <rguenther@suse.de>
23855 PR middle-end/39214
23856 * langhooks.c (lhd_print_error_function): Check for NULL block.
23858 2009-02-17 Richard Guenther <rguenther@suse.de>
23860 PR tree-optimization/39204
23861 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
23864 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
23866 * config/soft-fp/double.h: Update from glibc CVS.
23868 2009-02-17 Richard Guenther <rguenther@suse.de>
23870 PR tree-optimization/39207
23871 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
23872 strict-aliasing warnings for pointers pointing to NULL.
23874 2009-02-16 Joseph Myers <joseph@codesourcery.com>
23877 * c-parser.c (c_parser_braced_init): Call pop_init_level when
23878 skipping until next close brace.
23880 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
23883 * config/i386/i386.c (ix86_expand_push): Set memory alignment
23884 to function argument boundary.
23886 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
23888 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
23889 in the lea_add. Reload eventually constraints it properly.
23890 * config/picochip/constraints.md: Remove the target constraint
23891 "b", since it is not needed anymore.
23893 2009-02-16 Jakub Jelinek <jakub@redhat.com>
23895 * gthr-dce.h: Uglify function parameter and local variable names.
23896 * gthr-gnat.h: Likewise.
23897 * gthr-mipssde.h: Likewise.
23898 * gthr-nks.h: Likewise.
23899 * gthr-posix95.h: Likewise.
23900 * gthr-posix.h: Likewise.
23901 * gthr-rtems.h: Likewise.
23902 * gthr-single.h: Likewise.
23903 * gthr-solaris.h: Likewise.
23904 * gthr-tpf.h: Likewise.
23905 * gthr-vxworks.h: Likewise.
23906 * gthr-win32.h: Likewise.
23908 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
23911 * config/i386/i386.md: Restrict the new peephole2 to move
23912 between MMX/SSE registers.
23914 2009-02-15 Richard Guenther <rguenther@suse.de>
23917 2009-02-13 Richard Guenther <rguenther@suse.de>
23919 * configure.ac: Enable LFS.
23920 * configure: Re-generate.
23921 * config.in: Likewise.
23923 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23925 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
23926 spu_srqwbyte, spu_srqwbytebc): Define.
23927 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
23928 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
23929 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
23930 "shrqby_<mode>"): New insn-and-split patterns.
23931 * config/spu/spu.c (expand_builtin_args): Determine and return
23932 number of operands using spu_builtin_description data.
23933 (spu_expand_builtin_1): Use it.
23935 2009-02-13 Steve Ellcey <sje@cup.hp.com>
23938 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
23941 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
23944 * config/i386/i386.c (override_options): Correct warning
23945 messages for -malign-loops, -malign-jumps and -malign-functions.
23947 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
23950 * config/i386/i386.md: Restrict the new peephole2 to move
23951 between the general purpose registers.
23953 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
23956 * config/i386/i386.c (type_natural_mode): Add a new argument.
23957 Return the original mode and warn ABI change if vector size is 32byte.
23958 (function_arg_advance): Updated.
23959 (function_arg): Likewise.
23960 (ix86_function_value): Likewise.
23961 (ix86_return_in_memory): Likewise.
23962 (ix86_sol10_return_in_memory): Likewise.
23963 (ix86_gimplify_va_arg): Likewise.
23964 (function_arg_32): Don't warn ABX ABI change here.
23965 (function_arg_64): Likewise.
23967 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
23969 * loop-iv.c (implies_p): In the final case, test that operands 0
23970 of the two comparisons match.
23972 * config/bfin/bfin.c (find_prev_insn_start): New function.
23973 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
23974 (find_next_insn_start): Move.
23976 2009-02-13 Richard Guenther <rguenther@suse.de>
23978 * configure.ac: Enable LFS.
23979 * configure: Re-generate.
23980 * config.in: Likewise.
23982 2009-02-13 Joseph Myers <joseph@codesourcery.com>
23985 * c-parser.c (c_parser_parms_list_declarator): Discard pending
23986 sizes on syntax error after some arguments have been parsed.
23988 2009-02-12 Jakub Jelinek <jakub@redhat.com>
23990 * doc/invoke.texi (-fira): Remove.
23992 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
23994 * caller-save.c: Replace regclass.c with reginfo.c in comments.
23995 * recog.c: Likewise.
23998 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
24000 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
24001 (umul_ppmm): Likewise.
24002 (count_leading_zeros): Likewise.
24003 (count_trailing_zeros): Likewise.
24004 (UMUL_TIME): Likewise.
24006 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
24008 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
24009 soft-fp/t-softfp to tmake_file.
24011 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
24012 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
24013 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
24014 IA64_BUILTIN_INFQ]: New.
24015 (ia64_init_builtins): Initialize __builtin_infq,
24016 __builtin_fabsq and __builtin_copysignq if not HPUX.
24017 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
24018 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
24020 * config/ia64/lib1funcs.asm (__divtf3): Define only if
24022 (__fixtfti): Likewise.
24023 (__fixunstfti): Likewise.
24024 (__floattitf): Likewise.
24026 * config/ia64/libgcc-glibc.ver: New.
24027 * config/ia64/t-fprules-softfp: Likewise.
24028 * config/ia64/sfp-machine.h: Likewise.
24030 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
24031 (LIBGCC2_TF_CEXT): Likewise.
24032 (TF_SIZE): Likewise.
24033 (TARGET_INIT_LIBFUNCS): Likewise.
24035 * config/ia64/t-glibc (SHLINB_MAPFILES):
24036 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
24038 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
24040 * config/i386/i386.c (construct_container): Rewrite processing
24041 BLKmode with X86_64_SSE_CLASS.
24043 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
24046 * config/i386/i386.md: Replace simplify_replace_rtx with
24047 replace_rtx in the new peephole2.
24049 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
24051 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
24052 loop unrolling do not happen at -O2.
24054 2009-02-12 Michael Matz <matz@suse.de>
24056 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
24058 2009-02-12 Jakub Jelinek <jakub@redhat.com>
24060 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
24063 2009-02-12 Ben Elliston <bje@au.ibm.com>
24065 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
24066 patterns when updating the back chain. Missed in the 2009-02-10
24069 2009-02-11 Janis Johnson <janis187@us.ibm.com>
24071 * doc/extend.texi (Decimal Floating Types): Update identifier of
24072 draft TR and list of missing support.
24074 2009-02-11 Jakub Jelinek <jakub@redhat.com>
24076 PR middle-end/39154
24077 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
24078 bit to variable length decl's flags, add it also to its
24079 pointer replacement variable.
24081 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
24082 Jakub Jelinek <jakub@redhat.com>
24085 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
24086 (memory_blockage): New expander.
24087 (*memory_blockage): New insn pattern.
24088 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
24089 instead of general blockage at the end of function prologue when
24090 frame pointer is used to access red zone area. Do not emit blockage
24091 when profiling, it is emitted in generic code.
24092 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
24093 function epilogue when frame pointer is used to access red zone area.
24095 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
24098 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
24099 by arithmetic with memory operands.
24100 * config/i386/predicates.md (commutative_operator): New.
24102 2009-02-10 Janis Johnson <janis187@us.ibm.com>
24104 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
24107 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
24109 * alias.h (record_alias_subset): Declare.
24110 * alias.c (record_alias_subset): Make global.
24112 2009-02-10 Nick Clifton <nickc@redhat.com>
24114 * tree-parloops.c: Change license to GPLv3.
24115 * ipa-struct-reorg.c: Change license to GPLv3.
24116 * ipa-struct-reorg.h: Change license to GPLv3.
24118 2009-02-10 Steve Ellcey <sje@cup.hp.com>
24121 * c-decl.c (start_struct): Return NULL on error.
24123 2009-02-10 Jakub Jelinek <jakub@redhat.com>
24125 PR middle-end/39124
24126 * cfgloopmanip.c (remove_path): Call remove_bbs after
24127 cancel_loop_tree, not before it.
24130 * function.h (struct function): Add has_local_explicit_reg_vars bit.
24131 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
24132 VAR_DECLs were seen.
24133 * tree-ssa-live.c (remove_unused_locals): Recompute
24134 cfun->has_local_explicit_reg_vars.
24135 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
24136 copies or clearings if cfun->has_local_explicit_reg_vars.
24138 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
24141 * config/i386/i386.c (expand_prologue): Emit blockage at the end
24142 of function prologue when frame pointer is used to access
24145 2009-02-10 Richard Guenther <rguenther@suse.de>
24147 PR middle-end/39127
24148 * gimplify.c (gimple_regimplify_operands): Always look if
24149 we need to create a temporary.
24151 2009-02-10 Richard Guenther <rguenther@suse.de>
24153 PR tree-optimization/39132
24154 * tree-loop-distribution.c (todo): New global var.
24155 (generate_memset_zero): Trigger TODO_rebuild_alias.
24156 (tree_loop_distribution): Return todo.
24158 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
24161 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
24162 (x86_64_reg_class_name): Removed.
24163 (classify_argument): Return 0 if bytes > 32. Return 0 if the
24164 first one isn't X86_64_SSE_CLASS or any other ones aren't
24165 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
24166 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
24167 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
24168 and 3 X86_64_SSEUP_CLASS.
24169 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
24170 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
24172 2009-02-10 Ben Elliston <bje@au.ibm.com>
24174 * config/rs6000/rs6000.md (allocate_stack): Always use an update
24175 form instruction to update the stack back chain word, even if the
24176 user has disabled the generation of update instructions.
24177 (movdi_<mode>_update_stack): New.
24178 (movsi_update_stack): Likewise.
24179 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
24180 always use an update form instruction to update the stack back
24183 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
24185 PR middle-end/38953
24186 * graphite.c (if_region_set_false_region): After moving a region in
24187 the false branch of a condition, remove the empty dummy basic block.
24188 (gloog): Remove wrong fix for PR38953.
24190 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24192 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
24193 generation due to implicit sign extension.
24195 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
24197 PR middle-end/38981
24198 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
24199 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
24201 2009-02-09 Richard Guenther <rguenther@suse.de>
24203 PR middle-end/35202
24204 * convert.c (convert_to_real): Disable (float)fn((double)x)
24205 to fnf(x) conversion if errno differences may occur and
24206 -fmath-errno is set.
24208 2009-02-07 Anatoly Sokolov <aesok@post.ru>
24210 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
24211 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
24212 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
24214 2009-02-06 Joseph Myers <joseph@codesourcery.com>
24217 * c-common.c (handle_alias_attribute): Disallow attribute for
24218 anything not a FUNCTION_DECL or VAR_DECL.
24220 2009-02-06 Janis Johnson <janis187@us.ibm.com>
24223 * real.c (do_compare): Special-case compare of zero against
24224 decimal float value.
24226 2009-02-06 Joseph Myers <joseph@codesourcery.com>
24229 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
24230 as indicating flexible array members unless the field itself is
24231 being declarared as the incomplete array.
24233 2009-02-06 Jan Hubicka <jh@suse.cz>
24235 PR tree-optimization/38844
24236 * ipa-inline.c (try_inline): Stop inlining recursion when edge
24237 is already inlined.
24239 2009-02-06 Richard Guenther <rguenther@suse.de>
24241 PR middle-end/38977
24242 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
24243 fork because we may expand it as __gcov_fork.
24245 2009-02-06 Nick Clifton <nickc@redhat.com>
24247 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
24249 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
24251 PR tree-optimization/35659
24252 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
24253 vn_phi_eq): Shortcut if hashcode does not match.
24254 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
24256 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
24257 and avoid iterative_hash_expr.
24258 (FOR_EACH_VALUE_ID_IN_SET): New.
24259 (value_id_compare): Remove.
24260 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
24261 sort expressions by value id.
24263 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
24266 * config/sh/predicates.md (general_movsrc_operand): Don't check
24267 the subreg of system registers here.
24269 2009-02-05 Jakub Jelinek <jakub@redhat.com>
24272 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
24273 on the copied decl.
24275 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
24277 PR rtl-optimization/39110
24278 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
24279 addresses, not aligned ones.
24281 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
24282 Richard Guenther <rguenther@suse.de>
24284 PR tree-optimization/39100
24285 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
24286 comment says and add edges.
24288 2009-02-05 Joseph Myers <joseph@codesourcery.com>
24291 * c-common.c (handle_tls_model_attribute): Ignore attribute for
24292 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
24294 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
24296 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
24297 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
24298 register_bb_in_sese, new_sese, free_sese): Moved.
24299 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
24300 outermost_loop_in_scop, build_scop_iteration_domain,
24301 expand_scalar_variables_ssa_name, get_vdef_before_scop,
24302 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
24303 Use loop_in_sese_p instead of loop_in_scop_p.
24304 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
24305 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
24306 (scopdet_basic_block_info): Fix bug in scop detection.
24307 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
24308 eq_loop_to_cloog_loop): Remove.
24309 (nb_loops_around_loop_in_scop, nb_loop
24310 ref_nb_loops): Moved here...
24311 * graphite.h (ref_nb_loops): ... from here.
24312 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
24313 (loop_domain_dim, loop_iteration_vector_dim): Remove.
24314 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
24315 * testsuite/gcc.dg/graphite/scop-19.c: New
24317 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
24318 Hans-Peter Nilsson <hp@axis.com>
24320 PR rtl-optimization/37889
24321 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
24322 Move offset handling from PLUS to before the switch. Use new
24323 arguments when considering SYMBOL_REFs too.
24324 (rtx_addr_can_trap_p): Pass dummy offset and size.
24325 (enum may_trap_p_flags): Remove.
24326 (may_trap_p_1): Pass size from MEM_SIZE.
24328 PR rtl-optimization/38921
24329 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
24330 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
24331 * rtlanal.c (may_trap_after_code_motion_p): Delete.
24332 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
24334 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
24336 AVX Programming Reference (January, 2009)
24337 * config/i386/sse.md (*vpclmulqdq): New.
24339 2009-02-04 Jakub Jelinek <jakub@redhat.com>
24341 PR tree-optimization/38977
24342 PR gcov-profile/38292
24343 * calls.c (special_function_p): Disregard __builtin_ prefix.
24345 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
24347 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
24348 non-indexable addresses even before reload.
24350 2009-02-03 Joseph Myers <joseph@codesourcery.com>
24353 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
24354 as having variable size. Do not give an error for unnamed
24355 parameters with [*] declarators. Give a warning for type names
24356 with [*] declarators and mark them as variable size.
24357 * c-parser.c (c_parser_sizeof_expression): Do not give an error
24358 for sizeof applied to [*] type names.
24360 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
24363 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
24365 2009-02-03 Jakub Jelinek <jakub@redhat.com>
24367 * gcc.c (process_command): Update copyright notice dates.
24368 * gcov.c (print_version): Likewise.
24369 * gcov-dump.c (print_version): Likewise.
24370 * mips-tfile.c (main): Likewise.
24371 * mips-tdump.c (main): Likewise.
24373 2009-02-03 Joseph Myers <joseph@codesourcery.com>
24376 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
24377 for composite type involving a zero-length array type.
24379 2009-02-03 Jakub Jelinek <jakub@redhat.com>
24382 * function.c (match_asm_constraints_1): Skip over
24383 initial optional % in the constraint.
24385 PR inline-asm/39059
24386 * c-parser.c (c_parser_postfix_expression): If fixed point is not
24387 supported, don't accept FIXED_CSTs.
24388 * c-decl.c (finish_declspecs): Error if fixed point is not supported
24389 and _Sat is used without _Fract/_Accum. Set specs->type to
24390 integer_type_node for cts_fract/cts_accum if fixed point is not
24393 2009-02-02 Catherine Moore <clm@codesourcery.com>
24395 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
24397 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24399 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
24400 (ABI_HAS_64BIT_SYMBOLS): Use it.
24401 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
24403 2009-02-02 Paul Brook <paul@codesourcery.com>
24405 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
24407 2009-02-02 Jakub Jelinek <jakub@redhat.com>
24409 PR inline-asm/39058
24410 * recog.h (asm_operand_ok): Add constraints argument.
24411 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
24412 recurse on matching constraint.
24413 (check_asm_operands): Pass constraints as 3rd argument to
24414 asm_operand_ok. Don't look up matching constraint here.
24415 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
24418 2009-02-02 Ben Elliston <bje@au.ibm.com>
24420 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
24421 TARGET_NARROW_VOLATILE_BITFIELD macro names.
24423 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24425 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
24426 information. Remove some obsolete information. Reorganize.
24428 * config/pa/fptr.c: Revert license to GPL 2.
24429 * config/pa/milli64.S: Likewise.
24431 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
24434 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
24435 LIBRARY name in, instead of hard-coding it.
24436 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
24437 extra target make frag to tmake_files according to EH model.
24438 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
24439 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
24440 frags that define makefile variable EH_MODEL appropriately.
24441 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
24442 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
24443 to "-sjlj" according to type of EH configured.
24444 (LIBGCC_SONAME): Concatenate it to shared library base name.
24445 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
24446 to "_sjlj" according to type of EH configured.
24447 (LIBGCC_SONAME): Concatenate it to shared library base name.
24448 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
24449 (SHLIB_LINK): Add missing semicolon to if-else construct.
24450 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
24451 string value of "pe_dll" command-line option.
24452 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
24453 (SHLIB_SONAME): Use it when overriding t-cygming default.
24454 (SHLIB_IMPLIB): Override t-cygming default.
24455 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
24456 string value of "pe_dll" command-line option.
24458 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
24461 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
24462 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
24464 2009-01-31 Richard Guenther <rguenther@suse.de>
24466 PR tree-optimization/38937
24467 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
24468 computing the transitive closure.
24470 2009-01-30 Richard Guenther <rguenther@suse.de>
24472 PR tree-optimization/39041
24473 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
24474 Propagate variable indices only if the types match for this stmt.
24476 2009-01-30 Jakub Jelinek <jakub@redhat.com>
24479 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
24480 inline but never defined.
24482 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
24484 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
24485 (*insv_h_di_reg_extimm): New insn.
24486 (*insv_l<mode>_reg_extimm): New insn.
24488 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
24490 * config/picochip/picochip.c (flag_conserve_stack): set
24491 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
24492 fconserve-stack. Reduce call-overhead used by inliner.
24494 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
24497 * common.opt (flag_conserve_stack): Initialised to zero.
24499 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
24502 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
24503 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
24506 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
24508 * ira-color.c (allocno_reload_assign): Update comments.
24509 * regmove.c (regmove_optimize): Likewise.
24513 2009-01-29 Robert Millan <rmh@aybabtu.com>
24515 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
24516 * config/i386/kopensolaris-gnu.h: New file. Undefine
24517 `MD_UNWIND_SUPPORT'.
24518 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
24520 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
24522 PR tree-optimization/39007
24523 * tree-loop-distribution.c (generate_builtin): Use
24524 recompute_dominator to compute the immediate dominator of the
24525 basic block just after the loop.
24527 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24529 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
24530 (ASM_OUTPUT_DWARF_PCREL): Define.
24532 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
24534 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
24535 * doc/passes.texi: Remove entries about regclass, local-alloc, and
24536 global. Modify entries about regmove and IRA.
24538 * ra-conflict.c: Remove the file.
24540 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
24542 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
24543 (pass_regclass_init): Rename to pass_reginfo_init.
24545 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
24547 * toplev.h (flag_ira): Remove.
24549 * caller-save.c (setup_save_areas): Remove flag_ira.
24551 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
24553 * global.c: Remove the file.
24555 * opts.c (decode_options): Remove flag_ira.
24557 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
24559 * regmove.c: Modify file description.
24560 (find_use_as_address, try_auto_increment): Define them only if
24561 AUTO_INC_DEC is defined.
24562 (replacement_quality, replace_in_call_usage, fixup_match_1,
24563 stable_and_no_regs_but_for_p): Remove.
24564 (reg_set_in_bb): Make it static.
24565 (regmove_optimize): Remove flag_ira and code which worked for
24568 * local-alloc.c: Remove the file.
24570 * common.opt (fira): Remove.
24572 * ira.c: Include except.h.
24573 (eliminable_regset): Move from global.c.
24574 (mark_elimination): Ditto. Remove flag_ira.
24575 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
24576 equiv_mem_modified, validate_equiv_mem_from_store,
24577 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
24578 contains_replace_regs, memref_referenced_p, memref_used_between_p,
24579 no_equiv, recorded_label_ref): Move from local-alloc.c.
24580 (update_equiv_regs): Ditto. Make it static.
24581 (print_insn_chain, print_insn_chains): Move it from global.c.
24582 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
24583 (build_insn_chain): Ditto. Make it static.
24584 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
24585 Rename to init_live_subregs.
24586 (gate_ira): Remove flag_ira.
24588 * regclass.c: Rename reginfo.c. Change file description.
24589 (FORBIDDEN_INC_DEC_CLASSES): Remove.
24590 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
24591 (init_reg_sets_1): Remove code for evaluation of
24592 reg_class_superclasses and losing_caller_save_reg_set.
24593 (init_regs): Remove init_reg_autoinc.
24594 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
24595 ok_for_base_p_nonstrict): Remove.
24596 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
24597 (pass_regclass_init): Rename to pass_reginfo_init. Modify
24598 corresponding entries.
24599 (dump_regclass, record_operand_costs, scan_one_insn,
24600 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
24601 record_address_regs, auto_inc_dec_reg_p): Remove.
24602 (gt-regclass.h): Rename to gt-reginfo.h.
24604 * rtl.h (dump_global_regs, retry_global_alloc,
24605 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
24607 * Makefile.in (RA_H): Remove.
24608 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
24609 Rename regclass.o to reginfo.o.
24610 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
24612 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
24613 (GTFILES): Rename regclass.c to reginfo.c.
24615 * passes.c (init_optimization_passes): Remove pass_local_alloc and
24616 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
24618 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
24619 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
24621 (finish_spills): Ditto. Remove code for !flag_ira.
24623 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
24625 PR middle-end/35854
24626 * doc/invoke.texi (rtl debug options): Complete rewrite.
24627 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
24629 * mode-switching.c (pass_mode_switching): Rename pass from
24630 "mode-sw" to "mode_sw".
24631 * except.c (pass_convert_to_eh_ranges): Rename pass from
24632 "eh-ranges" to "eh_ranges".
24633 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
24637 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
24638 Alexander Monakov <amonakov@ispras.ru>
24640 PR middle-end/38857
24641 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
24643 (move_exprs_to_boundary): Change return type and pass through
24644 should_move from move_op. Relax assert. Update usage ...
24645 (schedule_expr_on_boundary): ... here. Use should_move instead of
24647 (move_op_orig_expr_found): Indicate that insn was disconnected from
24649 (code_motion_process_successors): Do not call after_merge_succs
24650 callback if original expression was not found when traversing any of
24652 (code_motion_path_driver): Change return type. Update prototype.
24653 (move_op): Update comment. Add a new parameter (should_move). Update
24654 prototype. Set *should_move based on indication provided by
24655 move_op_orig_expr_found.
24657 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
24659 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
24660 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
24661 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
24662 * config/rs6000/rs6000.c (rs6000_override_options): Default
24663 avoid-indexed-addresses on for Power6, off for everything else.
24664 (avoiding_indexed_address_p): New function.
24665 (rs6000_legitimize_address): Use it.
24666 (rs6000_legitimate_address): Likewise.
24667 * config/rs6000/rs6000.md (movXX_updateX): Likewise
24669 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
24671 PR tree-optimization/38997
24672 * tree-loop-distribution.c (generate_memset_zero): Use
24673 POINTER_PLUS_EXPR for a pointer addition.
24675 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
24677 * config/s390/s390.md (bswap<mode>2): New pattern added.
24679 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
24681 * config/s390/s390.md (*tls_load_31): Added type attribute.
24683 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
24685 * config/s390/s390.md: Fix a few comments.
24687 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
24689 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
24690 (*tm<mode>_full): Fixed z10prop attribute.
24691 (*tst<mode>_extimm): Fixed z10prop attribute.
24692 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
24693 (*tstqiCCT_cconly): Fixed z10prop attribute.
24694 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
24695 (*movsi_larl): Fixed z10prop attribute.
24696 (*movsi_zarch): Fixed z10prop attribute.
24697 (*movsi_eas): Fixed z10prop attribute.
24698 (*movhi): Fixed z10prop attribute.
24699 (*movqi): Fixed z10prop attribute.
24700 (*movstrictqi): Fixed z10prop attribute.
24701 (*mov<mode>): Fixed z10prop attribute.
24702 (*movcc): Fixed z10prop attribute.
24703 (*sethighpartdi_64): Fixed z10prop attribute.
24704 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
24705 (*negdi2_sign_cc): Fixed z10prop attribute.
24706 (*negdi2_sign): Fixed z10prop attribute.
24707 (*absdi2_sign_cc): Fixed z10prop attribute.
24708 (*absdi2_sign): Fixed z10prop attribute.
24709 (*negabsdi2_sign_cc): Fixed z10prop attribute.
24710 (*negabsdi2_sign): Fixed z10prop attribute.
24711 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
24712 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
24713 (doloop_si64): Fixed z10prop attribute.
24714 (doloop_si31): Fixed z10prop attribute.
24715 (doloop_long): Fixed z10prop attribute.
24716 (indirect_jump): Fixed z10prop attribute.
24717 (nop): Fixed z10prop attribute.
24718 (main_base_64): Fixed z10prop attribute.
24719 (reload_base_64): Fixed z10prop attribute.
24721 2009-01-28 Jakub Jelinek <jakub@redhat.com>
24723 PR rtl-optimization/38740
24724 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
24726 * config/mips/mips.c (mips_reorg): Likewise.
24728 2009-01-28 Richard Guenther <rguenther@suse.de>
24730 PR tree-optimization/38926
24731 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
24732 with the correct value id to a value.
24733 (do_regular_insertion): Use the value number of edoubleprime
24734 for the value number of the expr.
24737 2008-08-21 Richard Guenther <rguenther@suse.de>
24739 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
24740 a PHI ask VN if it is already available.
24741 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
24742 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
24744 2009-01-28 Jakub Jelinek <jakub@redhat.com>
24746 PR middle-end/38934
24747 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
24748 set to varying whenever max has TREE_OVERFLOW set, similarly
24749 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
24751 2009-01-28 Richard Guenther <rguenther@suse.de>
24753 PR middle-end/38908
24754 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
24755 uninitialized aggregate uses in call arguments.
24757 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
24759 PR tree-optimization/38984
24760 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
24761 the nothing_id variable if -fno-delete-null-pointer-checks.
24763 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
24766 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
24767 (set_got_offset_rex64): Ditto.
24769 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
24772 * doc/extend.texi: Improve local variable with asm reg.
24774 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
24776 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
24777 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
24778 was not supplied then set warn_packed_bitfield_compat to the
24779 default value of 1.
24780 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
24783 2009-01-27 Richard Guenther <rguenther@suse.de>
24785 PR tree-optimization/38503
24786 * cfgexpand.c (expand_gimple_basic_block): Ignore
24787 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
24788 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
24789 variables that cannot have TBAA applied.
24790 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
24793 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
24795 PR middle-end/38969
24796 * calls.c (initialize_argument_information): Do not wrap complex
24797 arguments in SAVE_EXPR.
24799 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
24801 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
24802 (INSTALL_LIBGCC): Revert typo commit.
24804 2009-01-26 Richard Guenther <rguenther@suse.de>
24806 PR tree-optimization/38745
24807 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
24808 from special handling.
24810 2009-01-26 Richard Guenther <rguenther@suse.de>
24812 PR tree-optimization/38745
24813 * tree-ssa.c (execute_update_addresses_taken): Do not include
24814 variables that cannot possibly be a register in not_reg_needs.
24815 Do not clear TREE_ADDRESSABLE on vars that may not become
24817 * tree-ssa.c (update_alias_info_1): Include those in the set
24818 of addressable vars.
24820 2009-01-26 Richard Guenther <rguenther@suse.de>
24822 PR middle-end/38851
24823 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
24824 * tree-ssa-dse.c: Include langhooks.h
24825 (execute_simple_dse): Remove stores with zero size.
24827 2009-01-24 Jakub Jelinek <jakub@redhat.com>
24830 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
24833 2009-01-24 Julian Brown <julian@codesourcery.com>
24835 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
24836 config/arm/linux-atomic.c.
24837 * config/arm/linux-atomic.c: New.
24839 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
24841 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
24842 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
24843 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
24845 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
24848 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
24851 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
24853 PR tree-optimization/38953
24854 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
24855 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
24856 (gloog): Split the exit of the scop when the scop exit is a loop exit.
24857 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
24860 2009-01-24 Paul Brook <paul@codesourcery.com>
24862 * config/arm/neon.md (neon_type): Move to arm.md.
24863 (neon_mov<VSTRUCT>): Add neon_type attribute.
24864 * config/arm/arm.md (neon_type): Move to here.
24865 (conds): Add "unconditioal" and use as default for NEON insns.
24867 2009-01-24 Ben Elliston <bje@au.ibm.com>
24869 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
24870 void *' warning from -Wc++-compat.
24871 * Makefile.in (dominance.o-warn): Remove.
24873 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
24875 PR tree-optimization/38932
24876 * fold-const.c (fold_unary_ignore_overflow): New.
24877 * tree.h (fold_unary_ignore_overflow): Declare.
24878 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
24879 * tree-ssa-sccvn.c (visit_reference_op_load,
24880 simplify_unary_expression): Likewise.
24882 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
24884 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
24885 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
24886 regardless of their type.
24887 * c-common.c (handle_packed_attribute): Don't ignore packed on
24889 * c.opt (Wpacked-bitfield-compat): New warning option.
24890 * stor-layout.c (place_field): Warn if offset of a field changed.
24891 * doc/extend.texi (packed): Mention the ABI change.
24892 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
24893 (Warning Options): Add it to the list.
24895 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
24897 * c-opts.c (c_common_post_options): Fix a typo in comments.
24899 2009-01-22 Steve Ellcey <sje@cup.hp.com>
24901 PR middle-end/38615
24902 * gimplify.c (gimplify_init_constructor): Fix promotion of const
24903 variables to static.
24904 * doc/invoke.texi (-fmerge-all-constants): Update description.
24906 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
24909 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
24910 (*movdi_1_rex64): Use type "mmx" for alternative 5.
24912 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
24914 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
24916 (LOCAL_ALIGNMENT): Similarly.
24918 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
24919 Joseph Myers <joseph@codesourcery.com>
24921 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
24922 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
24923 * config/arm/arm-tune.md: Regenerate.
24924 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
24927 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
24929 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
24930 version number to five.
24932 2009-01-22 Dodji Seketeli <dodji@redhat.com>
24935 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
24936 * c-common.c (set_underlying_type): Likewise.
24937 (is_typedef_decl ): Likewise
24939 (set_underlying_type): Likewise.
24940 (is_typedef_type): Likewise.
24942 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
24944 PR middle-end/38587
24945 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
24948 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
24951 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
24952 (LIBGCC_SPEC): Don't define.
24953 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
24955 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
24957 PR rtl-optimization/38879
24958 * alias.c (base_alias_check): Unaligned access via AND address can
24959 alias all surrounding object types except those with sizes equal
24960 or wider than the size of unaligned access.
24962 2009-01-21 Dodji Seketeli <dodji@redhat.com>
24965 * c-decl.c (clone_underlying_type): Move this ...
24966 * c-common.c (set_underlying_type): ... here.
24967 Also, make sure the function properly sets TYPE_STUB_DECL() on
24968 the newly created typedef variant type.
24969 (is_typedef_decl ): New entry point.
24970 * tree.h: Added a new member member_types_needing_access_check to
24971 struct tree_decl_non_common.
24972 (set_underlying_type): New entry point.
24973 (is_typedef_type): Likewise.
24975 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
24977 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
24978 Check whether two instructions have memory references that
24979 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
24980 are helper functions for traversing.
24981 * alias.h (insn_alias_sets_confilict_p): New prototypes.
24982 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
24983 not to draw dependency edge for instructions with non-conflicting
24986 2009-01-20 Joseph Myers <joseph@codesourcery.com>
24989 * longlong.h: Update copyright years. Use soft-fp license notice.
24990 Sync __clz_tab declaration with glibc.
24992 2009-01-20 Steve Ellcey <sje@cup.hp.com>
24995 * doc/extend.texi (syscall_linkage): New.
24996 (version_id): Modify.
24998 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
24999 Richard Guenther <rguenther@suse.de>
25001 PR tree-optimization/38747
25002 PR tree-optimization/38748
25003 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
25004 conversion if the base address is an indirect reference and the
25005 aliasing sets could cause issues.
25007 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
25009 * common.opt (fgraphite, fgraphite-identity): Add comment for
25010 explaining why these options are not documented.
25012 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
25014 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
25015 gimple_call_lhs is NULL.
25017 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
25020 * emit-rtl.c (adjust_address_1): Make sure memref is never
25023 2009-01-20 Ben Elliston <bje@au.ibm.com>
25025 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
25026 const qualifier from arg parameter. Remove unnecessary cast to char *.
25027 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
25028 const qualifier from arg 2.
25030 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
25032 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
25034 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
25037 * rtl.h (reinit_regs): New prototype.
25038 * regclass.c: Include ira.h.
25039 (reinit_regs): New.
25040 * Makefile.in (regclass.o): Add ira.h.
25041 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
25043 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
25046 * c-common.c (handle_aligned_attribute): Use
25047 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
25048 default alignment value.
25050 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
25052 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
25053 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
25055 * doc/extend.texi: Update __attribute__ ((aligned)). Document
25056 __BIGGEST_ALIGNMENT__.
25058 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
25060 2009-01-18 Richard Guenther <rguenther@suse.de>
25062 PR tree-optimization/38819
25063 * tree-flow.h (operation_could_trap_helper_p): Declare.
25064 * tree-eh.c (operation_could_trap_helper_p): Export.
25065 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
25066 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
25067 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
25068 are about to insert a possibly trapping instruction and fail
25071 2009-01-18 Andreas Schwab <schwab@suse.de>
25073 * doc/install.texi (Configuration): Remove obsolete paragraph
25074 about use of --with-gnu-ld with --with-gnu-as.
25076 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
25078 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
25079 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
25080 Follow spelling conventions.
25082 2009-01-18 Ben Elliston <bje@au.ibm.com>
25084 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
25085 C++ warning about implicit conversion from void * to struct
25087 (bitmap_obstack_free): Likewise for bitmap_element *.
25088 * Makefile.in (bitmap.o-warn): Remove.
25090 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
25092 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
25094 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
25095 Tobias Grosser <tobi.grosser@amd.com>
25097 * graphite.c (graphite_trans_scop_block): Do not block single
25100 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
25102 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
25103 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
25104 test with assertion.
25106 2009-01-16 Richard Guenther <rguenther@suse.de>
25108 PR tree-optimization/38835
25109 PR middle-end/36227
25110 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
25111 and INT + PTR -> (INT)(PTR p+ INT) folding.
25112 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
25114 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
25117 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
25118 the subreg from a lowpart subreg if it is also casting the value.
25120 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
25121 Tobias Grosser <tobi.grosser@amd.com>
25123 * graphite.c (compare_prefix_loops): New.
25124 (build_scop_canonical_schedules): Rewritten.
25125 (graphite_transform_loops): Move build_scop_canonical_schedules
25126 after build_scop_iteration_domain.
25128 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
25129 Tobias Grosser <tobi.grosser@amd.com>
25131 * graphite.c (add_conditions_to_domain): Add the loops to
25132 the dimension of the iteration domain. Do copy the domain
25133 only when it exists.
25134 (build_scop_conditions_1): Do not call add_conditions_to_domain.
25135 (add_conditions_to_constraints): New.
25136 (can_generate_code_stmt, can_generate_code): Removed.
25137 (gloog): Do not call can_generate_code.
25138 (graphite_transform_loops): Call add_conditions_to_constraints
25139 after building the iteration domain.
25141 2009-01-16 Jakub Jelinek <jakub@redhat.com>
25143 PR tree-optimization/38789
25144 * tree-ssa-threadedge.c
25145 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
25146 __builtin_constant_p.
25148 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
25150 * dce.c (delete_unmarked_insns): Reversed the order that insns are
25151 examined before deleting them.
25153 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
25155 * function.c (aggregate_value_p): Correctly extract the function
25156 type from CALL_EXPR_FN lookup.
25158 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
25160 * config/picochip/picochip.c (picochip_override_options): Revert
25161 CFI asm flag disable commited previously.
25163 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
25164 Tobias Grosser <tobi.grosser@amd.com>
25165 Jan Sjodin <jan.sjodin@amd.com>
25167 * graphite.c (scan_tree_for_params): On substractions negate
25168 all the coefficients of the term.
25169 (clast_to_gcc_expression_red): New. Handle reduction expressions
25170 of more than two operands.
25171 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
25172 (get_vdef_before_scop): Handle also the case of default definitions.
25174 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
25176 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
25177 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
25178 Also use them when walking CALL_INSN_FUNCTION_USAGE.
25180 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
25181 Joey Ye <joey.ye@intel.com>
25183 PR middle-end/37843
25184 * cfgexpand.c (expand_stack_alignment): Don't update stack
25185 boundary nor check incoming stack boundary here.
25186 (gimple_expand_cfg): Update stack boundary and check incoming
25187 stack boundary here.
25189 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
25191 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
25193 2009-01-14 Jakub Jelinek <jakub@redhat.com>
25195 PR rtl-optimization/38245
25196 * calls.c (expand_call): Add stack arguments to
25197 CALL_INSN_FUNCTION_USAGE even for pure calls (when
25198 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
25199 in regs and partially in memory or BLKmode arguments.
25200 (emit_library_call_value_1): Add stack arguments to
25201 CALL_INSN_FUNCTION_USAGE even for pure calls (when
25202 ACCUMULATE_OUTGOING_ARGS).
25203 * dce.c: Include tm_p.h.
25204 (find_call_stack_args): New function.
25205 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
25207 (mark_insn): Call find_call_stack_args for CALL_Ps.
25208 (prescan_insns_for_dce): Walk insns backwards in bb rather than
25209 forwards. Allocate and free arg_stores bitmap if needed, pass it
25210 down to deletable_insn_p, don't mark stores set in arg_stores
25211 bitmap, clear the bitmap at the beginning of each bb.
25212 * Makefile.in (dce.o): Depend on $(TM_P_H).
25214 2009-01-14 Michael Meissner <gnu@the-meissners.org>
25217 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
25218 to make sure the insn is a conditional test (bug 22599). Reformat a
25221 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
25223 PR middle-end/38431
25224 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
25225 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
25226 (gloog): Do not call cleanup_tree_cfg.
25227 (graphite_transform_loops): Call cleanup_tree_cfg after all
25228 scops have been code generated.
25230 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
25231 * doc/gty.texi (Invoking the garbage collector): Added new node
25232 and section documenting ggc_collect.
25234 2009-01-14 Richard Guenther <rguenther@suse.de>
25236 PR tree-optimization/38826
25237 PR middle-end/38477
25238 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
25239 initialization notes only if we actually emitted a warning.
25240 (intra_create_variable_infos): Add constraints for a result decl
25241 that is passed by hidden reference.
25242 (build_pred_graph): Mark all related variables non-direct on
25245 2009-01-14 Nick Clifton <nickc@redhat.com>
25247 * ira-conflicts.c: Include addresses.h for the definition of
25249 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
25250 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
25252 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
25255 * Makefile.in (ira-lives.o): Add except.h.
25257 * ira-lives.c: Include except.h.
25258 (process_bb_node_lives): Process can_throw_internal.
25260 2009-01-13 Jakub Jelinek <jakub@redhat.com>
25262 PR rtl-optimization/38774
25263 * combine.c (simplify_set): When undoing cc_use change, don't do
25264 PUT_CODE on the newly created comparison, but instead put back the
25267 2009-01-13 Joseph Myers <joseph@codesourcery.com>
25269 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
25270 values. Remove duplicate arm8 entry.
25272 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
25274 PR tree-optimization/38786
25275 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
25276 the SSA_NAME case of expand_scalar_variables_expr.
25277 Set the type of an expression to the type of its assign statement.
25278 (expand_scalar_variables_expr): Also gather the scalar computation
25279 used to index the memory access. Do not pass loop_p.
25280 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
25281 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
25282 the gimple_stmt_iterator where it inserts new code.
25283 Do not pass loop_p.
25284 (copy_bb_and_scalar_dependences): Do not pass loop_p.
25285 (translate_clast): Update call to copy_bb_and_scalar_dependences.
25287 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
25289 * graphite.h (debug_value): Removed.
25290 * graphite.c (debug_value): Removed.
25292 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
25294 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
25295 ldrd/strd with two 32-bit instructions.
25297 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
25299 * config/arm/arm.c (struct processors): Pass for speed down into
25300 cost helper functions.
25301 (const_ok_for_op): Handle COMPARE and inequality nodes.
25302 (arm_rtx_costs_1): Rewrite.
25303 (arm_size_rtx_costs): Update prototype.
25304 (arm_rtx_costs): Pass speed down to helper functions.
25305 (arm_slowmul_rtx_costs): Rework cost calculations.
25306 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
25307 (arm_9e_rtx_costs): Likewise.
25309 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
25311 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
25312 relocations of local symbols wider than UNITS_PER_WORD are not valid.
25313 (alpha_legitimize_address): Do not split local symbols wider than
25314 UNITS_PER_WORD into HIGH/LO_SUM parts.
25316 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
25319 * gcc.c (process_command): Replace call to execvp with calls
25320 to pex_one and exit.
25322 2009-01-03 Anatoly Sokolov <aesok@post.ru>
25325 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
25326 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
25327 variant for devices with 3-byte PC.
25328 (__tablejump_elpm__): New.
25330 2009-01-12 Jakub Jelinek <jakub@redhat.com>
25333 * c-parser.c (c_parser_postfix_expression): Allow `->' in
25334 offsetof member-designator, handle it as `[0].'.
25336 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25338 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
25339 function when not using named sections on targets with named sections
25340 if branch distance is less than 262132.
25342 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
25344 * combine.c (combine_instructions): Recompute
25345 optimize_this_for_speed_p for each BB in the main combine loop.
25347 2009-01-12 Tomas Bily <tbily@suse.cz>
25350 * tree-loop-distribution.c (prop_phis): New function.
25351 (generate_builtin): Call prop_phis.
25352 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
25354 2009-01-12 Jakub Jelinek <jakub@redhat.com>
25356 PR tree-optimization/38807
25357 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
25358 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
25360 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
25362 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
25363 subreg of op0 to the original op0.
25365 2009-01-11 Laurent GUERBY <laurent@guerby.net>
25367 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
25369 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
25372 * mips-tfile.c (parse_def): Fix parsing of def strings
25373 starting with digits.
25375 2009-01-10 Jakub Jelinek <jakub@redhat.com>
25378 * config/arm/arm.c (arm_is_long_call_p): Don't call
25379 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
25381 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
25383 * regrename.c (regrename_optimize): Fix dumping.
25384 (find_oldest_value_reg): Preserve REG_POINTER.
25385 (copy_hardreg_forward_1): Likewise.
25387 2009-01-09 Diego Novillo <dnovillo@google.com>
25389 * gimple.h (struct gimple_statement_base) <uid>: Document
25390 the restrictions on its use.
25391 (gimple_uid): Tidy.
25392 (gimple_set_uid): Tidy.
25394 2009-01-09 Jakub Jelinek <jakub@redhat.com>
25396 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
25397 zero guard even if align_bytes != 0 and count is smaller than
25400 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
25402 PR rtl-optimization/38495
25403 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
25404 (add_range_and_copies_from_move_list): Print all added ranges.
25405 Add ranges to memory optimized destination.
25407 2009-01-09 Jakub Jelinek <jakub@redhat.com>
25411 * config/i386/i386.c (override_options): Reject
25412 -mstringop-strategy=rep_8byte with -m32.
25413 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
25414 to 1. Do count comparison against epilogue_size_needed at compile
25415 time even when count_exp was constant forced into register. For
25416 size_needed don't jump to epilogue, instead just avoid aligning
25417 and invoke the body algorithm. If need_zero_guard, add zero guard
25418 even if count is non-zero, but smaller than size_needed + number of
25419 bytes that could be stored for alignment.
25420 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
25421 to 1. If need_zero_guard, add zero guard even if count is non-zero,
25422 but smaller than size_needed + number of bytes that could be stored
25423 for alignment. Compare size_needed with epilogue_size_needed instead
25424 of desired_align - align, don't adjust size_needed, pass
25425 epilogue_size_needed to the epilogue expanders.
25428 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
25430 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25432 * pa.c (last_address): Change to unsigned.
25433 (update_total_code_bytes): Change argument to unsigned. Don't
25434 check if insn addresses are set.
25435 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
25436 addresses are not set.
25437 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
25439 2009-01-09 Nick Clifton <nickc@redhat.com>
25441 * config/sh/symbian.c: Replace uses of DECL_INLINE with
25442 DECL_DECLARED_INLINE_P.
25444 2009-01-09 Jakub Jelinek <jakub@redhat.com>
25446 PR middle-end/38347
25447 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
25448 GET_MODE (op0) in operand_subword_force calls.
25450 PR middle-end/38771
25451 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
25452 fold_convert arg0 operands to TREE_TYPE (op0) first.
25454 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
25456 * params.def (ira-max-conflict-table-size): Decrease default value
25459 2009-01-08 Jakub Jelinek <jakub@redhat.com>
25461 PR tree-optimization/37031
25462 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
25464 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
25465 allocate it using gc instead of heap, use VEC_quick_push instead of
25467 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
25468 instead of heap, use VEC_quick_push instead of VEC_safe_push.
25469 * tree-data-ref.h (struct access_matrix): Change matrix to gc
25470 allocated vector from heap allocated.
25471 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
25472 * tree-loop-linear.c (linear_transform_loops): Allocate nest
25473 vector only after perfect_loop_nest_depth call.
25475 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
25476 Jan Sjodin <jan.sjodin@amd.com>
25478 PR tree-optimization/38559
25479 * graphite.c (debug_value, copy_constraint,
25480 swap_constraint_variables, scale_constraint_variable, ): New.
25481 (get_lower_bound, get_upper_bound): Removed.
25482 (graphite_trans_bb_strip_mine): Clean up this code that works
25483 only for constant number of iterations. Fully copy upper and
25484 lower bound constraints, not only the constant part of them.
25485 * graphite.h (debug_value): Declared.
25487 2009-01-08 Ira Rosen <irar@il.ibm.com>
25489 PR tree-optimization/37194
25490 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
25491 Don't add the cost of cost model guard in prologue to scalar
25492 outside cost in case of known number of iterations.
25494 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
25495 Alan Modra <amodra@bigpond.net.au>
25497 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
25498 non-word-aligned REG+CONST addressing.
25500 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
25503 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
25504 free_after_compilation when outputting a thunk.
25505 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
25506 Do not call free_after_compilation here.
25508 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
25510 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
25511 (ix86_valid_target_attribute_inner_p): Ditto.
25513 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
25515 PR tree-optimization/38492
25516 PR tree-optimization/38498
25517 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
25518 * tree-chrec.h (scev_is_linear_expression): Declared.
25519 * graphite.c (graphite_cannot_represent_loop_niter): New.
25520 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
25521 (graphite_loop_normal_form): Use gcc_assert.
25522 (scan_tree_for_params): Use CASE_CONVERT.
25523 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
25524 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
25525 Use gcc_assert. Discard scops that contain unhandled cases.
25526 (build_scop_conditions): Return a boolean status for unhandled cases.
25527 (strip_mine_profitable_p): Print the loop number, not its depth.
25528 (is_interchange_valid): Pass the depth of the loop nest, don't
25529 recompute it wrongly.
25530 (graphite_trans_bb_block): Same.
25531 (graphite_trans_bb_block): Print tentative of loop blocking.
25532 (graphite_trans_scop_block): Do not print that the loop has been
25534 (graphite_transform_loops): Do not handle scops that contain condition
25537 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
25539 AVX Programming Reference (December, 2008)
25540 * config/i386/avxintrin.h (_mm256_stream_si256): New.
25541 (_mm256_stream_pd): Likewise.
25542 (_mm256_stream_ps): Likewise.
25544 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
25545 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
25546 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
25547 (bdesc_special_args): Add __builtin_ia32_movntdq256,
25548 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
25549 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
25550 (ix86_expand_special_args_builtin): Likewise.
25552 * config/i386/sse.md (AVXMODEDI): New.
25553 (avx_movnt<mode>): Likewise.
25554 (avx_movnt<mode>): Likewise.
25555 (<sse>_movnt<mode>): Remove AVX support.
25556 (sse2_movntv2di): Likewise.
25558 2009-01-07 Richard Guenther <rguenther@suse.de>
25560 PR middle-end/38751
25561 * fold-const.c (extract_muldiv): Remove obsolete comment.
25562 (fold_plusminus_mult_expr): Undo MINUS_EXPR
25563 to PLUS_EXPR canonicalization for the canonicalization.
25565 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
25567 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
25568 hosted cross-compilers generating less efficient code.
25570 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
25572 * function.h (rtl_data): Add a dbr_scheduled_p field.
25573 * reorg.c (dbr_schedule): Set it.
25574 (gate_handle_delay_slots): Check it.
25575 * config/mips/mips.c (mips_base_delayed_branch): Delete.
25576 (mips_reorg): Check flag_delayed_branch instead of
25577 mips_base_delayed_branch.
25578 (mips_override_options): Don't set mips_base_delayed_branch
25579 or flag_delayed_branch.
25581 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
25583 PR rtl-optimization/38426.
25584 * ira.c (ira): Set current_function_is_leaf earlier.
25586 2009-01-06 Jakub Jelinek <jakub@redhat.com>
25588 PR rtl-optimization/38722
25589 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
25590 too early, only set a flag and modify after last possible
25593 2009-01-06 Janis Johnson <janis187@us.ibm.com>
25596 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
25597 * real.c (decimal_single_format): Correct values of emin and emax.
25598 (decimal_double_format): Ditto.
25599 (decimal_quad_format): Ditto.
25600 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
25601 computation of DECnn_MIN and DECnn_MAX for corrected values of
25602 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
25603 __DECnn_MIN__, and adjust its computation for the corrected value
25606 2009-01-06 Jan Hubicka <jh@suse.cz>
25609 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
25611 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
25613 * doc/contrib.texi (Contributors): Slightly adjust the end note.
25614 Add Robert Clark to the list of testers.
25616 2009-01-06 Jan Hubicka <jh@suse.cz>
25617 Kai Tietz <kai.tietz@onevision.com>
25619 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
25620 * config/i386/i386.c (ix86_expand_call): Add clobbers.
25622 2009-01-06 Jan Hubicka <jh@suse.cz>
25623 Kai Tietz <kai.tietz@onevision.com>
25625 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
25627 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
25628 (ix86_nsaved_regs): Count only general purpose regs.
25629 (ix86_nsaved_sseregs): New.
25630 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
25631 to 16 for w64; compute padding and size of sse reg save area.
25632 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
25633 general purpose regs.
25634 (ix86_emit_save_sse_regs_using_mov): New.
25635 (ix86_expand_prologue): Save SSE regs if needed.
25636 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
25637 (ix86_emit_restore_sse_regs_using_mov): New.
25638 (ix86_expand_epilogue): Save SSE regs if needed.
25640 2009-01-06 Jan Hubicka <jh@suse.cz>
25641 Kai Tietz <kai.tietz@onevision.com>
25643 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
25644 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
25645 functions when accumulate outgoing args is off.
25647 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
25650 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
25651 before using pseudos_have_intersected_live_ranges_p.
25653 * ira-int.h (ira_assert): Always define.
25655 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
25657 AVX Programming Reference (December, 2008)
25658 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
25659 (_mm256_permute2_pd): Likewise.
25660 (_mm_permute2_ps): Likewise.
25661 (_mm256_permute2_ps): Likewise.
25662 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
25663 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
25665 * config/i386/i386.c (ix86_builtins): Remove
25666 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
25667 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
25668 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
25669 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
25670 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
25671 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
25672 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
25673 __builtin_ia32_vpermil2ps256.
25674 (ix86_init_mmx_sse_builtins): Updated.
25675 (ix86_expand_args_builtin): Likewise.
25677 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25679 * pa.c (output_call): Relocate non-jump insns in the delay slot of
25680 long absolute calls when generating PA 2.0 code.
25682 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
25684 PR rtl-optimization/38583
25685 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
25687 * params.def (ira-max-conflict-table-size): New.
25689 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
25691 * ira.h (ira_conflicts_p): New external definition.
25693 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
25694 table. Report this. Return result of building.
25695 (ira_build_conflicts): Use ira_conflicts_p. Check result of
25696 building conflict table.
25698 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
25699 (ira_color): Use ira_conflicts_p.
25701 * global.c: Include ira.h.
25702 (pseudo_for_reload_consideration_p, build_insn_chain): Use
25705 * Makefile.in (global.o): Add ira.h.
25707 * ira-build.c (mark_all_loops_for_removal,
25708 propagate_some_info_from_allocno): New.
25709 (remove_unnecessary_allocnos): Call
25710 propagate_some_info_from_allocno.
25711 (remove_low_level_allocnos): New.
25712 (remove_unnecessary_regions): Add parameter. Call
25713 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
25714 parameter to remove_unnecessary_regions.
25715 (ira_build): Remove all regions but root if the conflict table was
25716 not built. Update conflict hard regs for allocnos crossing calls.
25718 * ira.c (ira_conflicts_p): New global.
25719 (ira): Define and use ira_conflicts_p.
25721 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
25722 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
25723 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
25725 2009-01-06 Ben Elliston <bje@au.ibm.com>
25727 * gengtype-lex.l (YY_NO_INPUT): Define.
25729 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
25732 * c-common.c (handle_vector_size_attribute): Also reject
25733 BOOLEAN_TYPE types.
25735 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
25737 PR tree-optimization/38492
25738 * graphite.c (rename_map_elt, debug_rename_elt,
25739 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
25740 rename_map_elt_info, eq_rename_map_elts,
25741 get_new_name_from_old_name, bb_in_sese_p): Moved around.
25742 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
25743 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
25744 (sese_build_livein_liveouts): New.
25745 (new_sese, free_sese): New.
25746 (new_scop): Call new_sese.
25747 (free_scop): Call free_sese.
25748 (rename_variables_from_edge, rename_phis_end_scop): Removed.
25749 (register_old_new_names): Renamed register_old_and_new_names.
25750 (register_scop_liveout_renames, add_loop_exit_phis,
25751 insert_loop_close_phis, struct igp,
25752 default_liveout_before_guard, add_guard_exit_phis,
25753 insert_guard_phis, copy_renames): New.
25754 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
25755 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
25756 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
25757 (scop_adjust_phis_for_liveouts): New.
25758 (gloog): Call scop_adjust_phis_for_liveouts.
25760 * graphite.h (struct sese): Documented. Added fields liveout,
25761 num_ver and livein.
25762 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
25763 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
25764 (struct scop): Added field liveout_renames.
25765 (SCOP_LIVEOUT_RENAMES): New.
25767 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
25769 PR tree-optimization/38510
25770 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
25771 (translate_clast): Call recompute_all_dominators before
25773 (gloog): Call recompute_all_dominators before graphite_verify.
25775 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
25776 Jan Sjodin <jan.sjodin@amd.com>
25778 PR tree-optimization/38500
25779 * graphite.c (create_sese_edges): Call fix_loop_structure after
25782 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
25784 * config.gcc: Add m32r*-*-rtems*.
25785 * config/m32r/rtems.h: New file.
25787 2009-01-05 Ben Elliston <bje@au.ibm.com>
25789 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
25790 (.po.pox): Likewise.
25791 (po/gcc.pot): Likewise.
25793 2009-01-04 David S. Miller <davem@davemloft.net>
25795 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
25796 (STARTING_FRAME_OFFSET): Always set to zero.
25798 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
25800 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
25801 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
25802 fixed-point types, and vectors of the same.
25804 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
25806 * config/mips/sync.md (*mb_barrier): Rename to...
25807 (*memory_barrier): ...this.
25809 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
25811 * doc/extend.texi (Function Attributes): Move @cindex after @item
25812 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
25813 and put in alphabetical order. Fix 'target' name and put in order.
25814 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
25817 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
25819 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
25820 (memory_barrier): Expand as unspec instead of unspec_volatile.
25821 Remove mem:BLK from insn operands. Use Pmode scratch register.
25822 (*memory_barrier): Define as unspec instead of unspec_volatile.
25823 Use (match_dup 0) as input operand.
25825 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
25826 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
25827 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
25828 scratch register. Remove operand 1.
25829 (*stbar): Define as unspec instead of unspec_volatile.
25830 Use (match_dup 0) as input operand, remove (const_int 8).
25831 (*membar): Define as unspec instead of unspec_volatile.
25832 Use (match_dup 0) as input operand, remove input operand 2.
25834 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
25835 (memory_barrier): Expand as unspec instead of unspec_volatile.
25836 Remove mem:BLK from insn operands. Use Pmode scratch register.
25837 (*memory_barrier): Define as unspec instead of unspec_volatile.
25838 Use (match_dup 0) as input operand.
25840 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
25841 Remove mem:BLK from insn operands. Use Pmode scratch register.
25842 Set volatile flag on operand 0.
25843 (*memory_barrier): New insn pattern.
25845 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
25847 (*memory_barrier): Use (match_dup 0) as input operand.
25849 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
25850 Remove mem:BLK from insn operands. Use Pmode scratch register.
25851 Set volatile flag on operand 0.
25852 (*mb_internal): New insn pattern.
25854 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
25856 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
25858 PR middle-end/38586
25859 * function.c (struct temp_slot): Move to the section of the file
25860 that deals with temp slots. Remove field 'address'.
25861 (temp_slot_address_table): New hash table of address -> temp slot.
25862 (struct temp_slot_address_entry): New struct, items for the table.
25863 (temp_slot_address_compute_hash, temp_slot_address_hash,
25864 temp_slot_address_eq, insert_temp_slot_address): Support functions
25866 (find_temp_slot_from_address): Rewrite to use the new hash table.
25867 (remove_unused_temp_slot_addresses): Remove addresses of temp
25868 slots that have been made available.
25869 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
25870 worker function for remove_unused_temp_slot_addresses.
25871 (assign_stack_temp_for_type): Don't clear the temp slot address list.
25872 Add the temp slot address to the address -> temp slot map.
25873 (update_temp_slot_address): Update via insert_temp_slot_address.
25874 (free_temp_slots): Call remove_unused_temp_slot_addresses.
25875 (pop_temp_slots): Likewise.
25876 (init_temp_slots): Allocate the address -> temp slot map, or empty
25877 the map if it is already allocated.
25878 (prepare_function_start): Initialize temp slot processing.
25880 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
25882 PR middle-end/38584
25883 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
25884 Calculate the size of all stack vars assuming no packing of stack
25885 vars will happen, replacing a quadratic algorithm with a linear one.
25887 2009-01-03 Jakub Jelinek <jakub@redhat.com>
25890 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
25893 2009-01-03 Diego Novillo <dnovillo@google.com>
25895 * doc/contrib.texi: Update contributions.
25897 2009-01-03 Jakub Jelinek <jakub@redhat.com>
25900 * builtins.c (fold_builtin_memory_op): Give up if either operand
25901 is volatile. Set srctype or desttype to non-qualified version
25905 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
25906 and FUNCTION_DECLs.
25908 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
25910 PR rtl-optimization/35805
25911 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
25912 problem if fast dce is able to remove any instructions.
25913 * dce.c (dce_process_block): Fix dump message.
25915 2009-01-02 Mark Mitchell <mark@codesourcery.com>
25918 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
25920 2009-01-02 Jakub Jelinek <jakub@redhat.com>
25922 PR middle-end/38690
25923 * tree-flow.h (op_code_prio, op_prio): New prototypes.
25924 * tree-pretty-print.c (op_code_prio): New function.
25925 (op_prio): No longer static. Use op_code_prio.
25926 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
25927 Use op_prio and op_code_prio to determine if () should be
25928 printed around operand(s) or not.
25930 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
25931 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
25932 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
25933 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
25934 pp_character instead of pp_string for single letter printing.
25936 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
25938 * doc/extend.texi: Fix '#pragma GCC option' typo.
25940 2009-01-02 Richard Guenther <rguenther@suse.de>
25942 * doc/install.texi (--enable-checking): Mention different
25943 default for stage1.
25944 (--enable-stage1-checking): Document.
25946 2009-01-01 Andrew Pinski <pinskia@gmail.com>
25948 PR middle-end/30142
25949 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
25950 case to be an error.
25952 2009-01-02 Ben Elliston <bje@au.ibm.com>
25954 * config/fp-bit.h (pack_d): Constify argument.
25955 * config/fp-bit.c (makenan): Constify return type. Remove casts.
25956 (isnan): Constify argument.
25958 (iszero): Likewise.
25959 (pack_d): Likewise.
25960 (_fpadd_parts): Constify return type.
25961 (_fpmul_parts): Likewise.
25962 (_fpdiv_parts): Likewise.
25964 2009-01-01 Jakub Jelinek <jakub@redhat.com>
25967 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
25968 warn about overwriting initializer with side-effects or
25969 -Woverride-init if !IMPLICIT.
25970 (output_init_element): Likewise. Pass IMPLICIT down to
25972 (process_init_element): Add IMPLICIT argument. Pass it down
25973 to output_init_element.
25974 (push_init_element, pop_init_level, set_designator): Adjust
25975 process_init_element callers.
25976 (set_nonincremental_init, set_nonincremental_init_from_string):
25977 Adjust add_pending_init callers.
25978 (output_pending_init_elements): Adjust output_init_element callers.
25979 * c-tree.h (process_init_element): Adjust prototype.
25980 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
25981 process_init_element callers.
25984 Copyright (C) 2009 Free Software Foundation, Inc.
25986 Copying and distribution of this file, with or without modification,
25987 are permitted in any medium without royalty provided the copyright
25988 notice and this notice are preserved.