1 2011-06-07 Jason Merrill <jason@redhat.com>
3 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5 2011-06-07 Xinliang David Li <davidxl@google.com>
6 * passes.c (enable_disable_pass): Handle assembler name.
7 (is_pass_explicitly_enabled_or_disabled): Ditto.
9 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11 PR tree-optimization/48497
12 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
14 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16 PR tree-optimization/46728
17 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
18 to use gimple_val_nonnegative_real_p.
19 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
20 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
22 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
24 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
26 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
28 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
31 2011-06-07 Richard Guenther <rguenther@suse.de>
33 * stor-layout.c (initialize_sizetypes): Initialize all
34 sizetypes based on target definitions.
35 (set_sizetype): Remove.
36 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
37 * tree.h (set_sizetype): Remove.
39 2011-06-07 Nick Clifton <nickc@redhat.com>
41 * config.gcc: Unify V850 architecture options and add support for
42 newer V850 architectures.
43 * config/v850/t-v850e: Delete.
45 2011-06-07 Richard Guenther <rguenther@suse.de>
47 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
48 Call set_sizetype from here.
50 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
52 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
53 (*maddhisi4tb, *maddhisi4tt): New define_insns.
55 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
56 Andrew Stubbs <ams@codesourcery.com>
58 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
60 * doc/md.texi (Canonicalization of Instructions): Document widening
61 multiply canonicalization.
63 2011-06-07 Jakub Jelinek <jakub@redhat.com>
66 * value-prof.c (gimple_ic): Don't assume icall has
69 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
71 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
73 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
74 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
75 vect_recog_pow_pattern): Likewise.
76 (vect_pattern_recog_1): Remove declaration.
77 (widened_name_p): Remove declaration. Add new argument to specify
78 whether to check that both types are either signed or unsigned.
79 (vect_recog_widen_mult_pattern): Update documentation. Handle
80 unsigned patterns and multiplication by constants.
81 (vect_pattern_recog_1): Update vect_recog_func references. Use
82 statement information from the statement returned from pattern
84 (vect_pattern_recog): Update vect_recog_func reference.
85 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
86 multiplication by a constant use the type of the other operand.
88 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
90 PR rtl-optimization/49145
91 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
93 2011-06-06 Jakub Jelinek <jakub@redhat.com>
96 * dwarf2out.c (native_encode_initializer): Decrement count in each
100 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
104 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
105 if stmt folded into nothing.
106 * tree-inline.c (fold_marked_statements): If a builtin at the
107 end of a bb folded into nothing, just update cgraph edges
109 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
110 to be NULL. Don't compute count and frequency if new_call is NULL.
112 2011-06-04 Diego Novillo <dnovillo@google.com>
114 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
115 (cgraph.o): Likewise.
116 (cgraphunit.o): Likewise.
117 * cgraphunit.c: Include lto-streamer.h
118 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
120 * lto-streamer-in.c (unpack_value_fields): Call
121 streamer_hooks.unpack_value_fields if set.
122 (lto_materialize_tree): For unhandled nodes, first try to
123 call lto_streamer_hooks.alloc_tree, if it exists.
124 (lto_input_ts_decl_common_tree_pointers): Move reading of
125 DECL_INITIAL to lto_streamer_read_tree.
126 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
127 (lto_streamer_read_tree): New.
128 (lto_reader_init): Rename from lto_init_reader.
129 Move initialization code to lto/lto.c.
130 * lto-streamer-out.c (pack_value_fields): Call
131 streamer_hooks.pack_value_fields if set.
132 (lto_output_tree_ref): For tree nodes that are not
133 normally indexable, call streamer_hooks.indexable_with_decls_p
135 (lto_output_ts_decl_common_tree_pointers): Move handling
136 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
137 lto_streamer_write_tree.
138 (lto_output_tree_header): Call streamer_hooks.is_streamable
139 instead of lto_is_streamable.
140 Call lto_streamer_hooks.output_tree_header if set.
141 (lto_write_tree): Call lto_streamer_hooks.write_tree if
143 (lto_streamer_write_tree): New.
144 (lto_output): Call lto_streamer_init directly.
145 (lto_writer_init): Remove.
146 * lto-streamer.c (streamer_hooks): New.
147 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
148 instead of lto_preload_common_nodes.
149 (lto_is_streamable): Move from lto-streamer.h
150 (lto_streamer_hooks_init): New.
151 (streamer_hooks): New.
152 (streamer_hooks_init): New.
153 * lto-streamer.h (struct output_block): Forward declare.
154 (struct lto_input_block): Likewise.
155 (struct data_in): Likewise.
156 (struct bitpack_d): Likewise.
157 (struct streamer_hooks): Declare.
158 (streamer_hooks): Declare.
159 (lto_streamer_hooks_init): Declare.
160 (lto_streamer_write_tree): Declare.
161 (lto_streamer_read_tree): Declare.
162 (streamer_hooks_init): Declare.
163 (lto_is_streamable): Move to lto-streamer.c
165 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
167 * longlong.h (smul_ppmm): The resulting register pair contains the
168 higher order word first.
170 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
172 PR tree-optimization/46728
173 * builtins.c (powi_table): Remove.
174 (powi_lookup_cost): Remove.
176 (expand_powi_1): Remove.
177 (expand_powi): Remove.
178 (expand_builtin_pow_root): Remove.
179 (expand_builtin_pow): Remove.
180 (expand_builtin_powi): Eliminate handling of constant exponent.
181 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
183 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
185 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
187 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
189 * dce.c (reset_unmarked_insns_debug_uses): New.
190 (delete_unmarked_insns): Skip debug insns.
191 (prescan_insns_for_dce): Likewise.
192 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
193 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
194 active reg can be found.
195 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
196 (convert_regs_1): Use it.
198 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
200 * tree-pretty-print.c (dump_function_header): Add flags.
201 Don't dump decl_uid with nouid.
202 * tree-pretty-print.h (dump_function_header): Adjust.
203 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
204 * passes.c (pass_init_dump_file): Pass dump_flags on.
205 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
207 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
210 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
212 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
214 PR tree-optimization/49243
215 * calls.c (setjmp_call_p): Also check if fndecl has the
216 returns_twice attribute.
218 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
220 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
223 2011-06-06 Richard Henderson <rth@redhat.com>
224 Georg-Johann Lay <avr@gjlay.de>
227 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
229 * config/avr/avr.md ("insv"): New insn expander.
230 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
231 "*insv.not.io", "*insv.reg"): New insns.
233 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
236 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
237 predicate to nonimmediate_operand from memory_operand for the
238 operand that is to be forced to memory by the expander. Lose
241 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
243 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
244 EH return when delayed branches are disabled.
246 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
248 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
249 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
251 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
252 Simplify MODE_V1DF and MODE_V2SF handling.
253 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
254 Simplify MODE_SF handling.
256 2011-06-04 Jan Hubicka <jh@suse.cz>
258 PR tree-optimization/48893
259 PR tree-optimization/49091
260 PR tree-optimization/49179
261 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
264 2011-06-04 Jan Hubicka <jh@suse.cz>
267 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
269 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
271 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
273 2011-06-04 Jakub Jelinek <jakub@redhat.com>
276 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
277 to be strictly smaller than 1 << shiftcount.
279 2011-06-04 Jan Hubicka <jh@suse.cz>
281 PR tree-optimize/48929
282 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
285 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
288 * calls.c (emit_call_1): Prefer the __builtin declaration of
291 2011-06-03 Diego Novillo <dnovillo@google.com>
293 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
294 (lto_input_tree_pointers): Likewise.
295 * lto-streamer-out.c (pack_value_fields): Likewise.
296 (lto_output_tree_pointers): Likewise.
297 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
298 and OPTIMIZATION_NODE.
300 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
302 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
303 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
304 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
305 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
306 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
307 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
308 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
309 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
310 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
311 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
312 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
313 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
314 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
315 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
316 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
317 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
318 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
319 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
320 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
321 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
322 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
323 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
324 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
325 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
326 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
327 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
328 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
329 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
330 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
331 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
332 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
333 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
334 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
335 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
336 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
337 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
338 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
339 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
340 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
341 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
342 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
343 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
344 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
345 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
346 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
347 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
348 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
349 * system.h (MD_UNWIND_SUPPORT): Poison.
350 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
351 * doc/tm.texi: Regenerate.
352 * unwind-dw2.c: Include md-unwind-support.h instead of
354 * config/ia64/unwind-ia64.c: Likewise.
355 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
357 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
359 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
361 2011-06-03 Richard Henderson <rth@redhat.com>
362 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
364 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
365 (sigill_hdlr): Correct insn, insn size.
366 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
368 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
370 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
372 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
373 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
374 * config/mips/t-iris: Remove.
375 * config/mips/t-irix6: New file.
376 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
378 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
380 * Makefile.in (LIB2ADDEHDEP): Remove.
381 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
382 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
383 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
384 * config/t-darwin (LIB2ADDEHDEP): Remove.
385 * config/t-freebsd (LIB2ADDEHDEP): Remove.
386 * config/t-linux (LIB2ADDEHDEP): Remove.
388 2011-06-03 Diego Novillo <dnovillo@google.com>
390 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
391 (lto_register_var_decl_in_symtab): Likewise.
392 (lto_register_function_decl_in_symtab): Likewise.
393 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
394 logic to uniquify_nodes.
396 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
398 * config/alpha/t-osf5: Remove.
399 * config/alpha/t-osf-pthread: Remove.
400 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
401 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
403 2011-06-03 Julian Brown <julian@codesourcery.com>
405 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
406 (strongarm1110): Use strongarm tuning.
407 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
408 * config/arm/arm.c (arm_strongarm_tune): New.
409 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
410 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
411 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
412 setting, using previous defaults or 1 for Cortex-A5.
413 (arm_option_override): Set max_insns_skipped from current tuning.
415 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
417 * doc/install.texi (Options specification): Document --with-specs.
419 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
421 * config/arm/neon.md (orndi3_neon): Actually split it.
423 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
425 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
426 * var-tracking.c (reverse_op): Limite recurse depth to 5.
428 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
431 * target.def (delay_sched2, delay_vartrack): New.
432 * doc/tm.texi.in: Update.
433 * doc/tm.texi: Rebuild.
434 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
435 * var-tracking.c (gate_handle_var_tracking): Likewise.
436 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
437 (bfin_flag_var_tracking): Drop.
438 (output_file_start): Don't save and override flag_var_tracking.
439 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
440 (bfin_reorg): Test original variables.
441 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
442 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
443 (ia64_flag_var_tracking): Drop.
444 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
445 (ia64_file_start): Don't save and override flag_var_tracking.
446 (ia64_override_options_after_change): Ditto
447 flag_schedule_insns_after_reload.
448 (ia64_reorg): Test original variables.
449 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
450 (picochip_flag_var_tracking): Drop.
451 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
452 (picochip_option_override): Don't save and override
453 flag_schedule_insns_after_reload.
454 (picochip_asm_file_start): Ditto flag_var_tracking.
455 (picochip_reorg): Test original variables.
456 * config/spu/spu.c (spu_flag_var_tracking): Drop.
457 (TARGET_DELAY_VARTRACK): Define.
458 (spu_var_tracking): New.
459 (spu_machine_dependent_reorg): Call it.
460 (asm_file_start): Don't save and override flag_var_tracking.
462 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
465 * config/sh/predicates.md (general_movsrc_operand): Return 0
466 for memory and memory subreg of which address is an invalid
467 indexed address for QI and HImode.
468 (general_movdst_operand): Likewise.
470 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
472 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
473 edges only, when there is a non-local label in the function.
474 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
476 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
478 * config/i386/constraints.md (Y3): New register constraint.
479 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
480 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
481 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
482 *sse2_interleave_lowv2df.
484 2011-06-02 Julian Brown <julian@codesourcery.com>
486 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
487 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
488 (arm_cortex_a5_tune): New.
490 2011-06-02 Julian Brown <julian@codesourcery.com>
492 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
493 * config/arm/arm.c (arm_default_branch_cost): New.
494 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
495 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
496 (arm_fa726_tune): Set branch_cost field using
497 arm_default_branch_cost.
498 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
499 current_tune structure.
500 * dojump.c (tm_p.h): Include file.
502 2011-06-02 Julian Brown <julian@codesourcery.com>
504 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
506 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
507 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
508 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
510 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
511 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
512 (arm_fa726te_tune): Add prefer_constant_pool setting.
513 (arm_v6t2_tune, arm_cortex_tune): New.
514 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
515 prefer_constant_pool setting.
517 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
519 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
521 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
522 (*movdf_internal) <case 6,7,8>: Ditto.
524 * config/i386/constraints.md (Y4): New register constraint.
525 * config/i386/sse.md (vec_set<mode>_0): Merge with
526 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
527 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
528 *vec_extractv2di_1_sse.
529 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
530 and *vec_concatv2di_rex64_sse.
532 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
535 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
536 of cgraph_local_info for null before attempting to use it.
538 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
540 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
541 (current_function_dynamic_alloc_count): Delete.
542 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
543 (expand_builtin_nonlocal_goto): Remove obsolete comment.
544 (expand_builtin_update_setjmp_buf): Remove dead code.
545 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
546 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
548 * function.c (instantiate_virtual_regs): Likewise.
549 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
550 for a block with a single abnormal incoming edge.
551 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
552 (SETJMP_VIA_SAVE_AREA): Delete.
553 * config/sparc/sparc-protos.h (load_got_register): Declare.
554 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
555 (load_got_register): Make global.
556 (sparc_frame_pointer_required): Add 'static'.
557 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
558 (sparc_builtin_setjmp_frame_value): New function.
559 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
560 (save_stack_nonlocal): New expander.
561 (restore_stack_nonlocal): Likewise.
562 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
563 (nonlocal_goto_internal): New insn.
564 (goto_handler_and_restore): Delete.
565 (builtin_setjmp_setup): Likewise.
566 (do_builtin_setjmp_setup): Likewise.
568 (builtin_setjmp_receiver): New expander.
570 2011-06-01 David Li <davidxl@google.com>
573 * tree-pretty-print.c (dump_function_header): Format cleanup.
575 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
578 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
579 needed when original operands are used for msw_skip comparison.
581 2011-06-01 Jakub Jelinek <jakub@redhat.com>
584 * var-tracking.c (add_uses, add_stores): Don't call
585 cselib_subst_to_values on ENTRY_VALUE.
587 2011-06-01 Diego Novillo <dnovillo@google.com>
589 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
590 output_record_start with LTO_null instead of output_zero.
591 (lto_output_ts_binfo_tree_pointers): Likewise.
592 (lto_output_tree): Likewise.
593 (output_eh_try_list): Likewise.
594 (output_eh_region): Likewise.
595 (output_eh_lp): Likewise.
596 (output_eh_regions): Likewise.
597 (output_bb): Likewise.
598 (output_function): Likewise.
599 (output_unreferenced_globals): Likewise.
600 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
601 instead of NUM_TREE_CODES.
602 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
603 (lto_output_int_in_range): Change << to >> when shifting VAL.
605 2011-06-01 Diego Novillo <dnovillo@google.com>
607 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
608 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
610 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
613 * optabs.h (valid_multiword_target_p): Declare.
614 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
615 doing multi-word operations.
616 * optabs.c (expand_binop): Likewise.
617 (expand_doubleword_bswap): Likewise.
618 (expand_absneg_bit): Likewise.
619 (expand_unop): Likewise.
620 (expand_copysign_bit): Likewise.
621 (multiword_target_p): New function.
623 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
625 PR rtl-optimization/48830
626 PR rtl-optimization/48808
627 PR rtl-optimization/48792
628 * reload.c (push_reload): Check contains_reg_of_mode.
629 * reload1.c (strip_paradoxical_subreg): New function.
630 (gen_reload_chain_without_interm_reg_p): Use it to handle
632 (emit_output_reload_insns, gen_reload): Likewise.
634 2011-06-01 David Li <davidxl@google.com>
636 * predict.c : Change pass name
639 * tree-profile.c: Ditto.
642 2011-06-01 David Li <davidxl@google.com>
644 * tree-pretty-print.c (dump_function_header): New function.
645 * final.c (rest_of_clean_state): Use header dumper.
646 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
647 * passes.c (pass_init_dump_file): Use header dumper.
649 2011-06-01 Jakub Jelinek <jakub@redhat.com>
651 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
652 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
653 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
655 (mem_loc_descriptor): Use them.
657 * var-tracking.c (create_entry_value): New function.
658 (vt_add_function_parameter): Use it.
660 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
662 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
663 Include <signal.h>, <ucontext.h>.
664 (sigill_caught): Define.
665 (sigill_hdlr): New function.
666 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
667 insns can be executed.
668 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
669 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
671 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
673 * config/t-slibgcc-darwin: Move to ...
674 * config/t-slibgcc-dummy: ... this. Clarify comments.
675 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
676 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
677 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
678 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
679 Remove i386/t-crtstuff from tmake_file.
680 (i[34567]86-*-solaris2*): Remove t-svr4,
681 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
683 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
684 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
685 sparc/t-crtfm from tmake_file.
686 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
687 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
689 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
690 * config/i386/t-nwld (SHLIB_LINK): Remove.
691 * config/i386/t-rtems-i386: Rename to ...
692 * config/i386/t-rtems: ... this.
693 ($(T)crti.o, $(T)crtn.o): Remove.
694 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
695 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
696 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
697 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
698 EXTRA_MULTILIB_PARTS): Remove.
699 * config/sparc/t-sol2-64: Likewise.
700 * config/sparc/t-sol2: Remove.
701 * config/sparc/t-crtin: Remove.
702 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
703 * config/i386/gmon-sol2.c: Remove.
704 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
705 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
706 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
707 * config/i386/sol2-gc1.asm: Remove.
708 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
709 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
710 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
711 * config/t-slibgcc-sld: Remove.
713 2011-06-01 Jakub Jelinek <jakub@redhat.com>
715 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
716 base_type_for_mode with op_mode instead of mode.
718 2011-06-01 Paul Brook <paul@cpodesourcery.com>
720 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
722 * config/arm/arm-tune.md: Regenerate.
723 * config/arm/arm-tables.opt: Regenerate.
724 * config/arm/arm.c (FL_DIV): Rename...
725 (FL_THUMB_DIV): ... to this.
726 (FL_ARM_DIV): Define.
727 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
728 (arm_arch_hwdiv): Remove.
729 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
730 (arm_issue_rate): Add cortexr5.
731 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
732 __ARM_ARCH_EXT_IDIV__.
733 (TARGET_IDIV): Define.
734 (arm_arch_hwdiv): Remove.
735 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
736 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
737 (divsi3, udivsi3): New patterns.
738 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
739 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
741 2011-06-01 Martin Jambor <mjambor@suse.cz>
743 * ipa-utils.c (ipa_dfs_info): New field scc_no.
744 * ipa-utils.c (searchc): Set scc_no.
746 2011-06-01 Martin Jambor <mjambor@suse.cz>
748 * ipa-utils.c (searchc_env): New field allow_overwritable.
749 (searchc): do not ignore edges to overwritable nodes if indicated
750 by env->allow_overwritable.
751 (ipa_reduced_postorder): Set env.allow_overwritable.
753 2011-06-01 Richard Guenther <rguenther@suse.de>
755 * tree.c (free_lang_data): Do not reset boolean_type_node nor
757 * lto-streamer.c (lto_record_common_node): Take node pointer,
758 do not register types.
759 (lto_preload_common_nodes): Explicitly skip preloading nodes
760 that differ between frontends.
762 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
764 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
767 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
769 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
770 parameter value for dump. Dump cost on outermost call only.
771 (rs6000_memory_move_cost): Dump cost on outermost call only.
773 2011-05-31 Jakub Jelinek <jakub@redhat.com>
775 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
776 DW_OP_GNU_convert ops.
778 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
779 cselib_preserve_constants.
780 (cselib_lookup_1): If cselib_preserve_constants,
781 a new VALUE is being created for REG and there is a VALUE for the
782 same register in wider mode, add another loc with lowpart SUBREG of
784 (cselib_subst_to_values): Handle ENTRY_VALUE.
785 * var-tracking.c (replace_expr_with_values): Return NULL for
787 * dwarf2out.c (convert_descriptor_to_signed): New function.
788 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
789 instead of two shifts.
790 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
791 the right mode if needed.
792 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
793 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
794 convert_descriptor_to_signed.
795 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
796 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
799 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
801 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
803 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
804 of X87MODEI12 and SWI48x instead of SSEMODEI24.
805 (SWI248x): New mode iterator, rename from X87MODEI.
806 (X87MODEI): Remove mode iterator.
810 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
812 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
813 * doc/invoke.texi: Document max-vartrack-expr-depth.
814 * var-tracking.c (EXPR_DEPTH): New.
815 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
817 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
819 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
820 * config/i386/sse.md: Add n to negated FMA pattern names.
822 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
824 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
826 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
828 * gengtype-state.c (read_state_params_structs): Initialize previous.
830 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
832 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
833 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
835 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
837 * config/i386/i386.md (*movtf_internal): Avoid allocating general
838 registers. Penalize F*r->o alternative to prevent partial memory
839 stalls. Slightly penalize *roF->*r alternative. Generate SSE
840 CONST_DOUBLE immediates when optimizing function for size. Do not move
841 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
842 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
843 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
844 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
846 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
848 (fp_register_operand splitters): Use fp_register_operand
849 constraint. Do not use FP_REG_P in insn condition.
850 (any_fp_register_operand splitters): Use any_fp_register_operand
851 constraint. Do not use ANY_FP_REG_P in insn condition.
853 2011-05-31 Jan Hubicka <jh@suse.cz>
855 * cgraph.h (cgraph_inline_failed_t): Give enum a name
856 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
857 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
858 (lto_output_edge): Use output_enum and var_len_unsigned.
859 (lto_output_varpool_node): Likewise.
860 (input_overwrite_node): Do not take resolution parameter;
861 extract it from a bitpack.
862 (input_node): Do not read resolution; use input_enum and
864 (input_varpool_node): Likewise.
865 (input_edge): Likewise.
866 (input_cgraph_1): Likewise.
868 2011-05-31 Richard Guenther <rguenther@suse.de>
870 * gimple.c (gimple_register_canonical_type): Do not register
871 any types via gimple_register_type.
873 2011-05-31 Jan Hubicka <jh@suse.cz>
875 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
878 2011-05-31 Jakub Jelinek <jakub@redhat.com>
880 PR rtl-optimization/49235
881 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
882 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
884 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
886 PR tree-optimization/49093
887 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
890 2011-05-31 Dodji Seketeli <dodji@redhat.com>
893 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
894 for concrete functions containing the code of cloned functions.
896 2011-05-31 Richard Guenther <rguenther@suse.de>
898 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
900 (forward_propagate_into_comparison_1): ... this.
901 (forward_propagate_comparison): Rename to ...
902 (forward_propagate_into_comparison): ... this. Split out
903 real forward propagation code to ...
904 (forward_propagate_comparison): ... this.
905 (forward_propagate_into_gimple_cond): Remove looping.
906 (forward_propagate_into_cond): Likewise.
907 (simplify_not_neg_expr): Return whether we have done something.
908 (simplify_gimple_switch): Likewise.
909 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
910 (ssa_forward_propagate_and_combine): ... this. Re-structure
911 to do a forward forward-propagation walk on BBs and a backward
912 stmt combining walk on BBs. Consistently re-scan changed statements.
913 (pass_forwprop): Adjust.
915 2011-05-30 Ian Lance Taylor <iant@google.com>
917 * godump.c (go_format_type): Correct length of name added to
918 obstack for anonymous field.
920 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
923 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
924 part of the second operand is 0.
926 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
928 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
929 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
930 to memory for !TARGET_MEMORY_MISMATCH_STALL.
931 (*movdf_internal_rex64): Do not penalize F->r alternative.
932 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
933 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
934 when optimizing function for size. Do not move CONST_DOUBLEs
935 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
936 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
937 SUBREGs. Do not check for MEM_P operands in the insn condition,
938 check for ANY_FP_REGNO_P instead.
939 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
940 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
942 * config/i386/i386.c (ix86_option_override_internal): Do not
943 set TARGET_INTEGER_DFMODE_MOVES here.
945 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
948 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
950 2011-05-30 Jakub Jelinek <jakub@redhat.com>
952 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
953 DW_TAG_rvalue_reference_type even for
954 -gdwarf-4 -fno-debug-types-section.
956 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
958 PR tree-optimization/46728
959 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
960 (build_and_insert_binop): New.
961 (gimple_expand_builtin_pow): Reorder args for
962 build_and_insert_call; use build_and_insert_binop; add more
963 optimizations for fractional exponents.
965 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
970 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
972 * tree.h (struct tree_identifier): Inherit from tree_typed, not
974 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
975 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
976 TS_BASE instead of TS_COMMON.
977 * varasm.c (assemble_name): Remove assert.
979 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
981 * config.gcc: Keep obselete list sorted.
983 2011-05-30 Jakub Jelinek <jakub@redhat.com>
984 Eric Botcazou <ebotcazou@adacore.com>
986 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
987 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
988 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
989 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
990 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
992 2011-05-30 Richard Guenther <rguenther@suse.de>
994 * gimple.c (gimple_types_compatible_p_1): Compare record
995 and union type members properly.
997 2011-05-30 Richard Guenther <rguenther@suse.de>
999 PR tree-optimization/49210
1000 * ipa-split.c (split_function): Care for the case where the call
1001 result is not trivially convertible to the result holding variable.
1003 2011-05-30 Richard Guenther <rguenther@suse.de>
1005 PR tree-optimization/49218
1006 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1009 2011-05-30 Richard Guenther <rguenther@suse.de>
1011 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1012 New function split out from ...
1013 (forward_propagate_into_gimple_cond): ... here. Adjust.
1014 (forward_propagate_into_cond): Likewise.
1015 (forward_propagate_comparison): Also propagate into
1016 comparisons on assignment RHS. Change return value to
1017 behave similar to forward_propagate_into_cond.
1018 (tree_ssa_forward_propagate_single_use_vars): Handle
1019 strict-overflow warnings properly for forward_propagate_comparison.
1021 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1023 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1025 * configure: Regenerate.
1027 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1029 PR tree-optimization/49199
1030 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1031 non-reduction operands are either defined in the loop or by induction.
1033 2011-05-29 Xinliang David Li <davidxl@google.com>
1035 * opts-global.c (handle_common_deferred_options): Handle new options.
1036 * passes.c (register_one_dump_file): Call register_pass_name.
1037 (execute_one_pass): Check explicit enable/disable flag.
1038 (passr_hash): New function.
1040 (register_pass_name): Ditto.
1041 (get_pass_by_name): Ditto.
1044 (enable_pass): Ditto.
1045 (disable_pass): Ditto.
1046 (is_pass_explicitly_enabled_or_disabled): Ditto.
1048 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1050 * config/i386/i386.md (*movoi_internal_avx): Use
1051 standard_sse_constant_opcode for alternative 0.
1052 (*movti_internal_sse): Ditto.
1053 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1055 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1057 (*movsi_internal): Ditto.
1058 (*movdi_internal): Ditto. Add ssecvt type moves.
1060 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1063 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1065 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1067 PR rtl-optimization/49095
1068 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1069 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1071 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1074 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1075 recurse_p argument. Only follow register copies if it is set,
1076 and prevent mips_find_pic_call_symbol from recursing.
1077 (mips_find_pic_call_symbol): Add a recurse_p argument.
1078 Pass it to mips_pic_call_symbol_from_set.
1079 (mips_annotate_pic_calls): Update accordingly.
1081 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1083 * emit-rtl.c (try_split): Use a loop to search for
1084 NOTE_INSN_CALL_ARG_LOCATIONs.
1086 2011-05-29 Richard Guenther <rguenther@suse.de>
1088 PR tree-optimization/49217
1089 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1091 2011-05-28 Jan Hubicka <jh@suse.cz>
1093 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1095 (string_slot_free): Remove
1096 (create_output_block): Initialize obstack.
1097 (destroy_output_block): Free obstack.
1098 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1099 the string unless it needs to be added into the hash.
1100 (lto_output_string_with_length): Add persistent attribute;
1101 handle NULL strings.
1102 (lto_output_string): Add PERSISTENT parameter.
1103 (output_string_cst, output_identifier): Simplify.
1104 (lto_output_location_bitpack): Update.
1105 (lto_output_builtin_tree): Update.
1106 * lto-streamer.h (struct output_block): Add obstack.
1107 (lto_output_string, lto_output_string_with_length): Remove
1108 declarations; functions are static now.
1110 2011-05-28 Jan Hubicka <jh@suse.cz>
1112 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1113 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1114 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1115 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1116 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1117 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1118 unpack_ts_decl_with_vis_value_fields,
1119 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1120 lto_get_builtin_tree): Use enum and variable length i/o.
1121 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1122 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1124 (bp_pack_enum, bp_unpack_enum): New macros.
1126 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1128 * genrecog.c: Remove redundant forward declarations.
1130 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1132 * config.gcc: Deprecate mips*-*-openbsd*.
1134 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1137 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1140 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1143 * gengtype.c (vec_prefix_type): New function.
1144 (note_def_vec): Use vec_prefix_type and change the length
1145 attribute to be based on the prefix.
1146 * vec.c: Include coretypes.h before vec.h.
1147 (struct vec_prefix): Remove.
1148 (vec_gc_p_reserve): Change the offsetof to sizeof.
1149 (vec_gc_p_reserve_exact): Likewise.
1150 (vec_heap_p_reserve): Likewise.
1151 (vec_heap_p_reserve_exact): Likewise.
1152 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1153 (vec_stack_p_reserve): Change the offsetof to sizeof.
1154 (vec_stack_p_reserve_exact): Likewise.
1155 * vec.h (struct vec_prefix): New struct definition.
1156 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1157 (VEC_T_GTY(T,B)): Likewise.
1158 (DEF_VEC_FUNC_P(T)): Use prefix field.
1159 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1160 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1162 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1164 PR tree-optimization/46728
1165 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1166 (powi_as_mults): Add gimple_set_location.
1167 (build_and_insert_call): New.
1168 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1169 0.5, 0.25, 0.75, 1./3., or 1./6.
1171 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1173 * doc/contrib.texi: Update copyright years.
1174 (Contributors): Add Zdenek Sojka.
1176 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1178 * c-decl.c (c_push_function_context): Copy the current statement
1180 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1181 (finish_struct): Call building_stmt_list_p instead of checking
1183 * c-parser.c (c_parser_postfix_expression): Likewise.
1184 * c-typeck.c (c_end_compound_stmt): Likewise.
1185 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1186 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1187 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1188 (free_stmt_list): Likewise.
1189 * tree.h (struct tree_statement_list): Include typed_tree instead
1191 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1192 as TS_TYPED instead of TS_COMMON.
1194 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1195 Uros Bizjak <ubizjak@gmail.com>
1197 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1198 (HAVE_AS_IX86_TLSGDPTL): Define.
1199 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1200 (HAVE_AS_IX86_TLSLDMPLT): Define.
1201 * configure: Regenerate.
1202 * config.in: Regenerate.
1203 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1204 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1205 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1206 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1207 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1209 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1211 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1213 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1215 (INSN_COND, INSN_REVERSE_COND): New macros.
1216 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1218 (sched_get_condition_with_rev): Cache the results, and look them up
1220 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1221 are clobbered by the current insn.
1222 * target.def (exposed_pipline): New sched data hook.
1223 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1224 * doc/tm.texi: Regenerate.
1226 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1228 PR tree-optimization/49170
1229 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1232 2011-05-27 Richard Guenther <rguenther@suse.de>
1235 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1238 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1240 * haifa-sched.c (sched_scan_info): Remove.
1241 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1243 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1245 (sched_scan): Remove.
1246 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1247 static. All callers changed.
1248 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1249 static. All callers changed.
1250 (sched_init_luids): Remove all arguments except the first. All
1251 callers changed. Don't use sched_scan.
1252 (haifa_init_h_i_d): Likewise.
1253 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1254 manually rather than using sched_init_luids. Likewise with
1255 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1256 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1257 rather than sched_init_luids with NULL args.
1258 * sel-sched-ir.c (new_insns): Remove variable.
1259 (sched_scan): New static function, previously in haifa-sched.c. Remove
1260 all arguments but the first two; all callers changed.
1261 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1262 rather than sched_init_luids.
1263 (sel_init_bbs): Remove second argument. All callers changed.
1264 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1265 with NULL arguments.
1266 (create_insn_rtx_from_pattern): Likewise.
1267 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1268 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1269 (sched_init_insn_luid, sched_extend_luids): Declare.
1270 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1273 2011-05-27 Richard Guenther <rguenther@suse.de>
1276 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1277 A CMP B ? (T) true : (T) false for non-integral types T again.
1279 2011-05-27 Jan Hubicka <jh@suse.cz>
1281 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1282 so 0 means NULL string.
1283 (lto_output_string_with_length): ... here.
1284 (lto_output_string, output_string_cst, output_identifier): Update
1285 handling of NULL strings.
1286 (lto_output_location_bitpack): New function.
1287 (lto_output_location): Use it.
1288 (lto_output_tree_ref): Use output_record_start.
1289 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1291 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1293 (input_string_internal): ... here;
1294 (input_string_cst, input_identifier, lto_input_string): Update handling
1296 (lto_input_location_bitpack): New function
1297 (lto_input_location): Use it.
1298 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1300 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1301 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1302 (bp_pack_value): Sanity check the value range.
1303 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1305 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1308 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1310 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1311 call_arg_location instructions down the floor.
1313 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1315 PR rtl-optimization/49154
1316 * ira.c (setup_pressure_classes): Process class without sublcasses
1317 as a candidate for pressure classes.
1319 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1321 PR rtl-optimization/48575
1322 * genrecog.c (position_type): New enum.
1323 (position): New structure.
1324 (decision): Use position structure instead of a string.
1325 (root_pos, peep2_insn_pos_list): New variables.
1326 (next_position, compare_positions): New functions.
1327 (new_decision): Use position structures instead of strings.
1328 (maybe_both_true): Likewise.
1329 (change_state): Likewise.
1330 (write_tree): Likewise.
1331 (make_insn_sequence): Likewise.
1333 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1335 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1336 TS_BASE instead of TS_COMMON.
1337 (find_decls_types_r): Check for TS_TYPED structure before looking at
1339 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1341 (BLOCK_CHAIN): Use new chain field.
1343 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1345 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1346 moves expensive on Power7 also.
1348 2011-05-26 Richard Guenther <rguenther@suse.de>
1350 * fold-const.c (fold_unary_loc): Remove bogus code.
1352 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1354 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1356 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1357 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1358 TS_BASE instead of TS_COMMON.
1359 * varasm.c (assemble_name): Remove assert.
1361 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1363 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1365 * libgcc-std.ver: Delete file.
1367 2011-05-26 Richard Guenther <rguenther@suse.de>
1369 PR tree-optimization/48702
1370 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1371 only when we know the base address is within bounds.
1372 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1373 assume the base address of TARGET_MEM_REFs is in bounds.
1375 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1378 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1379 declaration in TARGET_SOLARIS.
1381 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1383 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1384 The instruction is then expanded explicitly.
1385 (supported_compare): Callable instruction.
1386 (compare): Likewise.
1388 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1391 * gimplify.c (shortcut_cond_r): Don't special case
1392 COND_EXPRs if they have void type on one of their arms.
1394 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1396 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1397 to reduce duplication, and to achieve a slightly more logical order
1400 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1402 PR tree-optimization/49161
1403 * tree-vrp.c (struct case_info): New type.
1404 (compare_case_labels): Sort case_info structs instead of
1405 trees, and not primarily by CASE_LABEL uids but by
1406 label_for_block indexes.
1407 (find_switch_asserts): Put case labels into struct case_info
1408 array instead of TREE_VEC, adjust sorting, compare label_for_block
1409 values instead of CASE_LABELs.
1411 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1413 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1414 ("orndi3_neon"): Likewise.
1415 ("bic<mode>3_neon"): Likewise.
1417 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1419 PR tree-optimization/49038
1420 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1421 Ensure at least one epilogue iteration if required by data
1423 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1424 to mark loops that require peeling for gaps.
1425 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1426 (vect_get_known_peeling_cost): Take peeling for gaps into
1428 (vect_transform_loop): Generate epilogue if required by data
1430 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1431 loop as requiring an epilogue if there are gaps in the end of
1434 2011-05-25 Ian Lance Taylor <iant@google.com>
1436 * godump.c (go_format_type): Output the first field with a usable
1439 2011-05-25 Ian Lance Taylor <iant@google.com>
1441 * godump.c (go_format_type): Check for invalid type names, pointer
1442 target types, and struct field types.
1444 2011-05-25 Jason Merrill <jason@redhat.com>
1446 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1448 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1450 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1452 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1454 * config/i386/i386.md (*movqi_extv_1)): Put back
1455 "register_operand" check in "type" calculation.
1456 (*movqi_extzv_2): Likewise.
1458 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1460 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1462 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1465 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1466 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1467 __divxc3, __divtc3): Wrap definitions in #ifndef.
1469 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1472 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1473 "register_operand" check and replace q_regs_operand with
1474 QIreg_operand in "type" calculation.
1475 (*movqi_extv_1): Likewise.
1476 (*movqi_extzv_2_rex64): Likewise.
1477 (*movqi_extzv_2): Likewise.
1479 * config/i386/predicates.md (QIreg_operand): New.
1481 2011-05-25 Richard Guenther <rguenther@suse.de>
1483 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1484 type-based offset disambiguation, streamline MEM_REF and
1485 TARGET_MEM_REF handling.
1487 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1489 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1490 (bdesc_special_args): Add pause intrinsic.
1492 * config/i386/i386.md (UNSPEC_PAUSE): New.
1495 * config/i386/ia32intrin.h (__pause): Likewise.
1497 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1500 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1502 PR tree-optimization/46728
1503 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1504 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1506 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1508 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1509 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1510 instead of TS_COMMON.
1512 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1514 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1515 LIBGCC2_GNU_PREFIX is defined.
1517 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1518 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1519 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1520 __clz_tab): Define using __N.
1521 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1522 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1523 * target.def (libfunc_gnu_prefix): New hook.
1524 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1525 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1526 * doc/tm.texi: Regenerate.
1527 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1528 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1530 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1531 (init_optabs): Likewise for the bswap libfuncs.
1532 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1534 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1535 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1536 * libgcc-std.ver: Remove.
1537 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1538 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1540 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1541 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1542 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1543 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1544 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1545 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1546 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1547 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1548 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1549 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1551 2011-05-25 Jan Hubicka <jh@suse.cz>
1553 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1554 (lto_output_tree): Use output_record_start.
1555 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1556 (lto_get_pickled_tree): Use input_record_start.
1557 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1558 (lto_value_range_error): New function.
1559 * lto-streamer.h (lto_value_range_error): Declare.
1560 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1561 (lto_output_enum, lto_input_enum): New macros.
1563 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1565 * common.opt (flag_stack_usage_info): New variable.
1566 (-Wstack-usage): New option.
1567 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1568 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1569 <OPT_fstack_usage>: Likewise.
1570 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1571 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1572 of flag_stack_usage.
1573 (emit_library_call_value_1): Likewise.
1574 * explow.c (allocate_dynamic_stack_space): Likewise.
1575 * function.c (instantiate_virtual_regs ): Likewise.
1576 (prepare_function_start): Likewise.
1577 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1578 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1579 * config/arm/arm.c (arm_expand_prologue): Likewise.
1580 (thumb1_expand_prologue): Likewise.
1581 * config/avr/avr.c (expand_prologue): Likewise.
1582 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1583 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1584 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1585 * config/mips/mips.c (mips_expand_prologue): Likewise.
1586 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1587 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1588 * config/s390/s390.c (s390_emit_prologue): Likewise.
1589 * config/sh/sh.c (sh_expand_prologue): Likewise.
1590 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1591 * config/spu/spu.c (spu_expand_prologue): Likewise.
1593 2011-05-25 Richard Guenther <rguenther@suse.de>
1595 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1596 (gimple_canonical_types_compatible_p): Likewise.
1598 2011-05-25 Jan Hubicka <jh@suse.cz>
1601 * ipa.c (function_and_variable_visibility): Only add to same
1602 comdat group list if DECL_ONE_ONLY.
1604 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1606 PR rtl-optimization/49014
1607 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1609 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1612 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1614 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1616 PR rtl-optimization/48757
1617 * ira-build.c (loop_with_eh_edge_p): Rename to
1618 loop_with_complex_edge_p, check edges on complexity, make function
1620 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1623 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1625 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1626 force flag_ira_share_save_slots to 0.
1628 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1630 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1631 (vt_initialize): Set PROLOGUE_BB unconditionally.
1632 Add block comment about CFA_BASE_RTX machinery.
1633 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1634 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1636 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1639 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1640 parsing of syntax error in ObjC instance variable lists. In
1641 particular, avoid an infinite loop if there is a stray ']'.
1642 Updated error message.
1644 2011-05-24 Ian Lance Taylor <iant@google.com>
1646 * godump.c (go_define): Don't accept a string immediately after
1649 2011-05-24 Ian Lance Taylor <iant@google.com>
1651 * godump.c (struct godump_container): Add invalid_hash field.
1652 (go_format_type): Return false if type is found in invalid_hash.
1653 (go_output_typedef): Add invalid type to invalid_hash.
1654 (go_finish): Create and delete invalid_hash.
1656 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1658 PR tree-optimization/46728
1659 * tree-ssa-math-opts.c (powi_table): New.
1660 (powi_lookup_cost): New.
1662 (powi_as_mults_1): New.
1663 (powi_as_mults): New.
1664 (gimple_expand_builtin_powi): New.
1665 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1666 (gate_cse_sincos): Remove sincos/cexp restriction.
1668 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1671 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1673 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1674 * mips-tdump.c: Likewise.
1676 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1679 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1680 add -mno-XXX. Handle FMA.
1682 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1684 PR rtl-optimization/48633
1685 * ira-build.c (loop_with_eh_edge_p): New function.
1686 (mark_loops_for_removal): Use it.
1688 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1690 PR rtl-optimization/48971
1691 * ira.c (setup_pressure_classes): Don't check register move cost
1692 for classes with one registers. Don't add pressure class if there
1693 is a pressure class with the same available hard registers.
1694 Check contains_reg_of_mode. Fix a typo in collecting
1695 temp_hard_regset. Ignore hard registers not belonging to a class.
1697 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1700 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1702 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1703 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1705 PR gcov-profile/48845
1706 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1708 2011-05-24 Richard Guenther <rguenther@suse.de>
1710 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1711 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1712 (gimple_types_compatible_p_1): Adjust.
1713 (iterative_hash_canonical_type): Do not bother about complete vs.
1715 (gimple_canonical_types_compatible_p): Likewise.
1717 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1719 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1721 2011-05-24 Richard Guenther <rguenther@suse.de>
1724 * gimple.c (gimple_register_canonical_type): Revert
1726 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1727 does not for a tree for the case where it matters. Cache
1728 pointer-type alias-sets.
1730 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1732 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1733 (OBJS): Remove options.o, opts-common.o and prefix.o.
1734 (OBJS-libcommon-target): New.
1735 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1736 (BACKEND): Include libcommon-target.a.
1737 (MOSTLYCLEANFILES): Include libcommon-target.a.
1738 (libcommon-target.a): New.
1739 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1742 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1744 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1745 parts of output shared with the driver.
1746 * optc-gen.awk: Don't generate parts of output not shared with the
1748 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1749 * doc/options.texi (SourcerInclude): Mention options-save.c.
1750 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1751 (OBJS): Add options-save.o.
1752 (options-save.c, options-save.o): New.
1753 (options.o): Update dependencies.
1754 (gcc-options.o): Remove.
1755 (mostlyclean): Remove options-save.c.
1757 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1760 * dbxout.c: Include cgraph.h.
1761 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1762 and without value expr, return NULL if no varpool node exists for
1763 it or if it is not needed.
1764 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1767 * c-decl.c (start_decl): Convert expr to void_type_node.
1769 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1771 PR rtl-optimization/48826
1772 * emit-rtl.c (try_split): When splitting a call that is followed
1773 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1775 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1777 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1778 parameters passed in memory prefer using DECL_INCOMING_RTL over
1779 the pseudos it will be copied into.
1781 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1784 * config/i386/i386.c (ix86_option_override_internal): Save the
1785 initial options after checking vzeroupper.
1787 2011-05-23 David Li <davidxl@google.com>
1789 PR tree-optimization/48988
1790 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1791 Initialize has_valid_pred for each pred chain.
1793 2011-05-23 Richard Guenther <rguenther@suse.de>
1795 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1796 (iterative_hash_gimple_type): Always hash type names.
1798 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1800 * c-typeck.c (build_function_call_vec): Tweak call to
1801 check_function_arguments.
1803 2011-05-23 Richard Guenther <rguenther@suse.de>
1805 PR tree-optimization/49115
1806 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1807 is not necessarily carried out, do not claim it kills the ref.
1808 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1810 2011-05-23 Richard Guenther <rguenther@suse.de>
1813 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1814 what pointer types we accept for folding.
1816 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1818 * gthr-gnat.c: Remove.
1819 * gthr-gnat.h: Remove.
1820 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1821 * config/t-freebsd (LIB2ADDEH): Likewise.
1822 * config/t-linux (LIB2ADDEH): Likewise.
1823 * config/t-sol2 (LIB2ADDEH): Likewise.
1824 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1825 * configure.ac (target_thread_file): Remove gnat handling.
1826 * configure: Regenerate.
1827 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1829 2011-05-23 Tristan Gingold <gingold@adacore.com>
1830 Eric Botcazou <ebotcazou@adacore.com>
1832 * gcov.c (create_file_names): If no object directory is specified,
1833 keep the directory of the file.
1835 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1837 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1838 * configure: Regenerate.
1840 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1843 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1844 failed and the comparison has a single bit signed type, use
1845 constm1_rtx instead of const1_rtx for true value.
1846 (do_store_flag): If ops->type is single bit signed type, disable
1847 signel bit test optimization and pass -1 instead of 1 as last
1848 parameter to emit_store_flag_force.
1850 2011-05-23 Tom de Vries <tom@codesourcery.com>
1853 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1855 (infer_loop_bounds_from_undefined): Use new function.
1857 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1859 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1860 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1861 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1863 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1865 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1867 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1868 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1871 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1873 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1875 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1877 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1878 UNSPEC_MOVE_PIC pattern.
1880 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1882 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1883 (sparc-*-rtems*): Likewise.
1884 (sparc64-*-elf*): Likewise.
1885 (sparc64-*-rtems*): Likewise.
1886 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1887 * config/sparc/t-crtin: New file.
1888 * config/sparc/t-sol2 (crti.o): Delete rule.
1890 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1891 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1892 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1893 (ENDFILE_SPEC): Add crtn.o.
1895 2011-05-22 Tom de Vries <tom@codesourcery.com>
1898 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1899 CODE_CONTAINS_STRUCT (TS_COMMON).
1901 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1904 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1905 only after deciding which mode to use.
1907 2011-05-22 Tom de Vries <tom@codesourcery.com>
1910 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1911 for call to get_shiftadd_cost.
1913 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1916 * config/i386/cpuid.h (bit_MMXEXT): New define.
1918 2011-05-22 Nick Clifton <nickc@redhat.com>
1920 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1921 initialisation of non-existant args[2] element. Use args[] array
1922 not arg[] array to pass arguments to build_function_type_list.
1924 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1926 PR tree-optimization/49087
1927 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1929 2011-05-21 Jason Merrill <jason@redhat.com>
1932 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1933 static storage duration.
1935 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1937 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1940 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1942 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1943 false if there are call-saved registers here...
1944 (sparc_can_use_return_insn_p): ...but here instead.
1945 (save_or_restore_regs): Fix thinko.
1946 (sparc_expand_prologue): Use current_function_is_leaf.
1947 (sparc_frame_pointer_required): Likewise.
1949 2011-05-21 Nick Clifton <nickc@redhat.com>
1952 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1954 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1956 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1957 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1959 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1961 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1962 * optc-gen.awk: Move common code to opt-read.awk.
1963 * opth-gen.awk: Likewise.
1964 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1966 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1968 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1970 2011-05-20 Tom de Vries <tom@codesourcery.com>
1973 * tree-ssa-loop-ivopts.c: Include expmed.h.
1974 (get_shiftadd_cost): New function.
1975 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1977 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1980 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1981 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1983 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1985 * Makefile.in: Update comment referring to $(OBJS-common).
1987 2011-05-20 Ian Lance Taylor <iant@google.com>
1989 * godump.c (go_output_typedef): Put enum constants in the macro
1990 hash table to avoid duplicate Go const definitions.
1992 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1994 * Makefile.in (LIBDEPS): Add libcommon.a.
1996 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1997 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1998 pretty-print.o and version.o.
1999 (OBJS-libcommon): New.
2000 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2001 (BACKEND): Add libcommon.a.
2002 (MOSTLYCLEANFILES): Likewise.
2004 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2005 (cpp$(exeext)): Likewise.
2006 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2007 pretty-print.o and input.o.
2008 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2009 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2011 (mips-tfile): Don't explicitly use version.o.
2012 (mips-tdump): Likewise.
2013 (gcov.o): Depend on $(DIAGNOSTIC_H).
2014 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2015 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2016 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2017 * gcov-dump.c: Include intl.h and diagnostic.h.
2018 (main): Initialize diagnostics.
2019 * gcov.c: Include diagnostic.h.
2021 (main): Initialize diagnostics.
2022 * lto-wrapper.c: Include diagnostic.h.
2023 (main): Initialize diagnostics.
2025 2011-05-20 Michael Matz <matz@suse.de>
2027 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2029 2011-05-20 Michael Matz <matz@suse.de>
2030 Richard Guenther <rguenther@suse.de>
2032 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2033 use lto_streamer_cache_append directly instead of returning a VEC.
2034 (preload_common_node): Remove.
2035 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2037 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2039 2011-05-20 Richard Guenther <rguenther@suse.de>
2041 PR tree-optimization/49079
2042 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2043 MEM_REFs correctly for the trailing array access detection.
2044 Special case constants the same way as decls for overall size
2047 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2049 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2052 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2054 PR tree-optimization/49073
2055 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2056 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2057 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2059 2011-05-20 Richard Guenther <rguenther@suse.de>
2062 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2063 of pointer types the same way the middle-end does.
2065 2011-05-20 Richard Guenther <rguenther@suse.de>
2067 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2068 or pointer-to chains. Delay all fixup to uniquify_nodes.
2070 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2072 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2073 (fma4_fmaddsub): Likewise
2075 2011-05-19 Jan Hubicka <jh@suse.cz>
2077 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2078 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2079 (type_pair_cache): New static var.
2080 (lookup_type_pair): Use fixed sized custom hash; make inline.
2081 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2082 calls of lookup_type_pair.
2083 (print_gimple_types_stats): Remove cache stats.
2084 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2087 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2089 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2090 when TARGET_RDRND is active.
2091 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2092 Generate dummy SImode target register when target is NULL.
2094 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2096 * config/arm/arm-fpus.def: New.
2097 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2099 * config/arm/arm-tables.opt: Regenerate.
2100 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2101 (arm_option_override): Don't decode FPU name to string here.
2102 * config/arm/arm.opt (mfpu=): Use Enum.
2103 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2104 Update dependencies.
2106 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2108 * collect2.c: Include diagnostic.h.
2109 (fatal_perror, fatal, error, fancy_abort): Remove.
2110 (main): Set progname. Call xmalloc_set_program_name and
2111 diagnostic_initialize.
2112 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2113 scan_libraries, resolve_lib_name): Call fatal_error instead of
2114 fatal and fatal_perror.
2115 * collect2.h (error, fatal, fatal_perror): Don't declare.
2116 * tlink.c: Include diagnostic-core.h.
2117 (recompile_files): Call fatal_error instead of fatal_perror.
2118 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2119 pretty-print.o and input.o.
2120 (collect2.o, tlink.o): Update dependencies.
2122 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2124 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2126 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2129 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2130 COMDAT group syntax, both SPARC and x86 variants.
2131 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2132 * configure: Regenerate.
2133 * config/sol2.h (TARGET_SOLARIS): Define.
2134 (PUSHSECTION_FORMAT): Remove.
2135 (SECTION_NAME_FORMAT): Define.
2136 * config/sol2.c: Include hashtab.h.
2137 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2138 expansion, using SECTION_NAME_FORMAT.
2139 (solaris_comdat_htab): New variable.
2140 (struct comdat_entry): Define.
2141 (comdat_hash): New function.
2142 (comdat_eq): New function.
2143 (solaris_elf_asm_comdat_section): New function.
2144 (solaris_define_comdat_signature): New function.
2145 (solaris_code_end): New function.
2146 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2147 (solaris_code_end): Declare.
2148 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2149 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2151 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2152 Remove ATTRIBUTE_UNUSED.
2153 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2154 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2155 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2156 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2157 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2158 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2159 (PUSHSECTION_FORMAT): Remove.
2160 (SECTION_NAME_FORMAT): Redefine.
2162 2011-05-19 Kai Tietz <ktietz@redhat.com>
2164 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2165 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2166 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2168 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2169 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2171 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2173 2011-05-19 Richard Guenther <rguenther@suse.de>
2176 * tree-object-size.c (addr_object_size): If the pointed-to
2177 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2179 2011-05-19 Richard Guenther <rguenther@suse.de>
2181 * gimple.c (gimple_types_compatible_p_1): Compare names of
2182 the types themselves.
2183 (iterative_hash_gimple_type): And hash them that way.
2184 (gimple_register_type_1): If we register a main variant properly
2185 initialize the leader to ourselves.
2187 2011-05-19 Tom de Vries <tom@codesourcery.com>
2190 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2191 get_loop_invariant_expr_id.
2192 (get_loop_invariant_expr_id): Use get_expr_id.
2193 (parm_decl_cost): New function.
2194 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2195 Improve bound cost estimation. Use different inv_expr_id for elim and
2198 2011-05-19 Tom de Vries <tom@codesourcery.com>
2201 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2202 cost_base.cost == 0.
2204 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2207 * config/i386/sse.md
2208 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2211 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2213 PR tree-optimization/49039
2214 * tree-vrp.c (extract_range_from_binary_expr): For
2215 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2216 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2218 2011-05-18 Tom de Vries <tom@codesourcery.com>
2221 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2223 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2225 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2226 (*tls_global_dynamic_64): Ditto.
2227 (*tls_local_dynamic_base_32_gnu): Ditto.
2228 (*tls_local_dynamic_base_64): Ditto.
2229 (tls_initial_exec_64_sun): Ditto.
2231 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2233 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2234 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2236 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2237 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2238 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2239 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2240 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2241 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2242 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2244 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2246 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2247 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2248 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2249 target_thread_pointer, arm_structure_size_boundary, struct
2250 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2251 struct abi_name, arm_all_abis): Remove.
2252 (arm_option_override) Don't process most enumerated option values here.
2253 Don't process target_fpe_name here. Work with integer not string for
2254 structure size boundary; use separate diagnostics for each case.
2255 * config/arm/arm.h (enum float_abi_type, enum
2256 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2258 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2259 arm_structure_size_boundary): Remove.
2260 * config/arm/arm.opt (mabi=): Use Enum and Init.
2261 (arm_abi_type): New Enum and EnumValue entries.
2262 (mfloat-abi=): Use Enum and Init.
2263 (float_abi_type): New Enum and EnumValue entries.
2264 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2265 (mfp16-format=): Use Enum and Init.
2266 (arm_fp16_format_type): New Enum and EnumValue entries.
2267 (mstructure-size-boundary=): Use UInteger and Init.
2268 (mtp=): Use Enum and Init.
2269 (arm_tp_type): New Enum and EnumValue entries.
2271 2011-05-18 Richard Guenther <rguenther@suse.de>
2273 PR tree-optimization/49018
2274 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2275 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2276 gimple_has_side_effects.
2278 2011-05-18 Richard Guenther <rguenther@suse.de>
2280 * gimple.c (gimple_register_type_1): New function, split out from ...
2281 (gimple_register_type): ... here. Avoid infinite recursion.
2283 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2285 PR tree-optimization/41881
2286 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2287 reduction_chains along with a macro for its access.
2288 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2289 (destroy_loop_vec_info): Free reduction chains.
2290 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2291 (vect_is_slp_reduction): New function.
2292 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2293 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2294 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2295 definition types for reduction chains.
2296 (vect_supported_load_permutation_p): Don't allow permutations for
2298 (vect_analyze_slp_instance): Support reduction chains.
2299 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2300 (vect_get_constant_vectors): Handle reduction chains.
2301 (vect_schedule_slp_instance): Mark the first statement of the
2302 reduction chain as reduction.
2304 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2306 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2307 names for group elements access.
2308 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2309 reduction chains as well. Remove data reference and interleaving
2310 related words from the fields names.
2311 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2313 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2314 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2315 vect_update_interleaving_chain, vect_same_range_drs,
2316 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2317 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2318 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2319 vect_analyze_group_access, vect_analyze_data_ref_access,
2320 vect_create_data_ref_ptr, vect_transform_strided_load,
2321 vect_record_strided_load_vectors): Likewise.
2322 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2323 vect_model_load_cost, vectorizable_store, vectorizable_load,
2324 vect_remove_stores, new_stmt_vec_info): Likewise.
2325 * tree-vect-slp.c (vect_build_slp_tree,
2326 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2328 2011-05-18 Richard Guenther <rguenther@suse.de>
2331 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2332 operand verification.
2333 (verify_gimple_assign_binary): Likewise.
2334 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2335 to non-1-precision BOOLEAN_TYPEs.
2337 2011-05-18 Tom de Vries <tom@codesourcery.com>
2340 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2342 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2344 PR tree-optimization/49000
2345 * tree-ssa.c (execute_update_addresses_taken): Call
2346 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2347 be rewritten and decl has been marked for renaming, reset
2350 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2352 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2353 enum_opts_set when testing if attributes have set -mfpmath=.
2355 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2357 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2359 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2361 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2363 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2364 id.transform_lang_insert_block with NULL.
2366 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2368 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2369 (output_fp_compare): Change args 3 and 4 to bool.
2370 (ix86_expand_call): Change arg 6 to bool.
2371 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2372 (ix86_attr_length_vex_default): Change arg 3 to bool.
2373 * config/i386/i386.md: Update all uses.
2374 * config/i386/i386.c: Ditto.
2375 (ix86_flags_dependent): Change return type to bool.
2377 2011-05-17 Richard Guenther <rguenther@suse.de>
2379 * gimple.c (type_hash_pair_compare): Fix comparison.
2381 2011-05-17 Richard Guenther <rguenther@suse.de>
2383 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2384 case some more, fix final hash value of the non-singleton case.
2386 2011-05-17 Richard Guenther <rguenther@suse.de>
2390 2011-05-16 Richard Guenther <rguenther@suse.de>
2392 * gimple.c (gimple_types_compatible_p_1): Use names of the
2393 type itself, not its main variant.
2394 (iterative_hash_gimple_type): Likewise.
2396 2011-05-17 Richard Guenther <rguenther@suse.de>
2398 * gimple.c (gimple_register_canonical_type): Use the main-variant
2399 leader for computing the canonical type.
2401 2011-05-17 Nick Clifton <nickc@redhat.com>
2403 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2406 * config/rx/rx.md: Add peephole to remove redundant extensions
2408 (bitset_in_memory): Use rx_restricted_mem_operand.
2409 (bitinvert_in_memory): Likewise.
2410 (bitclr_in_memory): Likewise.
2412 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2413 Nick Clifton <nickc@redhat.com>
2415 * config/rx/rx.md: Add peepholes to match a register move followed
2416 by a comparison of the moved register. Replace these with an
2417 addition of zero that does both actions in one instruction.
2419 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2422 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2423 predicate to allow CONST_INT.
2424 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2426 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2428 * opts-common.c (opt_enum_arg_to_value): New.
2429 * opts.h (opt_enum_arg_to_value): Declare.
2430 * config/i386/i386.opt (fpmath): Remove.
2431 (mfpmath=): Use Enum, Init and Save.
2432 (fpmath_unit): New Enum and EnumValue entries.
2433 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2434 name for function fpmath state.
2435 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2436 * config/i386/i386.c: Include diagnostic.h.
2437 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2438 (ix86_target_string): Take enum fpmath_unit value instead of string.
2439 (ix86_debug_options): Update call to ix86_target_string.
2440 (ix86_option_override_internal): Don't process fpmath strings here.
2441 (x86_function_specific_save, ix86_function_specific_restore):
2442 Don't handle fpmath state specially.
2443 (ix86_function_specific_print): Pass fpmath state to
2444 ix86_target_string instead of printing in this function.
2445 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2446 Handle enum attributes.
2447 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2448 (ix86_valid_target_attribute_tree): Update option_strings
2449 handling. Handle fpmath as enum option.
2450 (ix86_can_inline_p): Update field names for function fpmath state.
2451 (ix86_expand_builtin): Update call to ix86_target_string.
2452 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2453 (ix86_fpmath): Remove.
2454 * config/i386/t-i386 (i386.o): Update dependencies.
2456 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2458 PR preprocessor/48677
2459 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2460 from decoded_options[0], not from itself.
2462 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2464 * config/i386/constraints.md (z): New constraint.
2465 * config/i386/i386.c (c): New mode attribute.
2466 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2467 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2468 constraint for operand 0.
2469 (*call_vzeroupper): Ditto.
2470 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2471 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2472 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2473 Use "lzm" constraint for operand 0.
2474 (*call_pop_vzeroupper): Ditto.
2475 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2476 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2477 constraint for operand 0.
2478 (*sibcall_vzeroupper): Ditto.
2479 (*sibcall_rex64_ms_sysv): Ditto.
2480 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2481 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2482 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2483 (*sibcall_pop_vzeroupper): Ditto.
2484 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2485 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2486 mode iterator. Use "<c>zm" constraint for operand 1.
2487 (*call_value_vzeroupper): Ditto.
2488 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2490 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2491 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2492 *call_value_pop_1. Use "lzm" constraint for operand 1.
2493 (*call_value_pop_vzeroupper): Ditto.
2494 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2495 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2496 mode iterator. Use "Uz" constraint for operand 1.
2497 (*sibcall_value_vzeroupper): Ditto.
2498 (*sibcall_value_rex64_ms_sysv): Ditto.
2499 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2500 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2501 constraint for operand 1.
2502 (*sibcall_value_pop_vzeroupper): Ditto.
2503 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2504 and "z" constraint for operand 2.
2505 (*tls_global_dynamic_32_gnu): Ditto.
2506 (*tls_local_dynamic_base_32_gnu): Ditto.
2507 (*tls_local_dynamic_base_64): Ditto.
2508 (*tls_local_dynamic_32_once): Ditto.
2509 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2511 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2513 2011-05-16 Richard Guenther <rguenther@suse.de>
2515 * gimple.c (gimple_types_compatible_p_1): Use names of the
2516 type itself, not its main variant.
2517 (iterative_hash_gimple_type): Likewise.
2519 2011-05-16 Richard Guenther <rguenther@suse.de>
2521 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2522 always visit pointer target and function result and argument types.
2524 2011-05-16 Jason Merrill <jason@redhat.com>
2527 * tree-inline.c (copy_statement_list): Put back recursion.
2529 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2533 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2534 * config/avr/avr.md ("*ior<mode>qi.byte0",
2535 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2537 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2540 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2541 register is needed for a function argument.
2543 2011-05-16 Richard Guenther <rguenther@suse.de>
2545 * gimple.c (struct type_hash_pair): New type.
2546 (type_hash_pair_compare): New function.
2547 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2549 2011-05-16 Revital Eres <revital.eres@linaro.org>
2551 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2553 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2555 * config/i386/i386.md (floating point move splitters): Fix
2556 usage of standard_80387_constant_p.
2557 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2559 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2561 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2563 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2565 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2566 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2567 (tree_ssa_lim_finalize): Likewise.
2569 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2571 * config/i386/constraint.md (Yd, Yx): New register constraints.
2572 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2573 Yd conditional register constraint.
2574 (*movtf_internal): Use standard_sse_constant_opcode.
2575 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2576 Yx conditional register constraint.
2577 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2578 Yd conditional register constraint. Use standard_sse_constant_p to
2579 check for valid SSE constants and call standard_sse_constant_opcode to
2581 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2582 constants and call standard_sse_constant_opcode to output SSE insn.
2583 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2584 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2585 optimize_size is set.
2586 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2588 2011-05-14 Tobias Burnus <burnus@net-b.de>
2590 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2592 2011-05-13 Martin Jambor <mjambor@suse.cz>
2594 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2595 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2596 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2597 (evaluate_conditions_for_ipcp_clone): Removed.
2598 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2599 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2600 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2602 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2604 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2605 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2606 lieu of MAY_HAVE_DEBUG_STMTS.
2607 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2608 debug statements if !MAY_HAVE_DEBUG_STMTS.
2610 2011-05-13 Martin Thuresson <martint@google.com>
2612 PR gcov-profile/47793
2613 * libgcov.c (gcov_exit): Support relative profile paths.
2614 * doc/invoke.texi (-fprofile-dir): Update for above change.
2616 2011-05-13 Richard Guenther <rguenther@suse.de>
2618 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2619 type-pair caching, do not compare hashes.
2621 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2624 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2625 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2627 2011-05-13 Kai Tietz <ktietz@redhat.com>
2629 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2630 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2631 compatible type for TRUTH_NOT_EXPR.
2633 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2635 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2636 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2637 can_create_pseudo_p ().
2639 2011-05-13 Richard Guenther <rguenther@suse.de>
2642 * gimple.c (iterative_hash_gimple_type): Revert change in
2643 pointer target and function result and argument hashing.
2645 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2647 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2648 (*movxf_internal_nointeger): Ditto.
2649 (*movdf_internal_rex64): Ditto.
2650 (*movdf_internal): Ditto.
2651 (*movdf_internal_nointeger): Ditto.
2652 (*movsf_internal): Ditto.
2653 (sincos splitters): Use can_create_pseudo ().
2655 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2657 * config/i386/i386-opts.h: New.
2658 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2659 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2660 ix86_section_threshold): Remove.
2661 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2662 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2664 (ix86_option_override_internal): Don't decode strings for options
2665 other than -march=, -mtune= and -mfpmath=. Don't allow for
2666 __attribute__ uses in remaining diagnostics for options with
2667 string arguments. Don't check for integer arguments being negative.
2668 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2669 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2670 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2671 ix86_branch_cost, ix86_section_threshold): Remove.
2672 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2674 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2676 (masm=): Use Enum and Init.
2677 (asm_dialect): New Enum and EnumValue entries.
2678 (mbranch-cost=): Use UInteger.
2679 (mlarge-data-threshold=): Use UInteger and Init.
2680 (mcmodel=): Use Enum and Init.
2681 (cmodel): New Enum and EnumValue entries.
2682 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2683 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2684 mregparm=): Use UInteger.
2685 (mstringop-strategy=): Use Enum and Init.
2686 (stringop_alg): New Enum and EnumValue entries.
2687 (mtls-dialect=): Use Enum and Init.
2688 (tls_dialect): New Enum and EnumValue entries.
2689 (mabi=): Use Enum and Init.
2690 (calling_abi): New Enum and EnumValue entries.
2691 (mveclibabi=): Use Enum and Init.
2692 (ix86_veclibabi): New Enum and EnumValue entries.
2694 2011-05-13 Nick Clifton <nickc@redhat.com>
2696 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2697 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2699 2011-05-13 Kai Tietz <ktietz@redhat.com>
2702 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2703 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2704 (gimple_boolify): Check for cast for boolean_type_node instead for
2707 2011-05-13 Richard Guenther <rguenther@suse.de>
2709 PR tree-optimization/48172
2710 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2711 multiplying by number of iterations for equal step.
2712 (vect_create_cond_for_alias_checks): Likewise.
2714 2011-05-13 Andreas Schwab <schwab@redhat.com>
2716 * configure.ac: Use AS_HELP_STRING throughout.
2717 * configure: Regenerate.
2719 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2721 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2722 (ix86_emit_restore_regs_using_mov): Likewise.
2723 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2725 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2727 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2728 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2729 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2730 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2731 RTX_OK_FOR_OLO10_P): ...here.
2732 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2735 2011-05-12 Kai Tietz <ktietz@redhat.com>
2737 * gimplify.c (gimple_boolify): Re-boolify expression
2738 arguments even if expression type is of kind BOOLEAN_TYPE.
2739 (gimplify_boolean_expr): Removed.
2740 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2741 and XOR. Additional take care that we keep expression's type.
2742 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2743 of TRUTH_AND|OR|XOR_EXPR.
2745 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2747 PR tree-optimization/48975
2748 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2749 on all bbs here and free and clear ifc_bbs at the end.
2751 2011-05-12 Richard Guenther <rguenther@suse.de>
2753 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2754 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2755 until after simple checks.
2756 (gimple_types_compatible_p): Likewise.
2757 (iterative_hash_gimple_type): Always hash pointer targets
2758 and function return and argument types.
2759 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2760 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2761 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2762 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2763 completely in the simple compare section.
2764 (gimple_register_canonical_type): Query the cache again after
2767 2011-05-12 Richard Guenther <rguenther@suse.de>
2769 PR tree-optimization/48172
2770 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2771 the number of iterations from the segment size calculation.
2772 (vect_create_cond_for_alias_checks): Adjust.
2774 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2777 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2778 if validate_subreg fails.
2780 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2782 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2783 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2786 2011-05-12 DJ Delorie <dj@redhat.com>
2788 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2789 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2790 created builtin into rx_builtins array.
2791 (rx_builtin_decl): New function.
2792 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2794 2011-05-12 DJ Delorie <dj@redhat.com>
2795 Nick Clifton <nickc@redhat.com>
2797 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2798 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2799 (rx_is_legitimate_address): Add pre-decrement and post-increment
2800 addressing in HImode and QImode. Fix test for out of range
2802 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2803 (rx_align_for_label): Test label before extracting its usage count.
2804 (rx_adjust_insn_lengths): Fix selection of insn codes.
2805 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2807 2011-05-11 Jason Merrill <jason@redhat.com>
2809 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2811 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2813 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2814 reindent the subsequent block.
2816 2011-05-11 Satoru Takabayashi <satorux@google.com>
2817 Paul Pluzhnikov <ppluzhnikov@google.com>
2819 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2820 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2821 * config.in: Add LINKER_HASH_STYLE.
2822 * configure.ac: Add --with-linker-hash-style.
2823 * configure: Regenerate.
2825 2011-05-11 Richard Guenther <rguenther@suse.de>
2828 * gimple.c (iterative_hash_canonical_type): Fix typo.
2830 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2832 * config/i386/i386.c (legitimize_tls_address)
2833 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2834 expanders directly for TARGET_GNU2_TLS. Determine pic and
2835 __tls_get_addr symbol reference here. Update call to
2836 gen_tls_global_dynamic_{32,64} for added arguments.
2837 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2838 expanders directly for TARGET_GNU2_TLS. Determine
2839 __tls_get_addr symbol reference here. Update call to
2840 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2841 unique UNSPEC REG_EQUIV to libcall block.
2842 (ix86_tls_get_addr): Declare static.
2843 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2844 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2845 Do not determine pic and __tls_get_addr symbol reference here. Do not
2846 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2847 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2848 (tls_global_dynamic_64): Add operand 2. Do not determine
2849 __tls_get_addr symbol reference here. Do not call
2850 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2851 (tls_local_dynamic_base64): Ditto for operand 1.
2853 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2855 * function.c (expand_function_start): Initialize stack_check_probe_note
2856 only if the generic stack checking mechanism is used.
2858 2011-05-11 Richard Guenther <rguenther@suse.de>
2860 PR tree-optimization/15256
2861 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2862 (A & B) | C, combine (A op CST1) op CST2.
2863 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2864 visit assigns that have uses.
2866 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2868 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2869 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2870 (unpack_ts_type_common_value_fields): ...this. Update comment.
2871 (unpack_value_fields): Adjust for renaming.
2872 (lto_input_ts_type_tree_pointers): Split into...
2873 (lto_input_ts_type_common_tree_pointer): ...this and...
2874 (lto_input_ts_type_non_common_tree_pointers): ...this.
2875 (lto_input_tree_pointers): Adjust for above split.
2876 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2877 (pack_ts_type_common_value_fields): ...this. Update comment.
2878 (lto_output_ts_type_tree_pointers): Split into...
2879 (lto_output_ts_type_common_tree_pointers): ...this and...
2880 (lto_output_ts_type_non_common_tree_pointers): ...this.
2881 (lto_output_tree_pointers): Adjust for above split.
2882 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2883 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2884 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2885 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2887 (struct tree_type): Split into...
2888 (struct tree_type_common: ...this and...
2889 (struct tree_type_with_lang_specific): ...this and...
2890 (struct tree_type_non_common): ...this. Adjust accessor macros
2892 (TYPE_VALUES_RAW): Define.
2893 (union tree_node): Update for above changes.
2894 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2896 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2897 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2898 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2899 * treestructu.def (TS_TYPE): Remove.
2900 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2903 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2906 * tree-ssa.c (reset_debug_uses): New function.
2907 * tree-flow.h (reset_debug_uses): New prototype.
2908 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2909 * tree-loop-distribution.c (generate_loops_for_partition): Call
2910 reset_debug_uses on the stmts that will be removed. Keep around
2911 all debug stmts, don't count them as bits in partition bitmap.
2912 (generate_builtin): Don't count debug stmts or labels as bits in
2915 2011-05-11 Richard Guenther <rguenther@suse.de>
2917 * gimple.c (gimple_type_hash_1): Merge with ...
2918 (gimple_type_hash): ... this.
2919 (gtc_visit): Remove mode parameter and simplify accordingly.
2920 (gimple_types_compatible_p_1): Likewise.
2921 (gimple_types_compatible_p): Likewise.
2922 (iterative_hash_gimple_type): Likewise.
2924 (gimple_type_eq): Adjust.
2926 2011-05-11 Revital Eres <revital.eres@linaro.org>
2928 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2929 enters the branch create an anti edge in the opposite direction
2930 to prevent the creation of reg-moves.
2931 * modulo-sched.c: Adjust comment to reflect the fact we are
2932 scheduling closing branch.
2933 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2934 (stage_count): New field in struct partial_schedule.
2935 (calculate_stage_count): New function.
2936 (normalize_sched_times): Rename to reset_sched_times and handle
2937 incrementing the sched time of the nodes by a constant value
2938 passed as parameter.
2939 (duplicate_insns_of_cycles): Skip closing branch.
2940 (sms_schedule_by_order): Schedule closing branch.
2941 (ps_insn_find_column): Handle closing branch.
2942 (sms_schedule): Call reset_sched_times and adjust the code to
2943 support scheduling of the closing branch.
2944 (ps_insert_empty_row): Update calls to normalize_sched_times
2945 and rotate_partial_schedule functions.
2947 2011-05-11 Richard Guenther <rguenther@suse.de>
2950 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2952 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2954 * opts.c (finish_options): Move warning settings from process_options.
2955 * toplev.c (process_options): Move warning settings to finish_options.
2957 2011-05-11 Richard Guenther <rguenther@suse.de>
2959 PR tree-optimization/18041
2960 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2961 (simplify_bitwise_binary): ... this. Handle operand conversions
2962 by applying them to the result instead.
2963 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2965 2011-05-11 Richard Guenther <rguenther@suse.de>
2967 * gimple.c (gimple_canonical_types_compatible_p): Split out
2968 from gimple_types_compatible_p and friends. Do not recurse
2969 to pointed-to types.
2970 (gimple_canonical_type_eq): Use it.
2971 (iterative_hash_canonical_type): Split out from
2972 iterative_hash_gimple_type and friends. Do not recurse
2973 to pointed-to types.
2974 (gimple_canonical_type_hash): Use it, allocate the hash here.
2976 2011-05-11 Revital Eres <revital.eres@linaro.org>
2978 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2981 2011-05-11 Revital Eres <revital.eres@linaro.org>
2983 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2984 instead of PREV_INSN.
2986 2011-05-11 Revital Eres <revital.eres@linaro.org>
2988 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2989 * loop-doloop.c (doloop_condition_get): Likewise.
2990 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2992 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2994 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2996 * tree.def (CASE_LABEL_EXPR): Add an operand.
2997 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2999 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3001 * c-decl.c (c_override_global_bindings_to_false): Remove.
3002 (global_bindings_p): Don't check
3003 c_override_global_bindings_to_false.
3004 * c-tree.h (c_override_global_bindings_to_false): Remove.
3005 * c-typeck.c (composite_type): Don't set
3006 c_override_global_bindings_to_false.
3008 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3010 PR target/48857, 48495
3011 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3013 (VSX_MOVE_MODE): Ditto.
3014 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3015 VSX vector types. Add V2DImode.
3016 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3017 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3018 (MODES_TIEABLE_P): Ditto.
3020 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3021 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3023 (init_cumulative_args): Ditto.
3024 (rs6000_function_arg_boundary): Ditto.
3025 (rs6000_function_arg_advance_1): Ditto.
3026 (rs6000_function_arg): Ditto.
3027 (rs6000_function_ok_for_sibcall): Ditto.
3028 (emit_frame_save): Ditto.
3029 (rs6000_function_value): Ditto.
3030 (rs6000_libcall_value): Ditto.
3032 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3034 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3035 i386/darwin-lib.h to $libgcc_tm_file.
3036 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3038 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3040 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3042 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3044 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3045 * config/rs6000/rs6000-tables.opt: New file (generated).
3046 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3047 rs6000/rs6000-tables.opt to extra_options.
3048 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3049 * config/rs6000/rs6000.c (rs6000_select): Remove.
3050 (processor_target_table): Move contents to rs6000-cpus.def.
3051 (darwin_rs6000_override_options): Check
3052 global_options_set.x_rs6000_cpu_index instead of
3053 rs6000_select[1].string.
3054 (rs6000_option_override_internal): Likewise.
3055 (rs6000_handle_option): Don't assert that global structures are in
3056 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3057 (rs6000_default_cpu): New variable.
3058 (rs6000_file_start): Set it instead of local default_cpu. Check
3059 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3060 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3061 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3062 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3063 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3064 rs6000_select): Remove.
3065 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3067 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3068 * config/rs6000/t-rs6000
3069 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3070 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3071 global_options_set.x_rs6000_cpu_index instead of
3072 rs6000_select[1].string.
3073 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3074 global_options_set.x_rs6000_cpu_index instead of
3075 rs6000_select[1].string.
3077 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3079 * config.gcc (libgcc_tm_file): Define instead of including files
3080 from ../../libgcc/config/ in tm_file.
3081 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3082 * configure: Regenerate.
3083 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3084 libgcc_tm.h, cs-libgcc_tm.h): New.
3085 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3086 (clean): Remove libgcc_tm.h.
3087 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3088 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3089 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3091 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3094 * config/avr/avr.c (avr_ret_register): Return unsigned int
3096 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3097 it to avr_libcall_value.
3098 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3100 (avr_expand_binop_builtin): Ditto.
3101 (avr_expand_unop_builtin): Ditto.
3103 2011-05-10 DJ Delorie <dj@redhat.com>
3105 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3106 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3107 * config/rx/rx.c (rx_align_for_label): Add label and
3108 uses_threshold parameters. Do not align when the label is not
3110 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3112 2011-05-10 Richard Guenther <rguenther@suse.de>
3114 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3115 a series of conversions and apply foldings similar to what
3117 (tree_ssa_forward_propagate_single_use_vars): Call it.
3119 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3121 PR tree-optimization/48611
3122 PR tree-optimization/48794
3123 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3124 referenced from RESX or EH_DISPATCH arguments.
3127 * dfp.c (decimal_to_decnumber): Handle conversion from
3128 dconst{1,2,m1,half}.
3130 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3132 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3133 for !flag_prefer_avx128.
3134 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3136 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3138 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3139 (fold_ternary_loc): Use expr_location_or.
3141 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3144 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3145 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3146 Pmode and mem_mode is not VOIDmode.
3148 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3150 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3151 TYPE_QUAL_RESTRICT): Convert to enum.
3153 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3155 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3156 (const_pow2_1_to_8_operand): Ditto.
3157 (const_pow2_1_to_128_operand): Ditto.
3158 (const_pow2_1_to_32768_operand): Ditto.
3159 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3160 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3161 in insn constraint to check integer value of operand 3.
3162 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3164 (PINSR_MODE): New mode iterator.
3165 (sse2p4_1): New mode attribute.
3166 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3167 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3168 iterator. Use const_int_operand instead of
3169 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3170 exact_log2 in insn constraint to check integer value of operand 3.
3172 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3174 * config/i386/sse.md (blendbits): Remove mode attribute.
3175 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3176 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3177 Check integer value of operand 3 in insn constraint.
3179 2011-05-09 Richard Guenther <rguenther@suse.de>
3181 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3183 (lto_symtab_merge): Likewise. Do not register types here.
3184 (lto_symtab_merge_decls_2): Likewise.
3185 (lto_symtab_merge_decls_1): Likewise.
3186 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3187 * gimple.c (enum gtc_mode): Declare.
3188 (gimple_types_compatible_p): Make static.
3190 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3192 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3193 temporary register to match Pmode.
3195 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3197 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3198 and *vec_concatv4si_1_avx.
3200 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3202 PR rtl-optimization/48927
3203 * ira-conflicts.c (commutative_constraint_p): Use
3204 recog_data.alternative_enabled_p to disable alternatives where
3205 "enabled" attribute is false.
3206 (get_dup_num): Ditto.
3207 * ira-lives.c (single_reg_class): Ditto.
3208 (ira_implicitly_set_insn_hard_regs): Ditto.
3210 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3212 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3213 (dataflow_set_preserve_mem_locs): Likewise.
3215 2011-05-09 Philipp Thomas <pth@suse.de>
3217 * config/mep/mep.c (mep_validate_vliw): Syntax description
3218 should not be translated.
3220 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3222 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3223 * config/mips/mips-tables.opt: New file (generated).
3224 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3225 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3226 MIPS_ARCH_OPTION_NATIVE): Define.
3227 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3229 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3230 mips_parse_cpu): Remove.
3231 (mips_cpu_info_from_opt, mips_default_arch): New.
3232 (mips_handle_option): Don't assert that global structures are in
3233 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3234 (mips_option_override): Use new variables and functions to set
3235 state of these options. Use strcmp to check for individual CPU names.
3236 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3238 * config/mips/mips.opt (march=): Use ToLower and Enum.
3239 (mips): Use ToLower, Enum and Var.
3240 (mtune=): Use ToLower and Enum.
3241 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3243 2011-05-08 Jan Hubicka <jh@suse.cz>
3245 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3246 Arrange type pairs to be UID ordered.
3247 (gimple_lookup_type_leader): Make inline.
3249 2011-05-09 Nick Clifton <nickc@redhat.com>
3252 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3256 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3259 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3261 * combine.c (simplify_comparison): Abstract out parts into...
3262 (simplify_compare_const): ... new function.
3263 (try_combine): Generalize parallel arithmetic/compare combining
3264 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3266 2011-05-08 Jan Hubicka <jh@suse.cz>
3268 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3269 (cgraph_create_virtual_clone): Call hooks once virtual clone
3271 * cgraph.h (cgraph_clone_node): Update prototype.
3272 * ipa-cp.c (ipcp_estimate_growth): Use
3273 estimate_ipcp_clone_size_and_time.
3274 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3275 * lto-cgraph.c (input_node): Update.
3276 * ipa-inline.c (recursive_inlining): Update.
3277 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3278 (evaluate_conditions_for_known_args): Break out from ...
3279 (evaluate_conditions_for_edge): ... here.
3280 (evaluate_conditions_for_ipcp_clone): New function.
3281 (inline_node_duplication_hook): Update clone summary based
3283 (estimate_callee_size_and_time): Rename to ...
3284 (estimate_node_size_and_time): take NODE instead of EDGE;
3285 take POSSIBLE_TRUTHS as argument.
3286 (estimate_callee_size_and_time): Update.
3287 (estimate_ipcp_clone_size_and_time): New function.
3288 (do_estimate_edge_time): Update.
3290 2011-05-08 Richard Guenther <rguenther@suse.de>
3294 * expmed.c (expand_shift_1): Compute adjusted constant shift
3297 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3299 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3301 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3303 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3305 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3307 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3309 2011-05-07 Jan Hubicka <jh@suse.cz>
3311 * ipa-inline-transform.c (inline_call): Account when program size
3313 * ipa-inline.c (relative_time_benefit): New function.
3314 (edge_badness): Reorganize to be power 2 based; fix thinko when
3315 computing badness for negative growth; update comments to match
3316 reality; better dumps.
3318 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3320 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3321 type to bool and adjust comment.
3322 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3323 (fold_mathfn_compare): Remove calls to global_bindings_p.
3324 (fold_inf_compare): Likewise.
3325 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3326 * c-tree.h (global_bindings_p): Adjust prototype.
3327 * c-decl.c (global_bindings_p): Return bool and simplify.
3329 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3331 PR tree-optimization/48837
3332 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3333 when accumulator transformation is performed.
3335 2011-05-06 Jan Hubicka <jh@suse.cz>
3337 * i386.h (ix86_tune_indices): Add
3338 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3339 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3340 * i386.c (initial_ix86_tune_features): Add
3341 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3342 (software_prefetching_beneficial_p): Remove predicate.
3343 (ix86_option_override_internal): Use new macro.
3345 2011-05-06 Jan Hubicka <jh@suse.cz>
3347 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3349 2011-05-06 Jan Hubicka <jh@suse.cz>
3351 * cgraph.c (cgraph_add_thunk): Create real function node instead
3352 of alias node; finalize it and mark needed/reachale; arrange visibility
3353 to be right and add it into the corresponding same comdat group list.
3354 (dump_cgraph_node): Dump thunks.
3355 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3356 cgraph_function_with_gimple_body_p,
3357 cgraph_first_function_with_gimple_body,
3358 cgraph_next_function_with_gimple_body): New functions.
3359 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3361 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3362 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3363 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3364 devirtualization when optimizing.
3365 (verify_cgraph_node): Verify thunks.
3366 (cgraph_analyze_function): Analyze thunks.
3367 (cgraph_mark_functions_to_output): Output thunks only in combination
3368 with function they are assigned to.
3369 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3370 alias into normal node.
3371 (assemble_thunks): New functoin.
3372 (cgraph_expand_function): Use it.
3373 * lto-cgraph.c (lto_output_node): Stream thunks.
3374 (input_overwrite_node): Stream in thunks.
3375 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3376 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3377 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3378 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3379 (inline_analyze_function): Do not care about thunk jump functions.
3380 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3381 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3382 cgraph_function_with_gimple_body_p.
3383 * passes.c (do_per_function_toporder): Use
3384 cgraph_function_with_gimple_body_p.
3385 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3386 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3387 (function_called_by_processed_nodes_p): Likewise.
3389 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3391 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3392 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3394 (mabi=): Replace with separate entries for mabi=altivec,
3395 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3396 mabi=ieeelongdouble and mabi=ibmlongdouble.
3397 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3398 check for -mabi=spe without SPE ABI support here.
3399 (rs6000_handle_option): Replace OPT_mabi_ handling with
3400 OPT_mabi_altivec and OPT_mabi_spe handling.
3402 2011-05-06 Cary Coutant <ccoutant@google.com>
3404 * dwarf2out.c (contains_subprogram_definition): New function.
3405 (should_move_die_to_comdat): Call it.
3407 2011-05-06 Jeff Law <law@redhat.com>
3409 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3410 remove_ctrl_stmt_and_useless_edges.
3411 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3412 (fixup_template_block, thread_single_edge): Likewise.
3413 (mark_threaded_blocks): Use THREAD_TARGET.
3415 2011-05-06 Alan Modra <amodra@gmail.com>
3418 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3419 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3421 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3423 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3424 constraint modifier to "r".
3426 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3428 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3429 fall through for OPT_mcmodel_.
3431 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3433 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3435 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3437 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3440 * config/arm/arm.opt (marm): Document it.
3441 (mthumb): Reject negative variant.
3443 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3446 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3447 Fix typo in "ccvt" variable name.
3449 2011-05-06 Tristan Gingold <gingold@adacore.com>
3452 * config/vms/vms-ar.c (main): Remove cwd variable.
3454 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3457 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3459 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3461 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3462 * gimplify.c (gimplify_switch_expr): Likewise.
3463 * omp-low.c (expand_omp_sections): Likewise.
3464 * tree-eh.c (lower_try_finally_switch): Likewise.
3465 (lower_eh_dispatch): Likewise.
3466 * tree.h (build_case_label): Declare.
3467 * tree.c (build_case_label): Define.
3469 2011-05-05 Jason Merrill <jason@redhat.com>
3472 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3473 (copy_statement_list): Don't recurse.
3474 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3477 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3479 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3480 through from -mfpu= handling.
3481 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3483 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3485 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3488 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3490 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3492 (hppa[12]*-*-hpux11*): Ditto.
3493 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3494 * config/ia64/hpux-unix2003.h: New.
3495 * config/pa/pa-hpux1131.opt: New.
3496 * config/pa/pa-hpux1131.h: New.
3497 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3498 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3499 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3501 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3504 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3505 instead of mode as 3rd argument to recursive call.
3506 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3507 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3509 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3510 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3511 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3512 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3514 2011-05-05 Julian Brown <julian@codesourcery.com>
3516 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3517 parenthesis in D-register case.
3519 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3521 * opt-functions.awk (var_type_struct): Handle Enum options.
3522 * optc-gen.awk: Don't check range of variables of character type.
3523 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3524 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3525 rs6000_sdata_name, rs6000_explicit_options): Remove.
3526 (rs6000_option_override_internal): Check for -malign-power here.
3527 Use global_options_set instead of rs6000_explicit_options.
3528 (rs6000_parse_fpu_option): Remove.
3529 (rs6000_handle_option): Access variables via opts and opts_set
3530 pointers. Use error_at and warning_at. Add fall-through
3531 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3532 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3533 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3534 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3535 here. Don't use rs6000_parse_fpu_option.
3536 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3537 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3538 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3540 (mspe): Use Var and Save.
3541 (mtraceback=): Use Enum and Var.
3542 (rs6000_traceback_type): New Enum and EnumValue entries.
3543 (mfloat-gprs=): Use Enum, Var and Save.
3544 (rs6000_float_gprs): New Enum and EnumValue entries.
3545 (mlong-double-): use Var and Save.
3546 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3547 (malign-): Use Enum and Var.
3548 (rs6000_alignment_flags): New Enum and EnumValue entries.
3550 (fpu_type_t): New Enum and EnumValue entries.
3551 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3552 global_options_set instead of rs6000_explicit_options.
3553 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3554 global_options_set instead of rs6000_explicit_options.
3555 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3556 global_options_set instead of rs6000_explicit_options.
3557 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3558 global_options_set instead of rs6000_explicit_options.
3559 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3560 global_options_set instead of rs6000_explicit_options.
3561 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3562 global_options_set instead of rs6000_explicit_options.
3563 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3565 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3566 global_options_set instead of rs6000_explicit_options.
3567 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3568 (rs6000_cmodel): New Enum and EnumValue entries.
3569 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3570 global_options_set instead of rs6000_explicit_options.
3571 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3572 (mtls-size=): Use Enum and Var.
3573 (rs6000_tls_size): New Enum and EnumValue entries.
3575 2011-05-05 Michael Matz <matz@suse.de>
3577 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3578 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3579 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3580 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3581 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3582 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3583 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3584 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3585 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3586 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3587 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3588 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3589 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3590 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3591 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3592 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3594 2011-05-05 Richard Guenther <rguenther@suse.de>
3596 * expmed.c (expand_variable_shift): Rename to ...
3597 (expand_shift_1): ... this. Take an expanded shift amount.
3598 For rotates recurse directly not building trees for the shift amount.
3599 (expand_variable_shift): Wrap around expand_shift_1.
3600 (expand_shift): Adjust.
3602 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3604 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3606 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3608 * tree.h (get_pending_sizes): Remove prototype.
3609 (put_pending_size): Likewise.
3610 (put_pending_sizes): Likewise.
3611 * stor-layout.c (pending_sizes): Delete.
3612 (get_pending_sizes): Likewise.
3613 (put_pending_size): Likewise.
3614 (put_pending_sizes): Likewise.
3615 (variable_size): Do not call put_pending_size and tidy up.
3616 * function.h (struct function): Remove dont_save_pending_sizes_p.
3617 * lto-streamer-in.c (input_function): Do not stream it.
3618 * lto-streamer-out.c (output_function): Likewise.
3619 * tree-inline.c (initialize_cfun): Do not copy it.
3620 * c-decl.c (store_parm_decls): Do not set it.
3621 * omp-low.c (create_task_copyfn): Likewise.
3622 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3624 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3626 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3628 (*movdf_internal): Ditto.
3629 (*movdf_internal_nointeger): Ditto.
3630 (*movsf_internal): Ditto.
3632 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3634 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3635 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3636 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3637 (c_variable_size): Remove.
3638 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3639 call put_pending_sizes.
3640 (get_parm_info): Add parameter expr. Use it to set
3641 arg_info->pending_sizes.
3642 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3644 * c-parser.c (c_parser_parms_declarator): Update call to
3645 c_parser_parms_list_declarator.
3646 (c_parser_parms_list_declarator): Take parameter expr. Update
3647 call to push_parm_decl. Update recursive call. Don't call
3648 get_pending_sizes. Update calls to get_parm_info.
3649 (c_parser_objc_method_definition): Update calls to
3650 c_parser_objc_method_decl and objc_start_method_definition.
3651 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3652 (c_parser_objc_method_decl): Add parameter expr. Update call to
3654 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3655 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3656 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3658 2011-05-05 Michael Hope <michael.hope@linaro.org>
3661 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3664 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3666 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3667 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3668 (spu_output_mi_thunk): New function.
3670 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3672 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3673 targetm.asm_out.print_operand.
3674 * config/sol2.c: Include target.h.
3676 2011-05-04 Jan Hubicka <jh@suse.cz>
3678 * ipa-inline.c (reset_edge_caches): New function.
3679 (update_caller_keys): Add check_inlinablity_for; do not
3680 reset edge caches; remove now unnecesary loop.
3681 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3682 (update_all_callee_keys): Likewise.
3683 (inline_small_functions): Sanity check cache; update code
3686 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3688 PR rtl-optimization/47612
3689 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3690 as the last insn of the sequence to be moved.
3692 2011-05-04 Tobias Burnus <burnus@net-b.de>
3695 * doc/invoke.texi (Ofast): Document that it
3696 enables Fortran's -fno-protect-parens.
3698 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3700 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3702 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3704 * stor-layout.c (variable_size): Do not issue errors.
3706 2011-05-04 Richard Guenther <rguenther@suse.de>
3708 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3709 for array-ref indices.
3710 (tree_coverage_counter_addr): Likewise.
3711 (build_fn_info_type): Use size_int for index types.
3712 (build_gcov_info): Likewise.
3714 2011-05-04 Richard Guenther <rguenther@suse.de>
3716 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3718 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3719 for constructor indices.
3720 (push_init_level): Likewise.
3722 2011-05-04 Richard Guenther <rguenther@suse.de>
3724 * explow.c (promote_mode): Move variable declarations before code.
3726 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3728 * tree.h (build_function_type_array): Declare.
3729 (build_varargs_function_type_array): Declare.
3730 (build_function_type_vec, build_varargs_function_type_vec): Define.
3731 * tree.c (build_function_type_array_1): New function.
3732 (build_function_type_array): New function.
3733 (build_varargs_function_type_array): New function.
3735 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3737 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3738 before setting STMT_VINFO_TYPE.
3740 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3742 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3743 instead of spu_pass_by_reference.
3745 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3747 * calls.c (emit_library_call_value_1): Invoke
3748 promote_function_mode hook on libcall arguments.
3749 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3750 argument being NULL.
3751 * targhooks.c (default_promote_function_mode): Lisewise.
3752 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3753 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3755 * doc/tm.texi: Document that TYPE argument might be NULL.
3757 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3759 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3761 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3764 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3766 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3768 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3769 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3771 * mips-tfile.c: ... here.
3772 Don't include coretypes.h, tm.h, filenames.h.
3773 (saber_stop): Remove definition and all calls.
3774 [__SABER__]: Remove.
3775 (__LINE__): Remove default.
3776 (Size_t, Ptrdiff_t): Remove definitions.
3777 Replace by size_t, ptrdiff_t.
3778 [!MIPS_DEBUGGING_INFO]: Remove.
3779 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3780 (progname): Add const.
3782 Replace all uses by static.
3783 (ALIGN_SYMTABLE_OFFSET): Remove default.
3784 * mips-tdump.c: Don't include coretypes.h, tm.h.
3785 Remove !MIPS_IS_STAB guard.
3786 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3787 $(TM_H), filenames.h dependencies.
3788 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3790 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3793 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3794 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3796 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3799 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3800 account and save/restore RETS.
3801 (PROFILE_BEFORE_PROLOGUE): Define.
3802 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3803 the push insn to use predecrement.
3805 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3808 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3810 2011-05-04 Nick Clifton <nickc@redhat.com>
3812 * config/mn10300/mn10300.c: Include cfgloop.h.
3814 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3815 Lcc or a FLcc insn into the instruction stream.
3816 (mn10300_block_contains_call): New function. Returns true if the
3817 given basic block contains a CALL insn.
3818 (mn10300_loop_contains_call_insn): New function. Returns true if
3819 the given loop contains a CALL insn.
3820 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3821 to use the SETLB and Lcc or FLcc insns.
3822 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3823 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3824 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3825 disable the SETLB optimization.
3826 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3827 __SETLB__ or __NO_SETLB__.
3828 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3829 (movsf_internal): Handle MDR register.
3830 (cmpsi): Make visible.
3831 (setlb): New pattern.
3833 (FLcc): New pattern.
3835 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3838 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3839 for reg<->xmm moves.
3840 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3841 (vec_concatv2di_rex64_sse): Ditto.
3842 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3843 (*vec_extractv2di_1_rex64): Ditto.
3846 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3848 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3850 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3852 2011-05-04 Richard Guenther <rguenther@suse.de>
3854 * tree.h (int_const_binop): Remove notrunc argument.
3855 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3856 create integer constants that are properly truncated.
3857 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3858 (const_binop): Remove zero notrunc argument to int_const_binop.
3859 (size_binop_loc): Likewise.
3860 (fold_div_compare): Likewise.
3861 (maybe_canonicalize_comparison_1): Likewise.
3862 (fold_comparison): Likewise.
3863 (fold_binary_loc): Likewise.
3864 (multiple_of_p): Likewise.
3865 * expr.c (store_constructor): Likewise.
3866 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3867 (maybe_fold_stmt_addition): Likewise.
3868 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3869 * stor-layout.c (layout_type): Likewise.
3870 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3871 * tree-sra.c (build_ref_for_offset): Likewise.
3872 (build_user_friendly_ref_for_offset): Likewise.
3873 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3874 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3875 * tree-ssa-loop-niter.c (inverse): Likewise.
3876 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3877 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3878 * tree-switch-conversion.c (check_range): Likewise.
3879 (build_constructors): Likewise.
3880 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3881 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3882 (extract_range_from_assert): Likewise.
3883 (vrp_int_const_binop): Likewise.
3884 (extract_range_from_binary_expr): Likewise.
3885 (extract_range_from_unary_expr): Likewise.
3886 (check_array_ref): Likewise.
3887 (find_case_label_range): Likewise.
3888 (simplify_div_or_mod_using_ranges): Likewise.
3889 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3890 comparing case labels for merging.
3892 2011-05-03 Mark Wielaard <mjw@redhat.com>
3894 * dwarf2out.c (debug_str_hash_forced): Removed.
3895 (gen_label_for_indirect_string): Removed.
3896 (get_debug_string_label): Removed.
3897 (AT_string_form): Generate label directly.
3898 (output_indirect_string): Test indirect_string_node for
3899 DW_FORM_strp instead of checking label and refcount.
3900 (prune_indirect_string): Removed.
3901 (prune_unused_types): Don't check debug_str_hash_forced or
3902 call prune_indirect_string.
3904 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3907 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3909 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3913 * combine.c (try_combine): Skip debug insns at m_split tests.
3915 2011-04-26 Mark Wielaard <mjw@redhat.com>
3918 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3919 when info_section_emitted.
3921 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3923 * config/mips/mips-opts.h: New.
3924 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3926 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3927 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3928 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3930 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3932 (mips_abi, mips_code_readable): Don't declare.
3933 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3934 (mabi=): Use Enum and Var.
3935 (mips_abi): New Enum and EnumValue entries.
3936 (mcode-readable=): Use Enum and Var.
3937 (mips_code_readable_setting): New Enum and EnumValue entries.
3938 (mr10k-cache-barrier=): Use Enum and Var.
3939 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3941 2011-05-03 Jan Hubicka <jh@suse.cz>
3943 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3944 replace hash by pointer map.
3945 (cgraph_node_set_element_def, cgraph_node_set_element,
3946 const_cgraph_node_set_element, varpool_node_set_element_def,
3947 varpool_node_set_element, const_varpool_node_set_element): Remove.
3948 (free_cgraph_node_set, free_varpool_node_set): New function.
3949 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3950 * tree-emutls.c: Free varpool node set.
3951 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3952 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3953 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3954 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3955 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3956 Move here from ipa.c; implement using pointer_map
3957 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3958 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3959 debug_cgraph_node_set, varpool_node_set_new,
3960 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3961 dump_varpool_node_set, debug_varpool_node_set):
3962 Move to ipa-uitls.c.
3963 * passes.c (ipa_write_summaries): Update.
3965 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3967 From Mike Frysinger:
3968 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3969 bf542/bf544/bf547/bf548/bf549.
3971 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3973 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3975 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3978 * config/bfin/bfin.md (MOVCC): New mode_macro.
3979 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3980 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3981 comments from generated assembly.
3983 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3986 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3987 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3988 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3989 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3990 * config/bfin/lib1funcs.asm (___muldi3): New function.
3992 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3994 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3995 build_function_type_list instead of build_function_type.
3996 Rearrange initialization of `args' to do so.
3998 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4000 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4001 instead of build_function_type.
4003 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4005 * config/rs6000/rs6000.c (spe_init_builtins): Call
4006 build_function_type_list instead of build_function_type.
4007 (paired_init_builtins, altivec_init_builtins): Likewise.
4008 (builtin_function_type): Likewise.
4010 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4012 * config/sh/sh.c (sh_media_init_builtins): Call
4013 build_function_type_list instead of build_function_type.
4015 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4017 * config/sparc/sparc.c (sparc_file_end): Call
4018 build_function_type_list instead of build_function_type.
4020 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4022 * config/alpha/alpha.c (alpha_init_builtins): Call
4023 build_function_type_list instead of build_function_type.
4025 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4027 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4028 build_function_type_list instead of build_function_type.
4030 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4032 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4033 build_function_type_list instead of build_function_type.
4034 Delete `endlink' variable.
4036 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4038 * config/avr/avr.c (avr_init_builtins): Call
4039 build_function_type_list instead of build_function_type.
4041 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4043 * config/picochip/picochip.c (picochip_init_builtins): Call
4044 build_function_type_list instead of build_function_type.
4045 Delete `endlink' variable.
4047 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4049 * config/bfin/bfin.c (bfin_init_builtins): Call
4050 build_function_type_list instead of build_function_type.
4052 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4055 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4056 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4058 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4061 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4062 libbffastfp overrides libgcc when -mfast-fp.
4064 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4066 Originally from Bernd Schmidt
4067 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4068 * config/bfin/bfin.c (override_options): Test it and error if
4071 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4073 Originally From Bernd Schmidt
4074 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4077 2011-05-03 Jeff Law <law@redhat.com>
4079 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4080 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4081 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4082 than accessing AUX field directly. Free the AUX field before
4084 (thread_block, thread_through_loop_header): Likewise.
4085 (thread_single_edge, mark_threaded_blocks): Likewise.
4086 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4087 (register_jump_thread): Do not attempt to thread to a NULL edge.
4089 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4091 * function.c (init_function_start): Call decide_function_section.
4092 * varasm.c (decide_function_section): New function.
4093 (assemble_start_function): When not using
4094 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4095 or first_function_block_is_cold.
4096 * rtl.h (decide_function_section): Declare.
4098 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4099 Jakub Jelinek <jakub@redhat.com>
4102 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4103 only succeed if req_mode is the same as set_mode.
4105 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4107 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4108 * genemit.c (gen_exp): Handle RETURN.
4109 * emit-rtl.c (verify_rtx_sharing): Likewise.
4110 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4111 * rtl.c (copy_rtx): RETURN is shared.
4112 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4114 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4115 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4116 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4117 * config/cris/cris.c (cris_expand_return): Likewise.
4118 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4119 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4120 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4121 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4122 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4124 * config/v850/v850.c (expand_epilogue): Likewise.
4125 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4126 * config/arm/arm.md (epilogue): Likewise.
4127 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4128 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4129 variable to ret_reg.
4131 2011-05-03 Richard Guenther <rguenther@suse.de>
4134 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4135 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4136 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4138 2011-05-03 Richard Guenther <rguenther@suse.de>
4140 * c-decl.c (grokdeclarator): Instead of looking at
4141 TREE_OVERFLOW check if the constant fits in the index type.
4143 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4145 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4146 (vec_store_lanes<mode><mode>): Likewise.
4148 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4150 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4151 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4152 convert_optab_index values.
4153 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4154 * genopinit.c (optabs): Initialize the new optabs.
4155 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4156 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4157 (expand_STORE_LANES): New functions.
4158 * tree.h (build_array_type_nelts): Declare.
4159 * tree.c (build_array_type_nelts): New function.
4160 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4161 (vect_model_load_cost): Likewise.
4162 (vect_store_lanes_supported, vect_load_lanes_supported)
4163 (vect_record_strided_load_vectors): Declare.
4164 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4165 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4166 (vect_transform_strided_load): Split out statement recording into...
4167 (vect_record_strided_load_vectors): ...this new function.
4168 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4169 (write_vector_array, create_array_ref): New functions.
4170 (vect_model_store_cost): Add store_lanes_p argument.
4171 (vect_model_load_cost): Add load_lanes_p argument.
4172 (vectorizable_store): Try to use store-lanes functions for
4174 (vectorizable_load): Likewise load-lanes and loads.
4175 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4176 to vect_model_store_cost.
4177 (vect_build_slp_tree): Likewise vect_model_load_cost.
4179 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4181 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4182 * hooks.c (hook_bool_mode_uhwi_false): New function.
4183 * target.def (array_mode_supported_p): New hook.
4184 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4185 * doc/tm.texi: Regenerate.
4186 * stor-layout.c (mode_for_array): New function.
4187 (layout_type): Use it.
4188 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4189 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4191 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4194 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4195 for -fstack-check if the size to allocate is negative.
4197 2011-05-02 Lawrence Crowl <crowl@google.com>
4199 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4200 (timevar_cond_start): New for starting a timer only when it is not
4202 (timevar_cond_stop): New for stopping a timer when it was not already
4205 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4206 (timevar_cond_start): New as above.
4207 (timevar_cond_stop): New as above.
4209 * timevar.def: Add start/stop timers for compiler phases,
4210 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4211 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4212 and TV_PHASE_FINALIZE.
4213 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4214 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4215 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4216 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4217 Make unused TV_OVERLOAD into a start/stop timer.
4219 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4220 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4221 to indicate that they are start/stop timers.
4223 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4224 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4225 Move initialization to do_compile.
4226 (do_compile): Add initialization from above.
4227 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4229 * c-decl.c (c_write_global_declarations): Add start/stop of
4230 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4232 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4233 or TV_PARSE_INLINE, as appropriate.
4234 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4235 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4237 2011-05-02 Jason Merrill <jason@redhat.com>
4240 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4242 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4245 * c-decl.c (finish_decl): Only create a composite if the types are
4248 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4250 * config/fr30/fr30-protos.h (Mmode): Don't define.
4251 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4252 definition where used.
4253 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4254 define. Expand definitions where used.
4255 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4256 Expand definitions where used.
4257 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4258 rx_function_arg, rx_function_arg_advance,
4259 rx_function_arg_boundary): Expand definitions of those macros.
4260 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4261 definition where used.
4263 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4265 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4267 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4268 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4269 with *movv2sf_internal_rex64_avx.
4270 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4271 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4272 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4273 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4274 "vex" in "prefix" attribute calculation.
4275 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4277 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4280 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4281 inputs match the output.
4283 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4286 * config/m68k/m68k.c (m68k_expand_prologue): Set
4287 current_function_static_stack_size.
4289 2011-05-02 Jan Hubicka <jh@suse.cz>
4291 * lto-streamer.c (lto_streamer_cache_insert_1,
4292 lto_streamer_cache_lookup, lto_streamer_cache_create,
4293 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4294 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4296 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4298 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4299 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4300 config/m68k/t-opts: New files.
4301 * config/m68k/m68k-tables.opt: New file (generated).
4302 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4303 extra_options and m68k/t-opts to tmake_file.
4304 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4305 (all_isas): Initialize using m68k-isas.def.
4306 (all_microarchs): Initialize using m68k-microarchs.def.
4307 (m68k_find_selection): Remove.
4308 (m68k_handle_option): Don't assert that global structures are in
4309 use. Use error_at. Access variables via opts pointer. Don't
4310 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4311 directly for -m68020-40 and -m68020-60.
4312 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4313 m68k_tune_entry here.
4314 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4316 (m68k_library_id_string): Remove declaration.
4317 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4318 (m68k_library_id_string): New Variable.
4319 (march=, mcpu=, mtune=): Use Enum and Var.
4321 2011-05-02 Richard Guenther <rguenther@suse.de>
4323 * varasm.c (output_constructor_regular_field): Compute zero-based
4324 index with double-ints. Make sure to ICE instead of producing
4326 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4327 in asserts. Properly use a signed type.
4329 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4331 * config/i386/sse.md (V): New mode iterator.
4332 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4334 (V_256): Rename from AVX256MODE.
4335 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4336 condition to all users.
4338 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4339 condition to all users.
4340 (VF_128): Make V4SF mode unconditional.
4341 (VF_256): Rename from AVX256MODEF2P.
4342 (VI4F_128): Rename from SSEMODE4S.
4343 (VI8F_128): Rename from SSEMODE2D.
4344 (VI4F_256): Rename from AVX256MODE8P.
4345 (VI8F_256): Rename from AVX256MODE4P.
4346 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4347 (ssescalarmodesuffix): Remove SF and DF modes.
4348 (SSEMODE124): Remove.
4349 (SSEMODE1248): Ditto.
4350 (SSEMODEF2P): Ditto.
4351 (AVXMODEF2P): Ditto.
4352 (AVXMODEFDP): Ditto.
4353 (AVXMODEFSP): Ditto.
4354 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4356 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4358 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4359 xop_pcmov_<mode>256. Use V mode iterator.
4361 Adjust RTX patterns globally for renamed mode attributes.
4363 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4365 * haifa-sched.c (sched_emit_insn): Emit insn before first
4366 non-scheduled insn. Inform back-end about new insn. Add
4367 new insn to scheduled_insns list.
4369 2011-05-02 Richard Guenther <rguenther@suse.de>
4371 PR tree-optimization/48822
4372 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4373 (process_scc): Indicate which iteration we start.
4375 2011-05-02 Jan Hubicka <jh@suse.cz>
4377 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4378 (lto_section_overrun): New.
4379 * lto-section-out.c (append_block): Rename to ...
4380 (lto_append_block): ... this one; export.
4381 (lto_output_1_stream): Move lto lto-streamer.h
4382 (lto_output_data_stream): Update.
4383 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4384 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4387 2011-05-02 Richard Guenther <rguenther@suse.de>
4389 * tree.c (tree_code_counts): New global array.
4390 (record_node_allocation_statistics): Count individual tree codes.
4391 (dump_tree_statistics): Dump individual code stats.
4393 2011-05-01 Jan Hubicka <jh@suse.cz>
4395 * ipa-inline.c (caller_growth_limits): Fix thinko when
4396 looking for largest stack frame.
4397 * ipa-inline.h (dump_inline_summary): Declare.
4398 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4400 (dump_inline_summary): Export.
4401 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4403 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4405 * reginfo.c (memory_move_cost): Change rclass argument type form
4406 'enum reg_class' to reg_class_t.
4407 * reload.h (memory_move_cost): Update prototype.
4408 * postreload.c reload_cse_simplify_set): Change type dclass var to
4410 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4412 (ira_allocate_and_set_costs): Change aclass argument type form
4413 'enum reg_class' to reg_class_t.
4414 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4415 Change aclass argument type to reg_class_t.
4416 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4418 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4419 memory_move_cost call.
4421 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4422 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4423 Change type tmp var to reg_class_t.
4425 2011-04-30 Jan Hubicka <jh@suse.cz>
4427 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4428 inlining into function with flatten attribute.
4429 (want_inline_small_function_p): Be more realistic about inlining
4430 cold calls where callee size grows.
4432 2011-04-30 Jan Hubicka <jh@suse.cz>
4434 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4437 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4439 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4440 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4441 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4442 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4443 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4444 (print_operand): Rename to...
4445 (sparc_print_operand): ...this. Make static. Adjust
4446 sparc_print_operand function call.
4447 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4450 2011-04-30 Jan Hubicka <jh@suse.cz>
4453 * ipa-inline.c (early_inliner): Disable when doing late
4454 addition of function.
4456 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4458 * dwarf2out.c (get_address_mode): New inline.
4459 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4460 if not dwarf_strict emit
4461 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4462 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4463 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4464 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4465 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4466 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4467 mem_loc_descriptor callers.
4468 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4469 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4470 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4471 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4472 (base_types): New variable.
4473 (get_base_type_offset, calc_base_type_die_sizes,
4474 base_type_for_mode, mark_base_types, base_type_cmp,
4475 move_marked_base_types): New functions.
4476 (calc_die_sizes): Assert that die_offset is 0 or equal to
4478 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4479 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4480 callers. If not dwarf_strict, call mem_loc_descriptor even for
4481 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4482 (gen_subprogram_die): Don't give up on call site parameters
4483 with non-integral or large integral modes. Adjust
4484 mem_loc_descriptor callers.
4485 (prune_unused_types): Call prune_unused_types_mark on base_types
4487 (resolve_addr): Call mark_base_types.
4488 (dwarf2out_finish): Call move_marked_base_types.
4490 PR tree-optimization/48809
4491 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4493 (gen_inbound_check): Don't compute index_expr - range_min in utype
4494 again, instead reuse SSA_NAME initialized in build_arrays.
4495 Remove two useless gsi_for_stmt calls.
4497 2011-04-29 Jeff Law <law@redhat.com>
4499 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4501 2011-04-29 Martin Jambor <mjambor@suse.cz>
4503 * cgraph.h (cgraph_postorder): Remove declaration.
4504 * ipa-utils.h (ipa_free_postorder_info): Declare.
4505 (ipa_reverse_postorder): Likewise.
4506 * cgraphunit.c: Include ipa-utils.h.
4507 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4508 * ipa-inline.c: Include ipa-utils.h.
4509 (ipa_inline): Update call to ipa_reverse_postorder.
4510 * ipa-pure-const.c (propagate_pure_const): Update call to
4511 ipa_reduced_postorder and ipa_print_order. Call
4512 ipa_free_postorder_info to clean up.
4513 (propagate_nothrow): Likewise.
4514 * ipa-reference.c (propagate): Removed a useless call to
4515 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4516 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4517 * ipa.c: Include ipa-utils.h.
4518 (ipa_profile): Update call to ipa_reverse_postorder.
4519 (cgraph_postorder): Moved to...
4520 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4521 (ipa_utils_print_order): Renamed to ipa_print_order.
4522 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4524 (ipa_free_postorder_info): New function.
4525 * passes.c: Include ipa-utils.h.
4526 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4527 (ipa_write_summaries): Likewise.
4528 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4529 (cgraphunit.o): Likewise.
4531 (ipa-inline.o): Likewise.
4533 2011-04-29 Jan Hubicka <jh@suse.cz>
4535 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4536 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4537 * ipa-inline.h (clause_t): Turn into unsigned int.
4538 * ipa-inline-analysis.c (add_clause): Do more simplification.
4539 (and_predicates): Shortcut more cases.
4540 (predicates_equal_p): Move forward; check that clauses are properly
4542 (or_predicates): Shortcut more cases.
4543 (edge_execution_predicate): Rewrite as...
4544 (set_cond_stmt_execution_predicate): ... this function; handle
4545 __builtin_constant_p.
4546 (set_switch_stmt_execution_predicate): New .
4547 (compute_bb_predicates): New.
4548 (will_be_nonconstant_predicate): Update TODO.
4549 (estimate_function_body_sizes): Use compute_bb_predicates
4550 and free them later, always try to estimate if stmt is constant.
4551 (estimate_time_after_inlining, estimate_size_after_inlining):
4552 Gracefully handle optimized out edges.
4553 (read_predicate): Fix off by one error.
4555 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4557 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4559 2011-04-27 Xinliang David Li <davidxl@google.com>
4561 * tree-profile.c (init_ic_make_global_vars): Set
4562 tls attribute on ic vars.
4563 * coverage.c (coverage_end_function): Initialize
4564 function_list with zero.
4566 2011-04-29 Richard Guenther <rguenther@suse.de>
4568 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4569 for the type of the result.
4570 (fold_builtin_isascii): Likewise.
4571 (fold_builtin_toascii): Use integer_type_node where appropriate.
4572 (fold_builtin_logb): Likewise.
4573 (fold_builtin_frexp): Likewise.
4574 (fold_builtin_strstr): Likewise.
4575 (fold_builtin_strpbrk): Likewise.
4576 (fold_builtin_fputs): Likewise.
4577 (fold_builtin_sprintf): Likewise.
4578 (fold_builtin_snprintf): Likewise.
4579 (fold_builtin_printf): Likewise.
4580 (do_mpfr_remquo): Use a proper type for the assigned constant.
4581 (do_mpfr_lgamma_r): Likewise.
4582 * dwarf2out.c (resolve_one_addr): Use size_int.
4583 * except.c (init_eh): Likewise.
4584 (assign_filter_values): Use integer_type_node for filter values.
4585 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4587 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4588 for EH region numbers.
4589 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4590 for the shift amount.
4592 2011-04-29 Richard Guenther <rguenther@suse.de>
4594 * expr.h (expand_shift): Rename to ...
4595 (expand_variable_shift): ... this.
4596 (expand_shift): Take a constant shift amount.
4597 * expmed.c (expand_shift): Rename to ...
4598 (expand_variable_shift): ... this.
4599 (expand_shift): New wrapper around expand_variable_shift.
4600 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4601 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4602 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4603 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4604 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4605 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4606 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4607 emit_store_flag_1, emit_store_flag): Likewise.
4608 * builtins.c (expand_builtin_signbit): Likewise.
4609 * calls.c (load_register_parameters): Likewise.
4610 * function.c (assign_parm_setup_block): Likewise.
4611 * lower-subreg.c (resolve_shift_zext): Likewise.
4612 * optabs.c (widen_bswap, expand_abs_nojump,
4613 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4614 * spu/spu.c (spu_expand_extv): Likewise.
4615 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4617 2011-04-29 Richard Guenther <rguenther@suse.de>
4619 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4620 for the remapped region number.
4621 * predict.c (build_predict_expr): Use integer_type_node for the
4623 * fold-const.c (fold_binary_loc): Use integer_type_node for
4624 the shift amount. Use a proper type for the PLUS_EXPR operand.
4626 2011-04-29 Michael Matz <matz@suse.de>
4628 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4629 other trees that just builtins.
4630 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4632 2011-04-29 Richard Guenther <rguenther@suse.de>
4634 * tree-nested.c (get_trampoline_type): Use size_int.
4635 (get_nl_goto_field): Likewise.
4636 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4638 (lower_eh_constructs_2): Likewise.
4639 (lower_resx): Likewise.
4640 (lower_eh_dispatch): Likewise.
4641 * tree-mudflap.c (mf_build_string): Use size_int.
4642 (mudflap_register_call): Use integer_type_node for the flag.
4643 (mudflap_enqueue_constant): Use size_int.
4644 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4645 instead of rebuilding it.
4647 2011-04-29 Richard Guenther <rguenther@suse.de>
4649 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4650 Handle OBJ_TYPE_REF.
4651 (find_func_aliases_for_call): Use it more consistently.
4653 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4655 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4656 (rank_for_schedule): Use it.
4657 (schedule_block): Set it.
4659 2011-04-28 David Li <davidxl@google.com>
4661 * tree.c (crc32_string): Use crc32_byte.
4662 (crc32_byte): New function.
4663 * tree.h (crc32_byte): New function.
4664 * gcov.c (read_graph_file): Handle new cfg_cksum.
4665 (read_count_file): Ditto.
4666 * profile.c (instrument_values): Ditto.
4667 (get_exec_counts): Ditto.
4668 (read_profile_edge_counts): Ditto.
4669 (compute_branch_probabilities): Ditto.
4670 (compute_value_histograms): Ditto.
4671 (branch_prob): Ditto.
4672 (end_branch_prob): Ditto.
4673 * coverage.c (read_counts_file): Ditto.
4674 (get_coverage_counts): Ditto.
4675 (tree_coverage_counter_addr): Ditto.
4676 (coverage_checksum_string): Ditto.
4677 (coverage_begin_output): Ditto.
4678 (coverage_end_function): Ditto.
4679 (build_fn_info_type): Ditto.
4680 (build_fn_info_value): Ditto.
4681 * libgcov.c (gcov_exit): Ditto.
4682 * gcov-dump.c (tag_function): Ditto.
4683 (compute_checksum): Remove.
4685 2011-04-29 Alan Modra <amodra@gmail.com>
4687 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4688 unspec plus offset. Tidy macho code.
4690 2011-04-29 Martin Jambor <mjambor@suse.cz>
4692 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4693 node instead of a decl. Update all callers.
4694 * cgraph.h: Update declaration.
4696 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4698 PR tree-optimization/48765
4699 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4700 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4701 to indicate if loop aware SLP is being used. Scan the statements
4702 and update the vectorization factor according to the type of
4703 vectorization before statement analysis.
4704 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4705 pass it to vect_analyze_loop_operations.
4706 (vectorizable_reduction): Set number of copies to 1 in case of pure
4708 * tree-vect-stmts.c (vectorizable_conversion,
4709 vectorizable_assignment, vectorizable_shift,
4710 vectorizable_operation, vectorizable_type_demotion,
4711 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4713 (vectorizable_condition): Move the check that it is not SLP
4714 vectorization before the number of copies check.
4715 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4716 to vectorize the loop using SLP.
4718 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4721 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4724 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4726 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4727 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4728 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4729 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4730 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4732 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4733 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4734 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4735 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4736 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4737 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4739 * config/i386/linux.h (REG_NAME): Don't define.
4740 * config/i386/linux64.h (REG_NAME): Don't define.
4741 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4742 Undefine before defining.
4744 2011-04-28 Jan Hubicka <jh@suse.cz>
4746 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4747 nonconstant_names array.
4748 (estimate_function_body_sizes): Build nonconstant_names array; handle
4749 BUILT_IN_CONSTANT_P.
4751 2011-04-28 Richard Guenther <rguenther@suse.de>
4755 2011-04-28 Richard Guenther <rguenther@suse.de>
4757 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4758 as late as possible.
4760 2011-04-28 Richard Guenther <rguenther@suse.de>
4762 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4763 (debug_constraint): Do it here.
4764 (dump_constraints): And here.
4765 (rewrite_constraints): And here.
4766 (dump_constraint_edge): Remove.
4767 (dump_constraint_graph): Rewrite to produce DOT output.
4768 (solve_constraints): Build succ graph as late as possible.
4769 Dump constraint graphs before and after solving.
4771 2011-04-28 Richard Guenther <rguenther@suse.de>
4773 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4774 New function split out from ...
4775 (find_func_aliases): ... here. Call it.
4776 (find_func_aliases_for_call): Likewise.
4778 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4780 * internal-fn.h (internal_fn_name_array): Declare.
4781 (internal_fn_flags_array): Likewise.
4783 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4785 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4786 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4788 (ssemodefsuffix): Remove.
4789 (ssevecmodesuffix): New mode attribute.
4790 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4791 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4792 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4793 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4794 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4795 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4796 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4797 ssemodesuffix mode attribute.
4798 (float splitters): Use ssevecmodesuffix mode attribute.
4799 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4800 (sseinsmode): Rename from avxvecmode.
4801 (avxsizesuffix): Rename from avxmodesuffix.
4802 (sseintvecmode): Rename from avxpermvecmode.
4803 (ssedoublevecmode): Rename from ssedoublesizemode.
4804 (ssehalfvecmode): Rename from avxhalfvecmode.
4805 (ssescalarmode): Rename from avxscalarmode.
4806 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4807 templates for ssemodesuffix mode attribute.
4808 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4811 Adjust RTX patterns globally for renamed mode attributes.
4813 2011-04-27 Jan Hubcika <jh@suse.cz>
4815 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4816 * ipa-inline-analysis.c: Include alloc-pool.h.
4817 (edge_predicate_pool): New.
4818 (trye_predicate_p): New function
4819 (false_predicate_p): New function.
4820 (add_clause): Sanity check that false clauses are "optimized";
4821 never add clauses to predicate that is already known to be false.
4822 (and_predicate): Use flase_predicate_p.
4823 (evaulate_predicate): Rename to ...
4824 (evaluate_predicate): ... this one; update all callers; assert
4825 that false is not listed among possible truths.
4826 (dump_predicate): Use true_predicate_p.
4827 (account_size_time): Use false_predicate_p.
4828 (evaulate_conditions_for_edge): Rename to ...
4829 (evaluate_conditions_for_edge) ... this one.
4830 (edge_set_predicate): New function.
4831 (inline_edge_duplication_hook): Duplicate edge predicates.
4832 (inline_edge_removal_hook): Free edge predicates.
4833 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4834 (dump_inline_summary): Update.
4835 (estimate_function_body_sizes): Set edge predicates.
4836 (estimate_calls_size_and_time): Handle predicates.
4837 (estimate_callee_size_and_time): Update.
4838 (remap_predicate): Add toplev_predicate; update comment.
4839 (remap_edge_predicates): New function.
4840 (inline_merge_summary): Compute toplev predicate; update.
4841 (read_predicate): New function.
4842 (read_inline_edge_summary): Use it.
4843 (inline_read_section): Likewise.
4844 (write_predicate): New function.
4845 (write_inline_edge_summary): Use it.
4846 (inline_write_summary): Likewise.
4847 (inline_free_summary): Free alloc pool and edge summary vec.
4849 2011-04-27 Richard Guenther <rguenther@suse.de>
4851 * tree-ssa-structalias.c (changed_count): Remove.
4852 (changed): Use a bitmap.
4853 (unify_nodes): Adjust.
4854 (do_sd_constraint): Likewise.
4855 (do_ds_constraint): Likewise.
4856 (do_complex_constraint): Likewise.
4857 (solve_graph): Likewise.
4859 2011-04-27 Jan Hubicka <jh@suse.cz>
4861 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4863 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4865 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4866 (avx_vperm2f128_*_operand): Ditto.
4867 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4868 Use avx_vpermilp_parallel in insn condition.
4869 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4870 Use avx_vperm2f128_parallel in insn condition.
4872 2011-04-27 Richard Guenther <rguenther@suse.de>
4874 * Makefile.in (tree-ssa-structalias.o): Remove
4875 gt-tree-ssa-structalias.h dependency.
4876 (GTFILES): Remove tree-ssa-structalias.c.
4877 * tree.c (allocate_decl_uid): New function.
4878 (make_node_stat): Use it.
4879 (copy_node_stat): Likewise.
4880 * tree.h (allocate_decl_uid): Declare.
4881 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4882 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4883 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4884 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4885 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4886 (struct heapvar_map): Likewise.
4887 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4888 heapvar_insert): Likewise.
4889 (make_heapvar_for): Rename to ...
4890 (make_heapvar): ... this. Simplify.
4891 (fake_var_decl_obstack): New global var.
4892 (build_fake_var_decl): New function.
4893 (make_constraint_from_heapvar): Adjust.
4894 (handle_lhs_call): Likewise.
4895 (create_function_info_for): Likewise.
4896 (intra_create_variable_infos): Likewise.
4897 (init_alias_vars): Allocate fake_var_decl_obstack.
4898 (init_alias_heapvars, delete_alias_heapvars): Remove.
4899 (compute_points_to_sets): Do not call init_alias_heapvars.
4900 (ipa_pta_execute): Likewise.
4901 (delete_points_to_sets): Free fake_var_decl_obstack.
4903 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4905 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4906 (si_from_UTItype, si_to_UTItype): New functions.
4907 (__udivmodti4): Use them to implement type-punning.
4908 * config/spu/multi3.c (union qword_TItype): New data type.
4909 (si_from_TItype, si_to_TItype): New functions.
4910 (__multi3): Use them to implement type-punning.
4912 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4914 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4916 2011-04-27 Jan Hubicka <jh@suse.cz>
4918 * ipa-prop.c (function_insertion_hook_holder): New holder.
4919 (ipa_add_new_function): New function.
4920 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4921 Register/deregister holder.
4923 2011-04-27 Richard Guenther <rguenther@suse.de>
4925 PR tree-optimization/48772
4926 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4928 2011-04-27 Richard Guenther <rguenther@suse.de>
4930 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4931 TARGET_MEM_REF handling.
4933 2011-04-27 Nick Clifton <nickc@redhat.com>
4935 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4936 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4937 (REG_CLASS_NAMES): Likewise.
4938 (REG_CLASS_CONTENTS): Likewise.
4939 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4940 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4941 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4942 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4943 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4944 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4945 duplicate register classes.
4946 (frv_class_likely_spilled_p): Likewise.
4947 (frv_register_move_cost): Likewise.
4949 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4950 end of the regno_reg_class array.
4952 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4955 * c-typeck.c (build_binary_op): Don't wrap arguments if
4956 int_operands is true.
4958 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4961 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4962 targetm.calls.must_pass_in_stack for void type.
4964 2011-04-26 Jan Hubicka <jh@suse.cz>
4966 * cgraphbuild.c (build_cgraph_edges): Update call
4967 of cgraph_create_edge and cgraph_create_indirect_edge.
4968 * cgraph.c (cgraph_create_edge_including_clones,
4969 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4970 cgraph_update_edges_for_call_stmt_node): Do not take nest
4971 argument; do not initialize call_stmt_size/time.
4972 (dump_cgraph_node): Do not dump nest.
4973 (cgraph_clone_edge): Do not take loop_nest argument;
4974 do not propagate it; do not clone call_stmt_size/time.
4975 (cgraph_clone_node): Likewise.
4976 (cgraph_create_virtual_clone): Update.
4977 * cgraph.h (struct cgraph_edge): Remove
4978 call_stmt_size/call_stmt_time/loop_nest.
4979 (cgraph_create_edge, cgraph_create_indirect_edge,
4980 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4982 * tree-emutls.c (gen_emutls_addr): Update.
4983 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4984 loop_nest; handle indirect calls, too.
4985 (clone_inlined_nodes): Do not care about updating inline summaries.
4986 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4987 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4988 stream call_stmt_size/call_stmt_time/loop_nest.
4989 * ipa-inline.c (edge_badness): Update.
4990 (ipa_inline): dump summaries after inlining.
4991 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4993 (inline_edge_summary): New function.
4994 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4995 (inline_edge_removal_hook): Handle edge summaries.
4996 (inline_edge_duplication_hook): New hook.
4997 (inline_summary_alloc): Alloc hooks.
4998 (initialize_growth_caches): Do not register removal hooks.
4999 (free_growth_caches); Do not free removal hook.
5000 (dump_inline_edge_summary): New function.
5001 (dump_inline_summary): Use it.
5002 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5003 (inline_update_callee_summaries): New function.
5004 (inline_merge_summary): Use it.
5005 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5006 (read_inline_edge_summary): New function.
5007 (inline_read_section): Use it.
5008 (write_inline_edge_summary): New function.
5009 (inline_write_summary): Use it.
5010 (inline_free_summary): Free edge new holders.
5011 * tree-inline.c (copy_bb): Update.
5013 2011-04-26 Jason Merrill <jason@redhat.com>
5015 * tree-eh.c (lower_try_finally_switch): Create the label along with
5016 the CASE_LABEL_EXPR.
5018 2011-04-26 David S. Miller <davem@davemloft.net>
5019 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5021 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5022 * configure: Regenerate.
5024 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5027 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5029 (VEC_reduc): New code iterator and splitters for vector reduction.
5030 (VEC_reduc_name): Ditto.
5031 (VEC_reduc_rtx): Ditto.
5032 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5033 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5035 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5036 support for extracting SF on VSX.
5038 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5039 generating xscvspdp.
5040 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5041 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5042 double add, minimum, maximum vector reduction.
5043 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5044 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5045 optimize double vector reduction.
5046 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5048 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5050 * config/fr30/fr30.h (inhibit_libc): Don't define.
5051 * config/m32r/m32r-protos.h: Correct comment.
5052 * config/v850/v850.h (GHS_default_section_names,
5053 GHS_current_section_names): Use tree, not union tree_node *.
5055 2011-04-26 Xinliang David Li <davidxl@google.com>
5057 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5058 * c-family/c-opts.c (c_common_handle_option): Set
5059 warn_maybe_uninitialized.
5060 * opts.c (common_handle_option): Ditto.
5061 * common.opt: New option.
5062 * tree-ssa.c (warn_uninit): Add one more parameter.
5063 (warn_uninitialized_var): Pass warning code.
5064 * tree-flow.h: Interface change.
5066 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5068 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5069 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5070 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5072 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5074 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5075 * config/mips/mips.opt (mmips-tfile): Remove.
5077 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5078 mips-tdump reference to ...
5079 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5080 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5081 reference by Tru64 UNIX.
5083 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5086 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5087 is error_mark_node, set value to NULL.
5089 PR tree-optimization/48734
5090 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5091 if return value from maybe_fold_*_comparsions isn't something
5092 the code is prepared to handle.
5094 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5096 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5098 (ext_QIreg_nomode_operands): Remove.
5099 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5103 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5105 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5107 2011-04-26 Richard Guenther <rguenther@suse.de>
5109 * c-typeck.c (build_unary_op): Do not expand array-refs via
5110 pointer arithmetic. Only adjust qualifiers for function types.
5112 2011-04-26 Richard Guenther <rguenther@suse.de>
5115 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5116 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5117 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5118 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5120 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5122 * doc/extend.texi: Document __underlying_type.
5124 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5126 * config/rs6000/titan.md (automata_option "progress"): Remove.
5128 2011-04-25 Jeff Law <law@redhat.com>
5130 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5132 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5134 * system.h (ENUM_BITFIELD): Remove.
5136 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5137 Eric Botcazou <ebotcazou@adacore.com>
5139 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5140 for STORE_FLAG_VALUE==-1 case.
5142 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5145 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5146 LEGITIMATE_PIC_OPERAND_P.
5148 2011-04-24 Jan Hubicka <jh@suse.cz>
5150 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5152 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5153 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5154 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5155 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5156 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5157 Sanity check predicate length.
5158 (remap_predicate): Likewise; sanity check jump functions.
5159 (inline_read_section, inline_write_summary): Sanity check
5162 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5165 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5166 __is_literal_type, and __is_trivial; update throughout about
5167 possibly cv-qualified void types.
5169 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5171 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5172 testsuite and make it version agnostic.
5174 2011-04-22 Jan Hubicka <jh@suse.cz>
5176 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5178 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5181 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5182 to VOID_TYPE even around MODIFY_EXPR.
5184 2011-04-22 Mike Stump <mikestump@comcast.net>
5186 * gensupport.c (read_md_rtx): Fix typo in comment.
5187 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5190 2011-04-22 Jan Hubicka <jh@suse.cz>
5192 * gengtype.c (open_base_files): Add ipa-inline.h include.
5193 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5194 ipa-prop.c; update all uses.
5195 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5196 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5197 merge summary of inlined function into former caller.
5198 * ipa-inline.c (max_benefit): Remove.
5199 (edge_badness): Compensate for removal of benefits.
5200 (update_caller_keys): Use
5201 reset_node_growth_cache/reset_edge_growth_cache.
5202 (update_callee_keys): Likewise.
5203 (update_all_callee_keys): Likewise.
5204 (inline_small_functions): Do not collect max_benefit; do not reset
5205 estimated_growth; call free_growth_caches and initialize_growth_caches.
5206 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5207 struct size_time_entry): New structures.
5208 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5209 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5210 and estimated_growth.
5211 (edge_growth_cache_entry): New structure.
5212 (node_growth_cache, edge_growth_cache): New global vars.
5213 (estimate_growth): Turn into inline.
5214 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5215 initialize_growth_caches, free_growth_caches): Declare.
5216 (estimate_edge_growth): Rewrite.
5217 (estimate_edge_time): Implement as inline cache lookup.
5218 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5220 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5221 (NUM_CONDITIONS): New constant.
5222 (predicate_conditions): New enum.
5223 (IS_NOT_CONSTANT): New constant.
5224 (edge_removal_hook_holder): New var.
5225 (node_growth_cache, edge_growth_cache): New global vars.
5226 (true_predicate, single_cond_predicate, false_predicate,
5227 not_inlined_predicate, add_condition, add_clause, and_predicates,
5228 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5229 dump_clause, dump_predicate, account_size_time,
5230 evaulate_conditions_for_edge): New functions.
5231 (inline_summary_alloc): Move to heap.
5232 (inline_node_removal_hook): Clear condition and entry vectors.
5233 (inline_edge_removal_hook): New function.
5234 (initialize_growth_caches, free_growth_caches): New function.
5235 (dump_inline_summary): Update.
5236 (edge_execution_predicate): New function.
5237 (will_be_nonconstant_predicate): New function.
5238 (estimate_function_body_sizes): Compute BB and constantness predicates.
5239 (compute_inline_parameters): Do not clear estimated_growth.
5240 (estimate_edge_size_and_time): New function.
5241 (estimate_calls_size_and_time): New function.
5242 (estimate_callee_size_and_time): New function.
5243 (remap_predicate): New function.
5244 (inline_merge_summary): New function.
5245 (do_estimate_edge_time): New function based on...
5246 (estimate_edge_time): ... this one.
5247 (do_estimate_edge_growth): New function.
5248 (do_estimate_growth): New function based on....
5249 (estimate_growth): ... this one.
5250 (inline_analyze_function): Analyze after deciding on jump functions.
5251 (inline_read_section): New function.
5252 (inline_read_summary): Use it.
5253 (inline_write_summary): Write all the new data.
5254 * ipa-prop.c (ipa_get_param_decl_index): Export.
5255 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5256 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5258 (ipa_get_lattice): Move here from ipa-cp.c
5259 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5260 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5261 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5262 cgraph_edge_inlinable_p): Remove.
5263 * cgraphunit.c: Include ipainline.h
5264 (cgraph_process_new_functions): Update call of
5265 compute_inline_parameters.
5267 2011-04-22 Richard Guenther <rguenther@suse.de>
5269 * tree.c (build_int_cst): Properly create canonicalized integer
5271 (build_int_cst_type): Remove scary comments.
5273 2011-04-22 Xinliang David Li <davidxl@google.com>
5275 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5276 by default when -Wno-error is not specified.
5277 * opts-global.c (decode_options): Remove call to
5278 control_warning_options.
5280 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5282 PR tree-optimization/48717
5283 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5284 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5286 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5288 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5289 definition where used.
5291 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5294 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5295 TREE_STATIC variables declared inside of some OpenMP construct.
5297 2011-04-22 Martin Jambor <mjambor@suse.cz>
5300 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5302 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5305 * c-typeck.c (pop_init_level): Do not warn about initializing
5308 2011-04-22 Alan Modra <amodra@gmail.com>
5310 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5311 when returning call_cookie.
5312 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5313 pointers, to functions with no more vector args than the current
5314 function, and some non-local calls for ABI_V4.
5315 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5316 sibcall_nonlocal_aix64): Combine to ..
5317 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5318 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5319 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5320 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5321 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5323 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5324 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5325 sibcall_value_symbolic_64): Delete.
5327 2011-04-21 Xinliang David Li <davidxl@google.com>
5329 * cgraph.h: Remove pid.
5330 * cgraph.c: Remove pid.
5331 * value-prof.c (init_node_map): New function.
5332 (del_node_map): New function.
5333 (find_func_by_funcdef_no): New function.
5334 (gimple_ic_transform): Call new function.
5335 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5336 * function.c (get_last_funcdef_no): New function.
5337 * function.h (get_last_funcdef_no): New function.
5338 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5339 to libgcov function.
5340 (tree-profiling): Call node map init and delete function.
5342 2011-04-21 Ian Lance Taylor <iant@google.com>
5344 * godump.c (go_format_type): Use exported Go name for anonymous
5347 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5349 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5350 Call builtin_function_type_list instead of builtin_function_type.
5351 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5353 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5355 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5356 build_function_type_list instead of build_function_type.
5357 Delete variable `endlink'.
5359 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5361 * config/s390/s390.c (s390_init_builtins): Call
5362 build_function_type_list instead of build_function_type.
5364 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5366 * config/ia64/ia64.c (ia64_init_builtins): Call
5367 build_function_type_list instead of builtin_function_type.
5369 2011-04-21 Easwaran Raman <eraman@google.com>
5371 * cfgexpand.c (stack_var): Remove OFFSET...
5372 (add_stack_var): ...and its reference here...
5373 (expand_stack_vars): ...and here.
5374 (stack_var_cmp): Sort by descending order of size.
5375 (partition_stack_vars): Change heuristic.
5376 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5377 (dump_stack_var_partition): Add newline after each partition.
5379 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5380 Jeff Law <law@redhat.com>
5382 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5383 * gengtype.c (matching_file_name_substitute): Likewise.
5385 2011-04-21 Richard Guenther <rguenther@suse.de>
5388 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5390 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5392 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5394 2011-04-21 Richard Guenther <rguenther@suse.de>
5396 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5399 2011-04-21 Richard Guenther <rguenther@suse.de>
5401 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5402 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5403 Use DECL_P, not SSA_VAR_P.
5404 (ptr_derefs_may_alias_p): Likewise.
5405 (ptr_deref_may_alias_ref_p_1): Likewise.
5406 (decl_refs_may_alias_p): Likewise.
5407 (refs_may_alias_p_1): Likewise.
5408 (ref_maybe_used_by_call_p_1): Likewise.
5409 (call_may_clobber_ref_p_1): Likewise.
5410 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5411 are either MEM_REF or TARGET_MEM_REF.
5412 (indirect_refs_may_alias_p): Likewise.
5413 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5414 for MEM_EXPR of indirect calls.
5416 2011-04-21 Tristan Gingold <gingold@adacore.com>
5418 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5419 (dst_file_info_struct): Remove flen field.
5420 (lookup_filename): Remove code that set flen field.
5422 2011-04-21 Tristan Gingold <gingold@adacore.com>
5424 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5426 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5429 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5430 vec_extract and vec_concat for non-SSE4_1 targets.
5432 2011-04-21 Richard Guenther <rguenther@suse.de>
5434 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5437 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5439 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5441 (FILE): Don't undefine.
5443 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5445 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5447 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5449 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5450 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5451 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5453 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5454 definitions where used.
5455 * config/microblaze/microblaze.h (struct microblaze_args): Use
5456 rtx, not struct rtx_def *.
5457 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5459 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5460 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5461 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5462 not struct rtx_def *.
5463 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5465 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5467 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5469 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5471 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5472 operand_equal_p to compare DR_BASE_ADDRESSes.
5473 (vect_check_interleaving): Likewise.
5475 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5478 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5479 for all Neon struct constants.
5481 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5483 * target.def (legitimate_constant_p): New hook.
5484 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5485 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5486 * doc/tm.texi: Regenerate.
5487 * hooks.h (hook_bool_mode_rtx_true): Declare.
5488 * hooks.c (hook_bool_mode_rtx_true): Define.
5489 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5490 * calls.c (precompute_register_parameters): Replace uses of
5491 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5492 (emit_library_call_value_1): Likewise.
5493 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5494 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5495 * ira-costs.c (scan_one_insn): Likewise.
5496 * recog.c (general_operand, immediate_operand): Likewise.
5497 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5498 * reload1.c (init_eliminable_invariants): Likewise.
5500 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5502 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5503 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5505 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5506 * config/alpha/predicates.md (input_operand): Update call to
5507 alpha_legitimate_constant_p.
5509 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5510 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5511 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5512 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5513 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5514 (arm_legitimate_constant_p): New functions.
5515 (arm_cannot_force_const_mem): Make static.
5517 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5519 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5520 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5521 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5522 instead of bfin_legitimate_constant_p.
5523 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5524 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5526 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5528 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5530 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5531 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5532 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5533 (frv_legitimate_constant_p): Make static. Add a mode argument.
5535 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5536 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5537 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5539 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5540 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5541 * config/i386/i386.c (legitimate_constant_p): Rename to...
5542 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5544 (ix86_cannot_force_const_mem): Update accordingly.
5545 (ix86_legitimate_address_p): Likewise.
5546 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5547 * config/i386/i386.md: Update commentary.
5549 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5550 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5551 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5552 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5554 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5556 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5557 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5558 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5559 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5561 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5562 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5563 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5565 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5566 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5567 (m32r_legitimate_constant_p): New function.
5569 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5570 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5571 LEGITIMATE_CONSTANT_P.
5572 (LEGITIMATE_CONSTANT_P): Delete.
5573 * config/m68k/m68k.c (m68k_expand_prologue): Call
5574 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5575 (m68k_legitimate_constant_p): New function.
5576 * config/m68k/m68k.md: Update comments.
5578 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5579 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5580 (mcore_legitimate_constant_p): New function.
5582 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5583 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5584 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5585 Add a mode argument.
5586 (mep_legitimate_address): Update accordingly.
5587 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5589 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5591 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5592 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5593 static. Check OP's mode for VOIDmode.
5594 (microblaze_legitimate_constant_p): New function.
5595 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5597 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5598 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5599 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5600 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5601 * config/mips/predicates.md: Update comments.
5603 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5604 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5605 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5606 (mmix_legitimate_constant_p): Make static, return a bool, and take
5608 (mmix_print_operand_address): Update accordingly.
5610 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5612 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5613 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5614 static. Add a mode argument.
5615 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5617 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5619 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5620 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5621 (pa_legitimate_constant_p): New function.
5623 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5625 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5626 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5627 (pdp11_legitimate_constant_p): New function.
5629 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5630 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5631 (rs6000_legitimate_constant_p): New function.
5633 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5634 (rx_legitimate_constant_p): ...this.
5635 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5636 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5637 (rx_legitimate_constant_p): ...this.
5638 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5639 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5641 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5642 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5643 * config/s390/s390.c (legitimate_constant_p): Rename to...
5644 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5645 and add a mode argument.
5646 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5648 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5650 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5651 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5652 (sh_legitimate_constant_p): New function.
5654 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5655 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5656 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5657 (legitimate_constant_p): Rename to...
5658 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5660 (constant_address_p): Update accordingly.
5662 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5663 argument and return a bool.
5664 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5665 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5666 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5667 (spu_rtx_costs): Update accordingly.
5668 * config/spu/predicates.md (vec_imm_operand): Likewise.
5670 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5672 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5673 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5674 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5676 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5677 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5678 * config/vax/vax.c (legitimate_constant_p): Likewise.
5680 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5681 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5682 (xtensa_legitimate_constant_p): New function.
5684 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5686 * target.def (cannot_force_const_mem): Add a mode argument.
5687 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5688 * doc/tm.texi: Regenerate.
5689 * hooks.h (hook_bool_mode_rtx_false): Declare.
5690 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5691 (hook_bool_mode_const_rtx_true): Likewise.
5692 (hook_bool_mode_rtx_false): New function.
5693 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5694 to be non-VOID. Update call to cannot_force_const_mem.
5695 (find_reloads): Update accordingly.
5696 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5697 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5699 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5700 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5701 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5702 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5703 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5704 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5705 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5706 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5707 (m68k_cannot_force_const_mem): ...this new function.
5708 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5710 (mips_const_insns, mips_legitimize_const_move): Update calls.
5711 (mips_secondary_reload_class): Likewise.
5712 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5713 (pa_cannot_force_const_mem): ...this new function.
5714 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5715 (rs6000_cannot_force_const_mem): ...this new function.
5716 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5718 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5719 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5721 (xtensa_cannot_force_const_mem): ...this new function.
5723 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5725 * config/mips/mips.c (mips16_build_function_stub): Call
5726 build_function_type_list instead of build_function_type.
5727 (mips16_build_call_stub): Likewise.
5729 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5731 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5732 instead of build_function_type.
5734 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5736 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5737 instead of build_function_type.
5739 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5742 * config/i386/i386.md (insv): Change operand 0 constraint to
5743 "register_operand". Change operand 1 and 2 constraint to
5744 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5745 * config/i386/sse.md (sse4_1_pinsrb): Export.
5746 (sse2_pinsrw): Ditto.
5747 (sse4_1_pinsrd): Ditto.
5748 (sse4_1_pinsrq): Ditto.
5749 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5750 * config/i386/i386.c (ix86_expand_pinsr): New.
5752 2011-04-20 Easwaran Raman <eraman@google.com>
5754 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5755 containing union type only with -fstrict-aliasing.
5757 2011-04-20 Jim Meyering <meyering@redhat.com>
5759 Remove useless if-before-free tests.
5760 * calls.c (expand_call, save_area): Likewise.
5761 * cfgcleanup.c (try_forward_edges): Likewise.
5762 * collect2.c (collect_execute): Likewise.
5763 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5764 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5765 * coverage.c (coverage_checksum_string): Likewise.
5766 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5767 * cselib.c (cselib_init): Likewise.
5768 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5769 (df_set_clean_cfg): Likewise.
5770 * function.c (free_after_compilation): Likewise.
5771 * gcc.c (do_spec_1, main): Likewise.
5772 * gcov.c (create_file_names): Likewise.
5773 * gensupport.c (identify_predicable_attribute): Likewise.
5774 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5775 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5776 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5777 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5778 * ipa-pure-const.c (local_pure_const): Likewise.
5779 * ipa-reference.c (propagate): Likewise.
5780 * ira-costs.c (free_ira_costs): Likewise.
5781 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5782 * matrix-reorg.c (mat_free): Likewise.
5783 * prefix.c (get_key_value): Likewise.
5784 * profile.c (compute_value_histograms): Likewise.
5785 * reload1.c (free_reg_equiv): Likewise.
5786 * sched-deps.c (free_deps): Likewise.
5787 * sel-sched-ir.c (fence_clear): Likewise.
5788 * sese.c (set_rename, if_region_set_false_region): Likewise.
5789 * tree-data-ref.c (free_rdg): Likewise.
5790 * tree-eh.c (lower_try_finally): Likewise.
5791 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5792 * tree-ssa-live.c (delete_var_map): Likewise.
5793 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5794 * tree-ssa-pre.c (phi_trans_add): Likewise.
5796 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5798 PR tree-optimization/48611
5799 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5800 beyond ERT_MUST_NOT_THROW region.
5802 2011-04-20 Catherine Moore <clm@codesourcery.com>
5804 * config/mips/mips.opt (mfix-24k): New.
5805 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5806 * config/mips/mips.md (length): Increase by 4 for stores if
5808 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5809 all noreorder if fixing 24K errata.
5810 * doc/invoke.texi: Document mfix-24k.
5812 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5814 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5815 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5817 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5819 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5820 (const_ok_for_op): ... to here.
5822 2011-04-20 Kai Tietz <ktietz@redhat.com>
5824 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5825 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5827 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5829 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5831 2011-04-20 Richard Guenther <rguenther@suse.de>
5833 PR tree-optimization/47892
5834 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5837 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5839 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5841 2011-04-20 Tristan Gingold <gingold@adacore.com>
5843 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5845 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5849 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5850 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5851 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5852 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5853 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5855 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5858 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5859 (avr_asm_named_section, avr_asm_output_aligned_common,
5860 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5861 New functions to update...
5862 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5863 (avr_asm_init_sections): Overwrite section callbacks for
5864 data_section, bss_section.
5865 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5867 (avr_file_end): ...here.
5869 2011-04-20 Richard Guenther <rguenther@suse.de>
5872 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5873 objects and types here. Adjust for their offset before comparing.
5875 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5877 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5880 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5882 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5883 (GIMPLE_H): Include $(INTERNAL_FN_H).
5884 (OBJS-common): Add internal-fn.o.
5885 (internal-fn.o): New rule.
5886 * internal-fn.def: New file.
5887 * internal-fn.h: Likewise.
5888 * internal-fn.c: Likewise.
5889 * gimple.h: Include internal-fn.h.
5890 (GF_CALL_INTERNAL): New gf_mask.
5891 (gimple_statement_call): Put fntype into a union with a new
5893 (gimple_build_call_internal): Declare.
5894 (gimple_build_call_internal_vec): Likewise.
5895 (gimple_call_same_target_p): Likewise.
5896 (gimple_call_internal_p): New function.
5897 (gimple_call_internal_fn): Likewise.
5898 (gimple_call_fntype): Return null for internal calls.
5899 (gimple_call_set_fntype): Assert that the function is not internal.
5900 (gimple_call_set_fn): Likewise.
5901 (gimple_call_set_fndecl): Likewise.
5902 (gimple_call_set_internal_fn): New function.
5903 (gimple_call_addr_fndecl): Handle null functions.
5904 (gimple_call_return_type): Likewise null types.
5905 * gimple.c (gimple_build_call_internal_1): New function.
5906 (gimple_build_call_internal): Likewise.
5907 (gimple_build_call_internal_vec): Likewise.
5908 (gimple_call_same_target_p): Likewise.
5909 (gimple_call_flags): Handle calls to internal functions.
5910 (gimple_call_fnspec): New function.
5911 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5912 (gimple_has_side_effects): Handle null functions.
5913 (gimple_rhs_has_side_effects): Likewise.
5914 (gimple_call_copy_skip_args): Handle calls to internal functions.
5915 * cfgexpand.c (expand_call_stmt): Likewise.
5916 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5917 * gimple-fold.c (gimple_fold_call): Handle null functions.
5918 (gimple_fold_stmt_to_constant_1): Don't fold
5919 calls to internal functions.
5920 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5922 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5923 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5924 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5925 (do_warn_unused_result): Likewise.
5926 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5927 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5928 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5929 the target of a call.
5930 (initialize_hash_element): Update accordingly.
5931 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5932 (iterative_hash_hashable_expr): Handle calls to internal functions.
5933 (print_expr_hash_elt): Likewise.
5934 * tree-ssa-pre.c (can_value_number_call): Likewise.
5935 (eliminate): Handle null functions.
5936 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5937 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5938 (find_func_aliases): Likewise.
5939 * value-prof.c (gimple_ic_transform): Likewise.
5940 (gimple_indirect_call_to_profile): Likewise.
5941 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5942 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5944 2011-04-19 Jan Hubicka <jh@suse.cz>
5946 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5947 * ipa-inline.c (inline_small_functions): Compute summaries first,
5948 populate heap later.
5950 2011-04-19 Jan Hubicka <jh@suse.cz>
5952 * cgraph.h (save_inline_function_body): Remove.
5953 * ipa-inline-transform.c: New file, broke out of...
5954 * ipa-inline.c: ... this one; Update toplevel comment.
5955 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5957 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5958 (cgraph_mark_inline_edge): Rename to inline_call; move to
5959 ipa-inline-transform.c.
5960 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5961 move to ipa-inline-transform.c
5962 (recursive_inlining, inline_small_functions, flatten_function,
5963 ipa_inline, inline_always_inline_functions,
5964 early_inline_small_functions): Update.
5965 (inline_transform): Move to ipa-inline-transform.c.
5966 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5968 * Makefile.in (ipa-inline-transform.o): New file.
5969 * cgraphunit.c (save_inline_function_body): Move to
5970 ipa-inline-transform.c
5972 2011-04-19 DJ Delorie <dj@redhat.com>
5974 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5975 registers if we already know there aren't any.
5976 (m32c_emit_epilogue): Don't emit a barrier here.
5977 (m32c_emit_eh_epilogue): Likewise.
5978 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5979 operands at expand time.
5980 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5982 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5983 duplicates. Provide aliases instead.
5984 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5985 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5988 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5990 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5991 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5992 (general_or_i64_p, sparc_register_move_cost): New function.
5994 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5996 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5997 Add lynx, mipssde. Sort table.
5999 2011-04-19 Xinliang David Li <davidxl@google.com>
6001 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6004 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6007 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6008 is a SUBREG with non-MODE_INT mode inside of it.
6010 2011-04-19 Martin Jambor <mjambor@suse.cz>
6012 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6013 also according to actual contants.
6014 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6015 (gimple_fold_call): Use it.
6016 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6018 2011-04-19 Martin Jambor <mjambor@suse.cz>
6020 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6021 non-pointer assignments.
6023 2011-04-19 Martin Jambor <mjambor@suse.cz>
6025 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6026 account anc_offset and otr_type from the indirect edge info.
6027 * ipa-prop.c (get_ancestor_addr_info): New function.
6028 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6029 get_ancestor_addr_info, call it.
6030 (ipa_note_param_call): Do not initialize information about polymorphic
6031 calls, return the indirect call graph edge. Remove the last
6032 parameter, adjust all callers.
6033 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6034 parameters. Initialize polymorphic information in the indirect edge.
6036 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6039 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6040 the types if they have different enumeration identifiers.
6042 2011-04-19 Jan Hubicka <jh@suse.cz>
6044 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6045 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6046 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6047 (optimize_function_for_size_p) ... here.
6049 2011-04-19 Richard Guenther <rguenther@suse.de>
6052 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6055 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6057 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6058 if DECL_NO_INLINE_WARNING_P is set on the function.
6060 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6063 * reload1.c (inc_for_reload): Return void. All callers changed.
6064 (emit_input_reload_insns): Don't try to delete previous output
6065 reloads to a register, or record spill_reg_store for autoincs.
6067 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6069 * gengtype.h: Updated copyright year.
6070 (struct input_file_st): Add inpisplugin field.
6071 (type_fileloc): New function.
6073 (write_typed_struct_alloc_def): Add gcc_assert.
6074 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6075 (write_typed_alloc_defns): Don't output for plugin files.
6076 (input_file_by_name): Clear inpisplugin field.
6077 (main): Set inpisplugin field for plugin files.
6079 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6081 * gengtype-state.c (string_eq): New.
6082 (read_state): Use string_eq instead of strcmp when creating the
6085 2011-04-19 Wei Guozhi <carrot@google.com>
6088 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6089 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6091 * config/arm/constraints.md (Uu): New constraint.
6092 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6094 2011-04-19 Tristan Gingold <gingold@adacore.com>
6096 * config.gcc (-*-*-*vms): Added.
6097 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6099 * config/vms/vms-ld.c: New file.
6100 * config/vms/vms-ar.c: New file.
6101 * config/vms/t-vmsnative: New file.
6103 2011-04-18 Xinliang David Li <davidxl@google.com>
6105 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6107 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6110 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6111 if TREE_TYPE (v) is non-NULL.
6113 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6114 gimple_get_virt_mehtod_for_binfo.
6115 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6116 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6118 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6120 2011-04-18 Michael Matz <matz@suse.de>
6121 Steve Ellcey <sje@cup.hp.com>
6123 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6124 use its mode as source mode if it isn't VOIDmode.
6126 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6128 * doc/passes.texi: Fill crossref nodes.
6130 2011-04-18 Jim Meyering <meyering@redhat.com>
6132 Fix doubled-word typos in comments and strings
6133 * config/alpha/vms-unwind.h: s/for for/for/
6134 * config/arm/unwind-arm.h: Likewise.
6135 * config/microblaze/microblaze.c: Likewise.
6136 * config/sh/constraints.md: s/in in/in/
6137 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6139 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6141 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6142 (AVX_FLOAT_MODE_P): Ditto.
6143 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6144 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6145 (AVX_VEC_FLOAT_MODE_P): Ditto.
6146 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6147 (UNSPEC_MASKSTORE): Ditto.
6148 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6149 Merge from <sse>_movmsk<ssemodesuffix> and
6150 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6151 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6153 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6154 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6155 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6157 2011-04-18 Jan Hubicka <jh@suse.cz>
6159 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6161 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6162 (want_inline_function_called_once_p): Break out the logic from
6164 (edge_badness): Ensure that profile is not misupdated.
6165 (lookup_recursive_calls): Prioritize by call frequencies.
6166 (inline_small_functions): Move program size estimates here;
6167 actually process whole queue even when unit growth has been
6168 met. (to properly compute inline_failed reasons and for the
6169 case unit size decrease.) Revisit comments on recursive inlining.
6170 (ipa_inline): Remove unit summary code; first inline hot calls
6171 of functions called once, cold calls next.
6172 (order, nnodes): Remove unused variables.
6173 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6174 (GTFILES): Remove ipa-inline.c
6175 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6177 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6179 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6181 2011-04-18 Jie Zhang <jie@codesourcery.com>
6182 Richard Earnshaw <rearnsha@arm.com>
6184 * arm.c (neon_builtin_type_bits): Remove.
6185 (typedef enum neon_builtin_mode): New.
6186 (T_MAX): Don't define.
6187 (typedef enum neon_builtin_datum): Remove bits, codes[],
6188 num_vars and base_fcode. Add mode, code and fcode.
6189 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6190 VAR10): Change accordingly.
6191 (neon_builtin_data[]): Change accordingly
6192 (arm_init_neon_builtins): Change accordingly.
6193 (neon_builtin_compare): Remove.
6194 (locate_neon_builtin_icode): Remove.
6195 (arm_expand_neon_builtin): Change accordingly.
6197 * arm.h (enum arm_builtins): Move to ...
6198 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6200 * arm.c (arm_builtin_decl): Declare.
6201 (TARGET_BUILTIN_DECL): Define.
6202 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6203 (arm_builtin_decls[]): New.
6204 (arm_init_neon_builtins): Store builtin declarations in
6205 arm_builtin_decls[].
6206 (arm_init_tls_builtins): Likewise.
6207 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6208 (arm_builtin_decl): New.
6210 2011-04-18 Richard Guenther <rguenther@suse.de>
6212 * tree.c (upper_bound_in_type): Build properly canonicalized
6214 (lower_bound_in_type): Likewise.
6216 2011-04-18 Richard Guenther <rguenther@suse.de>
6218 * gimple.h (gimple_call_addr_fndecl): New function.
6219 (gimple_call_fndecl): Use it.
6220 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6222 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6223 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6225 2011-04-18 Richard Guenther <rguenther@suse.de>
6228 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6230 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6233 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6234 DECL_IN_CONSTANT_POOL without RTL.
6236 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6237 Ira Rosen <ira.rosen@linaro.org>
6240 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6241 to match neon_vzip/vuzp/vtrn_internal.
6242 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6243 outputs explicitly dependent on both inputs.
6244 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6246 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6248 PR tree-optimization/48616
6249 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6250 whether the shift is by scalar or vector based on whether all SLP
6251 scalar stmts have the same rhs.
6253 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6255 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6258 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6261 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6264 2011-04-17 Jan Hubicka <jh@suse.cz>
6266 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6267 * cgrpahunit.c (cgraph_finalize_function): Do not set
6268 finalized_by_frontend.
6269 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6270 finalized_by_frontend.
6272 2011-04-17 Jan Hubicka <jh@suse.cz>
6274 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6275 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6276 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6277 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6279 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6281 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6283 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6286 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6287 is non-null before accessing it.
6288 (input_cgraph): Remove trailing spaces.
6290 2011-04-17 Revital Eres <revital.eres@linaro.org>
6292 * params.def (sms-min-sc): New param flag.
6293 * modulo-sched.c (sms_schedule): Use it.
6294 * doc/invoke.texi (sms-min-sc): Document it.
6296 2011-04-17 Jan Hubicka <jh@suse.cz>
6298 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6299 present, also set gimple_call_set_cannot_inline.
6300 * ipa-inline.c: Update toplevel comment.
6302 (cgraph_clone_inlined_nodes): Fix linebreaks.
6303 (cgraph_check_inline_limits): Restructure to ...
6304 (caller_growth_limits): ... this one; be more tolerant
6305 on growth in nested inline chains; add explanatory comment;
6306 fix stack accounting thinko introduced by previous patch.
6307 (cgraph_default_inline_p): Remove.
6308 (report_inline_failed_reason): New function.
6309 (can_inline_edge_p): New function.
6310 (can_early_inline_edge_p): New function.
6311 (leaf_node_p): Move upwards in file.
6312 (want_early_inline_function_p): New function.
6313 (want_inline_small_function_p): New function.
6314 (want_inline_self_recursive_call_p): New function.
6315 (cgraph_edge_badness): Rename to ...
6316 (edge_badness) ... this one; fix linebreaks.
6317 (update_edge_key): Update call of edge_baddness; add
6318 detailed dump about queue updates.
6319 (update_caller_keys): Use can_inline_edge_p and
6320 want_inline_small_function_p.
6321 (cgraph_decide_recursive_inlining): Rename to...
6322 (recursive_inlining): Use can_inline_edge_p and
6323 want_inline_self_recursive_call_p; simplify and remove no longer
6325 (cgraph_set_inline_failed): Remove.
6326 (add_new_edges_to_heap): Use can_inline_edge_p and
6327 want_inline_small_function_p.
6328 (cgraph_decide_inlining_of_small_functions): Rename to ...
6329 (inline_small_functions): ... this one; cleanup; use
6330 can/want predicates; cleanup debug ouput; work edges till fibheap
6331 is exhausted and do not stop once unit growth is reached; remove
6332 later loop processing remaining edges.
6333 (cgraph_flatten): Rename to ...
6334 (flatten_function): ... this one; use can_inline_edge_p
6335 and can_early_inline_edge_p predicates.
6336 (cgraph_decide_inlining): Rename to ...
6337 (ipa_inline): ... this one; remove unreachable nodes before
6338 inlining functions called once; simplify the pass.
6339 (cgraph_perform_always_inlining): Rename to ...
6340 (inline_always_inline_functions): ... this one; use
6341 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6342 (cgraph_decide_inlining_incrementally): Rename to ...
6343 (early_inline_small_functions): ... this one; simplify
6344 using new predicates; cleanup; make dumps prettier.
6345 (cgraph_early_inlining): Rename to ...
6346 (early_inliner): newer inline regular functions into always-inlines;
6347 fix updating of call stmt summaries.
6348 (pass_early_inline): Update for new names.
6349 (inline_transform): Fix formating.
6350 (gate_cgraph_decide_inlining): Rename to ...
6351 (pass_ipa_inline): ... this one.
6352 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6353 * ipa-inline-analysis.c (dump_inline_summary): Update.
6354 (compute_inline_parameters): Do not compute disregard_inline_limits;
6355 look for mismatching arguments.
6356 (estimate_growth): Fix handlig of non-trivial self recursion.
6357 (inline_read_summary): Do not read info->disregard_inline_limits.
6358 (inline_write_summary): Do not write info->disregard_inline_limits.
6359 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6360 and move all checks into can_inline_edge_p predicate; re-enable code
6361 comparing optimization levels.
6362 (expand_call_inline): Do not test inline_forbidden_into_p.
6363 * Makefile.in (ipa-inline.o): Update arguments.
6365 2011-04-17 Revital Eres <revital.eres@linaro.org>
6367 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6369 2011-04-17 Revital Eres <revital.eres@linaro.org>
6371 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6373 2011-04-17 Michael Matz <matz@suse.de>
6375 PR tree-optimization/48622
6377 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6378 in same order as they're written.
6380 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6382 * config/pa/predicates.md: Reorganize and simplify predicates.
6383 Eliminate duplicate code checks.
6384 (arith_operand): Rename to arith14_operand
6385 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6386 * config/pa/pa.md: Use renamed operands.
6387 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6388 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6389 arith11_operand, adddi3_operand, indexed_memory_operand,
6390 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6391 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6392 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6393 move_dest_operand, move_src_operand, prefetch_cc_operand,
6394 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6395 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6396 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6397 div_operand, int5_operand, movb_comparison_operator,
6398 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6399 arith_double_operand, ireg_operand, lhs_lshift_operand,
6400 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6401 integer_store_memory_operand): Likewise.
6402 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6403 (integer_store_memory_operand, read_only_operand,
6404 function_label_operand, borx_reg_operand,
6405 non_hard_reg_operand): Likewise.
6406 (eq_neq_comparison_operator): Delete unused operator.
6407 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6408 function_label_operand.
6409 (emit_move_sequence): Likewise.
6411 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6413 * config/i386/sse.md (sseunpackmode): New mode attribute.
6414 (ssepackmode): Ditto.
6415 (vec_pack_trunc_<mode>): Macroize expander from
6416 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6417 (vec_unpacks_lo_<mode>): Macroize expander from
6418 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6419 (vec_unpacks_hi_<mode>): Macroize expander from
6420 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6421 (vec_unpacku_lo_<mode>): Macroize expander from
6422 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6423 (vec_unpacku_hi_<mode>): Macroize expander from
6424 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6425 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6426 ix86_expand_sse4_unpack.
6427 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6429 2011-04-16 Jan Hubicka <jh@suse.cz>
6431 * cgraphbuild.c: Include ipa-inline.h.
6432 (reset_inline_failed): Use initialize_inline_failed.
6433 * cgraph.c: Include ipa-inline.h.
6434 (cgraph_create_node_1): Do not initialize estimated_growth.
6435 (initialize_inline_failed): More to ipa-inline-analysis.c
6436 (dump_cgraph_node): Do not dump inline flags.
6437 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6438 and disregard_inline_limits flags.
6439 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6440 time, size, estimated_growth.
6441 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6443 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6444 DECL_DISREGARD_INLINE_LIMITS.
6445 (cgraph_analyze_function): Do not initialize
6446 node->local.disregard_inline_limits.
6447 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6448 inlinable, versionable and disregard_inline_limits.
6449 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6450 cgraph_check_inline_limits, cgraph_default_inline_p,
6451 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6452 add_new_edges_to_heap): Update.
6453 (cgraph_decide_inlining_of_small_function): Update; set
6454 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6455 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6456 cgraph_decide_inlining_incrementally): Update.
6457 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6458 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6459 time, size and estimated_growth parameters.
6460 (estimate_edge_growth): Update.
6461 (initialize_inline_failed): Declare.
6462 * ipa-split.c: Include ipa-inline.h
6463 (execute_split_functions): Update.
6464 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6465 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6466 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6467 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6468 estimated_growth to INT_MIN.
6469 (inline_node_duplication_hook): Likewise.
6470 (dump_inline_summary): Dump new fields.
6471 (compute_inline_parameters): Update.
6472 (estimate_edge_time, estimate_time_after_inlining,
6473 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6474 inline_write_summary):
6475 (initialize_inline_failed): Move here from cgraph.c.
6476 * tree-sra.c: Include ipa-inline.h.
6477 (ipa_sra_preliminary_function_checks): Update.
6478 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6481 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6483 * config/i386/sse.md (V16): New mode iterator.
6485 (AVXMODEQI, AVXMODEDI): Remove.
6486 (sse2, sse3): New mode attribute.
6487 (mov<mode>): Use V16 mode iterator.
6488 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6489 (push<mode>1): Use V16 mode iterator.
6490 (movmisalign<mode>): Ditto.
6491 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6492 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6493 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6494 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6495 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6496 avx_movdqu<avxmodesuffix>.
6497 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6498 *avx_movdqu<avxmodesuffix>.
6499 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6500 avx_lddqu<avxmodesuffix>.
6501 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6502 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6503 avx_movnt<AVXMODEDI:mode>.
6504 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6505 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6507 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6510 * haifa-sched.c (prune_ready_list, schedule_block): Use
6511 sched_pressure_p rather than flag_sched_pressure.
6513 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6515 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6516 cgraph_get_node instead of cgraph_get_create_node.
6518 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6520 * cfgexpand.c (expand_debug_expr): Use
6521 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6523 2011-04-15 Michael Matz <matz@suse.de>
6525 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6526 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6527 * function.c (gimplify_parameters): Ditto.
6528 * gimplify.c (gimplify_vla_decl): Ditto.
6530 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6531 (gimple_call_set_alloca_for_var): New inline function.
6532 (gimple_call_alloca_for_var_p): Ditto.
6533 * gimple.c (gimple_build_call_from_tree): Remember
6534 CALL_ALLOCA_FOR_VAR_P state.
6535 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6537 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6538 calls if they were for VLA objects.
6540 2011-04-15 Martin Jambor <mjambor@suse.cz>
6542 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6545 2011-04-15 Martin Jambor <mjambor@suse.cz>
6548 * tree-emutls.c (lower_emutls_function_body): Call
6549 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6552 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6554 * c-decl.c (detect_field_duplicates): Call
6555 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6557 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6559 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6560 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6561 * ipa-pure-const.c (check_stmt): Call it.
6562 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6564 2011-04-15 Richard Guenther <rguenther@suse.de>
6566 PR tree-optimization/48290
6567 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6568 Properly decide inhibiting propagation based on the valueized
6569 operand. Do loop-closed SSA form preserving here ...
6570 (init_copy_prop): ... not here.
6572 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6575 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6576 (*ieee_smax<mode>3): Likewise.
6578 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6580 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6581 Replace match_operand with match_dup for the third operand in
6584 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6586 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6587 to track processing of conditionals. Update all callers.
6588 (try_combine, simplify_if_then_else): Update.
6590 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6592 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6595 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6597 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6598 instead of match_operand for operand 3.
6600 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6602 * recog.h (insn_operand_data): Add an "allows_mem" field.
6603 * genoutput.c (output_operand_data): Initialize it.
6604 * optabs.c (maybe_legitimize_operand_same_code): New function.
6605 (maybe_legitimize_operand): Use it when matching the original
6608 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6610 * gimplify.c: Fix issues in comments throughout.
6611 (voidify_wrapper_expr): Fix long line.
6612 (build_stack_save_restore): Likewise.
6613 (gimplify_loop_expr): Likewise.
6614 (gimplify_compound_lval): Likewise.
6615 (gimplify_init_ctor_eval): Likewise.
6616 (gimplify_modify_expr_rhs): Likewise.
6617 (omp_notice_threadprivate_variable): Likewise.
6619 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6621 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6622 original one if this is not a builtin function.
6624 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6627 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6628 offset it as needed based on top 2 bits in operands[3], change
6629 MEM mode to SFmode and mask those 2 bits away from operands[3].
6631 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6633 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6634 change from objc_declare_protocols() to objc_declare_protocol().
6636 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6638 * config/i386/sse.md (sse4_1): New mode attribute.
6639 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6640 avx_blend<ssemodesuffix><avxmodesuffix> and
6641 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6642 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6643 avx_blendv<ssemodesuffix><avxmodesuffix> and
6644 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6645 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6646 avx_dp<ssemodesuffix><avxmodesuffix> and
6647 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6648 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6649 (sse4_1_packusdw): Merge with *avx_packusdw.
6650 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6651 (sse4_1_pblendw): Merge with *avx_pblendw.
6652 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6653 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6654 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6656 (sse4_1_round<ssescalarmodesuffix>): Merge with
6657 *avx_round<ssescalarmodesuffix>.
6658 (aesenc): Merge with *avx_aesenc.
6659 (aesenclast): Merge with *avx_aesenclast.
6660 (aesdec): Merge with *avx_aesdec.
6661 (aesdeclast): Merge with *avx_aesdeclast.
6662 (pclmulqdq): Merge with *pclmulqdq.
6663 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6665 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6667 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6670 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6671 (align_local_variable): This. Update DECL_ALIGN.
6672 (add_stack_var): Updated.
6673 (expand_one_stack_var): Likewise.
6675 2011-04-14 Richard Guenther <rguenther@suse.de>
6677 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6679 (dse_initialize_block_local_data, dse_leave_block,
6680 record_voperand_set, get_stmt_uid): Likewise.
6681 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6682 (dse_optimize_stmt): Remove voperand set handling code.
6683 Simplify and improve to handle any kind of killing stmt.
6684 (dse_record_phi): Remove.
6685 (dse_enter_block): Simplify.
6686 (tree_ssa_dse): Likewise.
6687 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6689 2011-04-14 Jan Hubicka <jh@suse.cz>
6691 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6692 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6693 (cgraph_local_info): Remove inline_summary.
6694 * ipa-cp.c: Include ipa-inline.h.
6695 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6696 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6698 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6699 (input_overwrite_node): Do not set inline summary.
6700 (input_node): Do not stream inline summary.
6701 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6702 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6703 growth; we do not have inline parameters computed for that anyway.
6704 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6705 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6706 (inline_summary_t): New type and VECtor.
6707 (debug_inline_summary, dump_inline_summaries): Declare.
6708 (inline_summary): Use VOCtor.
6709 (estimate_edge_growth): Kill hack computing call stmt size directly.
6710 * lto-section-in.c (lto_section_name): Add inline section.
6711 * ipa-inline-analysis.c: Include lto-streamer.h
6712 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6713 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6714 (inline_summary_vec): Define.
6715 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6716 dump_inline_summaries): New functions.
6717 (estimate_function_body_sizes): Properly compute size/time of outgoing
6719 (compute_inline_parameters): Alloc inline_summary; do not compute
6720 size/time of incomming calls.
6721 (estimate_edge_time): Avoid missing time summary hack.
6722 (inline_read_summary): Read inline summary info.
6723 (inline_write_summary): Write inline summary info.
6724 (inline_free_summary): Free all hooks and inline summary vector.
6725 * lto-streamer.h: Add LTO_section_inline_summary section.
6726 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6727 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6729 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6731 * tree-vectorizer.h (vect_strided_store_supported): Add a
6732 HOST_WIDE_INT argument.
6733 (vect_strided_load_supported): Likewise.
6734 (vect_permute_store_chain): Return void.
6735 (vect_transform_strided_load): Likewise.
6736 (vect_permute_load_chain): Delete.
6737 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6738 count argument. Check that the count is a power of two.
6739 (vect_strided_load_supported): Likewise.
6740 (vect_permute_store_chain): Return void. Update after above changes.
6741 Assert that the access is supported.
6742 (vect_permute_load_chain): Likewise.
6743 (vect_transform_strided_load): Return void.
6744 * tree-vect-stmts.c (vectorizable_store): Update calls after
6745 above interface changes.
6746 (vectorizable_load): Likewise.
6747 (vect_analyze_stmt): Don't check for strided powers of two here.
6749 2011-04-14 Richard Guenther <rguenther@suse.de>
6751 PR tree-optimization/48590
6752 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6753 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6754 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6755 BUILT_IN_STACK_SAVE.
6756 * tree-ssa-dce.c (propagate_necessity): Handle
6757 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6759 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6761 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6764 2011-04-14 Richard Guenther <rguenther@suse.de>
6766 * tree.h (get_object_alignment_1): Declare.
6767 * builtins.c (get_object_alignment_1): Split out worker from ...
6768 (get_object_alignment): ... here.
6769 * fold-const.c (get_pointer_modulus_and_residue): Use
6770 get_object_alignment_1.
6772 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6774 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6776 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6777 parameter. Generalise code to handle arrays as well as vectors.
6778 (vect_setup_realignment): Update accordingly.
6779 * tree-vect-stmts.c (vectorizable_store): Likewise.
6780 (vectorizable_load): Likewise.
6782 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6784 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6785 within the per-copy loop.
6787 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6789 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6792 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6794 * doc/options.texi (Negative): Explicitly mention that the
6795 Negative chain must be circular.
6797 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6799 * function.h (block_chainon): Declare.
6800 * function.c (block_chainon): Define.
6802 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6803 Eric Weddington <eric.weddington@atmel.com>
6804 Georg-Johann Lay <avr@gjlay.de>
6806 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6808 (avr_init_builtins, avr_expand_builtin,
6809 avr_expand_delay_cycles, avr_expand_unop_builtin,
6810 avr_expand_binop_builtin ): New functions.
6811 (avr_builtin_id): New enum
6812 (struct avr_builtin_description): New struct
6813 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6814 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6816 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6817 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6818 UNSPECV_DELAY_CYCLES): new enumeration values
6819 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6820 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6821 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6822 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6823 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6824 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6825 "fmulsu"): New insns
6827 * config/avr/avr-c.c: fix line endings
6828 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6829 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6830 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6831 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6832 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6834 * doc/extend.texi (AVR Built-in Functions): New node
6835 (Target Builtins): Add documentation of AVR
6838 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6841 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6842 alone. Error if non-const data has attribute progmem.
6844 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6846 * tree.h (struct tree_constructor): Include tree_typed instead of
6848 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6849 TS_TYPED instead of TS_COMMON.
6851 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6853 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6854 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6855 (sse2_psadbw): Merge with *avx_psadbw.
6856 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6857 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6858 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6859 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6860 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6861 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6862 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6863 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6864 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6865 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6866 (ssse3_palignrti): Merge with *avx_palignrti.
6868 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6870 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6871 * tree-ssanames.c (fini_ssanames): VEC_free it.
6872 (make_ssa_name_fn): Update for VECness of free_ssanames.
6873 (release_ssa_name, release_dead_ssa_names): Likewise.
6874 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6876 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6877 TS_TYPED instead of TS_COMMON.
6879 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6881 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6882 statistics_counter_event.
6883 * tree-ssa-copyrename.c (stats): Define.
6884 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6885 statistics_counter_event.
6886 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6887 (bswap_stats, widen_mul_stats): Define.
6888 (insert_reciprocals): Increment rdivs_inserted.
6889 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6890 rfuncs_inserted. Add calls to statistics_counter_event.
6891 (execute_cse_sincos_1): Increment inserted.
6892 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6893 statistics_counter_event.
6894 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6895 of bswap_stats. Add calls to statistics_counter_event.
6896 (convert_mult_to_widen): Increment widen_mults_inserted.
6897 (convert_plusminus_to_widen): Increment maccs_inserted.
6898 (convert_mult_to_fma): Increment fmas_inserted.
6899 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6900 calls to statistics_counter_event.
6902 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6904 PR rtl-optimization/48455
6905 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6906 `temp_costs->mem_cost'.
6908 2011-04-13 Jan Hubicka <jh@suse.cz>
6910 * ipa-inline.h: New file.
6911 * ipa-inline-analysis.c: New file. Broken out of ...
6912 * ipa-inline.c: ... this file; update toplevel comment;
6913 include ipa-inline.h
6914 (inline_summary): Move to ipa-inline.h
6915 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6916 ipa-inline-analysis.c.
6917 (cgraph_estimate_time_after_inlining): Rename to
6918 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6919 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6920 to estimate_edge_growth.
6921 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6922 rename to estimate_size_after_inlining.
6923 (cgraph_mark_inline_edge): Update for new naming convention.
6924 (cgraph_check_inline_limits): Likewise.
6925 (cgraph_edge_badness): Likewise.
6926 (cgraph_decide_recursive_inlining): Likewise.
6927 (cgraph_decide_inlining_of_small_functions): Likewise.
6928 (cgraph_decide_inlining_incrementally): Likewise.
6929 (cgraph_estimate_growth): Rename to estimate_growth; move to
6930 ipa-inline-analysis.c.
6931 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6932 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6933 (compute_inline_parameters): Likewise.
6934 (compute_inline_parameters_for_current): Likewise.
6935 (pass_inline_parameters): Likewise.
6936 (inline_indirect_intraprocedural_analysis): Likewise.
6937 (analyze_function): Rename to inline_analyze_function; likewise.
6938 (add_new_function): Move to ipa-inline-analysis.c.
6939 (inline_generate_summary): Likewise.
6940 (inline_read_summary): Likewise.
6941 (inline_write_summary): Likewise.
6942 * Makefile.in (ipa-inline-analysis.c): New file.
6944 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6946 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6947 * configure: Regenerate.
6949 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6951 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6952 instead of tree_common.
6953 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6955 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6956 TS_TYPED rather than TS_COMMON.
6957 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6959 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6962 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6963 r20 around calls of __tablejump_elpm__
6965 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6968 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6970 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6972 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6974 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6975 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6976 (cfi_vec): New typedef.
6977 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6978 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6979 (cie_cfi_vec): New static variable.
6980 (cie_cfi_head): Delete.
6981 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6982 declaration changed. Use vector rather than list operations.
6983 (new_cfi): Don't initialize the dw_cfi_next field.
6984 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6985 rather than list operations.
6986 (lookup_cfa): Use vector rather than list operations.
6987 (output_cfis): New argument upto. Accept a cfi_vec rather than
6988 a dw_cfi_ref list head as argument. All callers changed.
6989 Iterate over the vector using upto as a maximum index.
6990 (output_all_cfis): New static function.
6991 (output_fde): Use vector rather than list operations. Use the
6992 new upto argument for output_cfis rather than manipulating a
6994 (dwarf2out_begin_prologue): Change initializations to match
6996 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6997 from the vector length rather than searching for the end of a list.
6998 Use output_all_cfis.
6999 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7001 2011-04-13 Nick Clifton <nickc@redhat.com>
7003 * config/rx/rx.md (movmemsi): Do not use this pattern when
7004 volatile pointers are involved.
7006 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7008 * config/i386/sse.md (pinsrbits): Remove.
7009 (sse2_packsswb): Merge with *avx_packsswb.
7010 (sse2_packssdw): Merge with *avx_packssdw.
7011 (sse2_packuswb): Merge with *avx_packuswb.
7012 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7013 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7014 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7015 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7016 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7017 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7018 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7019 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7020 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7021 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7022 (sse2_loadld): Merge with *avx_loadld.
7023 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7024 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7025 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7026 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7027 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7029 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7031 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7033 * print-tree.c (print_node): Likewise.
7034 * tree-inline.c (copy_tree_r): Likewise.
7035 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7036 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7037 instead of TS_COMMON.
7038 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7039 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7040 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7041 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7042 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7044 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7046 (TREE_CHAIN): Check for a TS_COMMON structure.
7047 (TREE_TYPE): Check for a TS_TYPED structure.
7049 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7051 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7052 cgraph_get_create_node instead of cgraph_node.
7054 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7056 * c-parser.c (c_parser_initelt): Updated call to
7057 objc_build_message_expr.
7058 (c_parser_postfix_expression): Likewise.
7060 2011-04-12 Kai Tietz <ktietz@redhat.com>
7062 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7063 MASK_MS_BITFIELD_LAYOUT bit.
7065 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7067 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7068 assert it is always true.
7069 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7072 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7074 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7075 compiling Objective-C to be more efficient.
7077 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7079 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7082 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7084 * recog.h, genoutput.c, optabs.c: Revert last patch.
7086 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7089 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7091 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7093 * recog.h (insn_operand_data): Add an "allows_mem" field.
7094 * genoutput.c (output_operand_data): Initialize it.
7095 * optabs.c (maybe_legitimize_operand_same_code): New function.
7096 (maybe_legitimize_operand): Use it when matching the original
7099 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7101 * genpreds.c (process_define_predicate): Move most processing
7102 to gensupport.c. Continue to validate the expression.
7103 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7104 (process_define_predicate): Move processing to gensupport.c.
7105 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7106 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7107 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7109 (valid_predicate_name_p): New function, split out from old
7110 genpreds.c:process_define_predicate.
7111 (process_define_predicate): New function, combining code from
7112 old genpreds.c and genrecog.c functions.
7113 (process_rtx): Call it for DEFINE_PREDICATE and
7114 DEFINE_SPECIAL_PREDICATE.
7116 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7118 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7119 size of a '%A' memory reference.
7120 (T_DREG, T_QREG): New neon_builtin_type_bits.
7121 (arm_init_neon_builtins): Assert that the load and store operands
7122 are neon_struct_operands.
7123 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7124 (NEON_ARG_MEMORY): New builtin_arg.
7125 (neon_dereference_pointer): New function.
7126 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7127 Handle NEON_ARG_MEMORY.
7128 (arm_expand_neon_builtin): Update after above interface changes.
7129 Use NEON_ARG_MEMORY for loads and stores.
7130 * config/arm/predicates.md (neon_struct_operand): New predicate.
7131 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7132 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7133 (V_four_elem): Tweak formatting.
7134 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7135 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7136 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7137 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7138 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7139 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7140 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7141 Use %A in the output template.
7142 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7143 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7144 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7145 the width of the memory access. Remove post-increment.
7146 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7148 2011-04-12 Nick Clifton <nickc@redhat.com>
7150 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7151 instruction for interrupt handlers if the target is the basic V850
7153 (expand_epilogue): Likewise.
7155 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7157 PR rtl-optimization/48549
7158 * combine.c (propagate_for_debug): Also stop after BB_END of
7159 this_basic_block. Process LAST and just stop processing after it.
7160 (combine_instructions): If last_combined_insn has been deleted,
7161 set last_combined_insn to its PREV_INSN.
7163 2011-04-12 Richard Guenther <rguenther@suse.de>
7165 PR tree-optimization/46076
7166 * gimple.h (struct gimple_statement_call): Add fntype field.
7167 (gimple_call_fntype): Adjust.
7168 (gimple_call_set_fntype): New function.
7169 * gimple.c (gimple_build_call_1): Set the call function type.
7170 * gimplify.c (gimplify_call_expr): Preserve the function
7171 type the frontend used for the call.
7172 (gimplify_modify_expr): Likewise.
7173 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7175 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7177 * tree-ssa.c (useless_type_conversion_p): Function pointer
7178 conversions are useless.
7180 2011-04-12 Martin Jambor <mjambor@suse.cz>
7182 * cgraph.h (cgraph_node): Remove function declaration.
7183 (cgraph_create_node): Declare.
7184 (cgraph_get_create_node): Likewise.
7185 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7186 Updated all callers.
7187 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7188 the decl does not already exist. Call cgraph_get_create_node instead
7190 (cgraph_get_create_node): New function.
7191 (cgraph_same_body_alias): Update comment.
7192 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7193 assert it does not return NULL.
7194 (cgraph_update_edges_for_call_stmt): Likewise.
7195 (cgraph_clone_edge): Likewise.
7196 (cgraph_create_virtual_clone): Likewise.
7197 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7198 instead of cgraph_node.
7199 (cgraph_add_new_function): Call cgraph_create_node or
7200 cgraph_get_create_node instead of cgraph_node.
7201 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7202 instead of cgraph_node.
7203 (record_eh_tables): Likewise.
7204 (mark_address): Likewise.
7205 (mark_load): Likewise.
7206 (build_cgraph_edges): Call cgraph_get_create_node instead
7208 (rebuild_cgraph_edges): Likewise.
7209 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7210 instead of cgraph_node.
7211 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7213 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7214 cgraph_create_node instead of cgraph_node.
7215 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7217 * lto-cgraph.c (input_node): Likewise.
7218 * lto-streamer-in.c (input_function): Likewise.
7219 * varasm.c (mark_decl_referenced): Likewise.
7220 (assemble_alias): Likewise.
7222 2011-04-12 Martin Jambor <mjambor@suse.cz>
7224 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7225 instead of cgraph_node and assert it does not return NULL.
7226 * lto-streamer-in.c (lto_read_body): Likewise.
7227 * omp-low.c (new_omp_context): Likewise.
7228 (create_task_copyfn): Likewise.
7229 * tree-emutls.c (lower_emutls_function_body): Likewise.
7230 * matrix-reorg.c (transform_allocation_sites): Likewise.
7232 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7235 * c-typeck.c (build_asm_expr): Error out on attempts to use
7236 void type outputs or inputs for constraints that allow reg or
7239 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7240 Richard Earnshaw <rearnsha@arm.com>
7243 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7244 to use sign-magnitude offsets. Reject unsupported unaligned
7245 cases. Add detailed description in comments.
7246 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7247 condition from TARGET_32BIT to TARGET_ARM.
7249 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7251 * tree.h (struct typed_tree): New.
7252 (struct tree_common): Include it instead of tree_base.
7253 (TREE_TYPE): Update for new location of type field.
7254 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7255 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7256 (union tree_node): Add typed field.
7257 * treestruct.def (TS_TYPED): New.
7258 * lto-streamer.c (check_handled_ts_structures): Handle it.
7259 * tree.c (MARK_TS_TYPED): New macro.
7260 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7262 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7264 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7265 (force_nonfallthru): Do not alter the loop nest if no basic block
7268 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7270 * config/i386/sse.md (VI): New mode iterator.
7272 (AVX256MODEI): Ditto.
7273 (AVXMODEF4P): Ditto.
7274 (avxvecpsmode): Ditto.
7275 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7276 (sse2_andnot<mode>3): New expander.
7277 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7278 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7279 (<any_logic:code><mode>3): Use VI mode iterator.
7280 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7281 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7282 (*andnottf3): Handle AVX three-operand constraints.
7283 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7285 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7286 Robert Millan <rmh@gnu.org>
7288 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7289 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7290 GNU_USER_DYNAMIC_LINKER64): Define.
7291 (REG_NAME): Don't undefine.
7292 (MD_UNWIND_SUPPORT): Undefine.
7293 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7294 (REG_NAME): Don't undefine.
7295 (MD_UNWIND_SUPPORT): Undefine.
7296 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7298 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7300 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7301 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7303 2011-04-11 Xinliang David Li <davidxl@google.com>
7305 * value-profile.c (check_ic_target): New function.
7306 (gimple_ic_transform): Sanity check indirect call target.
7307 * gimple-low.c (gimple_check_call_args): Interface change.
7308 (gimple_check_call_matching_types): New function.
7309 * tree-inline.c (tree_can_inline_p): Call new function.
7311 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7313 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7314 tree-pretty-print.h & realmpfr.h.
7316 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7319 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7320 (setup_allocno_and_important_classes): Ditto.
7322 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7324 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7325 GNU_USER_DYNAMIC_LINKER.
7326 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7327 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7328 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7329 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7330 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7331 GNU_USER_TARGET_OS_CPP_BUILTINS.
7332 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7333 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7334 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7335 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7336 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7337 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7338 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7339 GNU_USER_TARGET_OS_CPP_BUILTINS.
7340 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7341 GNU_USER_DYNAMIC_LINKER.
7342 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7343 GNU_USER_TARGET_OS_CPP_BUILTINS.
7344 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7345 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7346 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7347 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7348 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7349 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7350 GNU_USER_DYNAMIC_LINKER64): Remove.
7351 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7352 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7353 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7354 GNU_USER_DYNAMIC_LINKER.
7355 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7356 GNU_USER_TARGET_OS_CPP_BUILTINS.
7357 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7358 GNU_USER_TARGET_OS_CPP_BUILTINS.
7359 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7360 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7361 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7362 GNU_USER_TARGET_OS_CPP_BUILTINS.
7363 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7364 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7365 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7366 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7367 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7368 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7369 GNU_USER_DYNAMIC_LINKER.
7370 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7371 GNU_USER_TARGET_OS_CPP_BUILTINS.
7372 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7373 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7374 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7375 GNU_USER_DYNAMIC_LINKER.
7376 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7377 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7378 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7379 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7380 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7381 GNU_USER_DYNAMIC_LINKER.
7382 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7383 GNU_USER_DYNAMIC_LINKERN32.
7384 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7385 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7386 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7387 GNU_USER_DYNAMIC_LINKER32.
7388 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7389 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7390 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7391 GNU_USER_DYNAMIC_LINKER.
7392 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7393 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7394 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7395 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7396 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7397 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7398 GNU_USER_DYNAMIC_LINKER32.
7399 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7400 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7401 GNU_USER_DYNAMIC_LINKER.
7402 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7403 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7404 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7405 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7406 GNU_USER_DYNAMIC_LINKER64.
7407 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7408 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7409 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7410 GNU_USER_DYNAMIC_LINKER.
7411 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7412 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7413 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7414 GNU_USER_DYNAMIC_LINKER.
7415 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7416 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7417 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7418 GNU_USER_DYNAMIC_LINKER32.
7419 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7420 GNU_USER_DYNAMIC_LINKER64.
7421 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7422 GNU_USER_DYNAMIC_LINKER64.
7423 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7424 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7425 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7426 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7427 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7429 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7431 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7432 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7433 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7434 GNU_USER_DYNAMIC_LINKER.
7435 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7436 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7437 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7438 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7439 GNU_USER_DYNAMIC_LINKER64.
7440 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7441 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7442 GNU_USER_LINK_EMULATION.
7443 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7444 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7445 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7446 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7447 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7448 CPP_SPEC, CC1_SPEC): Remove.
7449 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7450 (GNU_USER_DYNAMIC_LINKER): Define.
7451 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7452 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7453 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7454 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7455 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7456 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7457 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7458 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7459 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7460 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7461 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7462 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7463 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7464 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7465 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7466 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7467 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7468 GNU_USER_DYNAMIC_LINKER.
7469 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7470 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7471 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7472 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7473 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7474 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7475 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7476 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7477 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7478 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7480 2011-04-11 Kai Tietz <ktietz@redhat.com>
7484 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7485 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7487 (ix86_is_msabi_thiscall): Removed.
7488 (ix86_is_type_thiscall): Likewise.
7489 (ix86_get_callcvt): New function.
7490 (ix86_comp_type_attributes): Simplify check.
7491 (ix86_function_regparm): Use ix86_get_callcvt for calling
7492 convention attribute checks.
7493 (ix86_return_pops_args): Likewise.
7494 (ix86_static_chain): Likewise.
7495 (x86_this_parameter): Likewise.
7496 (x86_output_mi_thunk): Likewise.
7497 (ix86_function_type_abi): Optimize check for types without attributes.
7498 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7499 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7500 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7502 (IX86_BASE_CALLCVT): Helper macro.
7503 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7504 Use ix86_get_callcvt for calling convention attribute checks and avoid
7505 symbol-decoration for stdcall in TARGET_RTD case.
7506 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7508 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7511 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7513 * config/i386/sse.md (VI_128): New mode iterator.
7514 (VI12_128): Rename from SSEMODE12.
7515 (VI14_128): Rename from SSEMODE14.
7516 (VI124_128): New mode iterator.
7517 (VI24_128): Rename from SSEMODE248.
7518 (VI248_128): Rename from SSEMODE248.
7519 (SSEMODE124C8): Remove.
7520 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7521 (*sse2_<plusminus_insn><mode>3): Merge with
7522 *avx_<plusminus_insn><mode>3.
7523 (*mulv8hi3): Merge with *avx_mulv8hi3.
7524 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7525 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7526 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7527 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7528 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7529 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7530 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7531 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7532 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7533 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7534 (*<smaxmin:code>v8hi3): Ditto.
7535 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7536 (*<smaxmin:code>v16qi3): Ditto.
7537 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7538 (*sse2_eq<mode>3): Ditto.
7539 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7540 (*sse2_gt<mode>3): Ditto.
7541 (vcondv2di): Split out of vcond<mode>.
7542 (vconduv2di): Split out of vcondu<mode>.
7544 2011-04-11 Richard Guenther <rguenther@suse.de>
7546 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7547 before calling tree_low_cst.
7549 2011-04-11 Richard Guenther <rguenther@suse.de>
7551 * stor-layout.c (layout_type): Compute all array index size operations
7552 in the original type.
7553 (initialize_sizetypes): Add comment.
7554 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7556 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7558 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7560 2011-04-11 Martin Jambor <mjambor@suse.cz>
7562 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7563 of cgraph_node, handle NULL return value.
7564 (cgraph_global_info): Likewise.
7565 (cgraph_rtl_info): Likewise.
7566 * tree-inline.c (estimate_num_insns): Likewise.
7567 * gimplify.c (unshare_body): Likewise.
7568 (unvisit_body): Likewise.
7569 (gimplify_body): Likewise.
7570 * predict.c (optimize_function_for_size_p): Likewise.
7571 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7572 (call_may_clobber_ref_p_1): Likewise.
7573 * varasm.c (function_section_1): Likewise.
7574 (assemble_start_function): Likewise.
7576 2011-04-11 Martin Jambor <mjambor@suse.cz>
7578 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7580 * final.c (rest_of_clean_state): Likewise.
7581 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7582 * passes.c (pass_init_dump_file): Likewise.
7583 (execute_all_ipa_transforms): Likewise.
7584 (function_called_by_processed_nodes_p): Likewise.
7585 * predict.c (maybe_hot_frequency_p): Likewise.
7586 (probably_never_executed_bb_p): Likewise.
7587 (compute_function_frequency): Likewise.
7588 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7589 (unnest_nesting_tree_1): Likewise.
7590 (lower_nested_functions): Likewise.
7591 * tree-optimize.c (execute_fixup_cfg): Likewise.
7592 (tree_rest_of_compilation): Likewise.
7593 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7594 * tree-sra.c (ipa_early_sra): Likewise.
7595 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7596 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7597 * ipa.c (record_cdtor_fn): Likewise.
7598 * ipa-inline.c (cgraph_early_inlining): Likewise.
7599 (compute_inline_parameters_for_current): Likewise.
7600 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7601 * ipa-pure-const.c (local_pure_const): Likewise.
7602 * ipa-split.c (split_function): Likewise.
7603 (execute_split_functions): Likewise.
7604 * cgraphbuild.c (build_cgraph_edges): Likewise.
7605 (rebuild_cgraph_edges): Likewise.
7606 (cgraph_rebuild_references): Likewise.
7607 (remove_cgraph_callee_edges): Likewise.
7608 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7609 (verify_cgraph_node): Likewise.
7610 (cgraph_analyze_functions): Likewise.
7611 (cgraph_preserve_function_body_p): Likewise.
7612 (save_inline_function_body): Likewise.
7613 (save_inline_function_body): Likewise.
7614 * tree-inline.c (copy_bb): Likewise.
7615 (optimize_inline_calls): Likewise.
7617 2011-04-11 Martin Jambor <mjambor@suse.cz>
7619 PR tree-optimization/48195
7620 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7621 ipa_check_create_edge_args.
7622 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7623 ipa_check_create_edge_args.
7624 * ipa-inline.c (inline_generate_summary): Do not call
7625 ipa_check_create_node_params and ipa_check_create_edge_args.
7626 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7627 ipa_check_create_edge_args.
7629 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7631 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7633 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7634 * function.c (record_hard_reg_sets): Likewise.
7635 * ira.c (compute_regs_asm_clobbered): Likewise.
7636 * sched-deps.c (sched_analyze_1): Likewise.
7637 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7639 2011-04-09 Xinliang David Li <davidxl@google.com>
7641 PR tree-optimization/PR48484
7642 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7643 has_valid_pred lazily
7645 2011-04-09 Duncan Sands <baldrick@free.fr>
7647 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7649 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7651 * combine.c (combine_validate_cost): Adjust comments. Set registered
7652 cost of I0 to zero at the end, if any.
7654 2011-04-08 Xinliang David Li <davidxl@google.com>
7656 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7657 to insane profile data.
7659 2011-04-08 Xinliang David Li <davidxl@google.com>
7661 * ipa-cp.c (ipcp_update_profiling): Correct
7662 negative scale factor due to insane profile data.
7664 2011-04-08 Xinliang David Li <davidxl@google.com>
7666 * final.c (dump_basic_block_info): New function.
7667 (final): Dump basic block.
7668 (final_scan_insn): Remove old dump.
7670 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7673 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7676 2011-04-08 Michael Matz <matz@suse.de>
7679 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7681 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7682 * rtl.h (rebuild_jump_labels_chain): Declare.
7683 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7684 insns inserted on edges.
7686 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7688 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7689 * config/arm/arm-arches.def: New.
7690 * config/arm/arm-opts.h: New.
7691 * config/arm/genopt.sh: New.
7692 * config/arm/arm-tables.opt: New (generated).
7693 * config/arm/arm.c (arm_handle_option, arm_target_help,
7694 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7695 (all_architectures): Get most table contents from arm-arches.def.
7696 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7697 arm_selected_tune here.
7698 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7699 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7700 (march=, mcpu=, mtune=): Use Enum and Var.
7701 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7702 (arm.o): Update dependencies.
7704 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7706 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7708 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7709 (write_typed_alloc_defns): Likewise.
7710 (main): Calls write_typed_alloc_defns with output_header.
7712 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7715 * ira-color.c (setup_profitable_hard_regs): Add comments.
7716 Don't take prohibited hard regs into account.
7717 (setup_conflict_profitable_regs): Rename to
7718 get_conflict_profitable_regs.
7719 (check_hard_reg_p): Check prohibited hard regs.
7721 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7723 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7724 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7725 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7727 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7730 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7731 move from floating point to shift amount register.
7732 (emit_move_sequence): Remove secondary reload support for floating
7733 point to shift amount amount register copies.
7734 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7735 amount register copies.
7736 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7737 register, return false if mode isn't a scalar integer mode.
7738 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7740 2011-04-08 Richard Guenther <rguenther@suse.de>
7742 * gimple.c (gimple_call_flags): Remove kludge.
7744 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7746 * sel-sched.c (sel_region_init): Move call to
7747 sel_setup_region_sched_flags after setup_current_loop_nest.
7749 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7751 PR rtl-optimization/48272
7752 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7753 init_insn_reg_pressure_info. Adjust a caller.
7754 * sched-int.h (init_insn_reg_pressure_info): Declare.
7755 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7756 when sched-pressure is enabled.
7758 2011-04-08 Richard Guenther <rguenther@suse.de>
7760 * gimple.c (gimple_set_modified): Do not queue calls to
7761 MODIFIED_NORETURN_CALLS here ...
7762 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7764 2011-04-08 Richard Guenther <rguenther@suse.de>
7767 * toplev.c (lang_dependent_init): Do not open asm_out_file
7768 in WPA mode, nor perform debug machinery initialization.
7769 (finalize): Do not unlink asm_out_file in WPA mode.
7771 2011-04-08 Richard Guenther <rguenther@suse.de>
7773 * gimple.h (gimple_call_fntype): New function.
7774 (gimple_call_return_type): Use it.
7775 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7776 * gimple-low.c (gimple_check_call_args): Likewise.
7777 * gimple.c (gimple_call_flags): Likewise.
7778 (gimple_call_arg_flags): Likewise.
7779 (gimple_call_return_flags): Likewise.
7780 * tree-cfg.c (verify_gimple_call): Likewise.
7781 (do_warn_unused_result): Likewise.
7782 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7783 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7785 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7787 PR rtl-optimization/48235
7788 * sel-sched.c (code_motion_process_successors): Recompute the last
7789 insn in basic block if control flow changed.
7790 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7791 Update condition for ilist_remove.
7793 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7795 PR rtl-optimization/48302
7796 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7797 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7798 it to record added preheader blocks.
7799 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7800 on to sel_add_loop_preheaders.
7801 (sel_region_init): Move call to setup_current_loop_nest after
7804 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7807 * cfgloop.h (loop_has_exit_edges): New helper.
7808 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7810 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7811 that have no exit edges.
7813 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7815 PR rtl-optimization/48442
7816 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7817 all callers. Adjust assert.
7819 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7821 PR tree-optimization/48377
7822 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7823 is_packed to true even for types with smaller TYPE_ALIGN than
7826 2011-04-08 Richard Guenther <rguenther@suse.de>
7829 * doc/tm.texi: Re-generate.
7831 2011-04-08 Wei Guozhi <carrot@google.com>
7834 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7835 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7836 * config/arm/arm.md (*push_multi): Change the length computation to
7839 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7841 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7842 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7843 * doc/tm.texi: Regenerate.
7844 * system.h (ASM_OUTPUT_BSS): Poison.
7845 * varasm.c (asm_output_bss): Remove function.
7846 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7848 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7849 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7850 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7851 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7853 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7855 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7857 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7859 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7861 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7864 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7866 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7867 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7868 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7870 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7871 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7872 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7873 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7874 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7875 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7876 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7877 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7878 options. Don't map other m68k options manually. Don't handle
7879 old-style options as canonical.
7880 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7881 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7883 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7885 * basic-block.h (force_nonfallthru): Move to...
7886 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7887 (force_nonfallthru): ...here.
7888 * cfghooks.c (force_nonfallthru): New function.
7889 * cfgrtl.c (force_nonfallthru): Rename into...
7890 (rtl_force_nonfallthru): ...this.
7891 (commit_one_edge_insertion): Do not set AUX field.
7892 (commit_edge_insertions): Do not discover new basic blocks.
7893 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7894 (cfg_layout_rtl_cfg_hooks): Likewise.
7895 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7896 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7897 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7899 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7901 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7904 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7906 * config/i386/sse.md: Update copyright year.
7907 (avxcvtvecmode): Remove.
7908 (sse_movhlps): Merge with *avx_movhlps.
7909 (sse_movlhps): Merge with *avx_movlhps.
7910 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7911 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7912 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7913 (sse_loadhps): Merge with *avx_loadhps.
7914 (sse_storelps): Merge with *avx_storelps.
7915 (sse_loadlps): Merge with *avx_loadlps.
7916 (sse_movss): Merge with *avx_movss.
7917 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7918 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7919 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7920 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7921 (vec_set<mode>_0): Ditto.
7922 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7923 (sse4_1_insertps): Merge with *avx_insertps.
7924 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7925 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7926 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7927 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7928 (sse2_storehpd): Merge with *avx_storehpd.
7929 (sse2_loadhpd): Merge with *avx_loadhpd.
7930 (sse2_loadlpd): Merge with *avx_loadlpd.
7931 (sse2_movsd): Merge with *avx_movsd.
7932 (*vec_concatv2df): Merge with *vec_concatv2df.
7934 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7937 * combine.c (combine_instructions): Add last_combined_insn,
7938 update it if insn is after it, pass it to all try_combine calls.
7939 (try_combine): Add last_combined_insn parameter, pass it instead of
7940 i3 to propagate_for_debug.
7942 2011-04-07 Nick Clifton <nickc@redhat.com>
7944 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7945 to handle MDR <-> data register transfers.
7946 (movhi_internal): Likewise.
7948 2011-04-07 Alan Modra <amodra@gmail.com>
7950 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7951 previous stack info.
7953 2011-04-07 Tom de Vries <tom@codesourcery.com>
7956 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7957 flow_find_cross_jump. Swap variables to implement backward replacement.
7958 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7960 2011-04-07 Tom de Vries <tom@codesourcery.com>
7963 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7964 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7966 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7967 src1 or src2. Redirect edges to the last basic block. Update
7968 frequency and count on multiple basic blocks in case of fallthru.
7970 2011-04-07 Tom de Vries <tom@codesourcery.com>
7973 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7975 (old_insns_match_p): Change return type. Replace return false/true
7976 with return dir_none/dir_both. Use can_replace_by.
7977 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7978 direction from dir_p. Register replacement direction in dir, last_dir
7979 and afterlast_dir. Handle new return type of old_insns_match_p using
7980 merge_dir. Return replacement direction in dir_p.
7981 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7982 return type of old_insns_match_p.
7983 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7984 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7985 flow_find_cross_jump.
7986 * basic-block.h (enum replace_direction): New type.
7987 (flow_find_cross_jump): Add parameter to declaration.
7989 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7991 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7992 (AVXMODEDCVTPS2DQ): Ditto.
7993 (VEC_FLOAT_MODE): Ditto.
7994 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7995 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7996 (<any_logic:code><mode>3): Use VF mode iterator.
7997 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7998 Use VF mode iterator.
7999 (copysign<mode>3): Use VF mode iterator.
8000 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8001 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8002 (*<any_logic:code><MODEF:mode>3): Merge with
8003 *avx_<any_logic:code><MODEF:mode>3.
8004 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8005 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8006 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8007 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8008 (sse2_cvtdq2ps): Use %v modifier.
8009 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8010 (avx_cvtps2dq<avxmodesuffix>): Remove.
8011 (sse2_cvtps2dq): Use %v modifier.
8012 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8013 (avx_cvttps2dq<avxmodesuffix>): Remove.
8014 (sse2_cvttps2dq): Use %v modifier.
8015 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8016 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8017 (sse2_cvtsd2siq): Fix insn template.
8018 (sse2_cvtsd2siq_2): Ditto.
8019 (sse2_cvttsd2siq): Ditto.
8020 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8021 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8023 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8025 * gcov-io.c: Use GCC Runtime Library Exception.
8027 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8030 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8031 as base_reg whatever register reg has been eliminated to, instead
8032 of hardcoding STACK_POINTER_REGNUM.
8034 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8036 * doc/tm.texi.in: Document C target hooks as separate from general
8038 * doc/tm.texi: Regenerate.
8039 * genhooks.c (struct hook_desc): Add docname field.
8040 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8042 (hook_array): Include c-target.def.
8043 (emit_documentation): Use docname field in output.
8044 (emit_init_macros): Take docname argument. Only emit definitions
8045 for hooks matching docname.
8046 (main): Expect additional arguments in all cases. Pass argument
8047 to emit_init_macros.
8048 * target.def: Move initial macro definitions and comments to
8049 target-hooks-macros.h.
8050 (gcc_targetcm): Move to c-family/c-target.def.
8051 * target.h (targetcm): Move declaration to c-family/c-target.h.
8052 * targhooks.c (default_handle_c_option): Move to
8054 * targhooks.h (default_handle_c_option): Move declaration to
8055 c-family/c-common.h.
8056 * target-hooks-macros.h: New file.
8057 * config.gcc (target_has_targetcm): Define and use to add to
8058 c_target_objs and cxx_target_objs.
8059 * config/default-c.c: New file.
8060 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8061 of target.h and target-def.h.
8062 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8063 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8064 darwin_check_cfstring_format_arg): Make static.
8065 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8066 TARGET_STRING_OBJECT_REF_TYPE_P,
8067 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8068 * config/darwin-protos.h (darwin_objc_construct_string,
8069 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8071 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8072 TARGET_STRING_OBJECT_REF_TYPE_P,
8073 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8074 * config/t-darwin (darwin-c.o): Update dependencies.
8075 * system.h (TARGET_HAS_TARGETCM): Poison.
8076 * Makefile.in (TARGET_H): Update.
8077 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8078 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8079 (default-c.o): New target.
8080 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8081 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8082 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8084 (build/genhooks.o): Update dependencies.
8086 2011-04-06 Richard Guenther <rguenther@suse.de>
8088 * ipa-inline.c (enum inlining_mode): Remove.
8089 (cgraph_flatten): Use some other token.
8090 (cgraph_edge_early_inlinable_p): New function, split out from ...
8091 (cgraph_perform_always_inlining): New function, split out from ...
8092 (cgraph_decide_inlining_incrementally): ... here.
8093 (cgraph_mark_inline_edge): Adjust.
8094 (cgraph_early_inlining): Re-structure.
8095 (pass_early_inline): Require SSA form.
8097 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8098 Julian Brown <julian@codesourcery.com>
8099 Mark Shinwell <shinwell@codesourcery.com>
8101 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8102 LO_REGS only for Thumb-1.
8103 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8104 be used in short instructions when optimising for size on Thumb-2.
8106 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8108 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8109 associated with user returns to be preserved.
8111 2011-04-06 Tristan Gingold <gingold@adacore.com>
8113 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8114 symbol_queue_size, DBXOUT_DECR_NESTING,
8115 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8116 if XCOFF_DEBUGGING_INFO.
8118 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8120 * config/i386/i386.md (attribute isa): New.
8121 (attribute enabled): New.
8122 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8123 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8124 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8125 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8126 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8127 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8128 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8129 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8131 * config/i386/sse.md (VF): New mode iterator.
8135 (SSEMODEF4): Remove.
8136 (attribute sse): Handle V8SF and V4DF modes.
8137 (<absneg:code><mode>2): Use VF mode iterator.
8138 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8140 (<plusminus_insn><mode>3): Use VF mode iterator.
8141 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8142 Use VF mode iterator.
8143 (<sse>_vm<plusminus_insn><mode>3): Merge with
8144 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8145 (mul<mode>3): Use VF mode iterator.
8146 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8147 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8149 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8150 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8151 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8152 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8154 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8155 Use VF1 mode iterator.
8156 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8157 (sqrt<VF2:mode>2): New expander.
8158 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8159 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8160 and sqrtv2df2. Use VF mode iterator.
8161 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8163 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8164 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8165 Use VF1 mode iterator.
8166 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8167 (<smaxmin:code><mode>3): Use VF mode iterator.
8168 (*<smaxmin:code><mode>3_finite): Merge with
8169 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8170 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8171 (<sse>_vm<smaxmin:code><mode>2): Merge with
8172 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8173 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8175 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8177 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8178 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8179 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8180 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8181 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8183 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8184 Use VF_128 mode iterator.
8185 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8187 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8188 VF_128 mode iterator.
8189 (vcond<mode>): Use VF mode iterator.
8190 * config/i386/predicates.md (sse_comparison_operator): Merge with
8191 avx_comparison_float_operator. Do not declare as special_predicate.
8192 * config/i386/i386.c (struct builtin_description): Update for renamed
8194 (ix86_expand_args_builtin): Ditto.
8195 (ix86_expand_sse_compare_mask): Ditto.
8197 2011-04-06 Richard Guenther <rguenther@suse.de>
8199 * tree-inline.c (estimate_num_insns): For calls simply account
8200 for all passed arguments and a used return value.
8202 2011-04-06 Richard Guenther <rguenther@suse.de>
8204 PR tree-optimization/47663
8205 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8206 call_stmt_time fields.
8207 (cgraph_edge_inlinable_p): Declare.
8208 (cgraph_edge_recursive_p): New inline function.
8209 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8210 (cgraph_clone_edge): Copy it.
8211 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8212 Account for call stmt time.
8213 (cgraph_estimate_time_after_inlining): Take edge argument.
8214 (cgraph_estimate_edge_growth): Account call stmt size.
8215 (cgraph_estimate_size_after_inlining): Take edge argument.
8216 (cgraph_mark_inline_edge): Adjust.
8217 (cgraph_check_inline_limits): Likewise.
8218 (cgraph_recursive_inlining_p): Remove.
8219 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8220 (cgraph_decide_recursive_inlining): Take edge argument and
8222 (cgraph_decide_inlining_of_small_functions): Do not avoid
8223 diags for recursive inlining here.
8224 (cgraph_flatten): Adjust.
8225 (cgraph_decide_inlining_incrementally): Likewise.
8226 (estimate_function_body_sizes): Remove call cost handling.
8227 (compute_inline_parameters): Initialize caller edge call costs.
8228 (cgraph_estimate_edge_growth): New function.
8229 (cgraph_estimate_growth): Use it.
8230 (cgraph_edge_badness): Likewise.
8231 (cgraph_check_inline_limits): Take an edge argument.
8232 (cgraph_decide_inlining_of_small_functions): Adjust.
8233 (cgraph_decide_inlining): Likewise.
8234 * tree-inline.c (estimate_num_insns): Only account for call
8235 return value if it is used.
8236 (expand_call_inline): Avoid diagnostics on recursive inline
8238 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8239 (input_edge): Input edge call costs.
8241 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8243 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8245 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8247 * doc/invoke.texi (Spec Files): Fix typo.
8249 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8251 * profile.c (branch_prob): Move declaration of local variable. Remove
8252 obsolete ??? comment. Expand the location explicitly instead of using
8253 the LOCATION_FILE and LOCATION_LINE macros.
8255 2011-04-06 Wei Guozhi <carrot@google.com>
8258 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8259 (arm_cond_branch): Likewise.
8260 (arm_cond_branch_reversed): Likewise.
8261 (arm_jump): Likewise.
8262 (push_multi): Likewise.
8263 * config/arm/constraints.md (Py): New constraint.
8265 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8268 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8270 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8271 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8272 #ifdef DBX_DEBUGGING_INFO.
8274 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8277 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8278 if old and new states differ.
8280 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8282 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8283 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8284 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8285 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8286 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8288 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8289 ColdFire options to -mcpu= options.
8291 2011-04-05 Jeff Law <law@redhat.com>
8293 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8294 check if BB is a successor of LOOP->header and return
8295 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8297 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8299 * cprop.c (struct reg_use): Remove.
8300 (reg_use_table): Make an array of RTX.
8301 (find_used_regs, constprop_register, local_cprop_pass,
8302 bypass_block): Simplify users of reg_use_table.
8303 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8304 on one of the uses found by find_used_regs.
8306 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8309 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8312 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8314 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8316 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8318 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8321 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8323 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8325 * combine.c: Include obstack.h.
8326 (struct insn_link): Define.
8327 (uid_log_links): Adjust type.
8328 (FOR_EACH_LOG_LINK): New macro.
8329 (insn_link_obstack): Declare.
8330 (alloc_insn_link): Define.
8331 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8332 type of link variables.
8333 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8334 (try_combine, record_promoted_values, distribute_notes): Likewise.
8335 (distribute_links): Likewise. Tweak prototype.
8336 (clear_log_links): Delete.
8337 (adjust_for_new_dest): Call alloc_insn_link.
8338 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8340 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8342 * gcse.c (modify_mem_list): Convert to an array of VECs.
8343 (canon_modify_mem_list, compute_transp): Tweak formatting.
8344 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8345 (load_killed_in_block_p): Likewise.
8346 (record_last_mem_set_info): Likewise.
8347 (clear_modify_mem_tables): Likewise.
8349 2011-04-05 Tom de Vries <tom@codesourcery.com>
8352 * function.c (emit_use_return_register_into_block): Only define if
8355 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8357 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8359 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8361 * config/rx/rx-opts.h: New.
8362 * config/rx/rx.c (rx_cpu_type): Remove.
8363 (rx_handle_option): Don't assert that global structures are in
8364 use. Access variables via opts pointer. Defer most handling of
8365 OPT_mint_register_. Use error_at.
8366 (rx_option_override): Handle deferred OPT_mint_register_ here.
8367 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8368 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8369 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8370 (rx_cpu_types): New Enum and EnumValue entries.
8371 (mint-register=): Use Defer and use Var accordingly.
8373 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8375 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8376 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8377 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8379 (debug_free_queue, debug_nesting, symbol_queue_index):
8381 * dbxout.c: ...to here. Make static.
8383 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8385 * gcse.c (modify_pair): Define. Define a VEC of it.
8386 (canon_modify_mem_list): Convert to an array of VECs.
8387 (free_insn_expr_list_list): Delete.
8388 (clear_modify_mem_tables): Call VEC_free instead.
8389 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8390 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8391 (canon_list_insert, compute_transp): Likewise.
8393 2011-04-05 Tom de Vries <tom@codesourcery.com>
8396 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8399 2011-04-05 Tom de Vries <tom@codesourcery.com>
8402 * function.c (emit_use_return_register_into_block): New function.
8403 (thread_prologue_and_epilogue_insns): Use
8404 emit_use_return_register_into_block.
8406 2011-04-05 Tom de Vries <tom@codesourcery.com>
8409 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8412 2011-04-05 Tom de Vries <tom@codesourcery.com>
8414 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8416 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8418 * config/arm/arm.md (define_constants for unspec): Replace with
8420 (define_constants for unspecv): Replace with define_c_enum.
8421 * config/arm/neon.md (define_constants for unspec): Replace with
8424 2011-04-04 Richard Henderson <rth@redhat.com>
8427 * dwarf2out.c (output_line_info): Always emit line info from
8428 at least one section.
8429 (dwarf2out_init): Create text_section_line_info here ...
8430 (set_cur_line_info_table): ... not here.
8432 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8435 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8438 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8440 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8442 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8443 (expr_equiv_p): Remove.
8444 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8445 (hash_scan_set): Update call to insert_set_in_table.
8446 (dump_hash_table): Dump <dest, src> pair.
8447 (lookup_set): Simplify. Lookup <dest, src> pair.
8448 (compute_transp): Remove, fold heavily simplified code into...
8449 (compute_local_properties): ...here. Expect COMP and TRANSP
8451 (find_avail_set): Take set directly from struct expr.
8452 (find_bypass-set): Likewise.
8453 (bypass_block): Likewise.
8454 (cprop_insn): Likewise. Remove redundant INSN_P test.
8456 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8457 checks on form of COND from find_implicit_sets to here.
8458 (find_implicit_sets): Cleanup control flow. Split critical edges
8459 if it exposes implicit sets. Allocate/resize implicit_sets as
8461 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8462 changed something. Run df_analyze after find_implicit_sets if any
8463 edges were split. Do not allocate implicit_sets here.
8465 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8466 (gcse_obstack): Renamed to cprop_obstack.
8467 (GNEW, GNEWVEC, GNEWVAR): Remove.
8469 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8470 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8471 (gcse_alloc): Likewise, and rename to cprop_alloc.
8472 (alloc_gcse_men, free_gcse_mem): Remove.
8473 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8474 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8475 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8477 * cprop.c (oprs_not_set_p): Remove.
8478 (mark_set, mark_clobber): Remove.
8479 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8480 (reg_not_set_p): New function.
8481 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8482 (cprop_insn): Likewise.
8483 (cprop_jump): Use FOR_EACH_EDGE.
8485 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8488 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8489 (rank_for_schedule): Use scheduled_insns vector instead of
8490 last_scheduled_insn.
8491 (ok_for_early_queue_removal): Likewise.
8492 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8494 (choose_ready): Likewise.
8495 (commit_schedule): Use VEC_iterate.
8496 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8497 a dbg_cnt, use it and ensure the first insn is in the ready list.
8498 (haifa_sched_init): Allocate scheduled_insns.
8499 (sched_extend_ready_list): Don't allocate it; reserve space.
8500 (haifa_sched_finish): Free it.
8502 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8504 * optc-gen.awk: Always remove type from Variable entry before
8505 recording in var_seen.
8507 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8509 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8510 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8511 call to tidy_fallthru_edges.
8513 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8515 * doc/options.texi (ToLower): Document.
8516 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8517 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8518 * opts.h (cl_option): Add cl_tolower field.
8519 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8520 arguments with lowercase strings.
8521 * config/rx/rx.opt (mcpu=): Add ToLower.
8522 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8525 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8527 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8529 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8531 * config/vax/vax.c: Include reload.h.
8533 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8535 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8536 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8537 (sparc_preferred_reload_class): New function.
8539 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8542 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8543 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8545 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8547 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8548 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8550 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8552 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8553 (ASM_OUTPUT_ALIGNED_BSS): Define.
8555 2011-04-03 Michael Matz <matz@suse.de>
8557 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8558 and next_slot members.
8559 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8560 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8561 (lto_streamer_cache_append): Declare.
8562 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8563 unsigned index, remove offset parameter, ensure that we append
8564 or update existing entries.
8565 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8566 parameter, update next_slot for append.
8567 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8569 (lto_streamer_cache_insert_at): Likewise.
8570 (lto_streamer_cache_append): New function.
8571 (lto_streamer_cache_lookup): Use unsigned index.
8572 (lto_streamer_cache_get): Likewise.
8573 (lto_record_common_node): Don't test tree_node_can_be_shared.
8574 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8575 (lto_streamer_cache_delete): Don't free offsets member.
8576 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8577 (lto_output_string_with_length): Use lto_output_data_stream.
8578 (lto_output_tree_header): Remove ix parameter, don't write it.
8579 (lto_output_builtin_tree): Likewise.
8580 (lto_write_tree): Adjust callers to above, don't track and write
8581 offset, write unsigned index.
8582 (output_unreferenced_globals): Don't emit all global vars.
8583 (write_global_references): Use unsigned indices.
8584 (lto_output_decl_state_refs): Likewise.
8585 (write_symbol): Likewise.
8586 * lto-streamer-in.c (lto_input_chain): Move earlier.
8587 (input_function): Use unsigned index.
8588 (input_alias_pairs): Don't read and then ignore all global vars.
8589 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8590 don't pass it back, use lto_streamer_cache_append.
8591 (lto_register_var_decl_in_symtab): Use unsigned index.
8592 (lto_register_function_decl_in_symtab): Likewise.
8593 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8595 (lto_get_builtin_tree): Don't read index, use
8596 lto_streamer_cache_append.
8597 (lto_read_tree): Adjust call to lto_materialize_tree.
8599 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8600 don't use function calls in arguments to MIN.
8602 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8605 * gimple.c (gimple_type_leader_entry): Mark deletable.
8607 2011-04-03 Alan Modra <amodra@gmail.com>
8609 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8611 2011-04-03 Michael Matz <matz@suse.de>
8613 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8615 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8617 2011-04-03 Michael Matz <matz@suse.de>
8619 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8620 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8621 without function context.
8622 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8623 current_function_decl and cfun.
8625 2011-04-03 Michael Matz <matz@suse.de>
8627 * tree.c (decl_init_priority_insert): Don't create entry for
8629 (decl_fini_priority_insert): Ditto.
8630 (fields_compatible_p, find_compatible_field): Remove.
8631 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8632 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8634 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8636 * combine.c (try_combine): Remove useless local variable.
8638 2011-04-03 Richard Guenther <rguenther@suse.de>
8639 Ira Rosen <ira.rosen@linaro.org>
8641 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8642 non-variable offsets and compare the remaining bases of the two
8643 accesses instead of looking for exact same data-ref.
8645 2011-04-02 Kai Tietz <ktietz@redhat.com>
8648 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8650 * i386.c (ix86_is_msabi_thiscall): New helper function.
8651 (ix86_is_type_thiscall): New helper function.
8652 (ix86_comp_type_attributes): Handle thiscall for method-functions
8654 (init_cumulative_args): Likewise.
8655 (find_drap_reg): Likewise.
8656 (ix86_static_chain): Likewise.
8657 (x86_this_parameter): Likewise.
8658 (x86_output_mi_thunk): Likewise.
8660 2011-04-01 Olivier Hainque <hainque@adacore.com>
8661 Nicolas Setton <setton@adacore.com>
8662 Eric Botcazou <ebotcazou@adacore.com>
8664 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8665 (add_gnat_descriptive_type_attribute): New function.
8666 (gen_array_type_die): Call it.
8667 (gen_enumeration_type_die): Likewise.
8668 (gen_struct_or_union_type_die): Likewise.
8669 (modified_type_die): Likewise.
8670 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8671 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8672 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8674 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8677 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8678 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8681 2011-03-17 Richard Guenther <rguenther@suse.de>
8684 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8685 origin for decls in other ltrans units.
8686 (input_varpool_node): Likewise.
8688 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8691 * expr.c (expand_assignment): Handle all possibilities
8692 if TO_RTX is CONCAT.
8693 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8694 (store_split_bit_field): If SUBREG_REG (op0) or
8695 op0 itself has smaller mode than word, return it
8696 for offset 0 and const0_rtx for out-of-bounds stores.
8697 If word is const0_rtx, skip it.
8699 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8701 * config/h8300/h8300.c (print_operand_address): Rename to...
8702 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8703 Call h8300_print_operand and h8300_print_operand_address instead of
8704 print_operand and print_operand_address. Declare.
8705 (print_operand): Renake to...
8706 (h8300_print_operand): ...this. Make static. Adjust comments.
8707 Call h8300_print_operand instead of print_operand. Declare.
8708 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8709 (h8300_register_move_cost): Likewise.
8710 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8711 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8712 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8713 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8714 * config/h8300/h8300-protos.h (print_operand): Delete.
8715 (print_operand_address): Delete.
8717 2011-04-01 Richard Henderson <rth@redhat.com>
8720 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8721 in strict mode before dwarf4. Re-order tests to early out
8722 before switching sections.
8724 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8726 * config/h8300/constraints.md: New file.
8727 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8728 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8729 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8730 * config/h8300/predicates.md (bit_operand): Likewise.
8731 (incdec_operand): Use satisfies_constraint_M and
8732 satisfies_constraint_O. Don't use C code block.
8733 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8734 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8735 (compute_mov_length): Use satisfies_constraint_G.
8736 (fix_bit_operand): Use satisfies_constraint_U.
8737 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8738 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8739 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8740 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8741 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8742 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8743 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8744 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8745 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8746 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8747 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8748 (EXTRA_MEMORY_CONSTRAINT): Delete.
8750 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8751 Michael Meissner <meissner@linux.vnet.ibm.com>
8754 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8755 operands, as per the specifications.
8757 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8758 (vec_extract_evenv4sf): Ditto.
8759 (vec_extract_evenv8hi): Ditto.
8760 (vec_extract_evenv16qi): Ditto.
8761 (vec_extract_oddv4si): Ditto.
8763 2011-03-31 Mark Wielaard <mjw@redhat.com>
8765 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8766 high_pc attribute if the CU has no associated code. Only output
8767 DW_AT_entry_pc for CU if not generating strict dwarf and
8770 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8772 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8773 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8775 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8776 * final.c (final_start_function): Call the new function rather
8777 than using a NULL argument for dwarf2out_frame_debug.
8779 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8780 that contains the prologue.
8782 * haifa-sched.c (queue_insn): New arg REASON. All callers
8783 changed. Print it in debugging output.
8785 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8787 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8788 Split most of the code into...
8789 (begin_move_insn): ... here. New function.
8790 (ebb_sched_info): Add a pointer to it.
8791 * haifa-sched.c (scheduled_insns): New static variable.
8792 (sched_extend_ready_list): Allocate it.
8793 (schedule_block): Use it to record the order of scheduled insns.
8794 Perform RTL changes to move insns only after all scheduling
8795 decisions have been made.
8796 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8797 begin_move_insn field.
8798 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8799 * sched-int.h (struct haifa_sched_info): Remove second argument
8800 from begin_schedule_ready hook. Add new member begin_move_insn.
8801 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8802 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8804 * haifa-sched.c (prune_ready_list): New function, broken out of
8806 (schedule_block): Use it.
8808 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8810 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8812 2011-04-01 Kai Tietz <ktietz@redhat.com>
8814 * config.gcc (*-*-mingw*): Allow as option the
8815 posix threading model.
8816 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8817 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8819 (CPP_SPEC): Add pthread/no-pthread handling.
8820 (LIB_SPEC): Likewise.
8821 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8822 (LIB_SPEC): Likewise.
8823 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8824 flag to pass -pthread option for shared libgcc build.
8825 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8826 for shared libgcc build.
8827 * config/i386/t-mingw-pthread: New file.
8828 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8829 New define to enable use of library pthread by default.
8830 * config/i386/mingw.opt (pthread): New driver option.
8831 (no-pthread): New driver option.
8832 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8833 * config/i386/mingw-w64.opt: Likewise.
8835 2011-04-01 Gary Funck <gary@intrepid.com>
8837 * c-decl.c (grokdeclarator): Fix formatting.
8839 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8841 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8842 instead of n_operands.
8843 (set_storage_via_setmem): Likewise.
8844 * optabs.c (maybe_gen_insn): Likewise.
8845 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8846 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8847 (mips_expand_builtin_direct): Likewise.
8848 * config/spu/spu.c (expand_builtin_args): Likewise.
8850 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8852 * recog.h (insn_data_d): Add n_generator_args.
8853 * genoutput.c (data): Likewise.
8854 (output_insn_data): Print it.
8855 (max_opno, num_dups): Delete.
8856 (scan_operands): Just fill in "d->operand[...]".
8857 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8859 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8861 * gensupport.h (pattern_stats): New structure.
8862 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8863 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8864 (max_operand_1, max_operand_vec): Delete.
8865 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8867 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8869 * emit-rtl.c (emit_pattern_after_setloc): New function.
8870 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8871 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8872 (emit_pattern_after): New function.
8873 (emit_insn_after, emit_jump_insn_after): Call it.
8874 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8875 (emit_pattern_before_setloc): New function.
8876 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8877 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8879 (emit_pattern_before): New function.
8880 (emit_insn_before, emit_jump_insn_before): Call it.
8881 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8883 2011-03-31 Richard Henderson <rth@redhat.com>
8885 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8886 (dw_separate_line_info_entry): Remove.
8887 (enum dw_line_info_opcode): New.
8888 (dw_line_info_entry): Use it.
8889 (dw_line_info_table, dw_line_info_table_p): New.
8890 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8891 (line_info_table, line_info_label_num): Remove.
8892 (line_info_table_in_use): Remove.
8893 (separate_line_info_table): Remove.
8894 (separate_line_info_table_allocated): Remove.
8895 (separate_line_info_table_in_use): Remove.
8896 (LINE_INFO_TABLE_INCREMENT): Remove.
8897 (line_info_label_num): New.
8898 (cur_line_info_table): New.
8899 (text_section_line_info, cold_text_section_line_info): New.
8900 (separate_line_info): New.
8901 (SEPARATE_LINE_CODE_LABEL): Remove.
8902 (print_dwarf_line_table): Remove.
8903 (debug_dwarf): Don't dump it.
8904 (output_one_line_info_table): New.
8905 (output_line_info): Use it.
8906 (new_line_info_table): New.
8907 (set_cur_line_info_table): New.
8908 (dwarf2out_switch_text_section): Use it.
8909 (dwarf2out_begin_function): Likewise.
8910 (push_dw_line_info_entry): New.
8911 (dwarf2out_source_line): Rewrite for new line info tables.
8912 (dwarf2out_init): Remove dead initailizations.
8914 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8916 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8918 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8919 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8920 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8921 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8922 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8923 * opt-functions.awk (flag_init, switch_bit_fields): New.
8924 (switch_flags): Don't handle flags moved to bit-fields. Don't
8925 generate CL_MISSING_OK or CL_SAVE.
8926 * optc-gen.awk: Update to generate bit-field output as well as
8928 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8929 bit-field instead of CL_REJECT_DRIVER flag.
8930 * opts-common.c (generate_canonical_option,
8931 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8932 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8933 instead of CL_REJECT_NEGATIVE flag.
8934 * toplev.c (print_switch_values): Use cl_report bit-field instead
8937 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8939 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8940 a zero minimum index only if it is redundant.
8942 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8944 PR rtl-optimization/48381
8945 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8946 instead of ira_class_hard_reg_index for calculating conflicting
8949 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8951 * cprop.c: Clean up hash table building.
8952 (reg_avail_info): Remove.
8953 (oprs_available_p): Remove.
8954 (record_last_reg_set_info): Remove.
8955 (record_last_set_info): Remove.
8956 (reg_available_p): New function.
8957 (gcse_constant_p): Do not treat unfolded conditions as constants.
8958 (make_set_regs_unavailable): New function.
8959 (hash_scan_set): Simplify with new reg_available_p.
8960 (compute_hash_table_work): Traverse insns stream only once.
8961 Do not compute reg_avail_info. Traverse insns in reverse order.
8962 Record implicit sets after recording explicit sets from the block.
8964 2011-03-31 Michael Matz <matz@suse.de>
8966 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8968 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8970 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8971 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8972 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8973 (h8300_mode_dependent_address_p): New function.
8974 (h8300_get_index): Make static.
8976 2011-03-31 Jeff Law <law@redhat.com>
8978 * reload1.c (elimination_effects): Fix typo in recent change.
8980 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8981 typo potentially leading to null pointer dereference.
8983 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8984 (setup_save_areas): Corresponding changes to avoid useless
8987 * jump.c (reversed_comparison_code_parts): Avoid successive return
8988 statements when REVERSE_CONDITION is defined.
8990 * expr.c (expand_assignment): Avoid useless assignments.
8991 (expand_expr_real_1): Likewise.
8992 (expand_expr_real_2): Avoid useless statements.
8994 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8996 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8998 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9001 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9003 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9006 * doc/tm.texi.in (TARGET_VERSION): Remove.
9007 * doc/tm.texi: Regenerate.
9008 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9009 * collect2.c (main): Don't use TARGET_VERSION.
9010 * mips-tdump.c (main): Don't use TARGET_VERSION.
9011 * mips-tfile.c (main): Don't use TARGET_VERSION.
9012 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9013 * config/rs6000/vxworksae.h: Remove.
9014 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9015 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9016 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9017 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9018 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9019 * config/arm/arm.h (TARGET_VERSION): Remove.
9020 * config/arm/coff.h (TARGET_VERSION): Remove.
9021 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9022 * config/arm/elf.h (TARGET_VERSION): Remove.
9023 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9024 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9025 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9026 * config/arm/pe.h (TARGET_VERSION): Remove.
9027 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9028 * config/arm/semi.h (TARGET_VERSION): Remove.
9029 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9030 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9031 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9032 * config/avr/avr.h (TARGET_VERSION): Remove.
9033 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9034 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9035 * config/frv/frv.h (TARGET_VERSION): Remove.
9036 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9037 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9038 * config/i386/darwin.h (TARGET_VERSION): Remove.
9039 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9040 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9041 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9042 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9043 * config/i386/gnu.h (TARGET_VERSION): Remove.
9044 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9045 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9046 * config/i386/linux.h (TARGET_VERSION): Remove.
9047 * config/i386/linux64.h (TARGET_VERSION): Remove.
9048 * config/i386/lynx.h (TARGET_VERSION): Remove.
9049 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9050 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9051 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9052 * config/i386/netware.h (TARGET_VERSION): Remove.
9053 * config/i386/nto.h (TARGET_VERSION): Remove.
9054 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9055 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9056 * config/ia64/elf.h (TARGET_VERSION): Remove.
9057 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9058 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9059 * config/ia64/linux.h (TARGET_VERSION): Remove.
9060 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9061 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9062 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9063 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9064 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9065 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9066 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9067 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9068 * config/m68k/linux.h (TARGET_VERSION): Remove.
9069 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9070 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9071 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9072 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9073 * config/mep/mep.h (TARGET_VERSION): Remove.
9074 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9075 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9076 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9077 * config/mips/linux.h (TARGET_VERSION): Remove.
9078 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9079 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9080 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9081 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9082 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9083 * config/pa/pa.h (TARGET_VERSION): Remove.
9084 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9085 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9086 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9087 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9088 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9089 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9090 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9091 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9092 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9093 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9094 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9095 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9096 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9097 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9098 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9099 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9100 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9101 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9102 * config/s390/linux.h (TARGET_VERSION): Remove.
9103 * config/s390/s390.h (TARGET_VERSION): Remove.
9104 * config/s390/tpf.h (TARGET_VERSION): Remove.
9105 * config/score/score.h (TARGET_VERSION): Remove.
9106 * config/sh/linux.h (TARGET_VERSION): Remove.
9107 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9108 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9109 * config/sh/sh.h (TARGET_VERSION): Remove.
9110 * config/sh/sh64.h (TARGET_VERSION): Remove.
9111 * config/sh/superh.h (TARGET_VERSION): Remove.
9112 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9113 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9114 * config/sparc/linux.h (TARGET_VERSION): Remove.
9115 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9116 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9117 TARGET_NAME32, TARGET_NAME): Remove.
9118 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9119 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9120 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9121 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9122 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9123 * config/spu/spu.h (TARGET_VERSION): Remove.
9124 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9125 * config/v850/v850.h (TARGET_VERSION): Remove.
9126 * config/vax/linux.h (TARGET_VERSION): Remove.
9127 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9128 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9129 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9131 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9134 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9135 frame-related from frame-unrelated adjustments to the stack pointer.
9137 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9139 * common.opt (fdebug-types-section): Move earlier.
9140 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9142 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9144 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9147 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9149 * tree.h (CASE_CHAIN): Define.
9150 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9151 (gimple_redirect_edge_and_branch): Likewise.
9153 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9156 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9159 2011-03-30 Jeff Law <law@redhat.com>
9161 * PR bootstrap/48371
9162 * reload1.c (reload): Fix botch in last change.
9164 * reload.h (struct reload): Fix typo introduced in last change.
9166 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9168 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9169 Undocumented. Remove help text.
9170 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9173 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9175 * doc/options.texi (NegativeAlias): Document.
9176 (Alias): Mention NegativeAlias.
9177 * opt-functions.awk: Handle NegativeAlias.
9178 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9179 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9180 * opts.h (CL_NEGATIVE_ALIAS): Define.
9181 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9182 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9184 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9186 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9187 mno-spe and mno-isel instead of mspe=no and -misel=no.
9189 2011-03-29 Mark Wielaard <mjw@redhat.com>
9191 * common.opt (fdebug-types-section): New flag.
9192 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9193 * dwarf2out.c (use_debug_types): New define.
9194 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9195 (print_die): Guard output of type unit signatures using
9197 (build_abbrev_table): Replace assert of dwarf_version >= 4
9198 with assert on use_debug_types.
9199 (size_of_die): Likewise.
9200 (unmark_dies): Likewise.
9201 (value_format): Decide AT_ref_external form on use_debug_types.
9202 (output_die): Replace dwarf_version version check guard with
9203 use_debug_types where appropriate.
9204 (modified_type_die): Likewise.
9205 (gen_reference_type_die): Likewise.
9206 (dwarf2out_start_source_file): Likewise.
9207 (dwarf2out_end_source_file): Likewise.
9208 (prune_unused_types_walk_attribs): Likewise.
9209 (dwarf2out_finish): Likewise.
9211 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9213 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9215 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9217 PR rtl-optimization/48332
9218 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9219 mode of input operand N and modeN to its actual mode.
9221 2011-03-30 Jeff Law <law@redhat.com>
9223 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9224 define accessor macro.
9225 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9226 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9227 (reg_equiv_init): Likewise.
9228 (reg_equivs_size): New variable.
9229 (reg_equiv_init_size): Remove.
9230 (allocate_initial_values): Move prototype to here from....
9231 * integrate.h (allocate_initial_values): Remove prototype.
9232 * integrate.c: Include reload.h.
9233 (allocate_initial_values): Corresponding changes.
9234 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9235 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9236 (update_equiv_regs): Corresponding changes.
9237 (ira): Corresponding changes.
9238 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9239 (push_secondary_reload): Corresponding changes.
9240 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9241 (make_memloc, find_reloads_address): Corresponding changes.
9242 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9243 (find_reloads_address_1): Corresponding changes.
9244 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9245 (refers_to_regno_for_reload_p): Corresponding changes.
9246 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9247 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9248 * reload1.c: Include ggc.h.
9249 (grow_reg_equivs): New function.
9250 (replace_pseudos_in, reload): Corresponding changes.
9251 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9252 (eliminate_regs_1, elimination_effects): Corresponding changes.
9253 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9254 (delete_output_reload): Likewise.
9255 * caller-save.c (mark_referenced_regs): Corresponding changes.
9256 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9257 * frv/predicates.md (frv_load_operand): Corresponding changes.
9258 * microblaze/microblaze.c (double_memory_operand): Corresponding
9260 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9261 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9262 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9263 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9264 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9266 * pa/pa.c (emit_move_sequence): Corresponding changes.
9267 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9269 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9272 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9273 structure modes. Don't check neon_vector_mem_operand for
9274 vector or structure modes.
9276 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9277 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9280 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9281 operand 1 and reshuffle the operands to match.
9282 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9284 2011-03-30 Christian Schüler <cschueler@gmx.de>
9287 * config/c.opt (F): Added 'Driver' to -F option.
9290 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9292 * config/darwin.opt: Added '-arch' option.
9294 2011-03-30 Nick Clifton <nickc@redhat.com>
9296 * config/rx/rx.md: Add peepholes and patterns to combine
9297 extending loads and simple arithmetic instructions.
9298 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9299 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9300 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9301 modes to use pre-decrement and post-increment addressing.
9302 (rx_is_restricted_memory_address): Add range checking of REG+INT
9304 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9305 (rx_memory_move_cost): Adjust cost of stores.
9306 (rx_adjust_insn_length): New function.
9308 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9311 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9312 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9313 matching arg00/arg01 types.
9315 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9317 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9318 last_location to UNKNOWN_LOCATION.
9320 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9323 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9326 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9327 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9330 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9332 (sparc_cpu): Likewise.
9333 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9336 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9340 PR rtl-optimization/48345
9341 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9342 hard regs for given mode from profitable regs when doing secondary
9345 2011-03-29 Jeff Law <law@redhat.com>
9348 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9349 do_not_duplicate field.
9350 (lookup_redirection_data): Corresponding changes.
9351 (create_duplicates): Always create a template block.
9352 (redirect_edges): Remove code which reused the original block
9353 when it was going to become unreachable code.
9354 (thread_block): Don't set do_not_duplicate field.
9356 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9358 * lto-opts.c (register_user_option_p, lto_register_user_option):
9359 Make type argument unsigned.
9360 * lto-streamer.h (lto_register_user_option): Make type argument
9362 * opth-gen.awk: Make CL_* macros unsigned.
9363 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9364 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9365 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9366 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9367 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9368 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9369 (find_opt): Make lang_mask argument unsigned.
9371 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9373 PR rtl-optimization/48331
9374 PR rtl-optimization/48334
9375 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9376 for any used algorithm.
9378 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9380 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9383 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9385 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9386 (alpha_option_override): Don't set alpha_sr_alias_set.
9387 (emit_frame_store_1): Use gen_frame_mem rather than calling
9389 (alpha_expand_epilogue): Ditto.
9391 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9393 PR tree-optimization/48290
9394 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9395 vectorization, check that relevant phis in the basic block after
9396 the inner loop are really inner loop's exit phis.
9398 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9401 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9402 (cached_dw_loc_list_def): New structure.
9403 (cached_dw_loc_list): New typedef.
9404 (cached_dw_loc_list_table): New variable.
9405 (cached_dw_loc_list_table_hash): New function.
9406 (cached_dw_loc_list_table_eq): Likewise.
9407 (add_location_or_const_value_attribute): Take a bool cache_p.
9408 Cache the list when the parameter is true.
9409 (gen_formal_parameter_die): Update caller.
9410 (gen_variable_die): Likewise.
9411 (dwarf2out_finish): Likewise.
9412 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9413 while generating debug info for the decl.
9414 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9415 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9416 (resolve_addr): Cache the result of resolving a chain of
9419 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9421 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9422 conflict object hard regset nodes have intersecting hard reg sets.
9424 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9425 after regstat_init_n_sets_and_refs.
9427 * ira.c: Add more comments at the top.
9428 (setup_stack_reg_pressure_class, setup_pressure_classes):
9429 Add comments how we compute the register pressure classes.
9430 (setup_allocno_and_important_classes): Add more comments.
9431 (setup_class_translate_array, reorder_important_classes)
9432 (setup_reg_class_relations): Add comments.
9434 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9437 * ira-color.c: Add 2011 to the Copyright line.
9438 (assign_hard_reg): Add more comments.
9439 (improve_allocation): Ditto.
9441 * ira-costs.c: Add 2011 to the Copyright line.
9442 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9444 (setup_regno_cost_classes_by_mode): Ditto.
9446 Initial patches from ira-improv branch:
9448 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9450 * ira-build.c (ira_create_object): Remove initialization of
9451 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9452 (ira_create_allocno): Remove initialization of
9453 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9454 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9455 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9456 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9457 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9458 Initialize ALLOCNO_ADD_DATA.
9459 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9460 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9462 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9463 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9465 * ira.c (ira_reallocate): Remove.
9466 (setup_pressure_classes): Call
9467 ira_init_register_move_cost_if_necessary. Use
9468 ira_register_move_cost instead of ira_get_register_move_cost.
9469 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9470 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9472 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9473 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9474 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9475 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9476 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9477 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9479 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9480 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9481 (struct allocno_color_data): New.
9482 (allocno_color_data_t): New typedef.
9483 (allocno_color_data): New definition.
9484 (ALLOCNO_COLOR_DATA): New macro.
9485 (struct object_color_data): New.
9486 (object_color_data_t): New typedef.
9487 (object_color_data): New definition.
9488 (OBJECT_COLOR_DATA): New macro.
9489 (update_copy_costs, calculate_allocno_spill_cost): Call
9490 ira_init_register_move_cost_if_necessary. Use
9491 ira_register_move_cost instead of ira_get_register_move_cost.
9492 (move_spill_restore, update_curr_costs): Ditto.
9493 (allocno_spill_priority): Make it inline.
9494 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9495 (struct coalesce_data, coalesce_data_t): New.
9496 (allocno_coalesce_data): New definition.
9497 (ALLOCNO_COALESCE_DATA): New macro.
9498 (merge_allocnos, coalesced_allocno_conflict_p): Use
9499 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9500 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9501 (coalesce_allocnos): Ditto.
9502 (setup_coalesced_allocno_costs_and_nums): Ditto.
9503 (collect_spilled_coalesced_allocnos): Ditto.
9504 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9505 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9506 (coalesce_spill_slots): Ditto.
9507 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9508 free allocno_coalesce_data.
9510 * ira-conflicts.c: Fix formatting.
9511 (process_regs_for_copy): Call
9512 ira_init_register_move_cost_if_necessary. Use
9513 ira_register_move_cost instead of ira_get_register_move_cost.
9514 (build_object_conflicts): Optimize.
9516 * ira-costs.c (record_reg_classes): Optimize. Call
9517 ira_init_register_move_cost_if_necessary. Use
9518 ira_register_move_cost, ira_may_move_in_cost, and
9519 ira_may_move_out_cost instead of ira_get_register_move_cost and
9520 ira_get_may_move_cost.
9521 (record_address_regs): Ditto.
9522 (scan_one_insn): Optimize.
9523 (find_costs_and_classes): Optimize.
9524 (process_bb_node_for_hard_reg_moves): Call
9525 ira_init_register_move_cost_if_necessary. Use
9526 ira_register_move_cost instead of ira_get_register_move_cost.
9528 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9529 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9530 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9531 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9533 (ira_initiate_emit_data, ira_finish_emit_data)
9534 (create_new_allocno): New functions.
9535 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9536 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9537 Use ira_register_move_cost instead of ira_get_register_move_cost.
9539 * ira-int.h: Fix some comments.
9540 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9541 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9542 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9543 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9545 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9546 bitfield after mode. Make hard_regno a short int. Make
9547 hard_regno short. Remove first_coalesced_allocno and
9548 next_coalesced_allocno. Move mem_optimized_dest_p,
9549 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9550 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9551 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9552 temp, colorable_p. Add new member add_data.
9553 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9554 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9555 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9556 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9557 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9558 (ALLOCNO_ADD_DATA): New macro.
9559 (ira_emit_data_t): New typedef.
9560 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9561 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9562 from struct ira_allocno.
9563 (ALLOCNO_EMIT_DATA): New macro.
9564 (ira_allocno_emit_data, allocno_emit_reg): New.
9565 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9566 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9567 (OBJECT_ADD_DATA): New macro.
9568 (ira_reallocate): Remove.
9569 (ira_initiate_emit_data, ira_finish_emit_data): New.
9570 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9571 (ira_init_register_move_cost_if_necessary): New.
9572 (ira_object_conflict_iter_next): Merge into
9573 ira_object_conflict_iter_cond.
9574 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9576 * ira-live.c (process_single_reg_class_operands): Call
9577 ira_init_register_move_cost_if_necessary. Use
9578 ira_register_move_cost instead of ira_get_register_move_cost.
9580 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9582 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9584 * ira-costs.c: Fix formatting.
9585 (cost_classes, cost_classes_num): Remove.
9586 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9587 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9588 (cost_classes_del, cost_classes_htab): New.
9589 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9590 (initiate_regno_cost_classes, setup_cost_classes): New.
9591 (setup_regno_cost_classes_by_aclass): New.
9592 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9593 (record_reg_classes): Use regno_cost_classes instead of
9594 cost_classes. Move checking opposite operand up.
9595 (record_address_regs): Use regno_cost_classes
9596 instead of cost_classes.
9597 (scan_one_insn): Ditto. Use always general register.
9598 (print_allocno_costs): Use regno_cost_classes instead of
9600 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9601 (find_costs_and_classes): Set up cost classes for each registers.
9602 Use also their mode for this. Use regno_cost_classes instead of
9604 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9606 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9607 (ira_costs, ira_set_pseudo_classes): Call
9608 initiate_regno_cost_classes and finish_regno_cost_classes.
9610 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9612 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9614 * target.def (ira_cover_classes): Remove.
9616 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9618 * doc/tm.texi.in: Ditto.
9620 * ira-conflicts.c: Remove mentioning cover classes from the file.
9621 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9622 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9624 * targhooks.c (default_ira_cover_classes): Remove.
9626 * targhooks.h (default_ira_cover_classes): Ditto.
9628 * haifa-sched.c: Remove mentioning cover classes from the file.
9629 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9630 ira_pressure_classes and ira_pressure_classes_num instead of
9631 ira_reg_class_cover_size and ira_reg_class_cover. Use
9632 sched_regno_pressure_class instead of sched_regno_cover_class.
9633 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9634 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9636 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9637 classes from the file.
9638 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9639 (struct object_hard_regs, struct object_hard_regs_node): New.
9640 (struct ira_object): New members profitable_hard_regs,
9641 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9642 (struct ira_allocno): Rename cover_class to aclass. Rename
9643 cover_class_cost and updated_cover_class_cost to class_cost and
9644 updated_class_cost. Remove splay_removed_p and
9645 left_conflict_size. Add new members colorable_p.
9646 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9647 (ALLOCNO_COLORABLE_P): New macro.
9648 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9649 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9650 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9651 (OBJECT_...): Rename parameter C to O.
9652 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9653 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9654 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9655 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9656 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9657 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9658 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9659 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9660 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9661 x_ira_reg_class_subunion.
9662 (ira_max_memory_move_cost, ira_max_register_move_cost)
9663 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9664 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9665 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9666 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9667 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9668 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9669 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9670 (ira_tune_allocno_costs_and_cover_classes): Rename to
9671 ira_tune_allocno_costs.
9672 (ira_debug_hard_regs_forest): New.
9673 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9674 (ira_object_conflict_iter_next): Fix comments.
9675 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9676 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9677 cover_class to aclass.
9678 (ira_allocate_and_accumulate_costs): Ditto.
9679 (ira_allocate_and_set_or_copy_costs): Ditto.
9681 * opts.c (decode_options): Remove ira_cover_class check.
9683 * ira-color.c: Remove mentioning cover classes from the file. Use
9684 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9685 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9686 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9687 (splay-tree.h): Remove include.
9688 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9689 before copy_freq_compare_func.
9690 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9691 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9693 (hard_regs_roots, hard_regs_node_vec): Ditto.
9694 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9695 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9696 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9697 (create_new_object_hard_regs_node): Ditto.
9698 (add_new_object_hard_regs_node_to_forest): Ditto.
9699 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9700 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9702 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9703 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9704 (remove_unused_object_hard_regs_nodes): Ditto.
9705 (enumerate_object_hard_regs_nodes): Ditto.
9706 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9707 (object_hard_regs_subnode_t): Ditto.
9708 (struct object_hard_regs_subnode): Ditto.
9709 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9710 (setup_object_hard_regs_subnode_index): Ditto.
9711 (get_object_hard_regs_subnodes_num): Ditto.
9712 (form_object_hard_regs_nodes_forest): Ditto.
9713 (finish_object_hard_regs_nodes_tree): Ditto.
9714 (finish_object_hard_regs_nodes_forest): Ditto.
9715 (allocnos_have_intersected_live_ranges_p): Rename to
9716 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9717 (pseudos_have_intersected_live_ranges_p): Rename to
9718 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9719 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9720 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9721 (update_copy_costs): Remove assert. Skip cost update if the hard
9722 reg does not belong the class.
9723 (assign_hard_reg): Process only profitable hard regs.
9724 (uncolorable_allocnos_num): Make it scalar.
9725 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9726 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9727 and ira_reg_class_max_nregs.
9728 (bucket_allocno_compare_func): Check frequency first.
9729 (sort_bucket): Add compare function as a parameter.
9730 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9731 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9732 (push_allocno_to_stack): Rewrite for checking new allocno
9734 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9735 (push_only_colorable): Pass new parameter to sort_bucket.
9736 (push_allocno_to_spill): Remove.
9737 (allocno_spill_priority_compare): Make it inline and rewrite.
9738 (splay_tree_allocate, splay_tree_free): Remove.
9739 (allocno_spill_sort_compare): New function.
9740 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9741 build and use splay tree. Choose first allocno in uncolorable
9742 allocno bucket to spill. Remove setting spill cost.
9743 (all_conflicting_hard_regs): Remove.
9744 (setup_allocno_available_regs_num): Check only profitable hard
9745 regs. Print info about hard regs nodes.
9746 (setup_allocno_left_conflicts_size): Remove.
9747 (put_allocno_into_bucket): Don't call
9748 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9749 (improve_allocation): New.
9750 (color_allocnos): Call setup_profitable_hard_regs,
9751 form_object_hard_regs_nodes_forest, improve_allocation,
9752 finish_object_hard_regs_nodes_forest. Setup spill cost.
9753 (print_loop_title): Use pressure classes.
9754 (color_allocnso): Ditto.
9755 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9756 and allocnos_for_spilling.
9757 (ira_sort_regnos_for_alter_reg): Don't setup members
9758 {first,next}_coalesced_allocno.
9759 (color): Remove allocating and freeing removed_splay_allocno_vec.
9760 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9761 prohibited_class_mode_regs.
9763 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9765 (update_allocno_pressure_excess_length): Use pressure classes.
9766 (inc_register_pressure, dec_register_pressure): Check for pressure
9768 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9769 pressure class. Use ira_reg_class_nregs instead of
9770 ira_reg_class_max_nregs.
9771 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9772 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9773 (single_reg_class): Use ira_reg_class_nregs instead of
9774 ira_reg_class_max_nregs.
9775 (process_bb_node_lives): Use pressure classes.
9777 * ira-emit.c: Remove mentioning cover classes from the file. Use
9778 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9779 (change_loop): Use pressure classes.
9780 (modify_move_list): Call ira_set_allocno_class instead of
9781 ira_set_allocno_cover_class.
9783 * ira-build.c: Remove mentioning cover classes from the file. Use
9784 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9785 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9786 ALLOCNO_UPDATED_CLASS_COST instead of
9787 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9788 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9789 (ira_create_allocno): Remove initialization of
9790 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9791 ALLOCNO_COLORABLE_P.
9792 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9793 Update conflict regs for the objects.
9794 (create_cap_allocno): Remove assert. Don't propagate
9795 ALLOCNO_AVAILABLE_REGS_NUM.
9796 (ira_free_allocno_costs): New function.
9797 (finish_allocno): Change a part of code into call of
9798 ira_free_allocno_costs.
9799 (low_pressure_loop_node_p): Use pressure classes.
9800 (object_range_compare_func): Don't compare classes.
9801 (setup_min_max_conflict_allocno_ids): Ditto.
9803 * loop-invariant.c: Remove mentioning cover classes from the file.
9804 Use ira_pressure_classes and ira_pressure_classes_num instead of
9805 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9806 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9807 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9808 Use reg_allocno_class instead of reg_cover_class.
9809 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9810 STACK_REG_COVER_CLASS.
9811 (get_regno_cover_class): Rename to get_regno_pressure_class.
9812 (move_loop_invariants): Initialize and finalize regstat.
9814 * ira.c: Remove mentioning cover classes from the file. Add
9815 comments about coloring without cover classes. Use ALLOCNO_CLASS
9816 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9817 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9818 setup_class_subset_and_memory_move_costs.
9819 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9820 (setup_cover_and_important_classes): Rename to
9821 setup_allocno_and_important_classes.
9822 (setup_class_translate_array): New.
9823 (setup_class_translate): Call it for allocno and pressure classes.
9824 (cover_class_order): Rename to allocno_class_order.
9825 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9826 of ira_class_translate.
9827 (reorder_important_classes): Set up ira_important_class_nums.
9828 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9829 (print_class_cover): Rename to print_classes. Add parameter.
9830 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9831 Print pressure classes too.
9832 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9833 setup_reg_subclasses.
9834 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9835 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9836 (setup_prohibited_class_mode_regs): Use
9837 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9838 (clarify_prohibited_class_mode_regs): New function.
9839 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9840 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9841 (ira_init_once): Initialize them.
9842 (free_register_move_costs): Process them.
9843 (ira_init): Move calls of find_reg_classes and
9844 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9845 Call clarify_prohibited_class_mode_regs.
9846 (ira_no_alloc_reg): Remove.
9847 (too_high_register_pressure_p): Use pressure classes.
9849 * sched-deps.c: Remove mentioning cover classes from the file.
9850 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9851 ira_pressure_classes and ira_pressure_classes_num instead of
9852 ira_reg_class_cover_size and ira_reg_class_cover.
9853 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9854 sched_regno_pressure_class instead of sched_regno_cover_class.
9855 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9856 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9858 * ira.h: Add 2010 to Copyright.
9859 (ira_no_alloc_reg): Remove external.
9860 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9861 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9862 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9863 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9864 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9865 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9866 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9867 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9868 x_ira_no_alloc_regs.
9869 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9870 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9871 ira_allocno_classes_num and ira_allocno_classes.
9872 (ira_class_translate): Rename to ira_allocno_class_translate.
9873 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9874 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9875 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9876 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9877 (ira_no_alloc_regs): New.
9879 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9880 classes from the file. Use ALLOCNO_CLASS instead of
9881 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9882 ALLOCNO_COVER_CLASS_COST.
9883 (regno_cover_class): Rename to regno_aclass.
9884 (record_reg_classes): Use ira_reg_class_subunion instead of
9885 ira_reg_class_union.
9886 (record_address_regs): Check overflow.
9887 (scan_one_insn): Ditto.
9888 (print_allocno_costs): Print total mem cost fore regional allocation.
9889 (print_pseudo_costs): Use REG_N_REFS.
9890 (find_costs_and_classes): Use classes intersected with them on the
9891 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9892 ira_reg_class_union. Use ira_allocno_class_translate and
9893 regno_aclass instead of ira_class_translate and regno_cover_class.
9894 Modify code for finding regno_aclass. Setup preferred classes for
9896 (setup_allocno_cover_class_and_costs): Rename to
9897 setup_allocno_class_and_costs. Use regno_aclass instead of
9898 regno_cover_class. Use ira_set_allocno_class instead of
9899 ira_set_allocno_cover_class.
9900 (init_costs, finish_costs): Use regno_aclass instead of
9902 (ira_costs): Use setup_allocno_class_and_costs instead of
9903 setup_allocno_cover_class_and_costs.
9904 (ira_tune_allocno_costs_and_cover_classes): Rename to
9905 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9906 by processing objects. Use ira_reg_class_max_nregs instead of
9907 ira_reg_class_nregs.
9909 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9911 * sched-int.h: Remove mentioning cover classes from the file.
9912 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9914 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9915 classes from the file.
9916 (struct reg_pref): Rename coverclass into allocnoclass.
9917 (reg_cover_class): Rename to reg_allocno_class.
9919 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9921 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9923 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9925 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9927 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9929 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9931 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9933 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9935 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9937 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9939 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9940 (i386_ira_cover_classes): Ditto.
9942 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9944 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9946 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9948 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9950 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9952 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9954 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9955 (mips_ira_cover_classes): Ditto.
9957 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9959 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9961 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9963 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9965 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9967 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9968 (IRA_COVER_CLASSES_VSX): Ditto.
9970 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9971 (rs6000_ira_cover_classes): Ditto.
9973 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9975 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9977 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9979 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9981 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9983 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9985 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9987 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9989 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9991 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9993 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9996 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9997 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9998 dw_fde_unlikely_section_end_label, cold_in_std_section,
9999 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10000 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10002 (output_fde): Use dw_fde_second_{begin,end} if second is
10003 true, otherwise dw_fde_{begin,end}.
10004 (output_call_frame_info): Test dw_fde_second_begin != NULL
10005 instead of dw_fde_switched_sections.
10006 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10007 fields, initialize new fields. Initialize in_std_section
10008 unconditionally from the first partition.
10009 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10010 dw_fde_second_begin is non-NULL.
10011 (dwarf2out_switch_text_section): Stop initializing removed
10012 dw_fde_struct fields, initialize new fields, initialize
10013 also dw_fde_end here. Set dw_fde_switch_cfi even when
10014 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10015 (struct var_loc_list_def): Add last_before_switch field.
10016 (arange_table, arange_table_allocated, arange_table_in_use,
10017 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10018 (size_of_aranges): Count !in_std_section and !second_in_std_section
10019 hunks in fdes, instead of looking at arange_table_in_use.
10020 (output_aranges): Add aranges_length argument, don't call
10021 size_of_aranges here. Instead of using aranges_table*
10022 emit ranges for fdes when !in_std_section resp.
10023 !second_in_std_section.
10024 (dw_loc_list): Break ranges crossing section switch.
10025 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10026 use dw_fde_second_end instead of dw_fde_end as end of last range.
10027 (gen_subprogram_die): Don't call add_arange. Use
10028 dw_fde_{begin,end} for first partition and if switched
10029 section dw_fde_second_{begin,end} for the second.
10030 (var_location_switch_text_section_1,
10031 var_location_switch_text_section): New functions.
10032 (dwarf2out_begin_function): Initialize cold_text_section even
10033 when function_section () isn't text_section.
10034 (prune_unused_types): Don't walk arange_table.
10035 (dwarf2out_finish): Don't needlessly test
10036 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10037 If info_section_emitted, call size_of_aranges and if it indicates
10038 non-empty .debug_aranges, call output_aranges with the computed
10039 size. Stop using removed dw_fde_struct fields, use
10040 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10044 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10045 create ENTRY_VALUE if incoming or address of incoming's MEM
10047 * dwarf2out.c (mem_loc_descriptor): Don't emit
10048 DW_OP_GNU_entry_value of DW_OP_fbreg.
10049 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10050 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10051 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10052 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10054 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10055 is a REG_P or MEM_P with REG_P address, compute hash directly
10056 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10057 (preserve_only_constants): Don't clear VALUES forwaring
10058 ENTRY_VALUE to some other VALUE.
10060 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10062 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10063 instead of GEN_INT.
10065 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10067 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10068 block before expanding the statement.
10069 (expand_gimple_stmt_1): Likewise. Set them here...
10070 (expand_gimple_stmt): ...and not here. Tidy.
10071 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10074 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10076 * Makefile.in: New rule for cprop.o.
10077 * gcse.c: Move constant/copy propagation to cprop.c.
10078 (compute_local_properties): Only handle expression tables.
10079 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10080 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10081 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10082 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10083 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10084 compute_cprop_data, find_used_regs, try_replace_reg,
10085 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10086 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10087 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10088 find_bypass_set, reg_killed_on_edge, bypass_block,
10089 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10090 execute_rtl_cprop, pass_rtl_cprop): Move to...
10091 * cprop.c: ...here. New file, constant/copy propagation for RTL
10092 moved from gcse.c to here with minor cleanups in duplicated code.
10094 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10096 * config/i386/i386.c (flag_opts): Fix a typo in
10097 -mavx256-split-unaligned-store.
10099 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10101 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10102 LIBCALL_VALUE): Remove macros.
10103 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10104 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10105 (h8300_function_value, h8300_libcall_value,
10106 h8300_function_value_regno_p): New functions.
10108 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10110 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10112 2011-03-28 Jeff Law <law@redhat.com>
10114 * tree-ssa-threadupdate.c (redirect_edges): Call
10115 create_edge_and_update_destination_phis as needed.
10116 (create_edge_and_update_destination_phis): Accept new BB argument.
10117 All callers updated.
10118 (thread_block): Do not update the profile when threading around
10119 intermediate blocks.
10120 (thread_single_edge): Likewise.
10121 (determine_bb_domination_status): If BB is not a successor of the
10122 loop header, return NONDOMINATING.
10123 (register_jump_thread): Note when we register a jump thread around
10124 an intermediate block.
10125 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10126 (thread_across_edge): Use it.
10128 2011-03-28 Tristan Gingold <gingold@adacore.com>
10130 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10131 when for_return is 2.
10133 2011-03-28 Jeff Law <law@redhat.com>
10135 * var-tracking.c (canonicalize_values_mark): Delete unused
10137 (canonicalize_values_star, set_variable_part): Likewise.
10138 (clobber_variable_part, delete_variable_part): Likewise.
10140 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10142 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10144 2011-03-28 Martin Jambor <mjambor@suse.cz>
10146 * tree-inline.c (expand_call_inline): Do not check that destination
10148 (optimize_inline_calls): Assert that destination node is analyzed.
10149 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10150 not call tree_lowering_passes.
10151 * cgraph.h (cgraph_analyze_function): Declare.
10152 * cgraphunit.c (cgraph_analyze_function): Make public.
10154 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10156 * config/sparc/sparc-opts.h: New.
10157 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10158 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10159 (sparc_option_override): Store processor_type enumeration rather
10160 than string in cpu_default. Remove name and enumeration from
10161 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10162 without using sparc_select. Use target_flags_explicit instead of
10164 * config/sparc/sparc.h (enum processor_type): Move to
10166 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10167 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10168 HeaderInclude entry.
10169 (mcpu=, mtune=): Use Var and Enum.
10170 (sparc_processor_type): New Enum and EnumValue entries.
10172 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10173 Iain Sandoe <iains@gcc.gnu.org>
10176 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10178 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10180 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10181 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10182 Insert new statements at it in lieu of STMT.
10183 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10184 * tree-vect-stmts.c (vectorizable_store): Likewise.
10185 (vectorizable_load): Likewise.
10187 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10189 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10194 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10196 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10197 unaligned 256bit load/store.
10198 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10199 (*avx_movdqu<avxmodesuffix>): Likewise.
10201 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10204 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10205 * config/pa/pa.md (iordi3): Use new predicate in expander.
10206 (iorsi3): Likewise.
10208 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10210 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10211 FUNCTION_VALUE_REGNO_P): Remove macros.
10212 * config/mips/mips-protos.h (mips_function_value): Remove.
10213 * config/mips/mips.c (mips_function_value): Rename to...
10214 (mips_function_value_1): ... this. Make static. Handle receiving
10215 the function type in 'fn_decl_or_type' argument.
10216 (mips_function_value, mips_libcall_value,
10217 mips_function_value_regno_p): New function.
10218 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10219 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10221 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10223 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10224 and -mavx256-split-unaligned-store.
10225 (ix86_option_override_internal): Split 32-byte AVX unaligned
10226 load/store by default.
10227 (ix86_avx256_split_vector_move_misalign): New.
10228 (ix86_expand_vector_move_misalign): Use it.
10230 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10231 -mavx256-split-unaligned-store.
10233 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10234 256bit load/store. Generate unaligned store on misaligned memory
10236 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10238 (*avx_movdqu<avxmodesuffix>): Likewise.
10240 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10241 -mavx256-split-unaligned-store.
10243 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10246 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10249 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10251 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10252 opno arguments with an expand_operand. Use create_input_operand.
10253 (mips_prepare_builtin_target): Delete.
10254 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10256 (mips_expand_builtin_direct): Use create_output_operand and
10257 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10258 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10259 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10261 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10263 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10265 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10267 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10269 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10270 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10271 basic blocks and call commit_edge_insertions directly.
10272 (fixup_abnormal_edges): Move from here to...
10273 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10274 on the edges and return whether some have actually been inserted.
10275 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10278 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10280 PR rtl-optimization/48144
10281 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10282 (merge_expr_data): ... here.
10283 (av_set_intersect): Rename to av_set_code_motion_filter.
10284 Update all callers. Call merge_history_vect when an expression
10285 is found in both sets.
10286 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10288 2011-03-26 Alan Modra <amodra@gmail.com>
10290 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10291 cmodel medium addresses.
10292 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10293 64-bit gpr loads and stores.
10294 (rs6000_secondary_reload_ppc64): New function.
10295 * config/rs6000/rs6000-protos.h: Declare it.
10296 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10298 2011-03-26 Alan Modra <amodra@gmail.com>
10301 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10302 GNU Go in traceback table.
10304 2011-03-25 Richard Henderson <rth@redhat.com>
10306 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10307 if there are exactly 6 operands.
10308 (set_storage_via_setmem): Similarly.
10310 2011-03-25 Kai Tietz <ktietz@redhat.com>
10312 * collect2.c (write_c_file_stat): Handle backslash
10313 as right-hand directory separator.
10314 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10315 checking just for slash.
10316 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10317 instead of checking for trailing slash.
10318 * gcc.c (record_temp_file): Use filename_cmp instead
10320 (do_spec_1): Likewise.
10321 (replace_outfile_spec_function): Likewise.
10322 (is_directory): Use filename_ncmp instead of strncmp.
10323 (print_multilib_info): Likewise.
10324 * gcov.c (find_source): Use filename_cmp instead
10326 (make_gcov_file_name): Fix order of slash/backslash
10328 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10329 (add_standard_paths): Likewise.
10330 * mips-tfile.c (saber_stop): Handle backslash.
10331 * prefix.c (update_path): Use filename_ncmp instead of
10333 * profile.c (output_location): Use filename_cmp instead
10335 * read-md.c (handle_toplevel_file): Handle backslash.
10336 * tlink.c (frob_extension): Likewise.
10337 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10339 * tree-dump.c (dequeue_and_dump): Handle backslash.
10340 * tree.c (get_file_function_name): Likewise.
10341 * gengtype.c (read_input_list): Likewise.
10342 (get_file_realbasename): Likewise.
10343 (get_output_file_with_visibility): Use filename_cmp
10346 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10348 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10351 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10353 * fold-const.c (expr_location_or): New function.
10354 (fold_truth_not_expr): Call it.
10356 2011-03-25 Jeff Law <law@redhat.com>
10358 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10360 * c-family/c-common.c (def_fn_type): Likewise.
10361 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10362 * emit-rtl.c (gen_rtvec): Likewise.
10363 * lto/lto-lang.c (def_fn_type): Likewise.
10365 2011-03-25 Richard Guenther <rguenther@suse.de>
10367 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10368 also generate copies.
10369 (fini_copy_prop): Handle constant values properly.
10371 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10373 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10374 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10375 (hash_loc_operands, compare_loc_operands): Handle
10376 DW_OP_GNU_entry_value.
10378 2011-03-25 Kai Tietz <ktietz@redhat.com>
10380 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10381 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10382 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10383 comment and use macro TARGET_64BIT_MS_ABI instead.
10384 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10385 and change default behavior for 32-bit MS_ABI.
10386 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10387 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10389 (ix86_cfun_abi): Likewise.
10390 (ix86_maybe_switch_abi): Adjust comment.
10391 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10392 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10393 instead of checking for SYSV_ABI.
10394 (ix86_nsaved_sseregs): Likewise.
10395 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10397 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10398 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10399 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10400 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10401 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10403 2011-03-25 Richard Guenther <rguenther@suse.de>
10405 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10406 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10407 (verify_gimple): Remove.
10408 * tree-cfg.c (verify_gimple_call): Merge verification
10410 (verify_gimple_phi): Merge verification from verify_stmts.
10411 (verify_gimple_label): New function.
10412 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10413 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10414 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10415 (verify_stmts): Rename to verify_gimple_in_cfg.
10416 (verify_gimple_in_cfg): New function.
10417 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10418 * tree-ssa.c (verify_ssa): Likewise.
10419 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10421 2011-03-25 Richard Guenther <rguenther@suse.de>
10423 * passes.c (init_optimization_passes): Add FRE pass after
10426 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10427 Andrew Stubbs <ams@codesourcery.com>
10429 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10431 (arm_movdi_vfp_cortexa8): New pattern.
10432 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10433 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10434 instructions when tuning for Cortex-A8. Set attribute "arch".
10435 * config/arm/arm.md: Move include arm-tune.md up a bit.
10436 (define_attr "arch"): Add "onlya8" and "nota8" values.
10437 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10439 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10443 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10445 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10446 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10447 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10448 * passes.c (init_optimization_passes): Move
10449 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10451 2011-03-25 Kai Tietz <ktietz@redhat.com>
10453 * c-typeck.c (comptypes_internal): Replace target
10454 hook call of comp_type_attributes by version in tree.c file.
10455 * gimple.c (gimple_types_compatible_p_1): Likewise.
10456 * tree-ssa.c (useless_type_conversion_p): Likewise.
10457 * tree.c (build_type_attribute_qual_variant): Likewise.
10458 (attribute_value_equal): New static helper function.
10459 (comp_type_attributes): New function.
10460 (merge_attributes): Use attribute_value_equal for comparison.
10461 (attribute_list_contained): Likewise.
10462 * tree.h (comp_type_attributes): New prototype.
10464 2011-03-25 Richard Guenther <rguenther@suse.de>
10466 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10467 of complex types at -O0.
10468 (verify_gimple_assign_binary): Likewise.
10469 (verify_gimple_assign_ternary): Likewise.
10471 2011-03-24 Mark Wielaard <mjw@redhat.com>
10473 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10474 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10476 2011-03-24 Mark Wielaard <mjw@redhat.com>
10479 * dwarf2out.c (output_abbrev_section): Only write table when
10480 abbrev_die_table_in_use > 1.
10482 2011-02-24 Richard Henderson <rth@redhat.com>
10484 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10485 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10486 (alpha_expand_unaligned_load_words): Use extql.
10487 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10488 (emit_insxl): Handle all modes for consistency.
10490 2011-02-24 Richard Henderson <rth@redhat.com>
10492 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10493 (alpha_expand_unaligned_load): Likewise.
10494 (alpha_expand_unaligned_store): Likewise.
10495 (alpha_expand_unaligned_load_words): Likewise.
10496 (alpha_expand_unaligned_store_words): Likewise.
10497 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10498 (alpha_split_lock_test_and_set_12): Likewise.
10499 (print_operand, alpha_fold_builtin_extxx): Likewise.
10500 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10501 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10502 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10503 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10504 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10505 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10506 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10507 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10508 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10509 (extwl, extll, extql): Similarly.
10510 (inswh, inslh, insqh): Similarly.
10511 (mskbl, mskwl, mskll, mskql): Similarly.
10512 (mskwh, msklh, mskqh): Similarly.
10514 2011-02-24 Richard Henderson <rth@redhat.com>
10516 * config/alpha/alpha.md (attribute isa): Add er, ner.
10517 (attribute enabled): Handle them.
10518 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10520 2011-02-24 Richard Henderson <rth@redhat.com>
10522 * config/alpha/alpha.md (attribute isa): Add vms.
10523 (attribute enabled): Handle it.
10524 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10525 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10526 (*movtf): Rename from *movtf_internal for consistency.
10527 (*movsi): Merge with *movsi_nt_vms.
10528 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10529 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10530 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10531 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10533 2011-02-24 Richard Henderson <rth@redhat.com>
10535 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10536 (extendqisi2, extendhisi2): Likewise.
10537 (extendqidi2): Simplify BWX/non-BWX expansions.
10538 (extendhidi2): Similarly.
10540 2011-02-24 Richard Henderson <rth@redhat.com>
10542 * config/alpha/alpha.md (attribute isa): New.
10543 (attribute enabled): New.
10544 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10545 (zero_extendqisi2, zero_extendqidi2): Similarly.
10546 (zero_extendhisi2, zero_extendhidi2): Similarly.
10547 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10549 2011-02-24 Richard Henderson <rth@redhat.com>
10551 * config/alpha/predicates.md (input_operand): Revert last change;
10552 update comment to mention 32-bit VMS rather than Windows.
10554 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10556 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10557 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10558 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10559 * passes.c (init_optimization_passes): Move
10560 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10562 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10564 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10566 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10568 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10571 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10574 * simplify-rtx.c (simplify_const_unary_operation): Call
10575 real_convert when changing mode class with FLOAT_EXTEND.
10577 2011-03-24 Nick Clifton <nickc@redhat.com>
10579 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10580 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10581 * config/rx/rx.c (rx_option_override): Set align_jumps,
10582 align_loops and align_labels if not set by the user.
10583 (rx_align_for_label): New function.
10584 (rx_max_skip_for_label): New function.
10585 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10586 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10587 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10588 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10589 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10591 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10593 PR rtl-optimization/48263
10594 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10595 and original commutative_p handling. Use maybe_gen_insn.
10597 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10599 * reload.c (find_reloads_subreg_address): Add address_reloaded
10600 parameter and return true there if the full address has been
10602 (find_reloads_toplev): Pass address_reloaded flag.
10603 (find_reloads_address_1): Don't use address_reloaded parameter.
10605 2011-03-24 Jeff Law <law@redhat.com>
10607 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10608 unused variable "ann".
10609 (remove_unused_locals): Likewise.
10611 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10614 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10617 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10619 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10620 for invalid symbolic addresses.
10621 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10624 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10626 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10627 the argument in calls to fold_truth_not_expr.
10629 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10631 * tree.c (record_node_allocation_statistics): New function.
10632 (make_node_stat, copy_node_stat, build_string): Call it.
10633 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10634 (build1_stat, build_omp_clause): Likewise.
10636 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10638 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10641 2011-03-24 Richard Guenther <rguenther@suse.de>
10643 PR tree-optimization/48271
10644 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10645 blocks that still exist.
10647 2011-03-24 Richard Guenther <rguenther@suse.de>
10649 PR tree-optimization/48270
10650 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10651 not free datarefs before ddrs.
10653 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10655 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10656 from the address built for a reference with variable offset.
10658 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10661 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10662 alternatives that can be handled with movq or movabsq insn.
10663 (*movdf_internal): Disable for !TARGET_64BIT.
10664 (*movdf_internal_nointeger): Ditto.
10665 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10667 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10669 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10670 (FUNCTION_ARG_ADVANCE): Likewise.
10671 * tm.texi.in: Change references to them to hook references.
10672 * tm.texi: Regenerate.
10673 * targhooks.c (default_function_arg): Eliminate check for target macro.
10674 (default_function_incoming_arg): Likewise.
10675 (default_function_arg_advance): Likewise.
10676 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10677 (function_arg_advance): Likewise.
10678 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10680 2011-03-24 Richard Guenther <rguenther@suse.de>
10682 PR middle-end/48269
10683 * tree-object-size.c (addr_object_size): Do not double-account
10684 for MEM_REF offsets.
10686 2011-03-24 Diego Novillo <dnovillo@google.com>
10688 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10689 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10690 (lto_input_data_block): Move from lto-opts.c. Make extern.
10692 (lto_input_string): Rename from input_string. Make extern.
10694 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10695 output_string_with_length.
10696 Output 0 to indicate a non-NULL string. Update all callers to
10698 (lto_output_string): Rename from output_string. Make extern.
10700 (lto_output_decl_state_streams): Make extern.
10701 (lto_output_decl_state_refs): Make extern.
10702 * lto-streamer.h (lto_input_string): Declare.
10703 (lto_input_data_block): Declare.
10704 (lto_output_string): Declare.
10705 (lto_output_string_with_length): Declare.
10706 (lto_output_decl_state_streams): Declare.
10707 (lto_output_decl_state_refs): Declare.
10709 2011-03-24 Richard Guenther <rguenther@suse.de>
10711 PR tree-optimization/46562
10712 * tree.c (build_invariant_address): New function.
10713 * tree.h (build_invariant_address): Declare.
10714 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10715 a renamed function moved ...
10716 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10717 Take valueization callback parameter.
10718 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10719 * gimple-fold.h: New file.
10720 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10721 (ccp_fold, fold_const_aggregate_ref,
10722 fold_ctor_reference, fold_nonarray_ctor_reference,
10723 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10724 get_base_constructor): Move ...
10725 * gimple-fold.c: ... here.
10726 (gimple_fold_stmt_to_constant_1): New function
10727 split out from ccp_fold. Take a valueization callback parameter.
10728 Valueize all operands.
10729 (gimple_fold_stmt_to_constant): New wrapper function.
10730 (fold_const_aggregate_ref_1): New function split out from
10731 fold_const_aggregate_ref. Take a valueization callback parameter.
10732 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10733 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10734 invariant POINTER_PLUS_EXPRs to invariant form.
10735 (vn_valueize): New function.
10736 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10737 * tree-vrp.c (vrp_valueize): New function.
10738 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10739 to fold statements to constants.
10740 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10741 function declarations.
10742 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10743 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10745 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10747 * config/h8300/predicates.md (jump_address_operand): Fix register
10750 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10752 * doc/invoke.texi (max-stores-to-sink): Document.
10753 * params.h (MAX_STORES_TO_SINK): Define.
10754 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10755 if either vectorization or if-conversion is disabled.
10756 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10757 tree-vect-data-refs.c vect_equal_offsets.
10758 (dr_equal_offsets_p): New function.
10759 (find_data_references_in_bb): Remove static.
10760 * tree-data-ref.h (find_data_references_in_bb): Declare.
10761 (dr_equal_offsets_p): Likewise.
10762 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10763 (vect_drs_dependent_in_basic_block): Update calls to
10764 vect_equal_offsets.
10765 (vect_check_interleaving): Likewise.
10766 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10767 (cond_if_else_store_replacement): Rename to...
10768 (cond_if_else_store_replacement_1): ... this. Change arguments and
10770 (cond_if_else_store_replacement): New function.
10771 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10772 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10774 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10777 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10778 to subtract lower bound instead of GEN_INT().
10780 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10785 * doc/extend.texi (Alignment): Move section to match order in TOC.
10786 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10787 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10789 2011-03-23 Jeff Law <law@redhat.com>
10791 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10792 before removing the edge.
10794 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10795 it may have been freed by redirect_branch_edge or
10796 redirect_edge_succ_nodup.
10798 2011-03-23 Richard Guenther <rguenther@suse.de>
10800 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10801 (check_va_list_escapes): Likewise.
10802 (check_all_va_list_escapes): Likewise.
10804 2011-03-23 Richard Guenther <rguenther@suse.de>
10806 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10807 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10808 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10809 (alias.o): Likewise.
10810 (ipa-type-escape.o): Remove.
10811 (ipa-struct-reorg.o): Likewise.
10812 (GTFILES): Remove ipa-struct-reorg.c.
10813 * alias.c: Do not include ipa-type-escape.h.
10814 * tree-ssa-alias.c: Likewise.
10815 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10816 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10817 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10818 and ipa-type-escape passes.
10819 * tree-pass.h (pass_ipa_type_escape): Remove.
10820 (pass_ipa_struct_reorg): Likewise.
10821 * ipa-struct-reorg.h: Remove.
10822 * ipa-struct-reorg.c: Likewise.
10823 * ipa-type-escape.h: Likewise.
10824 * ipa-type-escape.c: Likewise.
10825 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10826 (--param struct-reorg-cold-struct-ratio): Likewise.
10827 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10828 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10829 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10831 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10833 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10834 cpu attribute value.
10835 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10836 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10837 * config/s390/s390.c (processor_flags_table): New constant array.
10838 (s390_handle_arch_option): Remove.
10839 (s390_handle_option): Remove s390_handle_arch_option invocations
10840 and OPT_mwarn_framesize_ handling.
10841 (s390_option_override): Remove s390_handle_arch_option invocation.
10842 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10844 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10845 * config/s390/s390.opt (s390_tune, s390_arch)
10846 (march=): Replace s390_arch_option enum and values with
10847 processor_type. Set variable name to s390_arch. Set
10848 initialization value.
10849 (mtune=): Replace s390_arch_option with processor_type. Set
10850 variable name to s390_tune. Set initialization value.
10852 2011-03-23 Julian Brown <julian@codesourcery.com>
10854 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10855 accesses which are not naturally aligned.
10857 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10860 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10862 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10864 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10865 parameter from "int" to "enum insn_code".
10866 (expand_operand_type): New enum.
10867 (expand_operand): New structure.
10868 (create_expand_operand): New function.
10869 (create_fixed_operand, create_output_operand): Likewise
10870 (create_input_operand, create_convert_operand_to): Likewise.
10871 (create_convert_operand_from, create_address_operand): Likewise.
10872 (create_integer_operand): Likewise.
10873 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10874 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10875 (expand_insn, expand_jump_insn): Likewise.
10876 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10877 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10878 (expand_movstr, expand_builtin___clear_cache): Likewise.
10879 (expand_builtin_lock_release): Likewise.
10880 * explow.c (allocate_dynamic_stack_space): Likewise.
10881 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10882 and use the default handling in that case.
10883 * expmed.c (check_predicate_volatile_ok): Delete.
10884 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10885 (emit_cstore): Likewise.
10886 * expr.c (emit_block_move_via_movmem): Likewise.
10887 (set_storage_via_setmem, expand_assignment): Likewise.
10888 (emit_storent_insn, try_casesi): Likewise.
10889 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10890 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10891 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10892 (expand_twoval_unop, expand_twoval_binop): Likewise.
10893 (expand_unop_direct, emit_indirect_jump): Likewise.
10894 (emit_conditional_move, vector_compare_rtx): Likewise.
10895 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10896 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10897 (expand_sync_lock_test_and_set): Likewise.
10898 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10899 (emit_unop_insn): Likewise.
10900 (expand_copysign_absneg): Change icode to an insn_code.
10901 (create_convert_operand_from_type): New function.
10902 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10903 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10904 (expand_insn, expand_jump_insn): Likewise.
10905 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10906 than const_int_operand for operand 2.
10908 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10910 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10913 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10915 * emit-rtl.c (emit_pattern_before_noloc): New function.
10916 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10917 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10918 (emit_pattern_after_noloc): New function.
10919 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10920 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10922 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10924 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10925 (__ffsDI2): Likewise.
10927 2011-03-22 Richard Henderson <rth@redhat.com>
10929 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10930 of !TARGET_ABI_OPEN_VMS.
10931 (alpha_trampoline_init, alpha_start_function): Likewise.
10932 (alpha_expand_epilogue, alpha_file_start): Likewise.
10933 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10934 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10935 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10936 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10937 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10939 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10941 * config/s390/s390-opts.h: New.
10942 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10943 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10944 s390_stack_guard): Remove.
10945 (s390_handle_arch_option): Return void. Take enum
10946 s390_arch_option value instead of string and searching array.
10947 (s390_handle_option): Don't assert that global structures are in
10948 use. Access variables via opts pointer. Use error_at. Don't use
10949 sscanf for -mstack-guard= or -mstack-size=. Update call to
10950 s390_handle_arch_option.
10951 (s390_option_override): Update call to s390_handle_arch_option.
10952 (s390_emit_prologue): Use %d format for s390_stack_size in
10953 diagnostic. Use %wd for HOST_WIDE_INT.
10954 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10955 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10956 * config/s390/s390.opt (config/s390/s390-opts.h): New
10957 HeaderInclude entry.
10958 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10959 s390_arch_flags, s390_warn_framesize): New Variable entries.
10960 (s390_arch_option): New Enum and EnumValue entries.
10961 (march=): Use Enum instead of Var.
10962 (mstack-guard=, mstack-size=): Use UInteger and Var.
10963 (mtune=): Use Enum.
10965 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10967 * config/score/score.c (score_handle_option): Don't assert that
10968 global structures are in use. Access target_flags via opts
10969 pointer. Use value of -march= option to determine target_flags
10971 * config/score/score.opt (march=): Use Enum.
10972 (score_arch): New Enum and EnumValue entries.
10974 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10976 * config/mep/mep.c (option_mtiny_specified): Remove.
10977 (mep_option_override): Move register handling for -mivc2 from
10978 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10979 instead of option_mtiny_specified.
10980 (mep_handle_option): Access target_flags via opts pointer. Don't
10981 assert that global structures are in use. Defer part of -mivc2
10982 handling and move it to mep_option_override.
10983 * config/mep/mep.opt (IVC2): New Mask entry.
10984 (mivc2): Use Var and Defer instead of Mask.
10986 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10988 * config/v850/v850-opts.h: New.
10989 * config/v850/v850.c (small_memory): Replace with
10990 small_memory_physical_max array. Make that array static const.
10991 (v850_handle_memory_option): Take integer value of argument. Take
10992 gcc_options pointer, option text and location. Return void.
10993 Update for changes to small memory structures.
10994 (v850_handle_option): Access target_flags via opts pointer. Don't
10995 assert that global structures are in use. Update calls to
10996 v850_handle_memory_option.
10997 (v850_encode_data_area): Update references to small memory settings.
10998 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10999 (enum small_memory_type): Move to v850-opts.h.
11000 * config/v850/v850.opt (config/v850/v850-opts.h): New
11001 HeaderInclude entry.
11002 (small_memory_max): New Variable entry.
11003 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11004 (mtda, mzda): Likewise.
11006 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11008 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11009 pointer. Don't assert that global structures are in use.
11011 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11013 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11014 via opts pointer. Don't assert that global structures are in use.
11016 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11018 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11019 (munix=93): Use Var.
11020 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11021 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11022 * config/pa/pa-opts.h: New.
11023 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11024 (pa_handle_option): Don't assert that global structures are in
11025 use. Access target_flags via opts pointer. Don't handle
11026 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11028 (pa_option_override): Handle deferred OPT_mfixed_range_.
11030 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11032 * config/mn10300/mn10300-opts.h: New.
11033 * config/mn10300/mn10300.c (mn10300_processor,
11034 mn10300_tune_string): Remove.
11035 (mn10300_handle_option): Don't assert that global structures are
11036 in use. Access mn10300_processor via opts pointer. Don't handle
11038 * config/mn10300/mn10300.h (enum processor_type): Move to
11040 (mn10300_processor): Remove.
11041 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11042 HeaderInclude entry.
11043 (mn10300_processor): New Variable entry.
11046 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11048 * config/microblaze/microblaze.c: Don't include opts.h.
11049 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11050 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11051 (mno-clearbss): Use Var and Warn.
11053 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11055 * config/m32r/m32r-opts.h: New.
11056 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11057 (m32r_handle_option): Don't assert that global structures are in
11058 use. Access target_flags and m32r_cache_flush_func via opts
11059 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11060 OPT_mno_flush_trap here.
11061 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11062 include of m32r-opts.h.
11063 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11064 HeaderInclude entry.
11065 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11066 (mmodel=): Use Enum and Var.
11067 (m32r_model): New Enum and EnumValue entries.
11068 (mno-flush-trap): Use Var.
11069 (msdata=): Use Enum and Var.
11070 (m32r_sdata): New Enum and EnumValue entries.
11072 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11074 * config/m32c/m32c.c: Don't include opts.h.
11075 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11076 m32c_handle_option): Remove.
11077 (m32c_option_override): Check global_options_set.x_target_memregs
11078 instead of target_memregs_set.
11079 * config/m32c/m32c.h (target_memregs): Remove.
11080 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11083 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11085 * config/iq2000/iq2000-opts.h: New.
11086 * config/iq2000/iq2000.c: Don't include opts.h.
11087 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11088 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11089 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11090 HeaderInclude entry.
11091 (iq2000_tune): New Variable entry.
11092 (march=): Add comment. Use Enum.
11093 (iq2000_arch): New Enum and EnumValue entries.
11094 (mcpu=): Use Enum and Var.
11095 (iq2000_tune): New Enum and EnumValue entries.
11097 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11099 * config/ia64/ia64-opts.h: New.
11100 * config/ia64/ia64.c (ia64_tune): Remove.
11101 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11102 here. Use error_at.
11103 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11104 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11105 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11106 HeaderInclude entry.
11107 (ia64_tune): New Variable entry.
11108 (mfixed-range=): Use Defer and Var.
11109 (mtune=): Use Enum and Var.
11110 (ia64_tune): New Enum and EnumValue entries.
11112 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11114 * config/frv/frv-opts.h: New.
11115 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11117 (frv_cpu_type): Remove.
11118 * config/frv/frv.c: Don't include opts.h.
11119 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11120 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11121 (frv_cpu_type): New Variable entry.
11122 (frv_cpu): New Enum and EnumValue entries.
11124 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11126 * config/cris/cris.c (cris_handle_option): Access target_flags via
11127 opts pointer. Don't assert that global structures are in use.
11128 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11129 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11131 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11133 * config/bfin/bfin-opts.h: New.
11134 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11135 bfin_si_revision, bfin_workarounds): Remove.
11136 (bfin_cpus): Make static const.
11137 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11138 not bfin_lib_id_given.
11139 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11140 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11141 pointer. Use error_at. Don't assert that global structures are in use.
11142 * config/bfin/bfin.h: Include bfin-opts.h.
11143 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11144 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11145 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11146 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11149 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11151 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11152 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11153 or -msoft-float here.
11154 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11155 -msoft-float and -mhard-float.
11156 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11157 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11159 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11161 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11162 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11164 (LIBGCC_SPEC): Don't handle -msoft-float.
11165 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11167 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11169 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11170 -mfloat-abi=*, not -msoft-float and -mhard-float.
11171 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11173 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11174 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11175 mhard-float and msoft-float.
11176 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11177 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11178 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11179 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11181 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11182 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11184 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11186 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11189 2011-03-22 Richard Henderson <rth@redhat.com>
11191 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11192 TARGET_ABI_WINDOWS_NT.
11193 (alpha_output_function_end_prologue): Likewise.
11194 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11195 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11196 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11197 (trap, *movsi_nt_vms): Likewise.
11198 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11199 (*tablejump_osf_nt_internal): Remove.
11200 * config/alpha/predicates.md (input_operand): Only test Pmode.
11202 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11204 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11205 via opts pointer. Use error_at. Don't assert that global
11206 structures are in use.
11208 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11210 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11211 (ix86_handle_option): Access ix86_isa_flags and
11212 ix86_isa_flags_explicit via opts pointer. Don't assert that
11213 global structures are in use.
11214 (ix86_function_specific_save, ix86_function_specific_restore):
11215 Update ix86_isa_flags_explicit field name.
11216 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11217 (ix86_isa_flags_explicit): Rename TargetSave entry to
11218 x_ix86_isa_flags_explicit.
11220 2011-03-22 Richard Henderson <rth@redhat.com>
11222 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11223 (alpha_option_override, direct_return): Likewise.
11224 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11225 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11226 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11227 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11228 (alpha_expand_epilogue, alpha_end_function): Likewise.
11229 (alpha_init_libfuncs): Likewise.
11230 (struct machine_function): Remove unicosmk members.
11231 (print_operand) ['t']: Remove.
11232 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11233 unicosmk_output_module_name, unicosmk_output_common,
11234 current_section_align, unicosmk_output_text_section_asm_op,
11235 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11236 unicosmk_section_type_flags, unicosmk_unique_section,
11237 unicosmk_asm_named_section, unicosmk_insert_attributes,
11238 unicosmk_output_align, unicosmk_defer_case_vector,
11239 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11240 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11241 unicosmk_output_ssib, unicosmk_add_call_info_word,
11242 unicosmk_extern_head, unicosmk_output_default_externs,
11243 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11244 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11245 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11246 * config/alpha/alpha-protos.h: Update.
11247 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11248 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11249 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11250 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11251 (*mulsi_se, mulvsi3): Likewise.
11252 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11253 (*divmodsi_internal, call, call_value, realign): Likewise.
11254 (moddi3, umoddi3): Likewise; remove duplicate expander.
11255 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11256 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11257 (*movdi_nofix): Remove r/U alternative.
11258 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11259 * config/alpha/constraints.md ("U"): Remove.
11260 * config/alpha/predicates.md (call_operand"): Don't test
11261 TARGET_ABI_UNICOSMK.
11263 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11265 * target.def (handle_option): Take gcc_options and
11266 cl_decoded_option pointers and location_t.
11267 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11268 * doc/tm.texi: Regenerate.
11269 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11270 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11271 * lto-opts.c (lto_reissue_options): Generate option structure for
11272 targetm.handle_option call.
11273 * opts.c (target_handle_option): Update call to
11274 targetm.handle_option. Remove assertions about values now passed
11276 * targhooks.c (default_target_handle_option): New.
11277 * targhooks.h (default_target_handle_option): Declare.
11278 * config/alpha/alpha.c: Include opts.h.
11279 (alpha_handle_option): Update to new hook interface.
11280 * config/arm/arm.c: Include opts.h.
11281 (arm_handle_option): Update to new hook interface.
11282 * config/arm/t-arm (arm.o): Update dependencies.
11283 * config/bfin/bfin.c: Include opts.h.
11284 (bfin_handle_option): Update to new hook interface.
11285 * config/cris/cris.c: Include opts.h.
11286 (cris_handle_option): Update to new hook interface.
11287 * config/frv/frv.c: Include opts.h.
11288 (frv_handle_option): Update to new hook interface.
11289 * config/i386/i386.c: Include opts.h.
11290 (ix86_handle_option): Update to new hook interface.
11291 (ix86_valid_target_attribute_inner_p): Generate option structure
11292 for call to ix86_handle_option.
11293 * config/i386/t-i386 (i386.o): Update dependencies.
11294 * config/ia64/ia64.c: Include opts.h.
11295 (ia64_handle_option): Update to new hook interface.
11296 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11297 * config/iq2000/iq2000.c: Include opts.h.
11298 (iq2000_handle_option): Update to new hook interface.
11299 * config/m32c/m32c.c: Include opts.h.
11300 (m32c_handle_option): Update to new hook interface.
11301 * config/m32r/m32r.c: Include opts.h.
11302 (m32r_handle_option): Update to new hook interface.
11303 * config/m68k/m68k.c: Include opts.h.
11304 (m68k_handle_option): Update to new hook interface.
11305 * config/mep/mep.c: Include opts.h.
11306 (mep_handle_option): Update to new hook interface.
11307 * config/microblaze/microblaze.c: Include opts.h.
11308 (microblaze_handle_option): Update to new hook interface.
11309 * config/mips/mips.c: Include opts.h.
11310 (mips_handle_option): Update to new hook interface.
11311 * config/mn10300/mn10300.c: Include opts.h.
11312 (mn10300_handle_option): Update to new hook interface.
11313 * config/pa/pa.c: Include opts.h.
11314 (pa_handle_option): Update to new hook interface.
11315 * config/pdp11/pdp11.c: Include opts.h.
11316 (pdp11_handle_option): Update to new hook interface.
11317 * config/rs6000/rs6000.c: Include opts.h.
11318 (rs6000_handle_option): Update to new hook interface.
11319 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11320 * config/rx/rx.c: Include opts.h.
11321 (rx_handle_option): Update to new hook interface.
11322 * config/s390/s390.c: Include opts.h.
11323 (s390_handle_option): Update to new hook interface.
11324 * config/score/score.c: Include opts.h.
11325 (score_handle_option): Update to new hook interface.
11326 * config/sh/sh.c: Include opts.h.
11327 (sh_handle_option): Update to new hook interface.
11328 * config/sparc/sparc.c: Include opts.h.
11329 (sparc_handle_option): Update to new hook interface.
11330 * config/v850/v850.c: Include opts.h.
11331 (v850_handle_option): Update to new hook interface.
11333 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11335 * gcc.c (driver_unknown_option_callback): Only permit and save
11336 unknown -Wno- options.
11337 (driver_wrong_lang_callback): Save options directly instead of via
11338 driver_unknown_option_callback.
11340 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11342 * combine.c (simplify_set): Try harder to find the best CC mode when
11343 simplifying a nested COMPARE on the RHS.
11345 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11347 * config/alpha/gnu.h: Remove.
11348 * config/arc: Remove directory.
11349 * config/arm/netbsd.h: Remove.
11350 * config/arm/t-pe: Remove.
11351 * config/crx: Remove directory.
11352 * config/i386/netbsd.h: Remove.
11353 * config/m68hc11: Remove directory.
11354 * config/m68k/uclinux-oldabi.h: Remove.
11355 * config/mcore/mcore-pe.h: Remove.
11356 * config/mcore/t-mcore-pe: Remove.
11357 * config/netbsd-aout.h: Remove.
11358 * config/rs6000/gnu.h: Remove.
11359 * config/sh/sh-symbian.h: Remove.
11360 * config/sh/symbian-base.c: Remove.
11361 * config/sh/symbian-c.c: Remove.
11362 * config/sh/symbian-cxx.c: Remove.
11363 * config/sh/symbian-post.h: Remove.
11364 * config/sh/symbian-pre.h: Remove.
11365 * config/sh/t-symbian: Remove.
11366 * config/svr3.h: Remove.
11367 * config/vax/netbsd.h: Remove.
11368 * config.build: Don't handle i[34567]86-*-pe.
11369 * config.gcc: Remove handling of deprecations for most deprecated
11371 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11372 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11373 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11374 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11375 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11376 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11378 * config.host: Don't handle i[34567]86-*-pe.
11379 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11380 (ASM_SPEC32): Don't handle -mcall-gnu.
11381 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11383 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11384 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11385 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11386 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11387 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11388 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11389 conditional on SYMBIAN.
11390 * configure.ac: Don't handle powerpc*-*-gnu*.
11391 * configure: Regenerate.
11392 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11393 * doc/install-old.texi (m6811, m6812): Don't mention.
11394 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11395 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11396 (m68k-uclinuxoldabi): Don't mention.
11397 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11399 (-mcall-gnu): Remove.
11400 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11401 families): Remove constraint documentation.
11403 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11405 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11406 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11407 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11409 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11412 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11413 vector when peeking at the next token for vector, don't expand the
11416 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11418 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11419 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11420 * config/avr/avr.c (init_cumulative_args)
11421 (avr_function_arg_advance): Use it.
11422 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11424 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11425 (avr_function_ok_for_sibcall): ...this new function.
11426 (avr_lookup_function_attribute1): New static Function.
11427 (avr_naked_function_p, interrupt_function_p)
11428 (signal_function_p, avr_OS_task_function_p)
11429 (avr_OS_main_function_p): Use it.
11430 * config/avr/avr.md ("sibcall", "sibcall_value")
11431 ("sibcall_epilogue"): New expander.
11432 ("*call_insn", "*call_value_insn"): New insn.
11433 ("call_insn", "call_value_insn"): Remove
11434 ("call", "call_value", "epilogue"): Change expander to handle
11437 2011-03-21 Nick Clifton <nickc@redhat.com>
11439 * doc/invoke.texi (Overall Options): Move closing brace to end of
11441 (Optimization Options): Add missing @gol.
11442 (Directory Options): Likewise.
11443 (i386 and x86-64 Options): Likewise.
11444 (RS6000 and PowerPC Options): Likewise.
11445 (i386 and x86-64 Windows Options): Likewise.
11446 (V850 Options): Add text missing from descriptions.
11448 2011-03-22 Richard Henderson <rth@redhat.com>
11450 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11451 (avr_incoming_return_addr_rtx): New.
11452 (emit_push_byte): New.
11453 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11454 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11455 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11456 (emit_pop_byte): New.
11457 (expand_epilogue): Use it. Pop frame pointer by bytes.
11458 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11459 (INCOMING_RETURN_ADDR_RTX): New.
11460 (INCOMING_FRAME_SP_OFFSET): New.
11461 (ARG_POINTER_CFA_OFFSET): New.
11462 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11463 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11466 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11468 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11470 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11471 (FUNCTION_ARG_ADVANCE): Likewise.
11472 * tm.texi.in: Change references to them to hook references.
11473 * tm.texi: Regenerate.
11474 * targhooks.c (default_function_arg): Eliminate check for target
11476 (default_function_incoming_arg): Likewise.
11477 (default_function_arg_advance): Likewise.
11478 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11479 (function_arg_advance): Likewise.
11480 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11482 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11484 * tree.c (build_call_1): New function.
11485 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11487 2011-03-22 Richard Guenther <rguenther@suse.de>
11489 PR tree-optimization/48228
11490 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11491 for single-arg PHIs.
11493 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11495 PR rtl-optimization/48143
11496 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11497 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11498 sse2_cvtps2pd): Likewise.
11500 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11502 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11504 2011-03-22 Richard Guenther <rguenther@suse.de>
11506 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11507 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11508 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11509 and REALIGN_LOAD_EXPR.
11510 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11511 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11512 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11513 DOT_PROD_EXPR case ...
11514 (expand_expr_real_2): ... here.
11515 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11516 and REALIGN_LOAD_EXPR.
11517 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11518 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11519 (vect_create_epilog_for_reduction): Likewise.
11520 (vectorizable_reduction): Likewise.
11521 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11522 * tree-vect-stmts.c (vectorizable_load): Likewise.
11524 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11526 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11528 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11530 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11531 handling for PLTOFF/GOTOFF.
11533 2011-03-22 Nick Clifton <nickc@redhat.com>
11535 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11536 trailing backslash from the end of the macro definition.
11538 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11540 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11543 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11545 * expr.h (prepare_operand): Move to...
11546 * optabs.h (prepare_operand): ...here and change the insn code
11547 parameter from "int" to "enum insn_code".
11548 (insn_operand_matches): Declare.
11549 * expr.c (init_expr_target): Use insn_operand_matches.
11550 (compress_float_constant): Likewise.
11551 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11552 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11553 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11554 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11556 (gen_cond_trap): Likewise.
11557 (prepare_operand): Likewise. Change icode to an insn_code.
11558 (insn_operand_matches): New function.
11559 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11560 * reload1.c (gen_reload): Likewise.
11561 * targhooks.c (default_secondary_reload): Likewise.
11563 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11565 * config/alpha/alpha.md (unspec): New define_c_enum.
11568 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11571 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11572 between a call and its CALL_ARG_LOCATION note.
11574 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11576 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11578 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11582 * c-common.c (shorten_compare): If primopN is first sign-extended
11583 to opN and then zero-extended to result type, set primopN to opN.
11585 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11587 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11588 for barrier handlers.
11590 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11592 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11593 UNSPEC constants to be in the unspec enumeration, and redefine
11594 all UNSPECV constants to be in the unspecv enumeration, so that
11595 dumps print which unspec/unspec_volatile this is.
11596 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11597 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11598 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11599 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11600 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11602 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11603 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11604 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11605 * config/rs6000/sync.md (isync, lwsync): Ditto.
11607 2011-03-21 Richard Guenther <rguenther@suse.de>
11609 * params.def (lto-min-partition): Fix typo.
11611 2011-03-21 Richard Guenther <rguenther@suse.de>
11614 * c-decl.c (grokdeclarator): Drop to the main variant only
11615 for array types. Drop flag_gen_aux_info check.
11617 2011-03-21 Richard Guenther <rguenther@suse.de>
11619 PR translation/47911
11620 * params.def (lto-partitions): Fix typo.
11621 (lto-min-partition): Fix wording.
11623 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11625 * config/rs6000/t-freebsd: Remove duplication from file.
11627 2011-03-21 Richard Guenther <rguenther@suse.de>
11629 PR middle-end/47661
11630 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11632 2011-03-21 Richard Guenther <rguenther@suse.de>
11635 * params.def (lto-partitions): Require at least 1 partition.
11637 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11639 * gthr-solaris.h: Remove.
11640 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11641 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11642 (LIB_SPEC): Likewise.
11643 * config/sol2.opt (threads): Remove.
11644 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11645 (sparc*-*-solaris2*): Likewise.
11646 * configure.ac (enable_threads): Enable solaris support.
11647 * configure: Regenerate.
11648 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11649 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11652 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11654 * config.gcc: Obsolete *-*-solaris2.8*.
11655 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11657 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11660 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11661 reference. Solaris 8 perl works.
11663 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11666 * doc/install.texi (Prerequisites): Move jar etc. up.
11667 Explain support library version requirements.
11669 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11672 * doc/install.texi (Prerequisites): Move Perl to build
11673 requirements. Always necessary on Solaris 2 with Sun ld.
11675 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11677 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11679 (Specific, i?86-*-solaris2.[89]): Likewise.
11680 (Specific, i?86-*-solaris2.10): Likewise.
11681 (Specific, mips-sgi-irix6): Likewise.
11682 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11683 Update for binutils 2.21.
11685 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11687 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11688 Allow -fuse-linker-plugin for non-default plugin linker.
11689 * configure: Regenerate.
11691 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11694 * gengtype.c (files_rules): Added rule for cp/parser.h.
11696 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11699 * config/s390/s390.c (s390_delegitimize_address): Don't call
11700 lowpart_subreg if orig_x has BLKmode.
11702 2011-03-21 Kai Tietz <ktietz@redhat.com>
11705 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11706 * tree.h (attribute_spec): Add new member affects_type_identity.
11707 * attribs.c (empty_attribute_table): Adjust attribute_spec
11709 * config/alpha/alpha.c: Likewise.
11710 * config/arc/arc.c: Likewise.
11711 * config/arm/arm.c: Likewise.
11712 * config/avr/avr.c: Likewise.
11713 * config/bfin/bfin.c: Likewise.
11714 * config/crx/crx.c: Likewise.
11715 * config/darwin.h: Likewise.
11716 * config/h8300/h8300.c: Likewise.
11717 * config/i386/cygming.h: Likewise.
11718 * config/i386/i386.c: Likewise.
11719 * config/ia64/ia64.c: Likewise.
11720 * config/m32c/m32c.c: Likewise.
11721 * config/m32r/m32r.c: Likewise.
11722 * config/m68hc11/m68hc11.c: Likewise.
11723 * config/m68k/m68k.c: Likewise.
11724 * config/mcore/mcore.c: Likewise.
11725 * config/mep/mep.c: Likewise.
11726 * config/microblaze/microblaze.c: Likewise.
11727 * config/mips/mips.c: Likewise.
11728 * config/rs6000/rs6000.c: Likewise.
11729 * config/rx/rx.c: Likewise.
11730 * config/sh/sh.c: Likewise.
11731 * config/sol2.h: Likewise.
11732 * config/sparc/sparc.c: Likewise.
11733 * config/spu/spu.c: Likewise.
11734 * config/stormy16/stormy16.c: Likewise.
11735 * config/v850/v850.c: Likewise.
11737 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11739 * simplify-rtx.c (simplify_binary_operation_1): Handle
11740 (xor (and A B) C) case when B and C are both constants.
11742 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11744 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11746 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11749 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11751 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11753 PR rtl-optimization/48156
11754 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11755 assume df and df_lr are not NULL.
11757 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11760 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11761 between a call and its CALL_ARG_LOCATION note.
11763 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11766 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11767 between a call and its corresponding CALL_ARG_LOCATION note.
11769 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11771 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11772 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11773 * haifa-sched.c (setup_ref_regs): Ditto.
11774 * caller-save.c (add_used_regs_1): Ditto.
11775 * dse.c (look_for_hardregs): Ditto.
11776 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11777 * sched-rgn.c (check_live_1): Ditto.
11779 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11781 * c-decl.c (diagnose_mismatched_decls): Give an error for
11782 redefining a typedef with variably modified type.
11784 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11786 * c-decl.c (grokfield): Don't allow typedefs for structures or
11787 unions with no tag by default.
11788 * doc/extend.texi (Unnamed Fields): Update.
11790 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11792 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11793 Rewrite using indirect functions.
11794 (lwp_slwpcb): Ditto.
11795 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11796 (avx_vinsertf128<mode>): Ditto.
11798 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11800 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11803 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11805 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11806 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11808 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11810 PR rtl-optimization/48170
11811 * gcse.c (hoist_code): Remove bogus asserts.
11813 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11815 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11816 computation for prologue/epilogue.
11818 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11820 * Makefile.in (check-consistency): Remove.
11822 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11825 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11826 arange_table_in_use is 0, but either text_section_used or
11827 cold_text_section_used is true. Don't call it if
11828 !info_section_emitted.
11830 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11832 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11833 FUNCTION_VALUE_REGNO_P): Remove.
11834 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11836 * config/avr/avr.c (avr_ret_register): Make static inline.
11837 (avr_function_value_regno_p): New function.
11838 (avr_libcall_value): Make static. Add 'func' argument.
11839 (avr_function_value): Make static. Rename 'func' argument to
11840 'fn_decl_or_type', forward it to avr_libcall_value. Call
11841 avr_ret_register function instead of RET_REGISTER macro.
11842 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11844 2011-03-18 Jason Merrill <jason@redhat.com>
11847 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11849 2011-03-18 Richard Guenther <rguenther@suse.de>
11851 * doc/install.texi (--enable-gold): Remove.
11852 (--with-plugin-ld): Document.
11853 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11855 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11857 PR middle-end/47790
11858 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11859 again after expansion changes.
11861 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11863 * combine.c (try_combine): Do simplification only call of
11864 subst() on i2 even when i1 is present. Update comments.
11866 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11868 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11869 and UNSPEC_PCREL_SYMOFF.
11871 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11873 * config/s390/s390.md: Use define_c_enum for the unspec constant
11876 2011-03-18 Richard Henderson <rth@redhat.com>
11877 Jakub Jelinek <jakub@redhat.com>
11880 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11881 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11883 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11885 PR middle-end/47725
11886 * combine.c (cant_combine_insn_p): Don't check zero/sign
11887 extended hard registers.
11889 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11891 PR middle-end/47725
11892 * combine.c (cant_combine_insn_p): Check zero/sign extended
11895 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11897 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11898 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11899 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11900 Change return type to bool.
11901 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11903 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11906 * var-tracking.c (prepare_call_arguments): If CALL target
11907 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11908 pc instead of looking it up using cselib_lookup and use
11909 Pmode for it if x has VOIDmode.
11910 * dwarf2out.c (gen_subprogram_die): If also both first and
11911 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11914 * function.c (assign_parms): For data.passed_pointer parms
11915 use MEM of data.entry_parm instead of data.entry_parm itself
11916 as DECL_INCOMING_RTL.
11917 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11918 also when passed and declared mode is the same, DECL_RTL
11919 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11922 2011-03-16 Jeff Law <law@redhat.com>
11924 PR rtl-optimization/37273
11925 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11926 handle them like argument loads from stack slots. Do not double
11927 count memory for memory constants and argument loads from stack slots.
11929 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11932 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11934 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11937 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11939 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11942 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11944 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11945 Clear call_arg_locations and call_arg_loc_last always.
11947 PR middle-end/48152
11948 * var-tracking.c (prepare_call_arguments): If argument needs to be
11949 passed by reference, adjust argtype and mode.
11951 2011-03-17 Richard Guenther <rguenther@suse.de>
11953 PR middle-end/48134
11954 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11955 a value make sure to fold the statement.
11957 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11960 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11961 return condition with !cfun->calls_alloca.
11963 2011-03-17 Richard Guenther <rguenther@suse.de>
11966 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11967 origin for decls in other ltrans units.
11968 (input_varpool_node): Likewise.
11970 2011-03-17 Richard Guenther <rguenther@suse.de>
11972 PR middle-end/48165
11973 * tree-object-size.c (compute_object_offset): Properly return
11974 the offset operand of MEM_REFs as sizetype.
11976 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11978 PR rtl-optimization/48141
11979 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11980 * dse.c: Include params.h.
11981 (active_local_stores_len): New variable.
11982 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11984 (record_store, check_mem_read_rtx): Decrease it when removing
11986 (scan_insn): Likewise. Increase it when adding to chain, if it
11987 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11988 set active_local_stores to NULL before the addition.
11989 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11991 PR rtl-optimization/48141
11992 * dse.c (record_store): If no positions are needed in an insn
11993 that cannot be deleted, at least unchain it from active_local_stores.
11995 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11998 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11999 (lookup_type_die_strip_naming_typedef): ... here.
12000 (get_context_die): Use it.
12001 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12002 the anonymous struct named by the naming typedef.
12004 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12007 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12008 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12010 2011-03-16 Jeff Law <law@redhat.com>
12012 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12013 check for operands of conditional. Allow type to be a pointer.
12015 2011-03-16 Richard Guenther <rguenther@suse.de>
12017 PR tree-optimization/48149
12018 * fold-const.c (fold_binary_loc): Fold
12019 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12021 2011-03-16 Richard Guenther <rguenther@suse.de>
12023 PR tree-optimization/26134
12024 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12025 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12026 (non_rewritable_mem_ref_base): Handle complex type component
12027 accesses, constrain offsets for vector and complex extracts
12030 2011-03-16 Richard Guenther <rguenther@suse.de>
12032 PR tree-optimization/48146
12033 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12034 operands avoiding the need for renaming.
12036 2011-03-16 Richard Guenther <rguenther@suse.de>
12038 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12039 constant folding. Move MEM_REF canonicalization first.
12040 Rely on fold_const_aggregate_ref for initializer folding.
12041 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12043 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12045 PR middle-end/48136
12046 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12047 arg0/arg1 or their arguments are always fold converted to matching
12050 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12053 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12056 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12057 Handle in-tree gold.
12058 (ld_vers): Extract binutils version for gold.
12059 (gcc_cv_ld_hidden): Handle gold here.
12060 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12061 * configure: Regenerate.
12062 * config.in: Regenerate.
12063 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12064 -fuse-linker-plugin otherwise.
12065 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12066 (LINK_COMMAND_SPEC): Use it.
12067 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12069 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12071 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12072 * calls.c: Remove debug.h include.
12073 (emit_call_1): Don't call virtual_call_token debug hook.
12074 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12075 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12076 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12077 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12078 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12079 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12080 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12081 dwarf2out_virtual_call): Remove.
12082 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12083 copy_call_info and virtual_call hooks.
12084 (dwarf2out_init): Don't initialize vcall_insn_table,
12085 debug_dcall_section and debug_vcall_section.
12086 (prune_unused_types): Don't mark nodes from dcall_table.
12087 (dwarf2out_finish): Don't output dcall or vcall tables.
12088 * final.c (final_scan_insn): Don't call direct_call or
12089 virtual_call debug hooks.
12090 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12091 virtual_call_token, copy_call_info and virtual_call hooks.
12092 (debug_nothing_uid): Remove prototype.
12093 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12094 copy_call_info and virtual_call hooks.
12095 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12096 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12097 * debug.c (do_nothing_debug_hooks): Likewise.
12098 (debug_nothing_uid): Remove.
12099 * doc/invoke.texi (-fenable-icf-debug): Remove.
12100 * common.opt (-fenable-icf-debug): Likewise.
12102 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12103 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12104 call's MEM. Handle functions returning aggregate through a hidden
12105 first pointer. For virtual calls add clobbered pc to call arguments
12107 * dwarf2out.c (gen_subprogram_die): Emit
12108 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12112 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12113 * rtl.h (ENTRY_VALUE_EXP): Define.
12114 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12115 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12116 * print-rtl.c (print_rtx): Likewise.
12117 * gengtype.c (adjust_field_rtx_def): Likewise.
12118 * var-tracking.c (vt_add_function_parameter): Adjust
12119 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12120 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12121 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12122 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12123 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12125 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12126 Call var_location debug hook even on CALL_INSNs.
12127 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12128 * rtl.def (ENTRY_VALUE): New.
12129 * dwarf2out.c: Include cfglayout.h.
12130 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12131 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12132 (struct call_arg_loc_node): New type.
12133 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12134 tail_call_site_count): New variables.
12135 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12136 DW_TAG_GNU_call_site_parameter.
12137 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12138 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12139 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12140 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12141 and DW_AT_GNU_all_source_call_sites.
12142 (mem_loc_descriptor): Handle ENTRY_VALUE.
12143 (add_src_coords_attributes): Don't add enything if
12144 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12145 (dwarf2out_abstract_function): Save and clear call_arg_location,
12146 call_site_count and tail_call_site_count around dwarf2out_decl call.
12147 (gen_call_site_die): New function.
12148 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12149 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12150 (dwarf2out_function_decl): Clear call_arg_locations,
12151 call_arg_loc_last, set call_site_count and tail_call_site_count
12152 to -1 and free block_map.
12153 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12154 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12155 followed by any real instructions.
12156 (dwarf2out_begin_function): Set call_site_count and
12157 tail_call_site_count to 0.
12158 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12159 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12160 attempt to force a DIE for it and worst case remove the attribute.
12161 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12162 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12164 * var-tracking.c: Include tm_p.h.
12165 (vt_stack_adjustments): For calls call note_register_arguments.
12166 (argument_reg_set): New variable.
12167 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12168 ensure the VALUE is resolved.
12169 (call_arguments): New variable.
12170 (prepare_call_arguments): New function.
12171 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12172 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12173 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12174 always use the best expression.
12175 (vt_expand_loc): Add ignore_cur_loc argument.
12176 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12177 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12178 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12179 note for all calls.
12180 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12181 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12182 argument. Don't call cselib_preserve_only_values and
12183 cselib_reset_table.
12184 (note_register_arguments): New function.
12185 (vt_initialize): Compute argument_reg_set. Call
12186 vt_add_function_parameters before processing basic blocks instead of
12187 afterwards. For calls call prepare_call_arguments before calling
12188 cselib_process_insn.
12189 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12190 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12191 (var-tracking.o): Depend on $(TM_P_H).
12192 * cfglayout.h (insn_scope): New prototype.
12193 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12194 * cfglayout.c (insn_scope): No longer static.
12195 * insn-notes.def (CALL_ARG_LOCATION): New.
12196 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12197 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12198 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12199 nothing for DECL_EXTERNAL BLOCK_VARS.
12201 2011-03-16 Alan Modra <amodra@gmail.com>
12204 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12205 create invalid offset address for vsx splat insn.
12206 * config/rs6000/predicates.md (splat_input_operand): New.
12207 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12209 2011-03-15 Xinliang David Li <davidxl@google.com>
12212 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12213 (normalize_preds): New function.
12214 (is_use_properly_guarded): Normalize def predicates.
12216 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12219 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12220 in the output template.
12222 2011-03-15 Richard Guenther <rguenther@suse.de>
12224 PR middle-end/47650
12225 * tree-pretty-print.c (dump_function_declaration): Properly
12226 dump unprototyped and varargs function types.
12228 2011-03-15 Richard Guenther <rguenther@suse.de>
12230 PR tree-optimization/13954
12231 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12234 2011-03-15 Richard Guenther <rguenther@suse.de>
12236 PR tree-optimization/48037
12237 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12238 selects into BIT_FIELD_REFs.
12239 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12242 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12244 PR tree-optimization/48129
12245 * builtins.c (fold_builtin_snprintf): Convert to type of
12246 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12247 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12249 2011-03-15 Richard Guenther <rguenther@suse.de>
12251 PR tree-optimization/41490
12252 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12253 value but with VUSE.
12254 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12256 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12257 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12258 * tree-tailcall.c (find_tail_calls): Ignore returns.
12260 2011-03-15 Richard Guenther <rguenther@suse.de>
12262 PR middle-end/48031
12263 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12264 or variable-indexed array accesses when in gimple form.
12266 2011-03-15 Richard Guenther <rguenther@suse.de>
12268 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12270 2011-03-15 Alan Modra <amodra@gmail.com>
12273 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12274 presume symbol_refs without a symbol_ref_decl are suitably
12275 aligned, nor other trees we may see here. Handle anchor symbols.
12276 (legitimate_constant_pool_address_p): Comment. Add mode param.
12277 Check cmodel=medium addresses. Adjust all calls.
12278 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12279 creating cmodel=medium optimized access to locals.
12280 * config/rs6000/constraints.md (R): Pass QImode to
12281 legitimate_constant_pool_address_p.
12282 * config/rs6000/predicates.md (input_operand): Pass mode to
12283 legitimate_constant_pool_address_p.
12284 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12287 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12290 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12291 64-bit constants being loaded into registers other than GPRs such
12292 as loading 0 into a VSX register.
12294 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12296 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12298 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12300 PR middle-end/47917
12301 * builtins.c (fold_builtin_snprintf): New function.
12302 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12303 (fold_builtin_4): Likewise.
12305 PR middle-end/38878
12306 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12307 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12308 and C - X == X also strip nops from +/-/p+ operand.
12309 When optimizing -X == C, fold C to arg0's type.
12312 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12313 emit it as add_AT_int instead of add_AT_unsigned.
12315 2011-03-14 Tom Tromey <tromey@redhat.com>
12317 * unwind-dw2.c: Include sys/sdt.h if it exists.
12318 (_Unwind_DebugHook): Use STAP_PROBE2.
12319 * config.in, configure: Rebuild.
12320 * configure.ac: Check for sys/sdt.h.
12322 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12324 * config/i386/i386.md (ROUND_FLOOR): New constant.
12325 (ROUND_CEIL): Ditto.
12326 (ROUND_TRUNC): Ditto.
12327 (ROUND_MXCSR): Ditto.
12328 (ROUND_NO_EXC): Ditto.
12329 (rint<mode>2): Use new defines instead of numerical constants.
12330 (floor<mode>2): Ditto.
12331 (ceil<mode>2): Ditto.
12332 (btrunc<mode>2): Ditto.
12333 * config/i386/i386-builtin-types.def: Define ROUND function type
12335 * config/i386/i386.c (enum ix86_builtins): Add
12336 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12337 (struct builtin_description): Add
12338 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12339 (ix86_expand_sse_round): New static function.
12340 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12342 (ix86_builtin_vectorized_function): Handle
12343 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12345 2011-03-14 Tom Tromey <tromey@redhat.com>
12347 * c-parser.c (c_parser_asm_string_literal): Clear
12348 warn_overlength_strings.
12350 2011-03-14 Tom Tromey <tromey@redhat.com>
12352 * c-parser.c (disable_extension_diagnostics): Save
12353 warn_overlength_strings.
12354 (restore_extension_diagnostics): Restore warn_overlength_strings.
12356 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12358 * BASE-VER: Change to 4.7.0.
12360 2011-03-14 Richard Guenther <rguenther@suse.de>
12362 PR middle-end/48098
12363 * tree.c (build_vector_from_val): Adjust assert to requirements
12366 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12369 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12371 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12373 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12374 terms of target_flags_explicit. Adjust copyright year.
12376 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12377 * config/rs6000/t-freebsd: New file. Add override for
12380 2011-03-13 Chris Demetriou <cgd@google.com>
12382 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12383 (-fno-diagnostics-show-option): this, to reflect current default.
12384 (-Werror=): Update text about -fno-diagnostics-show-option.
12386 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12389 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12390 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12391 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12392 mode is not V2DImode or V2DFmode.
12393 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12394 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12395 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12397 (movdi_internal64): Likewise.
12399 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12401 PR tree-optimization/47127
12402 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12404 (set_cloog_options): Same.
12405 (scop_to_clast): Same.
12406 (print_clast_stmt): Do not call cloog_state_malloc and
12408 (print_generated_program): Same.
12410 * graphite-clast-to-gimple.h (cloog_state): Declared.
12411 (scop_to_clast): Adjust declaration.
12412 * graphite.c (cloog_state): Defined here.
12413 (graphite_initialize): Call cloog_state_malloc.
12414 (graphite_finalize): Call cloog_state_free.
12416 2011-03-11 Jason Merrill <jason@redhat.com>
12418 * attribs.c (lookup_attribute_spec): Take const_tree.
12421 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12423 * config/sparc/sparc.c (sparc_option_override): Use
12424 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12426 2011-03-11 Richard Guenther <rguenther@suse.de>
12428 PR tree-optimization/48067
12429 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12430 multiplication result will be only used once on the target
12433 2011-03-11 Richard Guenther <rguenther@suse.de>
12435 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12437 2011-03-11 Richard Guenther <rguenther@suse.de>
12440 * tree.c (find_decls_types_r): Do not walk types only reachable
12441 from IDENTIFIER_NODEs.
12443 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12445 PR middle-end/48044
12446 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12447 all vnode->force_output nodes as needed.
12449 2011-03-11 Jason Merrill <jason@redhat.com>
12452 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12453 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12455 2011-03-11 Martin Jambor <mjambor@suse.cz>
12457 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12460 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12462 PR tree-optimization/48063
12463 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12464 inline functions called once if !tree_can_inline_p (node->callers).
12466 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12468 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12470 * config/score/score3.c: Delete.
12471 * config/score/score3.h: Delete.
12472 * config/score/mul-div.S: Delete.
12473 * config/score/sfp-machine.h: Add new file.
12474 * config/score/constraints.md: Add new file.
12475 * config/score/t-score-softfp: Add new file.
12476 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12477 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12478 (score7_extra_constraint): Delete.
12479 (score7_option_override): Remove unused code.
12480 * config/score/score.c: Remove score3 and score5 define and code.
12481 * config/score/score.h: Remove score3 and score5 define and code.
12482 * config/score/score.md: Remove score3 template and unusual insn.
12483 * config/score/score.opt: Remove score3 and score5 options.
12485 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12487 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12488 when _HPUX_SOURCE is defined.
12489 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12491 2011-03-10 Jason Merrill <jason@redhat.com>
12494 * stor-layout.c (layout_type): Don't set structural equality
12495 on arrays of incomplete type.
12496 * tree.c (type_hash_eq): Handle comparing them properly.
12498 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12501 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12502 result mode matches original rtl mode.
12504 2011-03-10 Nick Clifton <nickc@redhat.com>
12506 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12507 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12509 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12511 PR rtl-optimization/47866
12512 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12513 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12514 if target wasn't scalar.
12515 * function.c (assign_stack_temp_for_type): Assert that neither
12516 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12517 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12519 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12521 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12523 * config/s390/s390-protos.h (s390_label_align): New prototype.
12524 * config/s390/s390.c (s390_label_align): New function.
12525 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12527 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12530 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12531 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12532 (output_vec_const_move): Ditto.
12534 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12536 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12537 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12538 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12539 Change 'rclass' argument and result type to reg_class_t.
12540 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12542 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12544 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12545 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12546 (TARGET_MEMORY_MOVE_COST): Define.
12547 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12549 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12552 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12555 PR tree-optimization/48022
12556 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12559 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12562 * var-tracking.c (find_use_val): Return NULL for
12563 cui->sets && cui->store_p BLKmode MEMs.
12565 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12567 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12569 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12570 xstormy16_print_operand_address): Remove.
12571 * config/stormy16/stormy16.c (xstormy16_print_operand,
12572 xstormy16_print_operand_address): Make static.
12573 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12575 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12578 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12579 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12582 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12585 * cfgloopmanip.c (fix_bb_placements): Return immediately
12586 if FROM is BASE_LOOP's header.
12588 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12590 * gimplify.c (gimplify_function_tree): Fix building calls
12591 to __builtin_return_address.
12593 2011-03-07 Alan Modra <amodra@gmail.com>
12595 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12596 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12597 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12598 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12600 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12601 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12602 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12603 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12604 * config/rs6000/rs6000.c
12605 (rs6000_elf_end_indicate_exec_stack): Rename to..
12606 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12607 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12608 (rs6000_file_start): ..here.
12609 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12610 file scope variables.
12611 (call_ABI_of_interest): New function.
12612 (init_cumulative_args): Set above vars when function return value
12613 is a float, vector, or small struct.
12614 (rs6000_function_arg_advance_1): Likewise for function args.
12615 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12616 references float args.
12618 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12620 * doc/cfg.texi: Remove "See" before @ref.
12621 * doc/invoke.texi: Likewise.
12623 2011-03-05 Jason Merrill <jason@redhat.com>
12625 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12627 2011-03-05 Anthony Green <green@moxielogic.com>
12629 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12631 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12633 PR rtl-optimization/47899
12634 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12635 to flow_loop_nested_p when moving the loop upward.
12637 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12640 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12642 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12644 PR tree-optimization/47967
12645 * ipa-cp.c (build_const_val): Return NULL instead of creating
12646 VIEW_CONVERT_EXPR for mismatching sizes.
12647 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12648 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12649 give up on versioning.
12651 2011-03-05 Alan Modra <amodra@gmail.com>
12654 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12655 full cmodel medium/large lo_sum + high addresses.
12657 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12659 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12660 pool references in UNSPEC_LTREL_OFFSET.
12662 2011-03-04 Jan Hubicka <jh@suse.cz>
12665 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12666 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12667 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12669 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12670 cgraph_add_thunk): Add node pointers.
12671 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12672 associated to right node.
12673 (input_node): Update use of cgraph_same_body_alias
12674 and cgraph_add_thunk.
12676 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12678 * config/i386/i386.opt (mprefer-avx128): New flag.
12679 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12680 modes when the flag -mprefer-avx128 is on.
12682 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12684 * dwarf2out.c (compare_loc_operands): Fix address handling.
12686 2011-03-04 Alan Modra <amodra@gmail.com>
12688 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12690 2011-03-04 Richard Guenther <rguenther@suse.de>
12692 PR middle-end/47968
12693 * expmed.c (extract_bit_field_1): Prefer vector modes that
12694 vec_extract patterns can handle.
12696 2011-03-04 Richard Guenther <rguenther@suse.de>
12698 PR middle-end/47975
12699 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12701 2011-03-04 Richard Henderson <rth@redhat.com>
12703 * explow.c (emit_stack_save): Remove 'after' parameter.
12704 (emit_stack_restore): Likewise.
12705 * expr.h: Update to match.
12706 * builtins.c, calls.c, stmt.c: Likewise.
12707 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12708 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12709 * function.c (expand_function_end): Insert the emit_stack_save
12710 sequence before parm_birth_insn instead of after.
12712 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12714 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12715 (ssse3_pmaddubsw128): Ditto.
12716 (ssse3_pmaddubsw): Ditto.
12718 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12720 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12722 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12725 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12726 on TYPE_SIZE_UNIT if it is a DECL.
12729 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12730 first operand is not is_gimple_mem_ref_addr, try to fold it.
12731 If the operand still isn't is_gimple_mem_ref_addr, clear
12734 2011-03-03 Richard Guenther <rguenther@suse.de>
12736 PR middle-end/47283
12737 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12739 (refs_may_alias_p_1): For release branches return true if
12740 we are confused by our input.
12742 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12744 * config/s390/s390.c (s390_function_value): Rename to ...
12745 (s390_function_and_libcall_value): ... this.
12746 (s390_function_value): New function.
12747 (s390_libcall_value): New function.
12748 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12749 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12750 target macro definitions.
12751 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12753 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12755 * config/i386/freebsd64.h (CC1_SPEC): Define.
12756 * config/i386/linux64.h (CC1_SPEC): Define.
12757 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12759 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12761 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12763 * config/stormy16/stormy16.c: Include reload.h.
12764 (xstormy16_memory_move_cost): New function.
12765 (TARGET_MEMORY_MOVE_COST): Define.
12767 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12769 PR rtl-optimization/47925
12770 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12771 with side effects. Remove the more-specific check for volatile asms.
12773 2011-03-02 Alan Modra <amodra@gmail.com>
12776 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12777 toc relative addresses for valid offsets.
12779 2011-03-01 Richard Guenther <rguenther@suse.de>
12781 PR tree-optimization/47890
12782 * tree-vect-loop.c (get_initial_def_for_induction): Set
12783 related stmt properly.
12785 2011-03-01 Richard Guenther <rguenther@suse.de>
12788 * lto-streamer.c (lto_record_common_node): Also register
12789 the canonical type.
12791 2011-03-01 Richard Guenther <rguenther@suse.de>
12794 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12795 Do not stream DECL_ABSTRACT_ORIGIN.
12796 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12797 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12798 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12799 Do not stream DECL_ABSTRACT_ORIGIN.
12800 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12801 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12803 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12805 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12806 FUNCTION_VALUE_REGNO_P): Remove.
12807 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12808 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12809 Add 'outgoing' argument.
12810 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12812 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12813 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12815 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12818 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12819 (lookup_filename): Likewise.
12820 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12822 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12823 Jakub Jelinek <jakub@redhat.com>
12825 PR middle-end/47893
12826 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12827 (assign_stack_local_1): Change last argument type to int.
12828 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12829 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12830 don't record padding space into frame_space_list nor use those areas.
12831 (assign_stack_local): Adjust caller.
12832 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12833 of assign_stack_local, pass 0 as last argument.
12834 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12837 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12840 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12841 Use target address_mode and pointer_mode hooks instead of hardcoded
12842 Pmode and ptr_mode. Handle some simple cases of extending if
12843 POINTERS_EXTEND_UNSIGNED < 0.
12844 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12845 Call convert_debug_memory_address.
12846 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12847 convert_debug_memory_address.
12849 PR middle-end/46790
12850 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12851 * configure: Regenerated.
12852 * config.in: Regenerated.
12853 * varasm.c (default_function_section): Return NULL
12854 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12856 2011-02-28 Martin Jambor <mjambor@suse.cz>
12858 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12859 the description to match the printed values.
12861 2011-02-28 Richard Guenther <rguenther@suse.de>
12863 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12864 of the copied scope tree.
12866 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12868 * doc/extend.texi (Function Attributes): Avoid deeply (and
12869 wrongly) nested tables.
12871 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12873 PR middle-end/47903
12874 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12875 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12876 r isn't op0 nor op1.
12878 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12880 * config/avr/avr.md: Remove magic comment for emacs.
12882 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12885 * config/avr/avr.c (avr_option_override): Use error on bad options.
12886 (avr_help): New function.
12887 (TARGET_HELP): Define.
12889 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12892 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12893 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12895 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12897 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12898 (ARM Options): Ditto.
12899 (i386 and x86-64 Options): Ditto.
12900 (RX Options): Ditto.
12901 (SPARC Options): Ditto.
12903 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12905 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12906 FreeBSD 6 and later. Generally use cpu generic.
12908 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12910 * doc/cpp.texi: Update copyright years.
12912 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12915 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12917 2011-02-25 Jon Beniston <jon@beniston.com>
12920 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12921 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12922 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12923 (lm32_block_move_inline): Add type cast to remove warning.
12924 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12925 (gen_int_relational): Move declarations to start of function.
12927 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12929 PR tree-optimization/45470
12930 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12931 can throw internally only.
12932 * tree-vect-stmts.c (vectorizable_call): Likewise.
12934 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12936 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12937 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12938 * config/stormy16/stormy16-protos.h
12939 (xstormy16_preferred_reload_class): Remove.
12940 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12941 static. Change 'rclass' argument and return type to reg_class_t.
12942 (TARGET_PREFERRED_RELOAD_CLASS,
12943 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12945 2011-02-24 Richard Guenther <rguenther@suse.de>
12947 * lto-streamer-in.c (input_bb): Do not find referenced vars
12948 in debug statements.
12950 2011-02-23 Jason Merrill <jason@redhat.com>
12952 * common.opt (fabi-version): Document v5 and v6.
12954 2011-02-23 Richard Guenther <rguenther@suse.de>
12956 PR tree-optimization/47849
12957 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12959 2011-02-23 Jie Zhang <jie@codesourcery.com>
12961 * opts-common.c (decode_cmdline_option): Print empty string
12962 argument as "" in decoded->orig_option_with_args_text.
12963 * gcc.c (execute): Print empty string argument as ""
12964 in the verbose output.
12965 (do_spec_1): Keep empty string argument.
12967 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12969 * config.gcc: Declare score-* and crx-* obsolete.
12971 2011-02-23 Jie Zhang <jie@codesourcery.com>
12973 PR rtl-optimization/47763
12974 * web.c (web_main): Ignore naked clobber when replacing register.
12976 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12978 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12981 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12984 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12986 2011-02-22 Mike Stump <mikestump@comcast.net>
12988 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12990 * configure: Regenerate.
12992 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12994 PR rtl-optimization/46002
12995 * ira-color.c (update_copy_costs): Change class intersection
12996 test to reg_class_contents[] test of 'hard_regno'.
12998 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13000 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13001 than Driver option.
13002 * config/hpux11.opt (mt): Likewise.
13003 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13004 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13005 * config/vax/elf.opt (mno-asm-pic): Likewise.
13006 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13008 2011-02-21 Mike Stump <mikestump@comcast.net>
13011 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13012 tree so we can get save the type.
13013 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13014 for CFString instead of trying to use past the end of the builtins.
13015 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13016 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13017 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13018 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13019 Rename to darwin_builtin_cfstring.
13020 (darwin_init_cfstring_builtins): Return the built type.
13022 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13025 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13026 (_mm256_insert_epi64): Use _mm_insert_epi64.
13028 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13030 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13031 * config/stormy16/stormy16-protos.h
13032 (xstormy16_mode_dependent_address_p): Remove.
13033 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13034 Make static. Change return type to bool. Change argument type to
13035 const_rtx. Remove dead code.
13036 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13038 2011-02-21 Richard Guenther <rguenther@suse.de>
13041 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13042 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13043 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13045 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13046 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13048 2011-02-20 Richard Guenther <rguenther@suse.de>
13051 * tree.c (free_lang_data_in_decl): Clean builtins from
13052 the TU decl BLOCK_VARS.
13054 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13058 * haifa-sched.c (fix_tick_ready): Skip tick computation
13061 2011-02-19 Richard Guenther <rguenther@suse.de>
13064 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13065 Remove lazy BLOCK_VARS streaming.
13066 (lto_input_ts_block_tree_pointers): Likewise.
13067 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13069 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13071 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13073 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13075 * config/i386/biarch32.h, config/i386/mach.h,
13076 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13078 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13081 * config/i386/i386.md (peephole2 for shift and plus): Use
13082 operands[1] original mode in the first insn.
13084 2011-02-18 Mike Stump <mikestump@comcast.net>
13086 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13088 2011-02-18 Jan Hubicka <jh@suse.cz>
13090 PR middle-end/47788
13091 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13092 to zero when the function is not inlinable at all.
13094 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13096 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13097 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13098 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13099 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13100 * config/pa/t-pa64: Likewise.
13101 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13103 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13106 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13108 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13111 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13113 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13115 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13116 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13117 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13118 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13119 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13120 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13121 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13122 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13123 m32r_legitimate_address_p): New functions.
13124 * config/m32r/constraints.md (constraint "S"): Don't use
13125 STORE_PREINC_PREDEC_P.
13126 (constraint "U"): Don't use LOAD_POSTINC_P.
13128 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13130 PR rtl-optimization/46178
13131 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13132 compute ira_hard_regno_cover_class[].
13134 2011-02-18 Richard Guenther <rguenther@suse.de>
13137 * lto-streamer.h (lto_global_var_decls): Declare.
13138 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13139 statics for global var processing.
13141 2011-02-18 Richard Guenther <rguenther@suse.de>
13143 PR tree-optimization/47737
13144 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13145 edge dominance check.
13147 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13150 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13151 avoid invalid rtx sharing.
13153 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13155 * doc/cpp.texi (Obsolete Features): Add background on the
13156 origin of assertions.
13158 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13160 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13162 * config/darwin.c (output_objc_section_asm_op): Added support for
13164 (is_objc_metadata): New.
13165 (darwin_objc2_section): New.
13166 (darwin_objc1_section): New.
13167 (machopic_select_section): Added support for ABI v1 and v2.
13168 (darwin_emit_objc_zeroed): New.
13169 (darwin_output_aligned_bss): Detect objc metadata and treat it
13171 (darwin_asm_output_aligned_decl_common): Same.
13172 (darwin_asm_output_aligned_decl_local): Same.
13173 * config/darwin-sections.def: Updated for ABI v1 and v2.
13174 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13175 compiling Objective-C code for the NeXT runtime, default to using
13176 ABI version 0 for 32-bit, and version 2 for 64-bit.
13178 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13180 * common.opt (optimize_fast): New Variable.
13181 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13182 instead of local variable ofast.
13184 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13186 * doc/invoke.texi (fobjc-abi-version): Documented.
13187 (fobjc-nilcheck): Documented.
13188 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13191 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13194 * common.opt (export-dynamic): New Driver option.
13195 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13197 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13199 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13201 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13202 Jan Hubicka <jh@suse.cz>
13206 * cfgexpand.c (account_used_vars_for_block): Remove.
13207 (estimated_stack_frame_size): Use referenced vars.
13208 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13209 that were referenced in the original function. Test src_fn
13210 rather than cfun. Drop redundant get_var_ann.
13211 (setup_one_parameter): Drop redundant get_var_ann.
13212 (declare_return_variable): Likewise.
13213 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13214 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13215 * ipa-inline.c (compute_inline_parameters): Do not compute
13216 disregard_inline_limits here.
13217 (compute_inlinable_for_current, pass_inlinable): New.
13218 (pass_inline_parameters): Require PROP_referenced_vars.
13219 * cgraphunit.c (cgraph_process_new_functions): Don't run
13220 compute_inline_parameters explicitly unless function is in SSA form.
13221 (cgraph_analyze_function): Set .disregard_inline_limits.
13222 * tree-sra.c (convert_callers): Compute inliner parameters
13223 only for functions already in SSA form.
13225 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13227 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13228 -mlittle-endian-data.
13230 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13232 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13233 -mno-fpu, not -fpu and -no-fpu.
13234 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13235 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13237 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13240 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13241 input reload with PLUS RTX.
13243 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13245 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13246 of InverseVar(MDMX).
13248 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13250 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13253 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13255 * config/mn10300/mn10300.opt (mno-crt0): New.
13257 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13259 * config/m68k/uclinux.opt (static-libc): New Driver option.
13261 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13263 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13265 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13267 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13268 %{muser-extend-enabled}.
13270 2011-02-16 Richard Guenther <rguenther@suse.de>
13272 PR tree-optimization/47738
13273 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13274 the TODO from tree_predictive_commoning.
13276 2011-02-15 Jeff Law <law@redhat.com>
13279 2011-01-25 Jeff Law <law@redhat.com>
13281 PR rtl-optimization/37273
13282 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13283 handle them like argument loads from stack slots. Do not double
13284 count memory for memory constants and argument loads from stack slots.
13286 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13288 PR middle-end/47725
13289 * combine.c (cant_combine_insn_p): Revert the last change.
13291 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13294 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13295 mode for vector constants. Remove code that checks for TImode.
13297 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13301 * cgraph.h (compute_inline_parameters): Return void.
13302 * ipa-inline.c (compute_inline_parameters): Adjust.
13304 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13308 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13310 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13311 * ipa-inline.c (compute_inline_parameters): Adjust.
13313 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13317 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13318 Adjust all users. Pass FN to...
13319 * tree-flow-inline.h (first_referenced_var): ... this. Add
13321 * ipa-struct-reorg.c: Adjust.
13322 * tree-dfa.c: Adjust.
13323 * tree-into-ssa.c: Adjust.
13324 * tree-sra.c: Adjust.
13325 * tree-ssa-alias.c: Adjust.
13326 * tree-ssa-live.c: Adjust.
13327 * tree-ssa.c: Adjust.
13328 * tree-ssanames.c: Adjust.
13329 * tree-tailcall.c: Adjust.
13331 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13335 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13336 Adjust all callers.
13337 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13338 * tree-flow-inline.h: Adjust.
13339 * gimple-pretty-print.c: Adjust.
13340 * tree-into-ssa.c: Adjust.
13341 * tree-ssa.c: Adjust.
13342 * cfgexpand.c: Adjust.
13344 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13346 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13347 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13348 (EXTRA_CONSTRAINT): Delete.
13349 * config/iq2000/constraints.md: New file.
13350 * config/iq2000/iq2000.md: Include it.
13351 (define_insn ""): Delete.
13352 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13353 unsupported constraint letters from patterns.
13354 (call_value, call_value_internal1): Likewise.
13355 (call_value_multiple_internal1): Likewise.
13357 2011-02-15 Nick Clifton <nickc@redhat.com>
13359 * config/mn10300/mn10300.c: Include tm-constrs.h.
13360 (struct liw_data): New data structure describing an LIW candidate
13362 (extract_bundle): Use struct liw_data. Allow small integer
13363 operands for some instructions.
13364 (check_liw_constraints): Use struct liw_data. Remove swapped
13365 parameter. Add comments describing the checks. Fix bug when
13366 assigning the source of liw1 to the source of liw2.
13367 (liw_candidate): Delete. Code moved into extract_bundle.
13368 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13370 * config/mn10300/predicates.md (liw_operand): New predicate.
13371 Allows registers and small integer constants.
13372 * config/mn10300/constraints.md (O): New constraint. Accetps
13373 integers in the range -8 to +7 inclusive.
13374 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13375 for moving a small integer into a register. Give this alternative
13377 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13378 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13379 using the J,K,L and M constraints,
13380 (liw): Remove SI mode on second operands to allow for HI and QI
13382 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13385 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13387 PR middle-end/47725
13388 * combine.c (cant_combine_insn_p): Check zero/sign extended
13391 2011-02-15 Richard Guenther <rguenther@suse.de>
13393 PR tree-optimization/47743
13394 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13395 for a non-type-compatible VN lookup bail out.
13397 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13399 * config/fr30/constraints.md: New file.
13400 * config/fr30/fr30.md: Include it.
13401 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13402 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13403 (EXTRA_CONSTRAINT): Delete.
13405 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13407 * config/frv/constraints.md: New file.
13408 * config/frv/predicates.md: Include it.
13409 * config/frv/frv.c (reg_class_from_letter): Delete.
13410 (frv_option_override): Don't initialize it.
13411 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13412 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13413 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13414 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13415 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13416 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13417 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13418 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13419 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13420 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13421 (REG_CLASS_FROM_CONSTRAINT): Delete.
13423 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13425 PR middle-end/47581
13426 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13427 if frame size is 0 in a leaf function.
13429 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13432 * config/alpha/host-osf.c: New file.
13433 * config/alpha/x-osf: New file.
13434 * config.host (alpha*-dec-osf*): Use it.
13436 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13438 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13439 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13440 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13441 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13443 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13445 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13447 * config/stormy16/constraints.md: New file.
13448 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13449 Use satisfies_constraint_Q and satisfies_constraint_R.
13450 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13452 (xstormy16_legitiamte_address_p): Declare.
13453 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13454 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13455 (EXTRA_CONSTRAINT): Delete.
13456 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13458 (xstormy16_extra_constraint_p): Delete.
13460 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13462 PR tree-optimization/46494
13463 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13464 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13465 (pass_rtl_loop_done): Add TODO_verify_flow.
13466 * fwprop.c (pass_rtl_fwprop): Likewise.
13467 * modulo-sched.c (pass_sms): Likewise.
13468 * tree-ssa-dom.c (pass_dominator): Likewise.
13469 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13470 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13471 (pass_tree_loop_done): Likewise.
13472 * tree-ssa-pre.c (execute_pre): Likewise.
13473 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13474 * tree-ssa-sink.c (pass_sink_code): Likewise.
13475 * tree-vrp.c (pass_vrp): Likewise.
13477 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13479 * config/v850/constraints.md: New file.
13480 * config/v850/v850.md: Include it.
13481 * config/v850/predicates.md (reg_or_0_operand): Use
13482 satisfies_constraint_G.
13483 (special_symbolref_operand): Use satisfies_constraint_K.
13484 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13485 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13486 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13487 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13488 (EXTRA_CONSTRAINT): Delete.
13489 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13490 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13491 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13493 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13496 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13499 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13501 * config/mcore/constraints.md: New file.
13502 * config/mcore/mcore.md: Include it.
13503 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13504 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13505 (REG_CLASS_FROM_LETTER): Delete.
13506 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13507 insn_const_int_ok_for_constraint.
13508 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13509 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13510 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13511 (EXTRA_CONSTRAINT): Delete.
13513 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13516 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13517 (IS_SIGHANDLER): Define.
13518 (sparc64_is_sighandler): New function, split off from
13519 sparc64_fallback_frame_state.
13520 (sparc_is_sighandler): New function, split off from
13521 sparc_fallback_frame_state.
13522 (sparc64_fallback_frame_state): Merge with ...
13523 (sparc_fallback_frame_state): ... this into ...
13524 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13525 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13526 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13527 stack instead of hardcoded offsets.
13529 2011-02-14 Andriy Gapon <avg@freebsd.org>
13532 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13534 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13536 * configure: Regenerate.
13538 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13541 * gcc.c (asm_options): Correct spec matching --target-help.
13543 2011-02-12 Martin Jambor <mjambor@suse.cz>
13545 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13546 to gimple call error.
13548 2011-02-12 Mike Stump <mikestump@comcast.net>
13550 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13551 comments in backslash regions.
13553 2011-02-12 Mike Stump <mikestump@comcast.net>
13554 Jakub Jelinek <jakub@redhat.com>
13555 Iain Sandoe <iains@gcc.gnu.org>
13558 * dwarf2out.c (output_cfa_loc): When required, apply the
13559 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13560 (output_loc_sequence): Likewise.
13561 (output_loc_operands_raw): Likewise.
13562 (output_loc_sequence_raw): Likewise.
13563 (output_cfa_loc): Likewise.
13564 (output_loc_list): Suppress register number adjustment when
13565 calling output_loc_sequence()
13566 (output_die): Likewise.
13568 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13570 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13572 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13573 xtensa_memory_move_cost): New functions.
13574 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13576 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13579 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13580 in the current directory.
13581 * configure: Rebuilt.
13583 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13585 * config/darwin.c (darwin_override_options): Add a hunk missed
13586 from the commit of r168571. Trim comment line lengths and
13587 correct indents of the preceding block.
13589 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13591 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13594 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13596 * common.opt (nostartfiles): New Driver option.
13598 2011-02-11 Xinliang David Li <davidxl@google.com>
13600 PR tree-optimization/47707
13601 * tree-chrec.c (convert_affine_scev): Keep type precision.
13603 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13605 PR tree-optimization/47420
13606 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13608 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13610 PR rtl-optimization/47614
13611 * rtl.h (check_for_inc_dec): Declare.
13612 * dse.c (check_for_inc_dec): Externalize...
13613 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13614 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13616 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13619 * gcc.c (main): Do not compile inputs if there were errors in
13621 * opts-common.c (read_cmdline_option): Check for wrong language
13622 after other error checks.
13624 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13626 * cgraph.c: Fix comment typos.
13627 * cgraph.h: Likewise.
13628 * cgraphunit.c: Likewise.
13629 * ipa-cp.c: Likewise.
13630 * ipa-inline.c: Likewise.
13631 * ipa-prop.c: Likewise.
13632 * ipa-pure-const.c: Likewise.
13633 * ipa-ref.c: Likewise.
13634 * ipa-reference.c: Likewise.
13636 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13639 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13641 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13644 * doc/sourcebuild.texi (Require Support): Document
13645 dg-require-ascii-locale.
13647 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13649 * doc/lto.texi (Write summary): Fix missing parentheses.
13651 2011-02-10 DJ Delorie <dj@redhat.com>
13653 * config/m32c/m32c.c (m32c_option_override): Disable
13654 -fcombine-stack-adjustments until flag value tracking and compare
13655 optimization can be rewritten.
13657 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13659 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13661 (PROCESSOR_DEFAULT64): Likewise.
13663 2011-02-10 Richard Henderson <rth@redhat.com>
13665 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13666 change from 2011-02-03.
13667 * config/rx/rx.c (flags_from_code): Likewise.
13668 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13669 is valid, n/pz otherwise.
13670 (rx_select_cc_mode): Return CCmode if Y is not zero.
13672 2011-02-10 Richard Guenther <rguenther@suse.de>
13674 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13676 2011-02-10 Richard Guenther <rguenther@suse.de>
13678 PR tree-optimization/47677
13679 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13681 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13684 * combine.c (make_compound_operation): Only change shifts into
13685 multiplication for SCALAR_INT_MODE_P.
13687 2011-02-10 Jie Zhang <jie@codesourcery.com>
13691 2011-02-05 Jie Zhang <jie@codesourcery.com>
13693 * web.c (entry_register): Don't clobber the number of the
13694 first uninitialized reference in used[].
13696 2011-02-09 Richard Guenther <rguenther@suse.de>
13698 PR tree-optimization/47664
13699 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13702 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13706 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13708 (PROCESSOR_DEFAULT64): Same.
13709 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13711 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13713 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13715 2011-02-09 Martin Jambor <mjambor@suse.cz>
13717 PR middle-end/45505
13718 * tree-sra.c (struct access): New flags grp_scalar_read and
13719 grp_scalar_write. Changed description of assignment read and write
13721 (dump_access): Dump new flags, reorder all of them.
13722 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13723 to detect multiple scalar reads.
13724 (analyze_access_subtree): Use the new scalar read write flags instead
13725 of the old flags. Adjusted comments.
13727 2011-02-08 DJ Delorie <dj@redhat.com>
13730 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13733 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13735 * config/m68k/uclinux.opt: New.
13736 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13738 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13740 * config/cris/elf.opt (sim): New Driver option.
13742 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13744 * config/xtensa/elf.opt: New.
13745 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13747 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13749 * config/vax/elf.opt: New.
13750 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13752 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13754 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13756 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13758 * config/gnu-user.opt: New.
13759 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13760 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13761 *-*-uclinux*): Use gnu-user.opt.
13763 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13765 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13766 * config/i386/gnu.h (CPP_SPEC): Likewise.
13768 2011-02-08 Ian Lance Taylor <iant@google.com>
13770 * common.opt (fcx-limited-range): Add SetByCombined flag.
13771 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13772 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13773 (fassociative-math, freciprocal-math): Likewise.
13774 (funsafe-math-optimizations): Likewise.
13775 * opth-gen.awk: Handle SetByCombined.
13776 * optc-gen.awk: Likewise.
13777 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13778 (set_unsafe_math_optimizations_flags): Likewise.
13779 * doc/options.texi (Option properties): Document SetByCombined.
13781 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13783 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13784 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13785 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13786 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13787 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13789 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13791 PR tree-optimization/46834
13792 PR tree-optimization/46994
13793 PR tree-optimization/46995
13794 * graphite-sese-to-poly.c (used_outside_reduction): New.
13795 (detect_commutative_reduction): Call used_outside_reduction.
13796 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13797 translate_scalar_reduction_to_array only when at least one
13798 loop-phi/close-phi tuple has been detected.
13800 2011-02-08 Richard Guenther <rguenther@suse.de>
13802 PR middle-end/47639
13803 * tree-vect-generic.c (expand_vector_operations_1): Update
13805 (expand_vector_operations): ... not here. Cleanup EH info
13806 and the CFG if required.
13808 2011-02-08 Richard Guenther <rguenther@suse.de>
13810 PR tree-optimization/47641
13811 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13812 require type compatibility.
13814 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13816 * gimple-low.c (lower_function_body): Don't remove the location of
13817 the return statement here.
13818 (lower_gimple_return): Do it here instead but only if the return
13819 statement is actually used twice.
13821 2011-02-08 Richard Guenther <rguenther@suse.de>
13823 PR tree-optimization/47632
13824 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13825 unused up_to_stmt parameter, return whether cfg-cleanup is
13826 necessary, remove EH info properly.
13827 (forward_propagate_into_gimple_cond): Adjust caller.
13828 (forward_propagate_into_cond): Likewise.
13829 (forward_propagate_comparison): Likewise.
13830 (tree_ssa_forward_propagate_single_use_vars): Make
13831 forward_propagate_comparison case similar to the two others.
13833 2011-02-08 Nick Clifton <nickc@redhat.com>
13835 * config/mn10300/mn10300.opt (mliw): New command line option.
13836 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13837 (liw_bundling): New automaton.
13838 (liw): New attribute.
13839 (liw_op): New attribute.
13840 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13841 (movsi_internal): Add LIW attributes.
13842 (andsi3): Likewise.
13843 (iorsi3): Likewise.
13844 (xorsi3): Likewise.
13845 (addsi3): Separate register and immediate alternatives.
13846 Add LIW attributes.
13847 (subsi3): Likewise.
13849 (aslsi3): Likewise.
13850 (lshrsi3): Likewise.
13851 (ashrsi3): Likewise.
13852 (liw): New pattern.
13853 * config/mn10300/mn10300.c (liw_op_names): New
13854 (mn10300_print_operand): Handle 'W' operand descriptor.
13855 (extract_bundle): New function.
13856 (check_liw_constraints): New function.
13857 (liw_candidate): New function.
13858 (mn10300_bundle_liw): New function.
13859 (mn10300_reorg): New function.
13860 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13861 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13862 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13863 __LIW__ or __NO_LIW__.
13864 * doc/invoke.texi: Describe the -mliw command line option.
13866 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13868 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13869 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13870 pthread_mutex_unlock): Remove.
13871 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13872 * config/pa/t-pa64: Likewise.
13873 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13874 shared libc if not linking against libpthread.
13875 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13877 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13880 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13881 on 10.6 and later to ensure that we always use the unwinder from
13882 the system. Only add -no_compact_unwind when tarteting darwin
13885 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13888 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13889 (vec_interleave_lowv2sf): Ditto.
13890 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13891 (vec_extract_oddv2sf): Ditto.
13893 2011-02-07 Mike Stump <mikestump@comcast.net>
13896 Add __ieee_divdc3 entry point.
13897 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13899 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13900 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13901 * config/darwin.c (darwin_rename_builtins): Add.
13902 * config/darwin-protos.h (darwin_rename_builtins): Add.
13904 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13907 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13910 2011-02-07 Mike Stump <mikestump@comcast.net>
13912 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13914 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13917 * config/avr/libgcc.S (exit): Move .endfunc
13919 2011-02-07 Richard Guenther <rguenther@suse.de>
13921 PR tree-optimization/47615
13922 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13923 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13924 (run_scc_vn): Initialize it.
13925 (visit_reference_op_load): Use it.
13926 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13928 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13930 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13931 DImode trapping arithmetic libfuncs.
13933 2011-02-07 Richard Guenther <rguenther@suse.de>
13935 PR tree-optimization/47621
13936 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13938 (execute_update_addresses_taken): ... here. Make it more
13939 conservative in what we accept.
13941 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13943 * config/sparc/freebsd.h (ASM_SPEC): Define.
13944 * config/sparc/vxworks.h (ASM_SPEC): Define.
13946 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13948 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13950 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13952 * doc/invoke.texi: Remove reference to compiler internals from
13953 user documentation.
13955 * reg-notes.def: Remove REG_VALUE_PROFILE.
13956 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13958 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13960 PR middle-end/47610
13961 * varasm.c (default_section_type_flags): If decl is NULL,
13962 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13964 2011-02-05 Jie Zhang <jie@codesourcery.com>
13967 * web.c (entry_register): Don't clobber the number of the
13968 first uninitialized reference in used[].
13970 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13972 PR tree-optimization/46194
13973 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13974 (build_classic_dist_vector_1): Do not represent classic distance
13975 vectors when the access functions are variating in different loops.
13977 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13979 * config/mips/iris6.opt: New.
13980 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13982 2011-02-04 Richard Henderson <rth@redhat.com>
13983 Steve Ellcey <sje@cup.hp.com>
13986 * config/ia64/predicates.md (mux1_brcst_element): New.
13987 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13988 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13989 (ia64_unpack_sign): New.
13990 (ia64_expand_unpack): Rewrite using new routines.
13991 (ia64_expand_widen_sum): Ditto.
13992 (ia64_expand_dot_prod_v8qi): Ditto.
13993 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13994 routines, add endian check.
13995 (pmpy2_even): Rename from pmpy2_r, add endian check.
13996 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13997 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13998 (vec_widen_smult_hi_v4hi): Ditto.
13999 (vec_widen_umult_lo_v4hi): Ditto.
14000 (vec_widen_umult_hi_v4hi): Ditto.
14001 (mulv2si3): Change endian checks.
14002 (sdot_prodv4hi): Rewrite with new calls.
14003 (udot_prodv4hi): New.
14004 (vec_pack_ssat_v4hi): Add endian check.
14005 (vec_pack_usat_v4hi): Ditto.
14006 (vec_pack_ssat_v2si): Ditto.
14007 (max1_even): Rename from max1_r, add endian check.
14008 (max1_odd): Rename from max1_l, add endian check.
14009 (*mux1_rev): Format change.
14010 (*mux1_mix): Ditto.
14011 (*mux1_shuf): Ditto.
14012 (*mux1_alt): Ditto.
14013 (*mux1_brcst_v8qi): Use new predicate.
14014 (vec_extract_evenv8qi): Remove endian check.
14015 (vec_extract_oddv8qi): Ditto.
14016 (vec_interleave_lowv4hi): Format change.
14017 (vec_interleave_highv4hi): Ditto.
14018 (mix2_even): Rename from mix2_r, add endian check.
14019 (mix2_odd): Rename from mux2_l, add endian check.
14020 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14021 (vec_extract_evenodd_helper): Format change.
14022 (vec_extract_evenv4hi): Remove endian check.
14023 (vec_extract_oddv4hi): Remove endian check.
14024 (vec_interleave_lowv2si): Format change.
14025 (vec_interleave_highv2si): Format change.
14026 (vec_initv2si): Remove endian check.
14027 (vecinit_v2si): Add endian check.
14028 (reduc_splus_v2sf): Add endian check.
14029 (reduc_smax_v2sf): Ditto.
14030 (reduc_smin_v2sf): Ditto.
14031 (vec_initv2sf): Remove endian check.
14032 (fpack): Add endian check.
14033 (fswap): Add endian check.
14034 (vec_interleave_highv2sf): Add endian check.
14035 (vec_interleave_lowv2sf): Add endian check.
14036 (fmix_lr): Add endian check.
14037 (vec_setv2sf): Format change.
14038 (*vec_extractv2sf_0_be): Use shift to extract operand.
14039 (*vec_extractv2sf_1_be): New.
14040 (vec_pack_trunc_v4hi): Add endian check.
14041 (vec_pack_trunc_v2si): Format change.
14043 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14045 PR inline-asm/23200
14046 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14047 do bb, locus and block comparison and disallow loads if it is not set.
14048 (stmt_is_replaceable_p): New function.
14049 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14051 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14052 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14054 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14056 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14058 * config/rs6000/xilinx.opt: New.
14059 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14061 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14063 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14065 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14067 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14068 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14069 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14070 secondary_reload_info, xtensa_secondary_reload): Remove.
14071 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14072 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14073 (xtensa_preferred_reload_class): Make static. Change return and
14074 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14075 Use CONST_DOUBLE_P predicate.
14076 (xtensa_preferred_output_reload_class): New function.
14077 (xtensa_secondary_reload): Make static.
14079 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14081 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14082 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14083 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14085 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14087 PR middle-end/31490
14088 * output.h (SECTION_RELRO): Define.
14089 (SECTION_MACH_DEP): Adjust.
14090 (get_variable_section): New prototype.
14091 * varpool.c (varpool_finalize_named_section_flags): New function.
14092 (varpool_assemble_pending_decls): Call it.
14093 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14094 * cgraphunit.c (cgraph_output_in_order): Call
14095 varpool_finalize_named_section_flags.
14096 * varasm.c (get_section): Allow section flags conflicts between
14097 relro and read-only sections if the section hasn't been declared yet.
14098 Set SECTION_OVERRIDE after diagnosing section type conflict.
14099 (get_variable_section): No longer static.
14100 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14101 readonly sections that need relocations.
14102 (decl_readonly_section_1): New function.
14103 (decl_readonly_section): Use it.
14106 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14107 Steve Ellcey <sje@cup.hp.com>
14109 PR middle-end/31490
14110 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14111 if section attribute used.
14113 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14115 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14116 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14117 (darwin_init_sections): Remove assertion.
14119 2011-02-03 Nick Clifton <nickc@redhat.com>
14121 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14123 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14124 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14125 instead of "n" and "pz".
14126 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14129 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14132 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14133 fma, expand FMA_EXPR as fma{,f,l} call.
14136 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14137 copy them into a unsigned char variable and pass address of it to
14138 lto_output_data_stream.
14141 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14142 around backend_init_target and lang_dependent_init_target calls.
14143 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14144 (verify_cgraph_node): Don't call set_cfun here. Use
14145 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14146 Set error_found for incorrectly represented calls to thunks.
14148 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14151 PR rtl-optimization/43494
14152 * rtl.h (for_each_inc_dec_fn): New type.
14153 (for_each_inc_dec): Declare.
14154 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14155 (for_each_inc_dec_find_inc_dec): New fn.
14156 (for_each_inc_dec_find_mem): New fn.
14157 (for_each_inc_dec): New fn.
14158 * dse.c (struct insn_size): Remove.
14159 (replace_inc_dec, replace_inc_dec_mem): Remove.
14160 (emit_inc_dec_insn_before): New fn.
14161 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14162 (canon_address): Pass mem modes to cselib_lookup.
14163 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14164 (cselib_lookup_from_insn): Likewise.
14165 (cselib_subst_to_values): Likewise.
14166 * cselib.c (find_slot_memmode): New var.
14167 (cselib_find_slot): New fn. Use it instead of
14168 htab_find_slot_with_hash everywhere.
14169 (entry_and_rtx_equal_p): Use find_slot_memmode.
14170 (autoinc_split): New fn.
14171 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14172 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14173 Deal with autoinc. Special-case recursion into MEMs.
14174 (cselib_hash_rtx): Likewise.
14175 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14176 address and MEM modes.
14177 (cselib_subst_to_values): Add memmode, pass it on.
14179 (cselib_lookup): Add memmode argument, pass it on.
14180 (cselib_lookup_from_insn): Add memmode.
14181 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14182 (struct cselib_record_autoinc_data): New.
14183 (cselib_record_autoinc_cb): New fn.
14184 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14185 mode to cselib_lookup. Reset autoinced REGs here instead of...
14186 (cselib_process_insn): ... here.
14187 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14189 (add_uses): Likewise, also to cselib_subst_to_values.
14190 (add_stores): Likewise.
14191 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14192 cselib_subst_to_values.
14193 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14194 * gcse.c (do_local_cprop): Adjusted.
14195 * postreload.c (reload_cse_simplify_set): Adjusted.
14196 (reload_cse_simplify_operands): Adjusted.
14197 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14199 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14201 PR tree-optimization/45122
14202 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14203 unsafe assumptions when there's more than one loop exit.
14205 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14208 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14209 Document using vector double with the load/store builtins, and
14210 that the load/store builtins always use Altivec instructions.
14212 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14213 to use altivec memory instructions, even on VSX.
14214 (vector_altivec_store_<mode>): Ditto.
14216 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14219 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14220 V2DF, V2DI support to load/store overloaded builtins.
14222 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14223 altivec load/store builtins for V2DF/V2DI types.
14225 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14226 set avoid indexed addresses on power6 if -maltivec.
14227 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14228 vector_altivec_load/vector_altivec_store builtins.
14229 (altivec_expand_st_builtin): Ditto.
14230 (altivec_expand_builtin): Add VSX memory builtins.
14231 (rs6000_init_builtins): Add V2DI types to internal types.
14232 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14233 load/store builtins.
14234 (rs6000_address_for_altivec): Insure memory address is appropriate
14237 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14238 vec_vsx_ld and vec_vsx_st.
14239 (vsx_store_<mode>): Ditto.
14241 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14242 variables to hold long long types for VSX vector memory builtins.
14243 (RS6000_BTI_unsigned_long_long): Ditto.
14244 (long_long_integer_type_internal_node): Ditti.
14245 (long_long_unsigned_type_internal_node): Ditti.
14247 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14248 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14249 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14251 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14253 (vec_vsx_st): Ditto.
14255 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14257 * config/pa/pa-hpux10.opt: New.
14258 * config/hpux11.opt (pthread): New Driver option.
14259 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14260 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14262 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14264 * config/ia64/vms.opt: New.
14265 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14267 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14270 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14271 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14272 generator functions.
14273 (vsx_floatuns<VSi><mode>2): Ditto.
14274 (vsx_fix_trunc<mode><VSi>2): Ditto.
14275 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14277 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14279 * config/i386/djgpp.opt (posix): New Driver option.
14281 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14283 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14284 Move to the unsupported targets list.
14286 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14288 PR rtl-optimization/47525
14289 * df-scan.c: Update copyright years.
14290 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14291 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14293 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14295 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14296 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14297 (ASM_OUTPUT_ASCII): Remove.
14298 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14300 2011-02-02 Jeff Law <law@redhat.com>
14302 PR middle-end/47543
14303 * reload.c (find_reloads_address): Handle reg+d address where both
14304 components are invalid by reloading the entire address.
14306 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14307 Richard Guenther <rguenther@suse.de>
14309 PR tree-optimization/40979
14311 * passes.c (init_optimization_passes): After LIM call copy_prop
14312 and DCE to clean up.
14313 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14315 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14317 PR tree-optimization/47576
14318 PR tree-optimization/47555
14319 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14320 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14321 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14322 * tree-scalar-evolution.c (follow_ssa_edge): Use
14323 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14325 2011-02-02 Richard Guenther <rguenther@suse.de>
14327 PR tree-optimization/47566
14328 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14330 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14334 * tree-inline.c (declare_return_variable): Remove unused caller
14339 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14340 * cfgexpand.c (account_used_vars_for_block): Use them.
14341 * tree-nrv.c (tree_nrv): Likewise.
14342 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14343 (dump_scope_block): Likewise.
14344 (remove_unused_locals): Likewise.
14348 * tree-inline.c (declare_return_variable): Add result decl to
14349 local decls only once.
14350 * gimple-low.c (record_vars_into): Mark newly-created variables
14353 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14359 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14361 (no_real_insns_p, schedule_block, set_priorities): Drop special
14362 treatment of boundary debug insns.
14363 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14364 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14365 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14366 (BOUNDARY_DEBUG_INSN_P): Likewise.
14367 (SCHEDULE_DEBUG_INSN_P): Likewise.
14368 * sched-rgn.c (init_ready_list): Drop special treatment of
14369 boundary debug insns.
14370 * final.c (rest_of_clean_state): Clear notes' BB.
14372 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14374 * config/openbsd.opt (assert=): New Driver option.
14376 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14378 * config/i386/nto.opt: New.
14379 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14381 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14383 * config/i386/netware.opt: New.
14384 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14386 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14388 * config/interix.opt (posix): New Driver option.
14390 2011-02-01 DJ Delorie <dj@redhat.com>
14392 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14394 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14397 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14399 PR tree-optimization/47561
14400 * toplev.c (process_options): Print the Graphite flags. Add
14401 flag_loop_flatten to the list of options requiring Graphite.
14403 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14405 * config/i386/cygming.opt (posix): New Driver option.
14407 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14409 * config/arm/vxworks.opt: New.
14410 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14412 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14414 * config/alpha/elf.opt: New.
14415 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14416 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14418 2011-02-01 Richard Guenther <rguenther@suse.de>
14420 PR tree-optimization/47559
14421 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14422 store-motion on references that can throw.
14424 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14426 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14427 * tree-pass.h (TDF_CSELIB): New macro.
14428 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14429 cselib_lookup): Check for it rather than for TDF_DETAILS.
14431 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14434 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14435 is HOST_BIT_BUCKET.
14437 * opts.c (finish_options): Don't add x_aux_base_name if it is
14440 2011-02-01 Richard Guenther <rguenther@suse.de>
14442 PR tree-optimization/47555
14444 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14446 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14448 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14451 * config/lm32/t-lm32: Add multilib for all CPU options.
14453 2011-02-01 Richard Guenther <rguenther@suse.de>
14455 PR tree-optimization/47541
14456 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14457 sure to have a field at offset zero.
14459 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14461 * config/arc/arc.opt (EB, EL): New Driver options.
14463 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14465 * config/alpha/osf5.opt: New.
14466 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14468 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14470 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14472 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14474 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14475 -floop-interchange.
14476 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14477 is an alias of -floop-interchange and that it requires the
14478 Graphite infrastructure.
14479 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14480 flag_loop_interchange based on the value of flag_tree_loop_linear.
14482 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14483 Richard Guenther <rguenther@suse.de>
14485 PR tree-optimization/47538
14486 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14487 type instead of r1type, except for comparisons. For right
14488 shifts and comparisons punt if there are mismatches in
14489 sizetype vs. non-sizetype types.
14491 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14493 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14496 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14498 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14500 * configure: Regenerate.
14502 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14504 * configure.ac (gcc_cv_ld_static_option): Define.
14505 (gcc_cv_ld_dynamic_option): Define.
14506 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14508 (HAVE_LD_STATIC_DYNAMIC): Update message.
14509 (LD_STATIC_OPTION): Define.
14510 (LD_DYNAMIC_OPTION): Define.
14511 * configure: Regenerate.
14512 * config.in: Regenerate.
14513 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14514 HAVE_LD_STATIC_DYNAMIC]: Use them.
14516 2011-01-31 Nick Clifton <nickc@redhat.com>
14518 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14519 registers inside interrupt handlers if the handler is not a leaf
14522 2011-01-31 Nick Clifton <nickc@redhat.com>
14524 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14525 reg_renumber returning an INVALID_REGNUM.
14527 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14530 * doc/install.texi: Document host options discarded when cross
14531 configuring target libraries.
14533 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14536 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14539 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14541 (no_real_insns_p, schedule_block, set_priorities): Drop special
14542 treatment of boundary debug insns.
14543 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14544 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14545 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14546 (BOUNDARY_DEBUG_INSN_P): Likewise.
14547 (SCHEDULE_DEBUG_INSN_P): Likewise.
14548 * sched-rgn.c (init_ready_list): Drop special treatment of
14549 boundary debug insns.
14550 * final.c (rest_of_clean-state): Clear notes' BB.
14552 2011-01-31 Alan Modra <amodra@gmail.com>
14554 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14555 toc relative expressions as we do in print_operand_address.
14557 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14559 * doc/extend.texi: Follow spelling conventions.
14560 * doc/invoke.texi: Fix a typo.
14562 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14564 * config/hpux11.opt: New.
14565 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14566 ia64*-*-hpux*): Use hpux11.opt.
14568 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14570 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14573 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14575 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14578 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14580 * doc/install.texi (Binaries): Remove outdated reference for
14581 Motorola 68HC11/68HC12 downloads.
14583 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14585 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14588 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14591 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14594 2011-01-28 Ahmad Sharif <asharif@google.com>
14596 * value-prof.c (check_counter): Corrected error message.
14598 2011-01-29 Jie Zhang <jie@codesourcery.com>
14600 * config/arm/arm.c (arm_legitimize_reload_address): New.
14601 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14602 arm_legitimize_reload_address.
14603 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14605 2011-01-28 Ian Lance Taylor <iant@google.com>
14607 * godump.c (go_define): Ignore macros whose definitions include
14608 two adjacent operands.
14610 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14613 * varasm.c (force_const_mem): Store copy of x in desc->constant
14614 instead of x itself.
14615 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14616 itself into REG_EQUAL note.
14618 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14620 * config/freebsd.opt (posix, rdynamic): New Driver options.
14622 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14624 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14625 -Bstatic/-Bdynamic.
14626 * configure: Regenerate.
14628 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14630 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14631 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14633 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14635 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14636 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14637 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14638 (s390_preferred_reload_class): Make static. Change return and
14639 'rclass' argument type to reg_class_t.
14641 2011-01-27 Jan Hubicka <jh@suse.cz>
14643 PR middle-end/46949
14644 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14645 (process_function_and_variable_attributes): Check defined weakrefs.
14647 2011-01-27 Martin Jambor <mjambor@suse.cz>
14649 PR tree-optimization/47228
14650 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14651 build_ref_for_offset.
14653 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14655 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14657 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14659 PR rtl-optimization/46856
14660 * postreload.c (reload_combine_recognize_const_pattern): Do not
14661 separate cc0 setter and user on cc0 targets.
14663 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14666 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14667 passed a VOID_TYPE expression, immediately emit an error and
14668 return error_mark_node.
14670 2011-01-26 Jeff Law <law@redhat.com>
14672 PR rtl-optimization/47464
14673 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14674 rather than may_trap_p as needed.
14676 2011-01-26 DJ Delorie <dj@redhat.com>
14678 PR rtl-optimization/46878
14679 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14680 setter/user dependency as well.
14682 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14684 PR rtl-optimization/44469
14685 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14686 after removing trivially dead basic blocks.
14688 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14690 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14691 * config/frv/frv.h (LINK_SPEC): Likewise.
14692 * config/i386/netware.h (LINK_SPEC): Likewise.
14693 * config/m68k/linux.h (ASM_SPEC): Likewise.
14694 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14695 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14696 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14697 * config/sparc/linux.h (ASM_SPEC): Likewise.
14698 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14699 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14701 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14703 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14704 * config/frv/frv.h (ASM_SPEC): Likewise.
14705 * config/m68k/linux.h (ASM_SPEC): Likewise.
14706 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14707 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14708 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14709 * config/sparc/linux.h (ASM_SPEC): Likewise.
14710 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14711 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14713 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14715 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14716 * config/frv/frv.h (LINK_SPEC): Likewise.
14717 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14719 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14721 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14722 * config/frv/frv.h (ASM_SPEC): Likewise.
14723 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14724 * config/m68k/linux.h (ASM_SPEC): Likewise.
14725 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14726 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14727 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14728 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14729 * config/sparc/linux.h (ASM_SPEC): Likewise.
14730 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14731 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14732 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14734 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14737 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14739 (vec_extract_evenodd_help): Ditto.
14740 (vec_extract_evenv4hi): Ditto.
14741 (vec_extract_oddv4hi): Ditto.
14742 (vec_interleave_lowv2si): Ditto.
14743 (vec_interleave_highv2si): Ditto.
14744 (vec_extract_evenv2si): Ditto.
14745 (vec_extract_oddv2si: Ditto.
14746 (vec_pack_trunc_v2si): Ditto.
14748 2011-01-22 Jan Hubicka <jh@suse.cz>
14751 * cgraph.h (cgraph_local_info): New field can_change_signature.
14752 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14753 signature can change.
14754 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14756 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14757 (cgraph_function_versioning): We can not change signature of functions
14758 that don't allow that.
14759 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14760 (lto_input_node): Likewise.
14761 * ipa-inline.c (compute_inline_parameters): Compute
14762 local.can_change_signature.
14763 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14764 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14765 functions that can not change signature.
14766 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14767 init_cumulative_args): Do not use local calling conventions
14768 for functions that can not change signature.
14770 2011-01-22 Jan Hubicka <jh@suse.cz>
14772 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14774 2011-01-26 Richard Guenther <rguenther@suse.de>
14776 PR tree-optimization/47190
14777 * cgraphunit.c (process_common_attributes): New function.
14778 (process_function_and_variable_attributes): Use it.
14780 2011-01-26 Richard Guenther <rguenther@suse.de>
14783 * cgraphbuild.c (record_eh_tables): Record reference to personality
14786 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14789 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14790 non-debug insns from moving up.
14792 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14795 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14796 t-dlldir{,-x} fragment for build and add it to tmake_file.
14797 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14798 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14799 * config/i386/t-dlldir: New file.
14800 (SHLIB_DLLDIR): Define.
14801 * config/i386/t-dlldir-x: New file.
14802 (SHLIB_DLLDIR): Define.
14803 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14804 (SHLIB_INSTALL): Use it.
14806 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14809 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14810 lower bound of the allowed Thumb-2 coprocessor load/store
14811 index range to -256. Add explaining comment.
14813 2011-01-25 Ian Lance Taylor <iant@google.com>
14815 * godump.c (go_define): Improve lexing of macro expansion to only
14816 accept expressions which match Go spec.
14818 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14821 * tree.c (handle_dll_attribute): Handle it.
14822 * doc/extend.texi (@item dllexport): Mention it.
14823 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14825 2011-01-25 Ian Lance Taylor <iant@google.com>
14827 PR tree-optimization/26854
14828 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14829 (decl_jump_unsafe): Move higher in file, with no other change.
14830 (bind): Set has_jump_unsafe_decl if appropriate.
14831 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14832 (check_earlier_gotos): Likewise.
14833 (c_check_switch_jump_warnings): Likewise.
14835 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14837 * doc/invoke.texi (Warning Options): Add missing hyphen.
14838 (-fprofile-dir): Minor grammatical fixes.
14839 (-fbranch-probabilities): Likewise.
14841 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14845 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14847 (no_real_insns_p, schedule_block, set_priorities): Drop special
14848 treatment of boundary debug insns.
14849 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14850 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14851 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14852 (BOUNDARY_DEBUG_INSN_P): Likewise.
14853 (SCHEDULE_DEBUG_INSN_P): Likewise.
14854 * sched-rgn.c (init_ready_list): Drop special treatment of
14855 boundary debug insns.
14856 * final.c (rest_of_clean-state): Clear notes' BB.
14858 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14860 * Makefile.in (LAMBDA_H): Removed.
14861 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14862 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14863 lambda-trans.o, and tree-loop-linear.o.
14864 (lto-symtab.o): Remove dependence on LAMBDA_H.
14865 (tree-loop-linear.o): Remove rule.
14866 (lambda-mat.o): Same.
14867 (lambda-trans.o): Same.
14868 (lambda-code.o): Same.
14869 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14870 (tree-vect-slp.o): Same.
14871 * hwint.h (gcd): Moved here.
14872 (least_common_multiple): Same.
14873 * lambda-code.c: Removed.
14874 * lambda-mat.c: Removed.
14875 * lambda-trans.c: Removed.
14876 * lambda.h: Removed.
14877 * tree-loop-linear.c: Removed.
14878 * lto-symtab.c: Do not include lambda.h.
14879 * omega.c (gcd): Removed.
14880 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14881 * tree-data-ref.c (print_lambda_vector): Moved here.
14882 (lambda_vector_copy): Same.
14883 (lambda_matrix_copy): Same.
14884 (lambda_matrix_id): Same.
14885 (lambda_vector_first_nz): Same.
14886 (lambda_matrix_row_add): Same.
14887 (lambda_matrix_row_exchange): Same.
14888 (lambda_vector_mult_const): Same.
14889 (lambda_vector_negate): Same.
14890 (lambda_matrix_row_negate): Same.
14891 (lambda_vector_equal): Same.
14892 (lambda_matrix_right_hermite): Same.
14893 * tree-data-ref.h: Do not include lambda.h.
14894 (lambda_vector): Moved here.
14895 (lambda_matrix): Same.
14896 (dependence_level): Same.
14897 (lambda_transform_legal_p): Removed declaration.
14898 (lambda_collect_parameters): Same.
14899 (lambda_compute_access_matrices): Same.
14900 (lambda_vector_gcd): Same.
14901 (lambda_vector_new): Same.
14902 (lambda_vector_clear): Same.
14903 (lambda_vector_lexico_pos): Same.
14904 (lambda_vector_zerop): Same.
14905 (lambda_matrix_new): Same.
14906 * tree-flow.h (least_common_multiple): Removed declaration.
14907 * tree-parloops.c (lambda_trans_matrix): Moved here.
14908 (LTM_MATRIX): Same.
14909 (LTM_ROWSIZE): Same.
14910 (LTM_COLSIZE): Same.
14911 (LTM_DENOMINATOR): Same.
14912 (lambda_trans_matrix_new): Same.
14913 (lambda_matrix_vector_mult): Same.
14914 (lambda_transform_legal_p): Same.
14915 * tree-pass.h (pass_linear_transform): Removed declaration.
14916 * tree-ssa-loop.c (tree_linear_transform): Removed.
14917 (gate_tree_linear_transform): Removed.
14918 (pass_linear_transform): Removed.
14919 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14920 flag_loop_interchange.
14922 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14924 PR tree-optimization/47265
14925 PR tree-optimization/47443
14926 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14927 if name still has some uses.
14929 2011-01-25 Martin Jambor <mjambor@suse.cz>
14931 PR tree-optimization/47382
14932 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14933 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14935 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14937 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14938 sjlj_except_unwind_info.
14940 2011-01-25 Richard Guenther <rguenther@suse.de>
14942 PR tree-optimization/47426
14943 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14944 visible functions results escape.
14946 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14949 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14950 (arm_get_frame_offsets): Use it.
14952 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14953 Jakub Jelinek <jakub@redhat.com>
14955 PR tree-optimization/47271
14956 * tree-if-conv.c (bb_postdominates_preds): New.
14957 (if_convertible_bb_p): Call bb_postdominates_preds.
14958 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14959 (predicate_scalar_phi): Call bb_postdominates_preds.
14961 2011-01-25 Nick Clifton <nickc@redhat.com>
14963 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14964 * config/rx/rx.c (rx_function_value): Likewise.
14965 (rx_promote_function_mode): Likewise.
14966 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14967 in order to make it legitimate.
14968 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14969 make sure that the first operand is the same as the result register.
14970 (addsi3_unspec): Delete.
14971 (subdi3): Do not accept immediate operands.
14972 (subdi3_internal): Likewise.
14974 2011-01-25 Jeff Law <law@redhat.com>
14976 PR rtl-optimization/37273
14977 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14978 handle them like argument loads from stack slots. Do not double
14979 count memory for memory constants and argument loads from stack slots.
14981 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14983 PR tree-optimization/47427
14984 PR tree-optimization/47428
14985 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14986 coalesce if the new root var would be TREE_READONLY.
14988 2011-01-25 Richard Guenther <rguenther@suse.de>
14990 PR middle-end/47414
14991 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14992 correct type for TBAA.
14994 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14996 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14997 (close_phi_written_to_memory): Call for_each_index with
14998 dr_indices_valid_in_loop.
15000 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15002 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15003 when it is initialized.
15005 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15007 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15008 call to graphite_find_data_references_in_stmt.
15009 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15010 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15011 call to graphite_find_data_references_in_stmt.
15012 (analyze_drs_in_stmts): Same.
15013 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15014 in which the scalar analysis of indices is performed.
15015 (create_data_ref): Same. Update call to dr_analyze_indices.
15016 (find_data_references_in_stmt): Update call to create_data_ref.
15017 (graphite_find_data_references_in_stmt): Same.
15018 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15020 (create_data_ref): Same.
15021 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15022 call to create_data_ref.
15024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15026 * graphite-sese-to-poly.c (build_poly_scop): Move
15027 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15031 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15032 VAR_DECL, PARM_DECL, and RESULT_DECL.
15034 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15036 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15037 in a reduction PBB.
15038 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15039 that have already been marked as PBB_IS_REDUCTION.
15041 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15043 * graphite-scop-detection.c (same_close_phi_node): New.
15044 (remove_duplicate_close_phi): New.
15045 (make_close_phi_nodes_unique): New.
15046 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15048 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15050 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15051 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15052 of both data references to be the same.
15054 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15056 * graphite-dependences.c (build_lexicographical_constraint): Remove
15057 the gdim parameter.
15058 (build_lexicographical_constraint): Adjust call to
15059 ppl_powerset_is_empty.
15060 (dependence_polyhedron): Same.
15061 (graphite_legal_transform_dr): Same.
15062 (graphite_carried_dependence_level_k): Same.
15063 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15065 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15067 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15069 * graphite-sese-to-poly.c
15070 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15071 (close_phi_written_to_memory): New.
15072 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15075 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15077 * doc/install.texi: Update the expected version number of PPL to 0.11.
15078 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15079 #if PPL_VERSION_MINOR < 11.
15081 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15083 * graphite-dependences.c: Include graphite-cloog-util.h.
15084 (new_poly_ddr): Inlined into dependence_polyhedron.
15085 (free_poly_ddr): Moved close by new_poly_ddr.
15086 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15087 Early return NULL when ppl_powerset_is_empty returns true.
15088 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15089 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15090 (graphite_legal_transform_dr): Call new_poly_ddr.
15091 (graphite_carried_dependence_level_k): Same.
15092 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15093 (dot_transformed_deps_stmt_1): Removed.
15094 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15095 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15096 (dot_deps_1): Call dot_deps_2.
15097 * Makefile.in (graphite-dependences.o): Add missing dependence on
15098 graphite-cloog-util.h.
15100 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15102 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15103 (build_lexicographical_constraint): Same.
15104 (dependence_polyhedron_1): Same.
15105 (graphite_legal_transform_dr): Same.
15106 (graphite_carried_dependence_level_k): Same.
15107 * graphite-ppl.c (ppl_powerset_is_empty): New.
15108 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15109 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15111 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15113 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15114 the "a followed by b" relation and document it.
15116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15118 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15119 iteration when the bag of constraints is empty.
15121 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15123 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15125 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15127 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15128 nest and two loop depths as parameters.
15129 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15130 lst_perfect_nestify.
15132 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15134 * graphite-dependences.c (print_pddr): Call
15135 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15137 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15139 * graphite-ppl.c (debug_gmp_value): New.
15140 * graphite-ppl.h (debug_gmp_value): Declared.
15142 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15144 * doc/install.texi: Document availability of cloog-0.16.
15146 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15148 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15149 invalid postdominance info.
15151 2011-01-24 Jan Hubicka <jh@suse.cz>
15154 * doc/extend.texi (weak pragma): Drop claim that it must
15155 appear before definition.
15156 * varasm.c (merge_weak, declare_weak): Only sanity check
15157 that DECL is not output at a time it is declared weak.
15159 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15161 * machmode.def: Fixed comments.
15163 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15165 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15167 2011-01-24 Paul Koning <ni1d@arrl.net>
15169 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15172 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15175 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15176 (block_info): Add scanned and prev.
15177 (move_or_delete_vzeroupper_2): Return if the basic block
15178 has been scanned and the upper 128bit state is unchanged
15179 from the last scan.
15180 (move_or_delete_vzeroupper_1): Return true if the exit
15182 (move_or_delete_vzeroupper): Visit basic blocks using the
15183 work-list based algorithm based on vt_find_locations in
15186 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15188 2011-01-24 Nick Clifton <nickc@redhat.com>
15190 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15191 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15192 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15193 then define __v850e1__.
15194 * doc/invoke.texi: Document -mv850es.
15196 2011-01-24 Richard Henderson <rth@redhat.com>
15198 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15199 compound unordered comparisons.
15200 * config/rx/rx.c (rx_split_fp_compare): Remove.
15201 * config/rx/rx-protos.h: Update.
15202 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15203 (cbranchsf4): Don't call rx_split_fp_compare.
15204 (*cbranchsf4): Use rx_split_cbranch.
15205 (*cmpsf): Don't accept "i" constraint.
15206 (*conditional_branch): Only valid after reload.
15207 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15209 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15212 * config/rs6000/altivec.md (vector constant splitters): Add
15213 support for creating vector single precision constants if -mvsx is
15214 used and we would create the constant using Altivec primitives.
15216 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15217 Richard Sandiford <rdsandiford@googlemail.com>
15219 PR rtl-optimization/47166
15220 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15221 mechanism for PRE_MODIFY and POST_MODIFY.
15222 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15225 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15227 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15229 2011-01-22 Jan Hubicka <jh@suse.cz>
15232 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15234 2011-01-22 Jan Hubicka <jh@suse.cz>
15236 PR tree-optimization/43884
15238 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15239 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15241 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15243 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15244 * config/s390/s390.c (s390_register_move_cost,
15245 s390_memory_move_cost): New.
15246 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15248 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15250 PR middle-end/47401
15251 * except.c (sjlj_assign_call_site_values): Move setting the
15252 crtl->uses_eh_lsda flag to ...
15253 (sjlj_mark_call_sites): ... here.
15254 (sjlj_emit_function_enter): Support NULL dispatch label.
15255 (sjlj_build_landing_pads): In a function with no landing pads
15256 that still has must-not-throw regions, generate code to register
15257 a personality function with empty LSDA.
15259 2011-01-21 Richard Henderson <rth@redhat.com>
15261 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15263 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15265 * compare-elim.c: New file.
15266 * Makefile.in (OBJS-common): Add it.
15267 (compare-elim.o): New.
15268 * common.opt (fcompare-elim): New.
15269 * opts.c (default_options_table): Add OPT_fcompare_elim.
15270 * tree-pass.h (pass_compare_elim_after_reload): New.
15271 * passes.c (init_optimization_passes): Add it.
15272 * recog.h: Protect against re-inclusion.
15273 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15274 * doc/invoke.texi (-fcompare-elim): Document it.
15275 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15276 * doc/tm.texi: Rebuild.
15278 2011-01-22 Nick Clifton <nickc@redhat.com>
15280 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15281 rx_split_fp_compare.
15283 2011-01-22 Nick Clifton <nickc@redhat.com>
15285 * config/rx/rx.md (UNSPEC_CONST): New.
15286 (deallocate_and_return): Wrap the amount popped off the stack in
15287 an UNSPEC_CONST in order to stop it being rejected by
15288 -mmax-constant-size.
15289 (pop_and_return): Add a "(return)" rtx.
15290 (call): Drop the immediate operand.
15291 (call_internal): Likewise.
15292 (call_value): Likewise.
15293 (call_value_internal): Likewise.
15294 (sibcall_internal): Likewise.
15295 (sibcall_value_internal): Likewise.
15296 (sibcall): Likewise. Generate an explicit call using
15298 (sibcall_value): Likewise.
15299 (mov<>): FAIL if a constant operand is not legitimate.
15300 (addsi3_unpsec): New pattern.
15302 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15303 (ok_for_max_constant): New function.
15304 (gen_safe_add): New function.
15305 (rx_expand_prologue): Use gen_safe_add.
15306 (rx_expand_epilogue): Likewise.
15307 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15310 2011-01-21 Jeff Law <law@redhat.com>
15312 PR tree-optimization/47053
15313 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15314 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15315 statements are deleted.
15316 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15317 is nonempty, then purge dead edges and cleanup the CFG.
15319 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15322 Temporarily revert:
15323 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15325 * tree-dfa.c (create_var_ann): Mark variable as used.
15327 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15329 PR middle-end/45566
15330 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15331 notes from other section in hot/cold partitioning even if
15332 last_action is -3. Increment call_site_base.
15334 PR rtl-optimization/47366
15335 * fwprop.c (forward_propagate_into): Return bool. If
15336 any changes are made, -fnon-call-exceptions is used and
15337 REG_EH_REGION note is present, call purge_dead_edges
15338 and return true if it purged anything.
15339 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15340 any EH edges were purged.
15342 2011-01-21 Jeff Law <law@redhat.com>
15344 PR rtl-optimization/41619
15345 * caller-save.c (setup_save_areas): Break out code to determine
15346 which hard regs are live across calls by examining the reload chains
15347 so that it is always used.
15348 Eliminate code which checked REG_N_CALLS_CROSSED.
15350 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15352 PR tree-optimization/47355
15353 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15354 NOP has non-debug uses beyond PHIs in new_bb.
15356 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15359 * cfgexpand.c (account_used_vars_for_block): Only account vars
15360 that are annotated as used.
15361 (estimated_stack_frame_size): Don't set TREE_USED.
15362 * tree-dfa.c (create_var_ann): Mark variable as used.
15364 2011-01-21 Richard Guenther <rguenther@suse.de>
15366 PR middle-end/47395
15367 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15369 2011-01-21 Richard Guenther <rguenther@suse.de>
15371 PR tree-optimization/47365
15372 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15373 (vn_reference_lookup_pieces): Adjust.
15374 (vn_reference_lookup): Likewise.
15375 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15376 (vn_reference_lookup_3): Only look through kills if in
15377 VN_WALKREWRITE mode.
15378 (vn_reference_lookup_pieces): Adjust.
15379 (vn_reference_lookup): Likewise.
15380 (visit_reference_op_load): Likewise.
15381 (visit_reference_op_store): Likewise.
15382 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15383 (compute_avail): Likewise.
15384 (eliminate): Likewise.
15386 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15388 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15389 DECL_IGNORED_P non-reg vars if they are used.
15391 PR tree-optimization/47391
15392 * varpool.c (const_value_known_p): Return false if
15395 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15398 * config/i386/i386.c (ix86_local_alignment): Handle
15399 case for va_list_type_node is nil.
15400 (ix86_canonical_va_list_type): Likewise.
15402 2011-01-21 Alan Modra <amodra@gmail.com>
15404 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15405 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15407 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15409 * config/arm/arm.md (define_attr type): Rename f_load
15410 and f_store to f_fpa_load and f_fpa_store. Update.
15411 (write_conflict): Deal with rename fallout.
15412 (*push_fp_multi): Likewise.
15413 * config/arm/fpa.md (f_load): Use f_fpa_load.
15414 (f_store): Use f_fpa_store.
15415 (*movsf_fpa): Likewise.
15416 (*movdf_fpa): Likewise.
15417 (*movxf_fpa): Likewise.
15418 (*thumb2_movsf_fpa): Likewise.
15419 (*thumb2_movdf_fpa): Likewise.
15420 (*thumb2_movxf_fpa): Likewise.
15421 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15422 f_loadd and f_stored.
15423 (*thumb2_movdi_vfp): Likewise.
15424 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15425 (*thumb2_movsi_vfp): Likewise.
15426 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15427 Use f_loads instead of f_load.
15428 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15430 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15432 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15433 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15434 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15435 (xtensa_mode_dependent_address_p): New function.
15436 (constantpool_address_p): Make static. Change return type to bool.
15437 Change argument type to const_rtx. Use CONST_INT_P predicate.
15439 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15442 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15444 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15447 * cfgexpand.c (expand_debug_expr): Instead of generating
15448 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15451 2011-01-20 Richard Guenther <rguenther@suse.de>
15453 PR middle-end/47370
15454 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15455 the pointer operand of MEM_REFs.
15457 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15459 PR tree-optimization/46130
15460 * ipa-split.c (consider_split): If return_bb contains non-virtual
15461 PHIs other than for retval or if split_function would not adjust it,
15464 2011-01-20 Richard Guenther <rguenther@suse.de>
15466 PR tree-optimization/47167
15467 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15468 Revert previous change, only avoid enumeral type changes.
15470 2011-01-19 Mike Stump <mikestump@comcast.net>
15472 * doc/tm.texi.in (BRANCH_COST): Englishify.
15473 * doc/tm.texi (BRANCH_COST): Likewise.
15475 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15478 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15479 (gen_scheduled_generic_parms_dies): New functions.
15480 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15481 generation for the end of CU compilation.
15482 (dwarf2out_finish): Generate template parameters DIEs here.
15484 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15487 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15488 debug bind stmt on merge edges.
15490 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15494 * function.c (instantiate_expr): Instantiate incoming rtl of
15495 implicit arguments, and recurse on VALUE_EXPRs.
15496 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15497 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15499 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15501 * c-parser.c (c_parser_for_statement): Initialize
15502 collection_expression.
15504 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15506 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15508 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15510 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15511 (LINK_SHLIB_SPEC): Don't use %(link_path).
15512 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15514 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15516 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15517 (NO_SHARED_LIB_SUPPORT): Remove.
15518 (LINK_SHLIB_SPEC): Remove one conditional definition.
15520 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15522 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15524 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15525 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15526 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15527 %{call_shared} and conditionals on these options not being passed.
15528 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15531 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15533 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15536 * ipa-split.c: Spelling fixes.
15538 2011-01-19 Richard Henderson <rth@redhat.com>
15540 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15541 (*mulsi3): Likewise.
15543 * longlong.h [__mn10300__] (count_leading_zeros): New.
15544 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15545 [__mn10300__] (add_ssaaaa, subddmmss): New.
15546 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15547 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15549 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15551 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15553 2011-01-19 Richard Henderson <rth@redhat.com>
15555 * config/mn10300/mn10300.md (addsi3_flags): New.
15556 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15557 (subsi3_flags, subc_internal, subdi3): New.
15558 (subdi3_internal, *subdi3_degenerate): New.
15559 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15561 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15562 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15563 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15564 * config/mn10300/mn10300-protos.h: Update.
15565 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15566 (return_ret): Likewise. Rename from return_internal_regs.
15567 (return_internal): Remove.
15569 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15570 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15571 (mn10300_legitimate_constant_p): Likewise.
15572 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15573 (mn10300_frame_size): New.
15574 (mn10300_expand_prologue): Use it.
15575 (mn10300_expand_epilogue): Likewise.
15576 (mn10300_initial_offset): Likewise.
15577 * config/mn10300/mn10300-protos.h: Update.
15578 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15579 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15580 (prologue, epilogue, return_internal): Tidy output code.
15581 (mn10300_store_multiple_operation, return): Likewise.
15582 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15583 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15584 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15585 (load_pic, am33_load_pic): New.
15586 (mn10300_load_pic0, mn10300_load_pic1): New.
15588 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15589 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15590 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15591 (cc_flags_for_mode, cc_flags_for_code): New.
15592 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15593 overflow flag is not valid. Validate that the flags we need
15594 for the comparison are valid.
15595 (mn10300_output_cmp): Remove.
15596 (mn10300_output_add): New.
15597 (mn10300_select_cc_mode): Use cc_flags_for_code.
15598 (mn10300_split_cbranch): New.
15599 (mn10300_match_ccmode): New.
15600 (mn10300_split_and_operand_count): New.
15601 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15603 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15604 (addsi3): ... here. Use mn10300_output_add.
15605 (*addsi3_flags): New.
15606 (*am33_subsi3, *mn10300_subsi3): Merge...
15607 (subsi3): ... here. Use attribute isa.
15608 (*subsi3_flags): New.
15609 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15611 (*am33_andsi3, *mn10300_andsi3): Merge...
15612 (andsi3): ... here.
15613 (*andsi3_flags): New.
15614 (andsi3 splitters): New.
15615 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15616 (iorsi3): ... here.
15617 (*iorsi3_flags): New.
15618 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15619 (xorsi3): ... here.
15620 (*xorsi3_flags): New.
15621 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15622 (one_cmplsi2): ... here.
15623 (*one_cmplsi2_flags): New.
15624 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15625 instead of "dax" in constraints. Use mn10300_split_cbranch.
15626 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15627 use matching constraints to eliminate a self-comparison.
15628 (*integer_conditional_branch): Rename from integer_conditional_branch.
15629 Use int_mode_flags to match CC_REG.
15630 (*cbranchsi4_btst, *btstsi): New.
15631 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15632 mn10300_split_cbranch.
15633 (*am33_cmpsf): Rename from am33_cmpsf.
15634 (*float_conditional_branch): Rename from float_conditional_branch.
15635 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15636 (zero_extendqisi2): ... here.
15637 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15638 (zero_extendhisi2): ... here.
15639 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15640 (extendqisi2): ... here.
15641 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15642 (extendhisi2): ... here.
15643 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15644 (ashlsi3): ... here.
15645 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15646 (lshrsi3): ... here.
15647 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15648 (ashrsi3): ... here.
15649 (consecutive add peephole): Remove.
15650 * config/mn10300/predicates.md (label_ref_operand): New.
15651 (int_mode_flags): New.
15652 (CCZN_comparison_operator): New.
15654 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15655 (throughput_42_latency_43): New reservation.
15656 (mulsidi3, umulsidi3): New expanders.
15657 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15658 the MDR register to allocation; separately allocate the low and
15659 high parts of the DImode result.
15660 (umulsidi3_internal): Similarly.
15661 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15662 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15663 (udivsi3, umodsi3): Remove.
15664 (udivmodsi4, divmodsi4): New expanders.
15665 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15666 (*divmodsi4): Simiarly.
15667 (ext_internal): New.
15669 * config/mn10300/constraints.md ("z"): New constraint.
15670 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15671 (FIXED_REGISTERS): Don't fix MDR.
15672 (CALL_USED_REGSITERS): Reformat nicely.
15673 (REG_ALLOC_ORDER): Add MDR.
15674 (enum regclass): Add MDR_REGS.
15675 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15676 (IRA_COVER_CLASSES): Add MDR_REGS.
15677 (REGNO_REG_CLASS): Handle MDR_REG.
15678 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15679 (mn10300_register_move_cost): Likewise.
15680 * config/mn10300/mn10300.md (MDR_REG): New.
15681 (*movsi_internal): Handle moves to/from MDR_REGS.
15683 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15685 (mn10300_secondary_reload): Tidy combination reload classes.
15686 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15687 addresses for AM33. Allow symbolic offsets for reg+imm.
15688 (mn10300_regno_in_class_p): New.
15689 (mn10300_legitimize_reload_address): New.
15690 * config/mn10300/mn10300.h (enum reg_class): Remove
15691 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15692 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15693 SP_OR_GENERAL_REGS.
15694 (REG_CLASS_NAMES): Update to match.
15695 (REG_CLASS_CONTENTS): Likewise.
15696 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15697 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15698 (REGNO_IN_RANGE_P): Remove.
15699 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15700 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15701 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15702 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15703 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15704 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15705 (REGNO_GENERAL_P): New.
15706 (HAVE_POST_MODIFY_DISP): New.
15707 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15708 (LEGITIMIZE_RELOAD_ADDRESS): New.
15709 * config/mn10300/mn10300-protos.h: Update.
15711 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15712 DATA_REGS for AM33 stack-pointer destination.
15713 (mn10300_preferred_output_reload_class): Likewise.
15714 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15715 into a form appropriate for ...
15716 (TARGET_SECONDARY_RELOAD): New.
15717 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15718 * config/mn10300/mn10300-protos.h: Update.
15719 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15720 reload_insi; use the "A" constraint for the scratch; handle AM33
15721 moves of sp to non-address registers.
15723 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15724 (*movqi_internal): ... here.
15725 (*am33_movhi, *mn10300_movhi): Merge into...
15726 (*movhi_internal): ... here.
15727 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15728 as the source/destination of moves from/to SP.
15729 (movsf): Only allow for AM33-2.
15730 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15731 any integer constant constraint. Only allow for AM33-2. Tidy
15732 all of the alternative outputs.
15733 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15734 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15736 (udivsi3, umodsi3): New patterns for MN103 only.
15738 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15740 * doc/tm.texi.in: Spell out that a lack of register class unions
15742 * doc/tm.texi: Regenerate.
15744 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15746 PR rtl-optimization/47337
15747 * dce.c (check_argument_store): New function.
15748 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15750 PR tree-optimization/47290
15751 * tree-eh.c (infinite_empty_loop_p): New function.
15752 (cleanup_empty_eh): Use it.
15754 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15757 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15758 (a64_expand_widen_sum): Ditto.
15759 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15760 (vec_extract_evenodd_help): Ditto.
15761 (vec_extract_evenv4hi): Ditto.
15762 (vec_extract_oddv4hi): Ditto.
15763 (vec_extract_evenv2si): Ditto.
15764 (vec_extract_oddv2si): Ditto.
15765 (vec_extract_evenv2sf): Ditto.
15766 (vec_extract_oddv2sf): Ditto.
15767 (vec_pack_trunc_v4hi: Ditto.
15768 (vec_pack_trunc_v2si): Ditto.
15769 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15770 (vec_interleave_highv8qi): Ditto.
15772 (vec_extract_oddv8qi): Ditto.
15773 (vec_interleave_lowv4hi): Ditto.
15774 (vec_interleave_highv4hi): Ditto.
15775 (vec_interleave_lowv2si): Ditto.
15776 (vec_interleave_highv2si): Ditto.
15778 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15780 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15781 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15782 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15783 (pa_c_mode_for_suffix): New.
15784 (TARGET_EXPAND_BUILTIN): Define.
15785 (TARGET_C_MODE_FOR_SUFFIX): Define.
15786 (pa_builtins): Define.
15787 (pa_init_builtins): Register __float128 type and init new support
15789 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15790 * config/pa/quadlib.c (_U_Qfcopysign): New.
15792 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15794 PR middle-end/46894
15795 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15796 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15799 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15801 PR tree-optimization/47179
15802 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15803 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15805 2011-01-18 Richard Guenther <rguenther@suse.de>
15807 PR rtl-optimization/47216
15808 * emit-rtl.c: Include tree-flow.h.
15809 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15810 of replicating it with different semantics.
15811 * Makefile.in (emit-rtl.o): Adjust.
15813 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15815 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15816 (cortex_a9_dp): Handle neon types correctly.
15818 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15820 PR rtl-optimization/47299
15821 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15822 subtarget. Use normal multiplication if both operands are constants.
15823 * expmed.c (expand_widening_mult): Don't try to optimize constant
15824 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15827 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15829 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15830 spacing after 'e.g.', typos, comma, hyphenation.
15832 2011-01-17 Richard Henderson <rth@redhat.com>
15834 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15835 (rx_restricted_mem_operand): New.
15836 (rx_shift_operand): Use register_operand.
15837 (rx_source_operand, rx_compare_operand): Likewise.
15838 * config/rx/rx.md (addsi3_flags): New expander.
15839 (adddi3): Rewrite as expander.
15840 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15841 (subsi3_flags): New expander.
15842 (subdi3): Rewrite as expander.
15843 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15845 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15846 (rx_init_builtins): Remove sat builtin.
15847 (rx_expand_builtin): Likewise.
15848 * config/rx/rx.md (ssaddsi3): New.
15849 (*sat): Rename from sat. Represent the CC_REG input.
15851 * config/rx/predicates.md (rshift_operator): New.
15852 * config/rx/rx.c (rx_expand_insv): Remove.
15853 * config/rx/rx-protos.h: Update.
15854 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15855 operand to the canonical position.
15856 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15857 (*bitclr, *bitclr_in_memory): Similarly.
15858 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15859 (insv): Retain the zero_extract in the expansion.
15861 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15862 (bswaphi2, bitinvert, revw): Likewise.
15864 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15865 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15866 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15867 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15868 (bitset, bitset_in_memory): Likewise.
15869 (bitinvert, bitinvert_in_memory): Likewise.
15870 (bitclr, bitclr_in_memory): Likewise.
15871 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15872 (rx_strend, rx_cmpstrn): Likewise.
15873 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15874 (bitop peep2 patterns): Remove.
15876 * config/rx/rx.c (rx_match_ccmode): New.
15877 * config/rx/rx-protos.h: Update.
15878 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15879 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15880 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15881 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15882 (fix_truncsfsi2, floatsisf2): Likewise.
15883 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15884 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15885 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15886 (*subsi3_flags, *xorsi3_flags): New.
15888 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15890 * config/rx/rx.c (rx_print_operand): Remove workaround for
15891 unsplit comparison operations.
15893 * config/rx/rx.md (movsicc): Split after reload.
15894 (*movsicc): Merge *movsieq and *movsine via match_operator.
15895 (*stcc): New pattern.
15897 * config/rx/rx.c (rx_float_compare_mode): Remove.
15898 * config/rx/rx.h (rx_float_compare_mode): Remove.
15899 * config/rx/rx.md (cstoresi4): Split after reload.
15900 (*sccc): New pattern.
15902 * config/rx/predicates.md (label_ref_operand): New.
15903 (rx_z_comparison_operator): New.
15904 (rx_zs_comparison_operator): New.
15905 (rx_fp_comparison_operator): New.
15906 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15907 Validate that the flags are set properly for the comparison.
15908 (rx_gen_cond_branch_template): Remove.
15909 (rx_cc_modes_compatible): Remove.
15910 (mode_from_flags): New.
15911 (flags_from_code): Rename from flags_needed_for_conditional.
15912 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15913 (rx_select_cc_mode): Likewise.
15914 (rx_split_fp_compare): New.
15915 (rx_split_cbranch): New.
15916 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15917 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15918 (*cbranchsf4): Similarly.
15919 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15920 match_operator and rx_split_cbranch.
15921 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15922 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15923 (*cmpsi): Rename from cmpsi.
15924 (*tstsi): Rename from tstsi.
15925 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15926 (*conditional_branch): Rename from conditional_branch.
15927 (*reveresed_conditional_branch): Remove.
15928 (b<code>): Remove expander.
15929 * config/rx/rx-protos.h: Update.
15931 * config/rx/rx.c (rx_compare_redundant): Remove.
15932 * config/rx/rx.md (cmpsi): Don't use it.
15933 * config/rx/rx-protos.h: Update.
15935 * config/rx/rx-modes.def (CC_F): New mode.
15936 * config/rx/rx.c (rx_select_cc_mode): New.
15937 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15938 * config/rx/rx-protos.h: Update.
15940 2011-01-17 Richard Henderson <rth@redhat.com>
15942 * except.c (dump_eh_tree): Fix stray ; after for statement.
15944 2011-01-17 Richard Guenther <rguenther@suse.de>
15946 PR tree-optimization/47313
15947 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15948 handling before copying the body. Properly deal with
15949 by-reference result in SSA form.
15951 2011-01-17 Ian Lance Taylor <iant@google.com>
15954 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15955 (struct_value_alias_set): Don't define.
15956 (sparc_option_override): Don't set sparc_sr_alias_set and
15957 struct_value_alias_set.
15958 (save_or_restore_regs): Use gen_frame_mem rather than calling
15960 (sparc_struct_value_rtx): Likewise.
15962 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15965 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15966 (_mm_maskstore_pd): Likewise.
15967 (_mm_maskload_ps): Likewise.
15968 (_mm_maskstore_ps): Likewise.
15969 (_mm256_maskload_pd): Change mask to __m256i.
15970 (_mm256_maskstore_pd): Likewise.
15971 (_mm256_maskload_ps): Likewise.
15972 (_mm256_maskstore_ps): Likewise.
15974 * config/i386/i386-builtin-types.def: Updated.
15975 (ix86_expand_special_args_builtin): Likewise.
15977 * config/i386/i386.c (bdesc_special_args): Update
15978 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15979 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15980 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15981 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15983 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15984 Use <avxpermvecmode> on mask register.
15985 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15987 2011-01-17 Olivier Hainque <hainque@adacore.com>
15988 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15989 Eric Botcazou <ebotcazou@adacore.com>
15992 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15993 if <= USHRT_MAX in 32-bit mode.
15995 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15997 * doc/install.texi (Configuration, Specific): Wrap long
15998 lines in examples. Allow line wrapping in long options
15999 and URLs where beneficial for PDF output.
16001 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16003 * config/mips/mips.c (mips_classify_symbol): Don't return
16004 SYMBOL_PC_RELATIVE for nonlocal labels.
16006 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16008 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16010 2011-01-15 Jan Hubicka <jh@suse.cz>
16012 PR tree-optimization/47276
16013 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16014 declarations as needed.
16016 2011-01-15 Martin Jambor <mjambor@suse.cz>
16018 * common.opt (fdevirtualize): New flag.
16019 * doc/invoke.texi (Option Summary): Document it.
16020 * opts.c (default_options_table): Add devirtualize flag.
16021 * ipa-prop.c (detect_type_change): Return immediately if
16022 devirtualize flag is not set.
16023 (detect_type_change_ssa): Likewise.
16024 (compute_known_type_jump_func): Likewise.
16025 (ipa_analyze_virtual_call_uses): Likewise.
16027 2011-01-14 Martin Jambor <mjambor@suse.cz>
16029 PR tree-optimization/45934
16030 PR tree-optimization/46302
16031 * ipa-prop.c (type_change_info): New type.
16032 (stmt_may_be_vtbl_ptr_store): New function.
16033 (check_stmt_for_type_change): Likewise.
16034 (detect_type_change): Likewise.
16035 (detect_type_change_ssa): Likewise.
16036 (compute_complex_assign_jump_func): Check for dynamic type change.
16037 (compute_complex_ancestor_jump_func): Likewise.
16038 (compute_known_type_jump_func): Likewise.
16039 (compute_scalar_jump_functions): Likewise.
16040 (ipa_analyze_virtual_call_uses): Likewise.
16041 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16043 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16045 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16046 * config/i386/i386.opt (msse5): New Alias.
16048 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16050 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16051 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16052 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16053 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16055 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16057 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16059 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16060 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16061 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16062 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16064 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16066 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16068 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16070 2011-01-14 Mike Stump <mikestump@comcast.net>
16072 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16073 * config/fr30/fr30.md: Likweise
16074 (movsi_push): Likewise.
16075 (movsi_pop): Likewise.
16076 (enter_func): Likewise.
16077 * config/moxie/moxie.md (movsi_push): Likewise.
16078 (movsi_pop): Likewise.
16080 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16082 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16083 %{no_archive} %{exact_version}.
16084 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16085 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16086 %{no_archive} %{exact_version}.
16087 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16088 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16089 * config/mips/vxworks.h: Likewise.
16091 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16093 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16095 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16097 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16098 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16100 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16102 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16105 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16107 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16109 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16110 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16112 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16113 Don't handle -shlib.
16115 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16117 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16118 (CC1_SPEC): Don't handle -profile.
16120 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16122 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16123 * config/mips/mips.h (CC1_SPEC): Likewise.
16125 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16127 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16128 * config/mips/mips.h (CC1_SPEC): Likewise.
16130 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16132 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16133 * config/m32r/linux.h (LINK_SPEC): Likewise.
16134 * config/mips/linux.h (LINK_SPEC): Likewise.
16135 * config/mips/linux64.h (LINK_SPEC): Likewise.
16136 * config/sparc/linux.h (LINK_SPEC): Likewise.
16137 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16138 LINK_SPEC): Likewise.
16139 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16141 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16143 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16145 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16147 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16149 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16150 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16152 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16154 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16156 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16158 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16159 supports -Bstatic/-Bdynamic.
16160 * configure: Regenerate.
16162 2011-01-14 Jan Hubicka <jh@suse.cz>
16163 Jack Howarth <howarth@bromo.med.uc.edu>
16166 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16167 when checking debug_info_level. Test write_symbols instead of
16168 debug_hooks->var_location when setting flag_var_tracking_uninit.
16170 2011-01-14 Richard Guenther <rguenther@suse.de>
16172 PR tree-optimization/47179
16173 * target.def (ref_may_alias_errno): New target hook.
16174 * targhooks.h (default_ref_may_alias_errno): Declare.
16175 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16176 (default_ref_may_alias_errno): New function.
16177 * target.h (struct ao_ref_s): Declare.
16178 * tree-ssa-alias.c: Include target.h.
16179 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16180 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16181 (targhooks.o): Likewise.
16182 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16183 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16185 2011-01-14 Richard Guenther <rguenther@suse.de>
16187 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16189 2011-01-14 Richard Guenther <rguenther@suse.de>
16191 PR tree-optimization/47280
16192 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16193 return CFG changes.
16194 (tree_ssa_forward_propagate_single_use_vars): Deal with
16195 CFG changes from associate_plusminus.
16197 2011-01-14 Richard Guenther <rguenther@suse.de>
16199 PR middle-end/47281
16201 2011-01-11 Richard Guenther <rguenther@suse.de>
16203 PR tree-optimization/46076
16204 * tree-ssa.c (useless_type_conversion_p): Conversions from
16205 unprototyped to empty argument list function types are useless.
16207 2011-01-14 Richard Guenther <rguenther@suse.de>
16209 PR tree-optimization/47286
16210 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16212 2011-01-14 Martin Jambor <mjambor@suse.cz>
16214 PR middle-end/46823
16215 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16217 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16219 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16220 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16221 * config/xtensa/xtensa.c (xtensa_libcall_value,
16222 xtensa_function_value_regno_p): New functions.
16223 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16225 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16228 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16230 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16231 New function prototype.
16232 * config/i386/winnt.c (i386_pe_assemble_visibility):
16233 Warn only if attribute was specified by user.
16235 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16238 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16240 (floatunsdidf2_fcfidu): Ditto.
16242 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16244 * config/s390/s390.c (print_operand_address): Replace 'error' with
16245 'output_operand_lossage'.
16246 (print_operand): Likewise.
16248 2011-01-13 Jeff Law <law@redhat.com>
16250 PR rtl-optimization/39077
16251 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16252 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16253 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16254 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16255 * gcse.c (prune_insertions_deletions): New function.
16256 (compute_pre_data): Use it.
16258 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16261 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16263 (prune_unused_types_mark): Use it.
16265 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16267 PR rtl-optimization/45352
16268 * sel-sched.c: Update copyright years.
16269 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16270 in the advancing loop when we have issued issue_rate insns.
16272 2011-01-12 Richard Henderson <rth@redhat.com>
16274 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16275 (TARGET_MD_ASM_CLOBBERS): New.
16277 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16278 (TARGET_DELEGITIMIZE_ADDRESS): New.
16280 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16281 (clzsi2, *bsch): New patterns.
16283 * config/mn10300/mn10300.md (INT): New mode iterator.
16284 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16286 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16287 flag_split_wide_types.
16289 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16290 (mn10300_trampoline_init): Rewrite without a template, an immediate
16291 load and a direct branch.
16292 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16294 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16296 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16297 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16298 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16299 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16301 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16304 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16307 2011-01-12 Jan Hubicka <jh@suse.cz>
16310 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16311 (PLUGIN_COND_CLOSE): New macro.
16312 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16314 2011-01-12 Richard Guenther <rguenther@suse.de>
16317 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16318 register variables in a MEM_REF.
16320 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16322 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16323 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16324 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16325 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16326 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16327 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16328 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16329 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16330 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16331 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16332 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16333 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16334 * config/gnu-user.h: New. Copied from linux.h.
16335 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16336 GNU_USER_TARGET_STARTFILE_SPEC.
16337 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16338 GNU_USER_TARGET_ENDFILE_SPEC.
16339 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16340 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16341 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16342 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16343 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16344 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16345 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16346 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16347 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16348 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16349 * config/arm/linux-eabi.h (CC1_SPEC): Use
16350 GNU_USER_TARGET_CC1_SPEC.
16351 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16352 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16353 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16354 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16355 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16356 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16357 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16358 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16360 2011-01-12 Richard Guenther <rguenther@suse.de>
16363 * doc/invoke.texi (ffast-math): Document it is turned on
16366 2011-01-12 Jan Hubicka <jh@suse.cz>
16368 PR tree-optimization/47233
16369 * opts.c (common_handle_option): Disable ipa-reference with profile
16372 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16374 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16377 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16379 * c-parser.c (c_lex_one_token): Updated and reindented some
16380 comments. No changes in code.
16382 2011-01-11 Ian Lance Taylor <iant@google.com>
16384 * godump.c (go_output_var): Don't output the variable if there is
16385 already a type with the same name.
16387 2011-01-11 Ian Lance Taylor <iant@google.com>
16389 * godump.c (go_format_type): Don't generate float80.
16391 2011-01-11 Richard Henderson <rth@redhat.com>
16393 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16394 declaration. Rewrite for both speed and size.
16395 (mn10300_address_cost_1): Remove.
16396 (mn10300_register_move_cost): New.
16397 (mn10300_memory_move_cost): New.
16398 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16399 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16400 extensions, shifts, BSWAP, CLZ.
16401 (mn10300_wide_const_load_uses_clr): Remove.
16402 (TARGET_REGISTER_MOVE_COST): New.
16403 (TARGET_MEMORY_MOVE_COST): New.
16404 * config/mn10300/mn10300-protos.h: Update.
16405 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16407 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16408 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16409 * config/mn10300/mn10300-protos.h: Update.
16410 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16411 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16412 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16413 (*test_int_bitfield, *test_byte_bitfield): Remove.
16414 (*bit_test, *subreg_bit_test): Remove.
16415 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16417 * config/mn10300/constraints.md ("c"): Rename from "A".
16418 ("A", "D"): New constraint letters.
16419 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16420 (fmssf4, fnmasf4, fnmssf4): Likewise.
16422 * config/mn10300/mn10300.md (isa): New attribute.
16423 (enabled): New attribute.
16425 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16426 (abssf2, negsf2): Define only for hardware fp.
16427 (sqrtsf2): Reformat.
16428 (addsf3, subsf3, mulsf3): Merge expander and insn.
16430 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16431 (DEBUGGER_AUTO_OFFSET): Remove.
16432 (DEBUGGER_ARG_OFFSET): Remove.
16434 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16435 Emit register stores with the same offsets as the hardware.
16436 (mn10300_store_multiple_operation): Don't check that the register
16437 save offsets are monotonic.
16438 * config/mn10300/mn10300-protos.h: Update.
16440 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16442 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16443 in terms of the value on the stack, not the MDR register.
16445 2011-01-11 Jan Hubicka <jh@suse.cz>
16449 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16450 (symbol_alias_set_destroy, symbol_alias_set_contains,
16451 propagate_aliases_backward): Declare.
16452 * lto-streamer-out.c (struct sets): New sturcture.
16453 (trivally_defined_alias): New function.
16454 (output_alias_pair_p): Rewrite.
16455 (output_unreferenced_globals): Fix output of alias pairs.
16456 (produce_symtab): Likewise.
16457 * ipa.c (function_and_variable_visibility): Set weak alias destination
16459 * varasm.c (symbol_alias_set_t): Remove.
16460 (symbol_alias_set_destroy): Export.
16461 (propagate_aliases_forward, propagate_aliases_backward): New functions
16463 (compute_visible_aliases): ... this one; remove.
16464 (trivially_visible_alias): New
16465 (trivially_defined_alias): New.
16466 (remove_unreachable_alias_pairs): Rewrite.
16467 (finish_aliases_1): Reorganize code checking if alias is defined.
16468 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16471 2011-01-11 Richard Guenther <rguenther@suse.de>
16473 PR tree-optimization/46076
16474 * tree-ssa.c (useless_type_conversion_p): Conversions from
16475 unprototyped to empty argument list function types are useless.
16477 2011-01-11 Richard Guenther <rguenther@suse.de>
16479 PR middle-end/45235
16480 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16481 volatile MEMs as MEM_READONLY_P.
16483 2011-01-11 Richard Guenther <rguenther@suse.de>
16485 PR tree-optimization/47239
16486 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16488 2011-01-11 Jeff Law <law@redhat.com>
16490 PR tree-optimization/47086
16491 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16492 IVs from statements that might throw.
16494 2011-01-10 Jan Hubicka <jh@suse.cz>
16497 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16499 2011-01-10 Jan Hubicka <jh@suse.cz>
16502 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16503 when correcting profile.
16505 2011-01-10 Jan Hubicka <jh@suse.cz>
16508 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16509 DECL_FINI_PRIORITY.
16510 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16511 Restore DECL_FINI_PRIORITY.
16513 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16515 * doc/gimple.texi: Fix quoting of multi-word return values in
16516 @deftypefn statements. Ensure presence of return value. Wrap
16517 overlong @deftypefn lines.
16518 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16519 descriptions of removed functions.
16520 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16521 of multi-word return value in @deftypefn statement.
16523 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16525 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16526 (Conditional Expressions, Logical Operators)
16527 (Statement and operand traversals): Do not indent smallexample
16528 code. Fix duplicate function argument in example.
16530 2011-01-10 Jeff Law <law@redhat.com>
16532 PR tree-optimization/47141
16533 * ipa-split.c (split_function): Handle case where we are
16534 returning a value and the return block has a virtual operand phi.
16536 2011-01-10 Jan Hubicka <jh@suse.cz>
16538 PR tree-optimization/47234
16539 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16540 (pass_feedback_split_functions): Declare.
16541 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16543 * ipa-split.c (gate_split_functions): Update comments; disable
16544 split-functions for profile_arc_flag and branch_probabilities.
16545 (gate_feedback_split_functions): New function.
16546 (execute_feedback_split_functions): New function.
16547 (pass_feedback_split_functions): New global var.
16549 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16552 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16553 calling gimple_call_set_cannot_inline.
16555 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16557 * config/darwin-sections.def: Remove unused section.
16559 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16562 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16564 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16567 * c-parser.c (c_parser_declaration_or_fndef): Improved
16570 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16572 * config/i386/winnt.c (i386_pe_start_function): Make sure
16573 to switch back to function's section.
16575 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16579 * plugin.c: Move include of dlfcn.h from here...
16580 * system.h: ... to here.
16582 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16584 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16586 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16587 two extra empty pages in PDF output.
16589 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16592 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16593 for error recovery purposes behave as if it was not specified so
16594 that the default type is usd.
16596 2011-01-07 Jan Hubicka <jh@suse.cz>
16598 PR tree-optmization/46469
16599 * ipa.c (function_and_variable_visibility): Clear needed flags on
16600 nodes with external decls; handle weakrefs merging correctly.
16602 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16604 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16607 2011-01-07 Jan Hubicka <jh@suse.cz>
16609 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16610 and no longer claim that gold is required for linker plugin.
16611 * configure: Regenerate.
16612 * gcc.c (PLUGIN_COND): New macro.
16613 (LINK_COMMAND_SPEC): Use it.
16614 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16615 * config.in (HAVE_LTO_PLUGIN): New.
16616 * configure.ac (--with-lto-plugin): New parameter; autodetect
16619 2011-01-07 Jan Hubicka <jh@suse.cz>
16621 PR tree-optimization/46367
16622 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16623 when we can update original.
16624 (cgraph_mark_inline_edge): Sanity check.
16625 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16627 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16629 * config/spu/spu.h (ASM_COMMENT_START): Define.
16631 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16634 * gcc.c (%>S): New.
16635 (SWITCH_KEEP_FOR_GCC): Likewise.
16636 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16637 (do_spec_1): Handle "%>".
16639 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16641 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16644 * config/i386/i386.c (ix86_delegitimize_address): If
16645 simplify_gen_subreg fails, return orig_x.
16648 * value-prof.c (gimple_stringop_fixed_value): Handle
16649 lhs of the call properly.
16651 2011-01-07 Jan Hubicka <jh@suse.cz>
16654 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16656 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16658 * target.def (function_switched_text_sections): New hook.
16659 * doc/tm.texi: Regenerated.
16660 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16661 * final.c (default_function_switched_text_sections): New.
16662 (final_scan_insn): Call function_switched_text_sections when a
16663 mid-function section change occurs.
16664 * output.h (default_function_switched_text_sections): Declare.
16665 * config/darwin-protos.h (darwin_function_switched_text_sections):
16667 * config/darwin.c (darwin_function_switched_text_sections): New.
16668 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16670 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16672 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16673 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16674 the secondary code fragment when outputting for DWARF == 2.
16676 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16678 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16679 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16681 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16682 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16684 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16687 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16688 when it is not empty.
16690 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16693 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16694 (case ${target}): Add btver1.
16695 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16696 -march=native recognize btver1 processors.
16697 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16698 btver1 def_and_undef
16699 * config/i386/i386.c (struct processor_costs btver1_cost): New
16701 (m_BTVER1): New definition.
16702 (m_AMD_MULTIPLE): Includes m_BTVER1.
16703 (initial_ix86_tune_features): Add btver1 tune.
16704 (processor_target_table): Add btver1 entry.
16705 (static const char *const cpu_names): Add btver1 entry.
16706 (software_prefetching_beneficial_p): Add btver1.
16707 (ix86_option_override_internal): Add btver1 instruction sets.
16708 (ix86_issue_rate): Add btver1.
16709 (ix86_adjust_cost): Add btver1.
16710 * config/i386/i386.h (TARGET_BTVER1): New definition.
16711 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16712 (enum processor_type): Add PROCESSOR_BTVER1.
16713 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16715 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16718 * config/i386/i386.c (legitimize_tls_address)
16719 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16720 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16721 (tls_initial_exec_64_sun): New pattern.
16723 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16725 * doc/invoke.texi (Overall Options): Improve wording and markup
16726 of the description of -wrapper.
16728 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16730 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16731 rdynamic, threads): New Driver options.
16733 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16736 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16737 if coming from .tdata.
16738 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16740 2011-01-06 Jan Hubicka <jh@suse.cz>
16743 * collect2.c (main): Do not enable LTOmode when plugin is active.
16745 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16748 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16749 --version output if supported.
16750 * configure: Regenerate.
16752 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16754 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16757 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16760 * c-convert.c (convert): When converting a complex expression
16761 other than COMPLEX_EXPR to a different complex type, ensure
16762 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16763 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16764 when converting COMPLEX_TYPE.
16766 2011-01-06 Ira Rosen <irar@il.ibm.com>
16768 PR tree-optimization/47139
16769 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16770 only the last reduction value is used outside the loop. Update
16773 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16775 * config/rtems.opt: New.
16776 * config.gcc (*-*-rtems*): Use rtems.opt.
16778 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16780 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16781 processors do not support 3DNow instructions.
16783 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16785 * config/spu/spu.c (spu_option_override): Set parameter
16786 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16788 2011-01-05 Jan Hubicka <jh@suse.cz>
16790 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16791 at the command line.
16793 2011-01-05 Martin Jambor <mjambor@suse.cz>
16796 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16797 deltas on streamed outgoing edges.
16798 (output_node_opt_summary): Output info for outgoing edges only when
16799 the node is in new parameter set.
16800 (output_cgraph_opt_summary): New parameter set, passed to the two
16801 aforementioned functions. Update its forward declaration and its
16804 2011-01-05 Tom Tromey <tromey@redhat.com>
16806 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16807 operator to c_finish_omp_atomic.
16808 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16809 (build_unary_op): Update.
16810 (build_modify_expr): Update.
16811 (build_asm_expr): Update.
16813 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16815 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16816 newly inserted insns.
16817 (pad_bb): Likewise.
16818 (spu_emit_branch_hint): Likewise.
16819 (insert_hbrp_for_ilb_runout): Likewise.
16820 (spu_machine_dependent_reorg): Call df_finish_pass after
16821 schedule_insns returns.
16823 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16825 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16827 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16829 PR tree-optimization/47005
16830 * tree-sra.c (struct access): Add 'non_addressable' bit.
16831 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16832 (decide_one_param_reduction): Return 0 if the parameter is passed by
16833 reference and one of the accesses in the group is non_addressable.
16835 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16837 PR tree-optimization/47056
16838 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16839 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16840 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16842 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16844 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16845 initializer. Skip view conversions from aggregate types.
16847 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16850 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16852 2011-01-04 Philipp Thomas <pth@suse.de>
16854 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16857 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16859 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16860 on empty epilogue sequences.
16862 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16864 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16865 non-static): New Driver options.
16867 2011-01-04 Jie Zhang <jie@codesourcery.com>
16870 * gcc.c (default_compilers[]): Set combinable field to 0
16871 for all assembly languages.
16873 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16875 * config/mips/loongson3a.md: New file.
16876 * config/mips/mips.md: Include loongson3a.md.
16877 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16880 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16882 PR middle-end/47017
16883 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16884 instead of convert_memory_address_addr_space on the base expression.
16886 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16888 * config/spu/spu.c (spu_option_override): Update error text
16889 for bad -march= / -mtune= values.
16891 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16893 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16894 if branch-hint optimization will be performed.
16896 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16898 PR tree-optimization/47148
16899 * ipa-split.c (split_function): Convert arguments to
16900 DECL_ARG_TYPE if possible.
16902 PR tree-optimization/47155
16903 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16904 when computing uns.
16906 PR rtl-optimization/47157
16907 * combine.c (try_combine): If undobuf.other_insn becomes
16908 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16909 and set *new_direct_jump_p too.
16911 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16913 PR tree-optimization/47021
16914 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16916 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16918 * gcc.c (process_command): Update copyright notice dates.
16919 * gcov.c (print_version): Likewise.
16920 * gcov-dump.c (print_version): Likewise.
16921 * mips-tfile.c (main): Likewise.
16922 * mips-tdump.c (main): Likewise.
16924 2011-01-03 Martin Jambor <mjambor@suse.cz>
16926 PR tree-optimization/46801
16927 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16928 aggregate fields start at byte boundary instead of the bit-field flag.
16930 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16933 * gcc.c (main): Revert revision 168407.
16935 2011-01-03 Martin Jambor <mjambor@suse.cz>
16937 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16939 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16941 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16942 vector optab to expand vector/scalar shift, update gimple to vector.
16944 2011-01-03 Martin Jambor <mjambor@suse.cz>
16946 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16949 2011-01-03 Martin Jambor <mjambor@suse.cz>
16951 PR tree-optimization/46984
16952 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16954 (cgraph_create_indirect_edge): Fixed line length.
16955 (cgraph_indirect_call_info): Declare.
16956 (cgraph_make_edge_direct) Update declaration.
16957 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16958 (cgraph_create_indirect_edge): Use it.
16959 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16961 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16962 the new thunk_delta representation.
16963 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16965 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16966 (ipa_read_indirect_edge_info): Likewise.
16967 * lto-cgraph.c (output_edge_opt_summary): New function.
16968 (output_node_opt_summary): Call it on all outgoing edges.
16969 (input_edge_opt_summary): New function.
16970 (input_node_opt_summary): Call it on all outgoing edges.
16972 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16975 * gcc.c (main): Don't check have_o when settting combine_inputs.
16977 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16979 * regrename.c: Add general comment describing the pass.
16980 (struct du_head): Remove 'length' field.
16981 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16982 (regrename_optimize): Do not sort chains. Rework comments, add others.
16983 Force renaming to the preferred class (if any) in the first pass and do
16984 not consider registers that belong to it in the second pass.
16985 (create_new_chain): Do not set 'length' field.
16986 (scan_rtx_reg): Likewise.
16988 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16990 PR tree-optimization/47140
16991 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16992 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16993 to bit_value_binop.
16995 PR rtl-optimization/47028
16996 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16997 parm_birth_insn instead of at the beginning of first bb.
16999 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17001 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17002 Remove the word "see" before "@pxref".
17003 * doc/rtl.texi: Remove the word "see" before "@pxref".
17005 2011-01-01 Jan Hubicka <jh@suse.cz>
17007 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17010 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17013 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17016 Copyright (C) 2011 Free Software Foundation, Inc.
17018 Copying and distribution of this file, with or without modification,
17019 are permitted in any medium without royalty provided the copyright
17020 notice and this notice are preserved.