1 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 PR tree-optimization/48497
4 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
6 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8 PR tree-optimization/46728
9 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
10 to use gimple_val_nonnegative_real_p.
11 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
12 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
14 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
16 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
18 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
20 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
23 2011-06-07 Richard Guenther <rguenther@suse.de>
25 * stor-layout.c (initialize_sizetypes): Initialize all
26 sizetypes based on target definitions.
27 (set_sizetype): Remove.
28 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
29 * tree.h (set_sizetype): Remove.
31 2011-06-07 Nick Clifton <nickc@redhat.com>
33 * config.gcc: Unify V850 architecture options and add support for
34 newer V850 architectures.
35 * config/v850/t-v850e: Delete.
37 2011-06-07 Richard Guenther <rguenther@suse.de>
39 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
40 Call set_sizetype from here.
42 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
44 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
45 (*maddhisi4tb, *maddhisi4tt): New define_insns.
47 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
48 Andrew Stubbs <ams@codesourcery.com>
50 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
52 * doc/md.texi (Canonicalization of Instructions): Document widening
53 multiply canonicalization.
55 2011-06-07 Jakub Jelinek <jakub@redhat.com>
58 * value-prof.c (gimple_ic): Don't assume icall has
61 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
63 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
65 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
66 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
67 vect_recog_pow_pattern): Likewise.
68 (vect_pattern_recog_1): Remove declaration.
69 (widened_name_p): Remove declaration. Add new argument to specify
70 whether to check that both types are either signed or unsigned.
71 (vect_recog_widen_mult_pattern): Update documentation. Handle
72 unsigned patterns and multiplication by constants.
73 (vect_pattern_recog_1): Update vect_recog_func references. Use
74 statement information from the statement returned from pattern
76 (vect_pattern_recog): Update vect_recog_func reference.
77 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
78 multiplication by a constant use the type of the other operand.
80 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
82 PR rtl-optimization/49145
83 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
85 2011-06-06 Jakub Jelinek <jakub@redhat.com>
88 * dwarf2out.c (native_encode_initializer): Decrement count in each
92 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
96 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
97 if stmt folded into nothing.
98 * tree-inline.c (fold_marked_statements): If a builtin at the
99 end of a bb folded into nothing, just update cgraph edges
101 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
102 to be NULL. Don't compute count and frequency if new_call is NULL.
104 2011-06-04 Diego Novillo <dnovillo@google.com>
106 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
107 (cgraph.o): Likewise.
108 (cgraphunit.o): Likewise.
109 * cgraphunit.c: Include lto-streamer.h
110 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
112 * lto-streamer-in.c (unpack_value_fields): Call
113 streamer_hooks.unpack_value_fields if set.
114 (lto_materialize_tree): For unhandled nodes, first try to
115 call lto_streamer_hooks.alloc_tree, if it exists.
116 (lto_input_ts_decl_common_tree_pointers): Move reading of
117 DECL_INITIAL to lto_streamer_read_tree.
118 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
119 (lto_streamer_read_tree): New.
120 (lto_reader_init): Rename from lto_init_reader.
121 Move initialization code to lto/lto.c.
122 * lto-streamer-out.c (pack_value_fields): Call
123 streamer_hooks.pack_value_fields if set.
124 (lto_output_tree_ref): For tree nodes that are not
125 normally indexable, call streamer_hooks.indexable_with_decls_p
127 (lto_output_ts_decl_common_tree_pointers): Move handling
128 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
129 lto_streamer_write_tree.
130 (lto_output_tree_header): Call streamer_hooks.is_streamable
131 instead of lto_is_streamable.
132 Call lto_streamer_hooks.output_tree_header if set.
133 (lto_write_tree): Call lto_streamer_hooks.write_tree if
135 (lto_streamer_write_tree): New.
136 (lto_output): Call lto_streamer_init directly.
137 (lto_writer_init): Remove.
138 * lto-streamer.c (streamer_hooks): New.
139 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
140 instead of lto_preload_common_nodes.
141 (lto_is_streamable): Move from lto-streamer.h
142 (lto_streamer_hooks_init): New.
143 (streamer_hooks): New.
144 (streamer_hooks_init): New.
145 * lto-streamer.h (struct output_block): Forward declare.
146 (struct lto_input_block): Likewise.
147 (struct data_in): Likewise.
148 (struct bitpack_d): Likewise.
149 (struct streamer_hooks): Declare.
150 (streamer_hooks): Declare.
151 (lto_streamer_hooks_init): Declare.
152 (lto_streamer_write_tree): Declare.
153 (lto_streamer_read_tree): Declare.
154 (streamer_hooks_init): Declare.
155 (lto_is_streamable): Move to lto-streamer.c
157 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
159 * longlong.h (smul_ppmm): The resulting register pair contains the
160 higher order word first.
162 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
164 PR tree-optimization/46728
165 * builtins.c (powi_table): Remove.
166 (powi_lookup_cost): Remove.
168 (expand_powi_1): Remove.
169 (expand_powi): Remove.
170 (expand_builtin_pow_root): Remove.
171 (expand_builtin_pow): Remove.
172 (expand_builtin_powi): Eliminate handling of constant exponent.
173 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
175 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
177 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
179 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
181 * dce.c (reset_unmarked_insns_debug_uses): New.
182 (delete_unmarked_insns): Skip debug insns.
183 (prescan_insns_for_dce): Likewise.
184 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
185 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
186 active reg can be found.
187 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
188 (convert_regs_1): Use it.
190 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
192 * tree-pretty-print.c (dump_function_header): Add flags.
193 Don't dump decl_uid with nouid.
194 * tree-pretty-print.h (dump_function_header): Adjust.
195 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
196 * passes.c (pass_init_dump_file): Pass dump_flags on.
197 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
199 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
202 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
204 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
206 PR tree-optimization/49243
207 * calls.c (setjmp_call_p): Also check if fndecl has the
208 returns_twice attribute.
210 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
212 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
215 2011-06-06 Richard Henderson <rth@redhat.com>
216 Georg-Johann Lay <avr@gjlay.de>
219 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
221 * config/avr/avr.md ("insv"): New insn expander.
222 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
223 "*insv.not.io", "*insv.reg"): New insns.
225 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
228 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
229 predicate to nonimmediate_operand from memory_operand for the
230 operand that is to be forced to memory by the expander. Lose
233 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
235 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
236 EH return when delayed branches are disabled.
238 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
240 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
241 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
243 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
244 Simplify MODE_V1DF and MODE_V2SF handling.
245 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
246 Simplify MODE_SF handling.
248 2011-06-04 Jan Hubicka <jh@suse.cz>
250 PR tree-optimization/48893
251 PR tree-optimization/49091
252 PR tree-optimization/49179
253 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
256 2011-06-04 Jan Hubicka <jh@suse.cz>
259 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
261 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
263 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
265 2011-06-04 Jakub Jelinek <jakub@redhat.com>
268 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
269 to be strictly smaller than 1 << shiftcount.
271 2011-06-04 Jan Hubicka <jh@suse.cz>
273 PR tree-optimize/48929
274 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
277 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
280 * calls.c (emit_call_1): Prefer the __builtin declaration of
283 2011-06-03 Diego Novillo <dnovillo@google.com>
285 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
286 (lto_input_tree_pointers): Likewise.
287 * lto-streamer-out.c (pack_value_fields): Likewise.
288 (lto_output_tree_pointers): Likewise.
289 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
290 and OPTIMIZATION_NODE.
292 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
294 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
295 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
296 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
297 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
298 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
299 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
300 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
301 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
302 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
303 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
304 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
305 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
306 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
307 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
308 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
309 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
310 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
311 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
312 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
313 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
314 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
315 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
316 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
317 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
318 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
319 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
320 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
321 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
322 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
323 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
324 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
325 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
326 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
327 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
328 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
329 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
330 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
331 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
332 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
333 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
334 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
335 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
336 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
337 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
338 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
339 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
340 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
341 * system.h (MD_UNWIND_SUPPORT): Poison.
342 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
343 * doc/tm.texi: Regenerate.
344 * unwind-dw2.c: Include md-unwind-support.h instead of
346 * config/ia64/unwind-ia64.c: Likewise.
347 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
349 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
351 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
353 2011-06-03 Richard Henderson <rth@redhat.com>
354 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
356 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
357 (sigill_hdlr): Correct insn, insn size.
358 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
360 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
362 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
364 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
365 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
366 * config/mips/t-iris: Remove.
367 * config/mips/t-irix6: New file.
368 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
370 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
372 * Makefile.in (LIB2ADDEHDEP): Remove.
373 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
374 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
375 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
376 * config/t-darwin (LIB2ADDEHDEP): Remove.
377 * config/t-freebsd (LIB2ADDEHDEP): Remove.
378 * config/t-linux (LIB2ADDEHDEP): Remove.
380 2011-06-03 Diego Novillo <dnovillo@google.com>
382 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
383 (lto_register_var_decl_in_symtab): Likewise.
384 (lto_register_function_decl_in_symtab): Likewise.
385 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
386 logic to uniquify_nodes.
388 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
390 * config/alpha/t-osf5: Remove.
391 * config/alpha/t-osf-pthread: Remove.
392 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
393 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
395 2011-06-03 Julian Brown <julian@codesourcery.com>
397 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
398 (strongarm1110): Use strongarm tuning.
399 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
400 * config/arm/arm.c (arm_strongarm_tune): New.
401 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
402 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
403 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
404 setting, using previous defaults or 1 for Cortex-A5.
405 (arm_option_override): Set max_insns_skipped from current tuning.
407 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
409 * doc/install.texi (Options specification): Document --with-specs.
411 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
413 * config/arm/neon.md (orndi3_neon): Actually split it.
415 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
417 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
418 * var-tracking.c (reverse_op): Limite recurse depth to 5.
420 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
423 * target.def (delay_sched2, delay_vartrack): New.
424 * doc/tm.texi.in: Update.
425 * doc/tm.texi: Rebuild.
426 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
427 * var-tracking.c (gate_handle_var_tracking): Likewise.
428 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
429 (bfin_flag_var_tracking): Drop.
430 (output_file_start): Don't save and override flag_var_tracking.
431 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
432 (bfin_reorg): Test original variables.
433 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
434 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
435 (ia64_flag_var_tracking): Drop.
436 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
437 (ia64_file_start): Don't save and override flag_var_tracking.
438 (ia64_override_options_after_change): Ditto
439 flag_schedule_insns_after_reload.
440 (ia64_reorg): Test original variables.
441 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
442 (picochip_flag_var_tracking): Drop.
443 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
444 (picochip_option_override): Don't save and override
445 flag_schedule_insns_after_reload.
446 (picochip_asm_file_start): Ditto flag_var_tracking.
447 (picochip_reorg): Test original variables.
448 * config/spu/spu.c (spu_flag_var_tracking): Drop.
449 (TARGET_DELAY_VARTRACK): Define.
450 (spu_var_tracking): New.
451 (spu_machine_dependent_reorg): Call it.
452 (asm_file_start): Don't save and override flag_var_tracking.
454 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
457 * config/sh/predicates.md (general_movsrc_operand): Return 0
458 for memory and memory subreg of which address is an invalid
459 indexed address for QI and HImode.
460 (general_movdst_operand): Likewise.
462 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
464 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
465 edges only, when there is a non-local label in the function.
466 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
468 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
470 * config/i386/constraints.md (Y3): New register constraint.
471 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
472 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
473 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
474 *sse2_interleave_lowv2df.
476 2011-06-02 Julian Brown <julian@codesourcery.com>
478 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
479 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
480 (arm_cortex_a5_tune): New.
482 2011-06-02 Julian Brown <julian@codesourcery.com>
484 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
485 * config/arm/arm.c (arm_default_branch_cost): New.
486 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
487 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
488 (arm_fa726_tune): Set branch_cost field using
489 arm_default_branch_cost.
490 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
491 current_tune structure.
492 * dojump.c (tm_p.h): Include file.
494 2011-06-02 Julian Brown <julian@codesourcery.com>
496 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
498 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
499 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
500 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
502 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
503 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
504 (arm_fa726te_tune): Add prefer_constant_pool setting.
505 (arm_v6t2_tune, arm_cortex_tune): New.
506 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
507 prefer_constant_pool setting.
509 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
511 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
513 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
514 (*movdf_internal) <case 6,7,8>: Ditto.
516 * config/i386/constraints.md (Y4): New register constraint.
517 * config/i386/sse.md (vec_set<mode>_0): Merge with
518 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
519 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
520 *vec_extractv2di_1_sse.
521 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
522 and *vec_concatv2di_rex64_sse.
524 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
527 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
528 of cgraph_local_info for null before attempting to use it.
530 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
532 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
533 (current_function_dynamic_alloc_count): Delete.
534 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
535 (expand_builtin_nonlocal_goto): Remove obsolete comment.
536 (expand_builtin_update_setjmp_buf): Remove dead code.
537 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
538 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
540 * function.c (instantiate_virtual_regs): Likewise.
541 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
542 for a block with a single abnormal incoming edge.
543 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
544 (SETJMP_VIA_SAVE_AREA): Delete.
545 * config/sparc/sparc-protos.h (load_got_register): Declare.
546 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
547 (load_got_register): Make global.
548 (sparc_frame_pointer_required): Add 'static'.
549 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
550 (sparc_builtin_setjmp_frame_value): New function.
551 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
552 (save_stack_nonlocal): New expander.
553 (restore_stack_nonlocal): Likewise.
554 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
555 (nonlocal_goto_internal): New insn.
556 (goto_handler_and_restore): Delete.
557 (builtin_setjmp_setup): Likewise.
558 (do_builtin_setjmp_setup): Likewise.
560 (builtin_setjmp_receiver): New expander.
562 2011-06-01 David Li <davidxl@google.com>
565 * tree-pretty-print.c (dump_function_header): Format cleanup.
567 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
570 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
571 needed when original operands are used for msw_skip comparison.
573 2011-06-01 Jakub Jelinek <jakub@redhat.com>
576 * var-tracking.c (add_uses, add_stores): Don't call
577 cselib_subst_to_values on ENTRY_VALUE.
579 2011-06-01 Diego Novillo <dnovillo@google.com>
581 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
582 output_record_start with LTO_null instead of output_zero.
583 (lto_output_ts_binfo_tree_pointers): Likewise.
584 (lto_output_tree): Likewise.
585 (output_eh_try_list): Likewise.
586 (output_eh_region): Likewise.
587 (output_eh_lp): Likewise.
588 (output_eh_regions): Likewise.
589 (output_bb): Likewise.
590 (output_function): Likewise.
591 (output_unreferenced_globals): Likewise.
592 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
593 instead of NUM_TREE_CODES.
594 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
595 (lto_output_int_in_range): Change << to >> when shifting VAL.
597 2011-06-01 Diego Novillo <dnovillo@google.com>
599 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
600 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
602 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
605 * optabs.h (valid_multiword_target_p): Declare.
606 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
607 doing multi-word operations.
608 * optabs.c (expand_binop): Likewise.
609 (expand_doubleword_bswap): Likewise.
610 (expand_absneg_bit): Likewise.
611 (expand_unop): Likewise.
612 (expand_copysign_bit): Likewise.
613 (multiword_target_p): New function.
615 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
617 PR rtl-optimization/48830
618 PR rtl-optimization/48808
619 PR rtl-optimization/48792
620 * reload.c (push_reload): Check contains_reg_of_mode.
621 * reload1.c (strip_paradoxical_subreg): New function.
622 (gen_reload_chain_without_interm_reg_p): Use it to handle
624 (emit_output_reload_insns, gen_reload): Likewise.
626 2011-06-01 David Li <davidxl@google.com>
628 * predict.c : Change pass name
631 * tree-profile.c: Ditto.
634 2011-06-01 David Li <davidxl@google.com>
636 * tree-pretty-print.c (dump_function_header): New function.
637 * final.c (rest_of_clean_state): Use header dumper.
638 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
639 * passes.c (pass_init_dump_file): Use header dumper.
641 2011-06-01 Jakub Jelinek <jakub@redhat.com>
643 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
644 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
645 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
647 (mem_loc_descriptor): Use them.
649 * var-tracking.c (create_entry_value): New function.
650 (vt_add_function_parameter): Use it.
652 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
654 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
655 Include <signal.h>, <ucontext.h>.
656 (sigill_caught): Define.
657 (sigill_hdlr): New function.
658 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
659 insns can be executed.
660 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
661 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
663 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
665 * config/t-slibgcc-darwin: Move to ...
666 * config/t-slibgcc-dummy: ... this. Clarify comments.
667 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
668 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
669 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
670 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
671 Remove i386/t-crtstuff from tmake_file.
672 (i[34567]86-*-solaris2*): Remove t-svr4,
673 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
675 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
676 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
677 sparc/t-crtfm from tmake_file.
678 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
679 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
681 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
682 * config/i386/t-nwld (SHLIB_LINK): Remove.
683 * config/i386/t-rtems-i386: Rename to ...
684 * config/i386/t-rtems: ... this.
685 ($(T)crti.o, $(T)crtn.o): Remove.
686 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
687 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
688 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
689 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
690 EXTRA_MULTILIB_PARTS): Remove.
691 * config/sparc/t-sol2-64: Likewise.
692 * config/sparc/t-sol2: Remove.
693 * config/sparc/t-crtin: Remove.
694 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
695 * config/i386/gmon-sol2.c: Remove.
696 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
697 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
698 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
699 * config/i386/sol2-gc1.asm: Remove.
700 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
701 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
702 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
703 * config/t-slibgcc-sld: Remove.
705 2011-06-01 Jakub Jelinek <jakub@redhat.com>
707 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
708 base_type_for_mode with op_mode instead of mode.
710 2011-06-01 Paul Brook <paul@cpodesourcery.com>
712 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
714 * config/arm/arm-tune.md: Regenerate.
715 * config/arm/arm-tables.opt: Regenerate.
716 * config/arm/arm.c (FL_DIV): Rename...
717 (FL_THUMB_DIV): ... to this.
718 (FL_ARM_DIV): Define.
719 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
720 (arm_arch_hwdiv): Remove.
721 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
722 (arm_issue_rate): Add cortexr5.
723 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
724 __ARM_ARCH_EXT_IDIV__.
725 (TARGET_IDIV): Define.
726 (arm_arch_hwdiv): Remove.
727 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
728 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
729 (divsi3, udivsi3): New patterns.
730 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
731 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
733 2011-06-01 Martin Jambor <mjambor@suse.cz>
735 * ipa-utils.c (ipa_dfs_info): New field scc_no.
736 * ipa-utils.c (searchc): Set scc_no.
738 2011-06-01 Martin Jambor <mjambor@suse.cz>
740 * ipa-utils.c (searchc_env): New field allow_overwritable.
741 (searchc): do not ignore edges to overwritable nodes if indicated
742 by env->allow_overwritable.
743 (ipa_reduced_postorder): Set env.allow_overwritable.
745 2011-06-01 Richard Guenther <rguenther@suse.de>
747 * tree.c (free_lang_data): Do not reset boolean_type_node nor
749 * lto-streamer.c (lto_record_common_node): Take node pointer,
750 do not register types.
751 (lto_preload_common_nodes): Explicitly skip preloading nodes
752 that differ between frontends.
754 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
756 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
759 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
761 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
762 parameter value for dump. Dump cost on outermost call only.
763 (rs6000_memory_move_cost): Dump cost on outermost call only.
765 2011-05-31 Jakub Jelinek <jakub@redhat.com>
767 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
768 DW_OP_GNU_convert ops.
770 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
771 cselib_preserve_constants.
772 (cselib_lookup_1): If cselib_preserve_constants,
773 a new VALUE is being created for REG and there is a VALUE for the
774 same register in wider mode, add another loc with lowpart SUBREG of
776 (cselib_subst_to_values): Handle ENTRY_VALUE.
777 * var-tracking.c (replace_expr_with_values): Return NULL for
779 * dwarf2out.c (convert_descriptor_to_signed): New function.
780 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
781 instead of two shifts.
782 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
783 the right mode if needed.
784 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
785 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
786 convert_descriptor_to_signed.
787 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
788 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
791 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
793 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
795 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
796 of X87MODEI12 and SWI48x instead of SSEMODEI24.
797 (SWI248x): New mode iterator, rename from X87MODEI.
798 (X87MODEI): Remove mode iterator.
802 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
804 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
805 * doc/invoke.texi: Document max-vartrack-expr-depth.
806 * var-tracking.c (EXPR_DEPTH): New.
807 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
809 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
811 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
812 * config/i386/sse.md: Add n to negated FMA pattern names.
814 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
816 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
818 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
820 * gengtype-state.c (read_state_params_structs): Initialize previous.
822 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
824 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
825 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
827 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
829 * config/i386/i386.md (*movtf_internal): Avoid allocating general
830 registers. Penalize F*r->o alternative to prevent partial memory
831 stalls. Slightly penalize *roF->*r alternative. Generate SSE
832 CONST_DOUBLE immediates when optimizing function for size. Do not move
833 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
834 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
835 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
836 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
838 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
840 (fp_register_operand splitters): Use fp_register_operand
841 constraint. Do not use FP_REG_P in insn condition.
842 (any_fp_register_operand splitters): Use any_fp_register_operand
843 constraint. Do not use ANY_FP_REG_P in insn condition.
845 2011-05-31 Jan Hubicka <jh@suse.cz>
847 * cgraph.h (cgraph_inline_failed_t): Give enum a name
848 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
849 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
850 (lto_output_edge): Use output_enum and var_len_unsigned.
851 (lto_output_varpool_node): Likewise.
852 (input_overwrite_node): Do not take resolution parameter;
853 extract it from a bitpack.
854 (input_node): Do not read resolution; use input_enum and
856 (input_varpool_node): Likewise.
857 (input_edge): Likewise.
858 (input_cgraph_1): Likewise.
860 2011-05-31 Richard Guenther <rguenther@suse.de>
862 * gimple.c (gimple_register_canonical_type): Do not register
863 any types via gimple_register_type.
865 2011-05-31 Jan Hubicka <jh@suse.cz>
867 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
870 2011-05-31 Jakub Jelinek <jakub@redhat.com>
872 PR rtl-optimization/49235
873 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
874 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
876 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
878 PR tree-optimization/49093
879 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
882 2011-05-31 Dodji Seketeli <dodji@redhat.com>
885 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
886 for concrete functions containing the code of cloned functions.
888 2011-05-31 Richard Guenther <rguenther@suse.de>
890 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
892 (forward_propagate_into_comparison_1): ... this.
893 (forward_propagate_comparison): Rename to ...
894 (forward_propagate_into_comparison): ... this. Split out
895 real forward propagation code to ...
896 (forward_propagate_comparison): ... this.
897 (forward_propagate_into_gimple_cond): Remove looping.
898 (forward_propagate_into_cond): Likewise.
899 (simplify_not_neg_expr): Return whether we have done something.
900 (simplify_gimple_switch): Likewise.
901 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
902 (ssa_forward_propagate_and_combine): ... this. Re-structure
903 to do a forward forward-propagation walk on BBs and a backward
904 stmt combining walk on BBs. Consistently re-scan changed statements.
905 (pass_forwprop): Adjust.
907 2011-05-30 Ian Lance Taylor <iant@google.com>
909 * godump.c (go_format_type): Correct length of name added to
910 obstack for anonymous field.
912 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
915 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
916 part of the second operand is 0.
918 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
920 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
921 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
922 to memory for !TARGET_MEMORY_MISMATCH_STALL.
923 (*movdf_internal_rex64): Do not penalize F->r alternative.
924 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
925 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
926 when optimizing function for size. Do not move CONST_DOUBLEs
927 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
928 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
929 SUBREGs. Do not check for MEM_P operands in the insn condition,
930 check for ANY_FP_REGNO_P instead.
931 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
932 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
934 * config/i386/i386.c (ix86_option_override_internal): Do not
935 set TARGET_INTEGER_DFMODE_MOVES here.
937 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
940 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
942 2011-05-30 Jakub Jelinek <jakub@redhat.com>
944 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
945 DW_TAG_rvalue_reference_type even for
946 -gdwarf-4 -fno-debug-types-section.
948 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
950 PR tree-optimization/46728
951 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
952 (build_and_insert_binop): New.
953 (gimple_expand_builtin_pow): Reorder args for
954 build_and_insert_call; use build_and_insert_binop; add more
955 optimizations for fractional exponents.
957 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
962 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
964 * tree.h (struct tree_identifier): Inherit from tree_typed, not
966 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
967 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
968 TS_BASE instead of TS_COMMON.
969 * varasm.c (assemble_name): Remove assert.
971 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
973 * config.gcc: Keep obselete list sorted.
975 2011-05-30 Jakub Jelinek <jakub@redhat.com>
976 Eric Botcazou <ebotcazou@adacore.com>
978 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
979 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
980 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
981 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
982 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
984 2011-05-30 Richard Guenther <rguenther@suse.de>
986 * gimple.c (gimple_types_compatible_p_1): Compare record
987 and union type members properly.
989 2011-05-30 Richard Guenther <rguenther@suse.de>
991 PR tree-optimization/49210
992 * ipa-split.c (split_function): Care for the case where the call
993 result is not trivially convertible to the result holding variable.
995 2011-05-30 Richard Guenther <rguenther@suse.de>
997 PR tree-optimization/49218
998 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1001 2011-05-30 Richard Guenther <rguenther@suse.de>
1003 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1004 New function split out from ...
1005 (forward_propagate_into_gimple_cond): ... here. Adjust.
1006 (forward_propagate_into_cond): Likewise.
1007 (forward_propagate_comparison): Also propagate into
1008 comparisons on assignment RHS. Change return value to
1009 behave similar to forward_propagate_into_cond.
1010 (tree_ssa_forward_propagate_single_use_vars): Handle
1011 strict-overflow warnings properly for forward_propagate_comparison.
1013 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1015 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1017 * configure: Regenerate.
1019 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1021 PR tree-optimization/49199
1022 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1023 non-reduction operands are either defined in the loop or by induction.
1025 2011-05-29 Xinliang David Li <davidxl@google.com>
1027 * opts-global.c (handle_common_deferred_options): Handle new options.
1028 * passes.c (register_one_dump_file): Call register_pass_name.
1029 (execute_one_pass): Check explicit enable/disable flag.
1030 (passr_hash): New function.
1032 (register_pass_name): Ditto.
1033 (get_pass_by_name): Ditto.
1036 (enable_pass): Ditto.
1037 (disable_pass): Ditto.
1038 (is_pass_explicitly_enabled_or_disabled): Ditto.
1040 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1042 * config/i386/i386.md (*movoi_internal_avx): Use
1043 standard_sse_constant_opcode for alternative 0.
1044 (*movti_internal_sse): Ditto.
1045 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1047 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1049 (*movsi_internal): Ditto.
1050 (*movdi_internal): Ditto. Add ssecvt type moves.
1052 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1055 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1057 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1059 PR rtl-optimization/49095
1060 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1061 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1063 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1066 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1067 recurse_p argument. Only follow register copies if it is set,
1068 and prevent mips_find_pic_call_symbol from recursing.
1069 (mips_find_pic_call_symbol): Add a recurse_p argument.
1070 Pass it to mips_pic_call_symbol_from_set.
1071 (mips_annotate_pic_calls): Update accordingly.
1073 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1075 * emit-rtl.c (try_split): Use a loop to search for
1076 NOTE_INSN_CALL_ARG_LOCATIONs.
1078 2011-05-29 Richard Guenther <rguenther@suse.de>
1080 PR tree-optimization/49217
1081 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1083 2011-05-28 Jan Hubicka <jh@suse.cz>
1085 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1087 (string_slot_free): Remove
1088 (create_output_block): Initialize obstack.
1089 (destroy_output_block): Free obstack.
1090 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1091 the string unless it needs to be added into the hash.
1092 (lto_output_string_with_length): Add persistent attribute;
1093 handle NULL strings.
1094 (lto_output_string): Add PERSISTENT parameter.
1095 (output_string_cst, output_identifier): Simplify.
1096 (lto_output_location_bitpack): Update.
1097 (lto_output_builtin_tree): Update.
1098 * lto-streamer.h (struct output_block): Add obstack.
1099 (lto_output_string, lto_output_string_with_length): Remove
1100 declarations; functions are static now.
1102 2011-05-28 Jan Hubicka <jh@suse.cz>
1104 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1105 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1106 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1107 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1108 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1109 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1110 unpack_ts_decl_with_vis_value_fields,
1111 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1112 lto_get_builtin_tree): Use enum and variable length i/o.
1113 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1114 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1116 (bp_pack_enum, bp_unpack_enum): New macros.
1118 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1120 * genrecog.c: Remove redundant forward declarations.
1122 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1124 * config.gcc: Deprecate mips*-*-openbsd*.
1126 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1129 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1132 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1135 * gengtype.c (vec_prefix_type): New function.
1136 (note_def_vec): Use vec_prefix_type and change the length
1137 attribute to be based on the prefix.
1138 * vec.c: Include coretypes.h before vec.h.
1139 (struct vec_prefix): Remove.
1140 (vec_gc_p_reserve): Change the offsetof to sizeof.
1141 (vec_gc_p_reserve_exact): Likewise.
1142 (vec_heap_p_reserve): Likewise.
1143 (vec_heap_p_reserve_exact): Likewise.
1144 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1145 (vec_stack_p_reserve): Change the offsetof to sizeof.
1146 (vec_stack_p_reserve_exact): Likewise.
1147 * vec.h (struct vec_prefix): New struct definition.
1148 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1149 (VEC_T_GTY(T,B)): Likewise.
1150 (DEF_VEC_FUNC_P(T)): Use prefix field.
1151 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1152 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1154 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1156 PR tree-optimization/46728
1157 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1158 (powi_as_mults): Add gimple_set_location.
1159 (build_and_insert_call): New.
1160 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1161 0.5, 0.25, 0.75, 1./3., or 1./6.
1163 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1165 * doc/contrib.texi: Update copyright years.
1166 (Contributors): Add Zdenek Sojka.
1168 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1170 * c-decl.c (c_push_function_context): Copy the current statement
1172 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1173 (finish_struct): Call building_stmt_list_p instead of checking
1175 * c-parser.c (c_parser_postfix_expression): Likewise.
1176 * c-typeck.c (c_end_compound_stmt): Likewise.
1177 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1178 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1179 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1180 (free_stmt_list): Likewise.
1181 * tree.h (struct tree_statement_list): Include typed_tree instead
1183 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1184 as TS_TYPED instead of TS_COMMON.
1186 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1187 Uros Bizjak <ubizjak@gmail.com>
1189 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1190 (HAVE_AS_IX86_TLSGDPTL): Define.
1191 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1192 (HAVE_AS_IX86_TLSLDMPLT): Define.
1193 * configure: Regenerate.
1194 * config.in: Regenerate.
1195 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1196 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1197 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1198 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1199 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1201 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1203 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1205 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1207 (INSN_COND, INSN_REVERSE_COND): New macros.
1208 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1210 (sched_get_condition_with_rev): Cache the results, and look them up
1212 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1213 are clobbered by the current insn.
1214 * target.def (exposed_pipline): New sched data hook.
1215 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1216 * doc/tm.texi: Regenerate.
1218 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1220 PR tree-optimization/49170
1221 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1224 2011-05-27 Richard Guenther <rguenther@suse.de>
1227 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1230 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1232 * haifa-sched.c (sched_scan_info): Remove.
1233 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1235 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1237 (sched_scan): Remove.
1238 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1239 static. All callers changed.
1240 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1241 static. All callers changed.
1242 (sched_init_luids): Remove all arguments except the first. All
1243 callers changed. Don't use sched_scan.
1244 (haifa_init_h_i_d): Likewise.
1245 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1246 manually rather than using sched_init_luids. Likewise with
1247 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1248 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1249 rather than sched_init_luids with NULL args.
1250 * sel-sched-ir.c (new_insns): Remove variable.
1251 (sched_scan): New static function, previously in haifa-sched.c. Remove
1252 all arguments but the first two; all callers changed.
1253 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1254 rather than sched_init_luids.
1255 (sel_init_bbs): Remove second argument. All callers changed.
1256 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1257 with NULL arguments.
1258 (create_insn_rtx_from_pattern): Likewise.
1259 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1260 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1261 (sched_init_insn_luid, sched_extend_luids): Declare.
1262 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1265 2011-05-27 Richard Guenther <rguenther@suse.de>
1268 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1269 A CMP B ? (T) true : (T) false for non-integral types T again.
1271 2011-05-27 Jan Hubicka <jh@suse.cz>
1273 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1274 so 0 means NULL string.
1275 (lto_output_string_with_length): ... here.
1276 (lto_output_string, output_string_cst, output_identifier): Update
1277 handling of NULL strings.
1278 (lto_output_location_bitpack): New function.
1279 (lto_output_location): Use it.
1280 (lto_output_tree_ref): Use output_record_start.
1281 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1283 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1285 (input_string_internal): ... here;
1286 (input_string_cst, input_identifier, lto_input_string): Update handling
1288 (lto_input_location_bitpack): New function
1289 (lto_input_location): Use it.
1290 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1292 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1293 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1294 (bp_pack_value): Sanity check the value range.
1295 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1297 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1300 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1302 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1303 call_arg_location instructions down the floor.
1305 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1307 PR rtl-optimization/49154
1308 * ira.c (setup_pressure_classes): Process class without sublcasses
1309 as a candidate for pressure classes.
1311 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1313 PR rtl-optimization/48575
1314 * genrecog.c (position_type): New enum.
1315 (position): New structure.
1316 (decision): Use position structure instead of a string.
1317 (root_pos, peep2_insn_pos_list): New variables.
1318 (next_position, compare_positions): New functions.
1319 (new_decision): Use position structures instead of strings.
1320 (maybe_both_true): Likewise.
1321 (change_state): Likewise.
1322 (write_tree): Likewise.
1323 (make_insn_sequence): Likewise.
1325 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1327 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1328 TS_BASE instead of TS_COMMON.
1329 (find_decls_types_r): Check for TS_TYPED structure before looking at
1331 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1333 (BLOCK_CHAIN): Use new chain field.
1335 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1337 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1338 moves expensive on Power7 also.
1340 2011-05-26 Richard Guenther <rguenther@suse.de>
1342 * fold-const.c (fold_unary_loc): Remove bogus code.
1344 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1346 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1348 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1349 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1350 TS_BASE instead of TS_COMMON.
1351 * varasm.c (assemble_name): Remove assert.
1353 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1355 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1357 * libgcc-std.ver: Delete file.
1359 2011-05-26 Richard Guenther <rguenther@suse.de>
1361 PR tree-optimization/48702
1362 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1363 only when we know the base address is within bounds.
1364 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1365 assume the base address of TARGET_MEM_REFs is in bounds.
1367 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1370 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1371 declaration in TARGET_SOLARIS.
1373 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1375 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1376 The instruction is then expanded explicitly.
1377 (supported_compare): Callable instruction.
1378 (compare): Likewise.
1380 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1383 * gimplify.c (shortcut_cond_r): Don't special case
1384 COND_EXPRs if they have void type on one of their arms.
1386 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1388 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1389 to reduce duplication, and to achieve a slightly more logical order
1392 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1394 PR tree-optimization/49161
1395 * tree-vrp.c (struct case_info): New type.
1396 (compare_case_labels): Sort case_info structs instead of
1397 trees, and not primarily by CASE_LABEL uids but by
1398 label_for_block indexes.
1399 (find_switch_asserts): Put case labels into struct case_info
1400 array instead of TREE_VEC, adjust sorting, compare label_for_block
1401 values instead of CASE_LABELs.
1403 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1405 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1406 ("orndi3_neon"): Likewise.
1407 ("bic<mode>3_neon"): Likewise.
1409 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1411 PR tree-optimization/49038
1412 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1413 Ensure at least one epilogue iteration if required by data
1415 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1416 to mark loops that require peeling for gaps.
1417 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1418 (vect_get_known_peeling_cost): Take peeling for gaps into
1420 (vect_transform_loop): Generate epilogue if required by data
1422 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1423 loop as requiring an epilogue if there are gaps in the end of
1426 2011-05-25 Ian Lance Taylor <iant@google.com>
1428 * godump.c (go_format_type): Output the first field with a usable
1431 2011-05-25 Ian Lance Taylor <iant@google.com>
1433 * godump.c (go_format_type): Check for invalid type names, pointer
1434 target types, and struct field types.
1436 2011-05-25 Jason Merrill <jason@redhat.com>
1438 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1440 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1442 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1444 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1446 * config/i386/i386.md (*movqi_extv_1)): Put back
1447 "register_operand" check in "type" calculation.
1448 (*movqi_extzv_2): Likewise.
1450 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1452 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1454 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1457 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1458 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1459 __divxc3, __divtc3): Wrap definitions in #ifndef.
1461 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1464 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1465 "register_operand" check and replace q_regs_operand with
1466 QIreg_operand in "type" calculation.
1467 (*movqi_extv_1): Likewise.
1468 (*movqi_extzv_2_rex64): Likewise.
1469 (*movqi_extzv_2): Likewise.
1471 * config/i386/predicates.md (QIreg_operand): New.
1473 2011-05-25 Richard Guenther <rguenther@suse.de>
1475 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1476 type-based offset disambiguation, streamline MEM_REF and
1477 TARGET_MEM_REF handling.
1479 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1481 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1482 (bdesc_special_args): Add pause intrinsic.
1484 * config/i386/i386.md (UNSPEC_PAUSE): New.
1487 * config/i386/ia32intrin.h (__pause): Likewise.
1489 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1492 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1494 PR tree-optimization/46728
1495 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1496 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1498 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1500 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1501 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1502 instead of TS_COMMON.
1504 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1506 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1507 LIBGCC2_GNU_PREFIX is defined.
1509 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1510 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1511 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1512 __clz_tab): Define using __N.
1513 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1514 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1515 * target.def (libfunc_gnu_prefix): New hook.
1516 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1517 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1518 * doc/tm.texi: Regenerate.
1519 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1520 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1522 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1523 (init_optabs): Likewise for the bswap libfuncs.
1524 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1526 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1527 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1528 * libgcc-std.ver: Remove.
1529 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1530 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1532 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1533 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1534 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1535 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1536 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1537 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1538 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1539 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1540 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1541 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1543 2011-05-25 Jan Hubicka <jh@suse.cz>
1545 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1546 (lto_output_tree): Use output_record_start.
1547 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1548 (lto_get_pickled_tree): Use input_record_start.
1549 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1550 (lto_value_range_error): New function.
1551 * lto-streamer.h (lto_value_range_error): Declare.
1552 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1553 (lto_output_enum, lto_input_enum): New macros.
1555 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1557 * common.opt (flag_stack_usage_info): New variable.
1558 (-Wstack-usage): New option.
1559 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1560 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1561 <OPT_fstack_usage>: Likewise.
1562 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1563 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1564 of flag_stack_usage.
1565 (emit_library_call_value_1): Likewise.
1566 * explow.c (allocate_dynamic_stack_space): Likewise.
1567 * function.c (instantiate_virtual_regs ): Likewise.
1568 (prepare_function_start): Likewise.
1569 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1570 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1571 * config/arm/arm.c (arm_expand_prologue): Likewise.
1572 (thumb1_expand_prologue): Likewise.
1573 * config/avr/avr.c (expand_prologue): Likewise.
1574 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1575 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1576 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1577 * config/mips/mips.c (mips_expand_prologue): Likewise.
1578 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1579 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1580 * config/s390/s390.c (s390_emit_prologue): Likewise.
1581 * config/sh/sh.c (sh_expand_prologue): Likewise.
1582 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1583 * config/spu/spu.c (spu_expand_prologue): Likewise.
1585 2011-05-25 Richard Guenther <rguenther@suse.de>
1587 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1588 (gimple_canonical_types_compatible_p): Likewise.
1590 2011-05-25 Jan Hubicka <jh@suse.cz>
1593 * ipa.c (function_and_variable_visibility): Only add to same
1594 comdat group list if DECL_ONE_ONLY.
1596 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1598 PR rtl-optimization/49014
1599 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1601 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1604 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1606 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1608 PR rtl-optimization/48757
1609 * ira-build.c (loop_with_eh_edge_p): Rename to
1610 loop_with_complex_edge_p, check edges on complexity, make function
1612 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1615 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1617 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1618 force flag_ira_share_save_slots to 0.
1620 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1622 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1623 (vt_initialize): Set PROLOGUE_BB unconditionally.
1624 Add block comment about CFA_BASE_RTX machinery.
1625 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1626 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1628 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1631 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1632 parsing of syntax error in ObjC instance variable lists. In
1633 particular, avoid an infinite loop if there is a stray ']'.
1634 Updated error message.
1636 2011-05-24 Ian Lance Taylor <iant@google.com>
1638 * godump.c (go_define): Don't accept a string immediately after
1641 2011-05-24 Ian Lance Taylor <iant@google.com>
1643 * godump.c (struct godump_container): Add invalid_hash field.
1644 (go_format_type): Return false if type is found in invalid_hash.
1645 (go_output_typedef): Add invalid type to invalid_hash.
1646 (go_finish): Create and delete invalid_hash.
1648 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1650 PR tree-optimization/46728
1651 * tree-ssa-math-opts.c (powi_table): New.
1652 (powi_lookup_cost): New.
1654 (powi_as_mults_1): New.
1655 (powi_as_mults): New.
1656 (gimple_expand_builtin_powi): New.
1657 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1658 (gate_cse_sincos): Remove sincos/cexp restriction.
1660 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1663 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1665 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1666 * mips-tdump.c: Likewise.
1668 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1671 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1672 add -mno-XXX. Handle FMA.
1674 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1676 PR rtl-optimization/48633
1677 * ira-build.c (loop_with_eh_edge_p): New function.
1678 (mark_loops_for_removal): Use it.
1680 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1682 PR rtl-optimization/48971
1683 * ira.c (setup_pressure_classes): Don't check register move cost
1684 for classes with one registers. Don't add pressure class if there
1685 is a pressure class with the same available hard registers.
1686 Check contains_reg_of_mode. Fix a typo in collecting
1687 temp_hard_regset. Ignore hard registers not belonging to a class.
1689 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1692 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1694 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1695 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1697 PR gcov-profile/48845
1698 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1700 2011-05-24 Richard Guenther <rguenther@suse.de>
1702 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1703 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1704 (gimple_types_compatible_p_1): Adjust.
1705 (iterative_hash_canonical_type): Do not bother about complete vs.
1707 (gimple_canonical_types_compatible_p): Likewise.
1709 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1711 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1713 2011-05-24 Richard Guenther <rguenther@suse.de>
1716 * gimple.c (gimple_register_canonical_type): Revert
1718 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1719 does not for a tree for the case where it matters. Cache
1720 pointer-type alias-sets.
1722 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1724 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1725 (OBJS): Remove options.o, opts-common.o and prefix.o.
1726 (OBJS-libcommon-target): New.
1727 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1728 (BACKEND): Include libcommon-target.a.
1729 (MOSTLYCLEANFILES): Include libcommon-target.a.
1730 (libcommon-target.a): New.
1731 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1734 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1736 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1737 parts of output shared with the driver.
1738 * optc-gen.awk: Don't generate parts of output not shared with the
1740 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1741 * doc/options.texi (SourcerInclude): Mention options-save.c.
1742 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1743 (OBJS): Add options-save.o.
1744 (options-save.c, options-save.o): New.
1745 (options.o): Update dependencies.
1746 (gcc-options.o): Remove.
1747 (mostlyclean): Remove options-save.c.
1749 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1752 * dbxout.c: Include cgraph.h.
1753 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1754 and without value expr, return NULL if no varpool node exists for
1755 it or if it is not needed.
1756 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1759 * c-decl.c (start_decl): Convert expr to void_type_node.
1761 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1763 PR rtl-optimization/48826
1764 * emit-rtl.c (try_split): When splitting a call that is followed
1765 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1767 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1769 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1770 parameters passed in memory prefer using DECL_INCOMING_RTL over
1771 the pseudos it will be copied into.
1773 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1776 * config/i386/i386.c (ix86_option_override_internal): Save the
1777 initial options after checking vzeroupper.
1779 2011-05-23 David Li <davidxl@google.com>
1781 PR tree-optimization/48988
1782 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1783 Initialize has_valid_pred for each pred chain.
1785 2011-05-23 Richard Guenther <rguenther@suse.de>
1787 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1788 (iterative_hash_gimple_type): Always hash type names.
1790 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1792 * c-typeck.c (build_function_call_vec): Tweak call to
1793 check_function_arguments.
1795 2011-05-23 Richard Guenther <rguenther@suse.de>
1797 PR tree-optimization/49115
1798 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1799 is not necessarily carried out, do not claim it kills the ref.
1800 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1802 2011-05-23 Richard Guenther <rguenther@suse.de>
1805 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1806 what pointer types we accept for folding.
1808 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1810 * gthr-gnat.c: Remove.
1811 * gthr-gnat.h: Remove.
1812 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1813 * config/t-freebsd (LIB2ADDEH): Likewise.
1814 * config/t-linux (LIB2ADDEH): Likewise.
1815 * config/t-sol2 (LIB2ADDEH): Likewise.
1816 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1817 * configure.ac (target_thread_file): Remove gnat handling.
1818 * configure: Regenerate.
1819 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1821 2011-05-23 Tristan Gingold <gingold@adacore.com>
1822 Eric Botcazou <ebotcazou@adacore.com>
1824 * gcov.c (create_file_names): If no object directory is specified,
1825 keep the directory of the file.
1827 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1829 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1830 * configure: Regenerate.
1832 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1835 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1836 failed and the comparison has a single bit signed type, use
1837 constm1_rtx instead of const1_rtx for true value.
1838 (do_store_flag): If ops->type is single bit signed type, disable
1839 signel bit test optimization and pass -1 instead of 1 as last
1840 parameter to emit_store_flag_force.
1842 2011-05-23 Tom de Vries <tom@codesourcery.com>
1845 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1847 (infer_loop_bounds_from_undefined): Use new function.
1849 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1851 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1852 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1853 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1855 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1857 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1859 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1860 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1863 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1865 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1867 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1869 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1870 UNSPEC_MOVE_PIC pattern.
1872 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1874 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1875 (sparc-*-rtems*): Likewise.
1876 (sparc64-*-elf*): Likewise.
1877 (sparc64-*-rtems*): Likewise.
1878 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1879 * config/sparc/t-crtin: New file.
1880 * config/sparc/t-sol2 (crti.o): Delete rule.
1882 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1883 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1884 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1885 (ENDFILE_SPEC): Add crtn.o.
1887 2011-05-22 Tom de Vries <tom@codesourcery.com>
1890 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1891 CODE_CONTAINS_STRUCT (TS_COMMON).
1893 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1896 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1897 only after deciding which mode to use.
1899 2011-05-22 Tom de Vries <tom@codesourcery.com>
1902 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1903 for call to get_shiftadd_cost.
1905 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1908 * config/i386/cpuid.h (bit_MMXEXT): New define.
1910 2011-05-22 Nick Clifton <nickc@redhat.com>
1912 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1913 initialisation of non-existant args[2] element. Use args[] array
1914 not arg[] array to pass arguments to build_function_type_list.
1916 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1918 PR tree-optimization/49087
1919 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1921 2011-05-21 Jason Merrill <jason@redhat.com>
1924 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1925 static storage duration.
1927 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1929 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1932 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1934 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1935 false if there are call-saved registers here...
1936 (sparc_can_use_return_insn_p): ...but here instead.
1937 (save_or_restore_regs): Fix thinko.
1938 (sparc_expand_prologue): Use current_function_is_leaf.
1939 (sparc_frame_pointer_required): Likewise.
1941 2011-05-21 Nick Clifton <nickc@redhat.com>
1944 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1946 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1948 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1949 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1951 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1953 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1954 * optc-gen.awk: Move common code to opt-read.awk.
1955 * opth-gen.awk: Likewise.
1956 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1958 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1960 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1962 2011-05-20 Tom de Vries <tom@codesourcery.com>
1965 * tree-ssa-loop-ivopts.c: Include expmed.h.
1966 (get_shiftadd_cost): New function.
1967 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1969 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1972 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1973 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1975 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1977 * Makefile.in: Update comment referring to $(OBJS-common).
1979 2011-05-20 Ian Lance Taylor <iant@google.com>
1981 * godump.c (go_output_typedef): Put enum constants in the macro
1982 hash table to avoid duplicate Go const definitions.
1984 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1986 * Makefile.in (LIBDEPS): Add libcommon.a.
1988 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1989 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1990 pretty-print.o and version.o.
1991 (OBJS-libcommon): New.
1992 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1993 (BACKEND): Add libcommon.a.
1994 (MOSTLYCLEANFILES): Likewise.
1996 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1997 (cpp$(exeext)): Likewise.
1998 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1999 pretty-print.o and input.o.
2000 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2001 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2003 (mips-tfile): Don't explicitly use version.o.
2004 (mips-tdump): Likewise.
2005 (gcov.o): Depend on $(DIAGNOSTIC_H).
2006 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2007 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2008 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2009 * gcov-dump.c: Include intl.h and diagnostic.h.
2010 (main): Initialize diagnostics.
2011 * gcov.c: Include diagnostic.h.
2013 (main): Initialize diagnostics.
2014 * lto-wrapper.c: Include diagnostic.h.
2015 (main): Initialize diagnostics.
2017 2011-05-20 Michael Matz <matz@suse.de>
2019 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2021 2011-05-20 Michael Matz <matz@suse.de>
2022 Richard Guenther <rguenther@suse.de>
2024 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2025 use lto_streamer_cache_append directly instead of returning a VEC.
2026 (preload_common_node): Remove.
2027 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2029 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2031 2011-05-20 Richard Guenther <rguenther@suse.de>
2033 PR tree-optimization/49079
2034 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2035 MEM_REFs correctly for the trailing array access detection.
2036 Special case constants the same way as decls for overall size
2039 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2041 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2044 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2046 PR tree-optimization/49073
2047 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2048 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2049 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2051 2011-05-20 Richard Guenther <rguenther@suse.de>
2054 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2055 of pointer types the same way the middle-end does.
2057 2011-05-20 Richard Guenther <rguenther@suse.de>
2059 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2060 or pointer-to chains. Delay all fixup to uniquify_nodes.
2062 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2064 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2065 (fma4_fmaddsub): Likewise
2067 2011-05-19 Jan Hubicka <jh@suse.cz>
2069 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2070 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2071 (type_pair_cache): New static var.
2072 (lookup_type_pair): Use fixed sized custom hash; make inline.
2073 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2074 calls of lookup_type_pair.
2075 (print_gimple_types_stats): Remove cache stats.
2076 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2079 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2081 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2082 when TARGET_RDRND is active.
2083 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2084 Generate dummy SImode target register when target is NULL.
2086 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2088 * config/arm/arm-fpus.def: New.
2089 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2091 * config/arm/arm-tables.opt: Regenerate.
2092 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2093 (arm_option_override): Don't decode FPU name to string here.
2094 * config/arm/arm.opt (mfpu=): Use Enum.
2095 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2096 Update dependencies.
2098 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2100 * collect2.c: Include diagnostic.h.
2101 (fatal_perror, fatal, error, fancy_abort): Remove.
2102 (main): Set progname. Call xmalloc_set_program_name and
2103 diagnostic_initialize.
2104 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2105 scan_libraries, resolve_lib_name): Call fatal_error instead of
2106 fatal and fatal_perror.
2107 * collect2.h (error, fatal, fatal_perror): Don't declare.
2108 * tlink.c: Include diagnostic-core.h.
2109 (recompile_files): Call fatal_error instead of fatal_perror.
2110 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2111 pretty-print.o and input.o.
2112 (collect2.o, tlink.o): Update dependencies.
2114 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2116 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2118 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2121 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2122 COMDAT group syntax, both SPARC and x86 variants.
2123 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2124 * configure: Regenerate.
2125 * config/sol2.h (TARGET_SOLARIS): Define.
2126 (PUSHSECTION_FORMAT): Remove.
2127 (SECTION_NAME_FORMAT): Define.
2128 * config/sol2.c: Include hashtab.h.
2129 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2130 expansion, using SECTION_NAME_FORMAT.
2131 (solaris_comdat_htab): New variable.
2132 (struct comdat_entry): Define.
2133 (comdat_hash): New function.
2134 (comdat_eq): New function.
2135 (solaris_elf_asm_comdat_section): New function.
2136 (solaris_define_comdat_signature): New function.
2137 (solaris_code_end): New function.
2138 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2139 (solaris_code_end): Declare.
2140 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2141 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2143 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2144 Remove ATTRIBUTE_UNUSED.
2145 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2146 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2147 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2148 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2149 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2150 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2151 (PUSHSECTION_FORMAT): Remove.
2152 (SECTION_NAME_FORMAT): Redefine.
2154 2011-05-19 Kai Tietz <ktietz@redhat.com>
2156 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2157 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2158 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2160 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2161 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2163 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2165 2011-05-19 Richard Guenther <rguenther@suse.de>
2168 * tree-object-size.c (addr_object_size): If the pointed-to
2169 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2171 2011-05-19 Richard Guenther <rguenther@suse.de>
2173 * gimple.c (gimple_types_compatible_p_1): Compare names of
2174 the types themselves.
2175 (iterative_hash_gimple_type): And hash them that way.
2176 (gimple_register_type_1): If we register a main variant properly
2177 initialize the leader to ourselves.
2179 2011-05-19 Tom de Vries <tom@codesourcery.com>
2182 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2183 get_loop_invariant_expr_id.
2184 (get_loop_invariant_expr_id): Use get_expr_id.
2185 (parm_decl_cost): New function.
2186 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2187 Improve bound cost estimation. Use different inv_expr_id for elim and
2190 2011-05-19 Tom de Vries <tom@codesourcery.com>
2193 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2194 cost_base.cost == 0.
2196 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2199 * config/i386/sse.md
2200 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2203 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2205 PR tree-optimization/49039
2206 * tree-vrp.c (extract_range_from_binary_expr): For
2207 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2208 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2210 2011-05-18 Tom de Vries <tom@codesourcery.com>
2213 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2215 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2217 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2218 (*tls_global_dynamic_64): Ditto.
2219 (*tls_local_dynamic_base_32_gnu): Ditto.
2220 (*tls_local_dynamic_base_64): Ditto.
2221 (tls_initial_exec_64_sun): Ditto.
2223 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2225 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2226 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2228 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2229 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2230 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2231 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2232 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2233 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2234 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2236 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2238 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2239 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2240 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2241 target_thread_pointer, arm_structure_size_boundary, struct
2242 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2243 struct abi_name, arm_all_abis): Remove.
2244 (arm_option_override) Don't process most enumerated option values here.
2245 Don't process target_fpe_name here. Work with integer not string for
2246 structure size boundary; use separate diagnostics for each case.
2247 * config/arm/arm.h (enum float_abi_type, enum
2248 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2250 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2251 arm_structure_size_boundary): Remove.
2252 * config/arm/arm.opt (mabi=): Use Enum and Init.
2253 (arm_abi_type): New Enum and EnumValue entries.
2254 (mfloat-abi=): Use Enum and Init.
2255 (float_abi_type): New Enum and EnumValue entries.
2256 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2257 (mfp16-format=): Use Enum and Init.
2258 (arm_fp16_format_type): New Enum and EnumValue entries.
2259 (mstructure-size-boundary=): Use UInteger and Init.
2260 (mtp=): Use Enum and Init.
2261 (arm_tp_type): New Enum and EnumValue entries.
2263 2011-05-18 Richard Guenther <rguenther@suse.de>
2265 PR tree-optimization/49018
2266 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2267 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2268 gimple_has_side_effects.
2270 2011-05-18 Richard Guenther <rguenther@suse.de>
2272 * gimple.c (gimple_register_type_1): New function, split out from ...
2273 (gimple_register_type): ... here. Avoid infinite recursion.
2275 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2277 PR tree-optimization/41881
2278 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2279 reduction_chains along with a macro for its access.
2280 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2281 (destroy_loop_vec_info): Free reduction chains.
2282 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2283 (vect_is_slp_reduction): New function.
2284 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2285 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2286 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2287 definition types for reduction chains.
2288 (vect_supported_load_permutation_p): Don't allow permutations for
2290 (vect_analyze_slp_instance): Support reduction chains.
2291 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2292 (vect_get_constant_vectors): Handle reduction chains.
2293 (vect_schedule_slp_instance): Mark the first statement of the
2294 reduction chain as reduction.
2296 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2298 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2299 names for group elements access.
2300 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2301 reduction chains as well. Remove data reference and interleaving
2302 related words from the fields names.
2303 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2305 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2306 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2307 vect_update_interleaving_chain, vect_same_range_drs,
2308 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2309 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2310 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2311 vect_analyze_group_access, vect_analyze_data_ref_access,
2312 vect_create_data_ref_ptr, vect_transform_strided_load,
2313 vect_record_strided_load_vectors): Likewise.
2314 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2315 vect_model_load_cost, vectorizable_store, vectorizable_load,
2316 vect_remove_stores, new_stmt_vec_info): Likewise.
2317 * tree-vect-slp.c (vect_build_slp_tree,
2318 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2320 2011-05-18 Richard Guenther <rguenther@suse.de>
2323 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2324 operand verification.
2325 (verify_gimple_assign_binary): Likewise.
2326 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2327 to non-1-precision BOOLEAN_TYPEs.
2329 2011-05-18 Tom de Vries <tom@codesourcery.com>
2332 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2334 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2336 PR tree-optimization/49000
2337 * tree-ssa.c (execute_update_addresses_taken): Call
2338 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2339 be rewritten and decl has been marked for renaming, reset
2342 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2344 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2345 enum_opts_set when testing if attributes have set -mfpmath=.
2347 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2349 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2351 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2353 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2355 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2356 id.transform_lang_insert_block with NULL.
2358 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2360 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2361 (output_fp_compare): Change args 3 and 4 to bool.
2362 (ix86_expand_call): Change arg 6 to bool.
2363 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2364 (ix86_attr_length_vex_default): Change arg 3 to bool.
2365 * config/i386/i386.md: Update all uses.
2366 * config/i386/i386.c: Ditto.
2367 (ix86_flags_dependent): Change return type to bool.
2369 2011-05-17 Richard Guenther <rguenther@suse.de>
2371 * gimple.c (type_hash_pair_compare): Fix comparison.
2373 2011-05-17 Richard Guenther <rguenther@suse.de>
2375 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2376 case some more, fix final hash value of the non-singleton case.
2378 2011-05-17 Richard Guenther <rguenther@suse.de>
2382 2011-05-16 Richard Guenther <rguenther@suse.de>
2384 * gimple.c (gimple_types_compatible_p_1): Use names of the
2385 type itself, not its main variant.
2386 (iterative_hash_gimple_type): Likewise.
2388 2011-05-17 Richard Guenther <rguenther@suse.de>
2390 * gimple.c (gimple_register_canonical_type): Use the main-variant
2391 leader for computing the canonical type.
2393 2011-05-17 Nick Clifton <nickc@redhat.com>
2395 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2398 * config/rx/rx.md: Add peephole to remove redundant extensions
2400 (bitset_in_memory): Use rx_restricted_mem_operand.
2401 (bitinvert_in_memory): Likewise.
2402 (bitclr_in_memory): Likewise.
2404 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2405 Nick Clifton <nickc@redhat.com>
2407 * config/rx/rx.md: Add peepholes to match a register move followed
2408 by a comparison of the moved register. Replace these with an
2409 addition of zero that does both actions in one instruction.
2411 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2414 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2415 predicate to allow CONST_INT.
2416 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2418 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2420 * opts-common.c (opt_enum_arg_to_value): New.
2421 * opts.h (opt_enum_arg_to_value): Declare.
2422 * config/i386/i386.opt (fpmath): Remove.
2423 (mfpmath=): Use Enum, Init and Save.
2424 (fpmath_unit): New Enum and EnumValue entries.
2425 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2426 name for function fpmath state.
2427 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2428 * config/i386/i386.c: Include diagnostic.h.
2429 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2430 (ix86_target_string): Take enum fpmath_unit value instead of string.
2431 (ix86_debug_options): Update call to ix86_target_string.
2432 (ix86_option_override_internal): Don't process fpmath strings here.
2433 (x86_function_specific_save, ix86_function_specific_restore):
2434 Don't handle fpmath state specially.
2435 (ix86_function_specific_print): Pass fpmath state to
2436 ix86_target_string instead of printing in this function.
2437 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2438 Handle enum attributes.
2439 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2440 (ix86_valid_target_attribute_tree): Update option_strings
2441 handling. Handle fpmath as enum option.
2442 (ix86_can_inline_p): Update field names for function fpmath state.
2443 (ix86_expand_builtin): Update call to ix86_target_string.
2444 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2445 (ix86_fpmath): Remove.
2446 * config/i386/t-i386 (i386.o): Update dependencies.
2448 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2450 PR preprocessor/48677
2451 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2452 from decoded_options[0], not from itself.
2454 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2456 * config/i386/constraints.md (z): New constraint.
2457 * config/i386/i386.c (c): New mode attribute.
2458 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2459 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2460 constraint for operand 0.
2461 (*call_vzeroupper): Ditto.
2462 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2463 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2464 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2465 Use "lzm" constraint for operand 0.
2466 (*call_pop_vzeroupper): Ditto.
2467 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2468 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2469 constraint for operand 0.
2470 (*sibcall_vzeroupper): Ditto.
2471 (*sibcall_rex64_ms_sysv): Ditto.
2472 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2473 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2474 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2475 (*sibcall_pop_vzeroupper): Ditto.
2476 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2477 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2478 mode iterator. Use "<c>zm" constraint for operand 1.
2479 (*call_value_vzeroupper): Ditto.
2480 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2482 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2483 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2484 *call_value_pop_1. Use "lzm" constraint for operand 1.
2485 (*call_value_pop_vzeroupper): Ditto.
2486 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2487 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2488 mode iterator. Use "Uz" constraint for operand 1.
2489 (*sibcall_value_vzeroupper): Ditto.
2490 (*sibcall_value_rex64_ms_sysv): Ditto.
2491 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2492 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2493 constraint for operand 1.
2494 (*sibcall_value_pop_vzeroupper): Ditto.
2495 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2496 and "z" constraint for operand 2.
2497 (*tls_global_dynamic_32_gnu): Ditto.
2498 (*tls_local_dynamic_base_32_gnu): Ditto.
2499 (*tls_local_dynamic_base_64): Ditto.
2500 (*tls_local_dynamic_32_once): Ditto.
2501 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2503 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2505 2011-05-16 Richard Guenther <rguenther@suse.de>
2507 * gimple.c (gimple_types_compatible_p_1): Use names of the
2508 type itself, not its main variant.
2509 (iterative_hash_gimple_type): Likewise.
2511 2011-05-16 Richard Guenther <rguenther@suse.de>
2513 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2514 always visit pointer target and function result and argument types.
2516 2011-05-16 Jason Merrill <jason@redhat.com>
2519 * tree-inline.c (copy_statement_list): Put back recursion.
2521 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2525 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2526 * config/avr/avr.md ("*ior<mode>qi.byte0",
2527 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2529 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2532 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2533 register is needed for a function argument.
2535 2011-05-16 Richard Guenther <rguenther@suse.de>
2537 * gimple.c (struct type_hash_pair): New type.
2538 (type_hash_pair_compare): New function.
2539 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2541 2011-05-16 Revital Eres <revital.eres@linaro.org>
2543 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2545 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2547 * config/i386/i386.md (floating point move splitters): Fix
2548 usage of standard_80387_constant_p.
2549 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2551 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2553 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2555 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2557 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2558 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2559 (tree_ssa_lim_finalize): Likewise.
2561 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2563 * config/i386/constraint.md (Yd, Yx): New register constraints.
2564 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2565 Yd conditional register constraint.
2566 (*movtf_internal): Use standard_sse_constant_opcode.
2567 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2568 Yx conditional register constraint.
2569 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2570 Yd conditional register constraint. Use standard_sse_constant_p to
2571 check for valid SSE constants and call standard_sse_constant_opcode to
2573 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2574 constants and call standard_sse_constant_opcode to output SSE insn.
2575 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2576 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2577 optimize_size is set.
2578 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2580 2011-05-14 Tobias Burnus <burnus@net-b.de>
2582 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2584 2011-05-13 Martin Jambor <mjambor@suse.cz>
2586 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2587 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2588 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2589 (evaluate_conditions_for_ipcp_clone): Removed.
2590 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2591 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2592 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2594 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2596 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2597 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2598 lieu of MAY_HAVE_DEBUG_STMTS.
2599 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2600 debug statements if !MAY_HAVE_DEBUG_STMTS.
2602 2011-05-13 Martin Thuresson <martint@google.com>
2604 PR gcov-profile/47793
2605 * libgcov.c (gcov_exit): Support relative profile paths.
2606 * doc/invoke.texi (-fprofile-dir): Update for above change.
2608 2011-05-13 Richard Guenther <rguenther@suse.de>
2610 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2611 type-pair caching, do not compare hashes.
2613 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2616 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2617 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2619 2011-05-13 Kai Tietz <ktietz@redhat.com>
2621 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2622 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2623 compatible type for TRUTH_NOT_EXPR.
2625 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2627 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2628 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2629 can_create_pseudo_p ().
2631 2011-05-13 Richard Guenther <rguenther@suse.de>
2634 * gimple.c (iterative_hash_gimple_type): Revert change in
2635 pointer target and function result and argument hashing.
2637 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2639 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2640 (*movxf_internal_nointeger): Ditto.
2641 (*movdf_internal_rex64): Ditto.
2642 (*movdf_internal): Ditto.
2643 (*movdf_internal_nointeger): Ditto.
2644 (*movsf_internal): Ditto.
2645 (sincos splitters): Use can_create_pseudo ().
2647 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2649 * config/i386/i386-opts.h: New.
2650 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2651 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2652 ix86_section_threshold): Remove.
2653 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2654 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2656 (ix86_option_override_internal): Don't decode strings for options
2657 other than -march=, -mtune= and -mfpmath=. Don't allow for
2658 __attribute__ uses in remaining diagnostics for options with
2659 string arguments. Don't check for integer arguments being negative.
2660 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2661 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2662 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2663 ix86_branch_cost, ix86_section_threshold): Remove.
2664 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2666 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2668 (masm=): Use Enum and Init.
2669 (asm_dialect): New Enum and EnumValue entries.
2670 (mbranch-cost=): Use UInteger.
2671 (mlarge-data-threshold=): Use UInteger and Init.
2672 (mcmodel=): Use Enum and Init.
2673 (cmodel): New Enum and EnumValue entries.
2674 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2675 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2676 mregparm=): Use UInteger.
2677 (mstringop-strategy=): Use Enum and Init.
2678 (stringop_alg): New Enum and EnumValue entries.
2679 (mtls-dialect=): Use Enum and Init.
2680 (tls_dialect): New Enum and EnumValue entries.
2681 (mabi=): Use Enum and Init.
2682 (calling_abi): New Enum and EnumValue entries.
2683 (mveclibabi=): Use Enum and Init.
2684 (ix86_veclibabi): New Enum and EnumValue entries.
2686 2011-05-13 Nick Clifton <nickc@redhat.com>
2688 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2689 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2691 2011-05-13 Kai Tietz <ktietz@redhat.com>
2694 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2695 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2696 (gimple_boolify): Check for cast for boolean_type_node instead for
2699 2011-05-13 Richard Guenther <rguenther@suse.de>
2701 PR tree-optimization/48172
2702 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2703 multiplying by number of iterations for equal step.
2704 (vect_create_cond_for_alias_checks): Likewise.
2706 2011-05-13 Andreas Schwab <schwab@redhat.com>
2708 * configure.ac: Use AS_HELP_STRING throughout.
2709 * configure: Regenerate.
2711 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2713 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2714 (ix86_emit_restore_regs_using_mov): Likewise.
2715 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2717 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2719 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2720 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2721 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2722 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2723 RTX_OK_FOR_OLO10_P): ...here.
2724 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2727 2011-05-12 Kai Tietz <ktietz@redhat.com>
2729 * gimplify.c (gimple_boolify): Re-boolify expression
2730 arguments even if expression type is of kind BOOLEAN_TYPE.
2731 (gimplify_boolean_expr): Removed.
2732 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2733 and XOR. Additional take care that we keep expression's type.
2734 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2735 of TRUTH_AND|OR|XOR_EXPR.
2737 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2739 PR tree-optimization/48975
2740 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2741 on all bbs here and free and clear ifc_bbs at the end.
2743 2011-05-12 Richard Guenther <rguenther@suse.de>
2745 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2746 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2747 until after simple checks.
2748 (gimple_types_compatible_p): Likewise.
2749 (iterative_hash_gimple_type): Always hash pointer targets
2750 and function return and argument types.
2751 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2752 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2753 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2754 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2755 completely in the simple compare section.
2756 (gimple_register_canonical_type): Query the cache again after
2759 2011-05-12 Richard Guenther <rguenther@suse.de>
2761 PR tree-optimization/48172
2762 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2763 the number of iterations from the segment size calculation.
2764 (vect_create_cond_for_alias_checks): Adjust.
2766 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2769 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2770 if validate_subreg fails.
2772 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2774 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2775 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2778 2011-05-12 DJ Delorie <dj@redhat.com>
2780 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2781 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2782 created builtin into rx_builtins array.
2783 (rx_builtin_decl): New function.
2784 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2786 2011-05-12 DJ Delorie <dj@redhat.com>
2787 Nick Clifton <nickc@redhat.com>
2789 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2790 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2791 (rx_is_legitimate_address): Add pre-decrement and post-increment
2792 addressing in HImode and QImode. Fix test for out of range
2794 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2795 (rx_align_for_label): Test label before extracting its usage count.
2796 (rx_adjust_insn_lengths): Fix selection of insn codes.
2797 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2799 2011-05-11 Jason Merrill <jason@redhat.com>
2801 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2803 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2805 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2806 reindent the subsequent block.
2808 2011-05-11 Satoru Takabayashi <satorux@google.com>
2809 Paul Pluzhnikov <ppluzhnikov@google.com>
2811 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2812 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2813 * config.in: Add LINKER_HASH_STYLE.
2814 * configure.ac: Add --with-linker-hash-style.
2815 * configure: Regenerate.
2817 2011-05-11 Richard Guenther <rguenther@suse.de>
2820 * gimple.c (iterative_hash_canonical_type): Fix typo.
2822 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2824 * config/i386/i386.c (legitimize_tls_address)
2825 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2826 expanders directly for TARGET_GNU2_TLS. Determine pic and
2827 __tls_get_addr symbol reference here. Update call to
2828 gen_tls_global_dynamic_{32,64} for added arguments.
2829 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2830 expanders directly for TARGET_GNU2_TLS. Determine
2831 __tls_get_addr symbol reference here. Update call to
2832 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2833 unique UNSPEC REG_EQUIV to libcall block.
2834 (ix86_tls_get_addr): Declare static.
2835 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2836 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2837 Do not determine pic and __tls_get_addr symbol reference here. Do not
2838 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2839 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2840 (tls_global_dynamic_64): Add operand 2. Do not determine
2841 __tls_get_addr symbol reference here. Do not call
2842 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2843 (tls_local_dynamic_base64): Ditto for operand 1.
2845 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2847 * function.c (expand_function_start): Initialize stack_check_probe_note
2848 only if the generic stack checking mechanism is used.
2850 2011-05-11 Richard Guenther <rguenther@suse.de>
2852 PR tree-optimization/15256
2853 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2854 (A & B) | C, combine (A op CST1) op CST2.
2855 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2856 visit assigns that have uses.
2858 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2860 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2861 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2862 (unpack_ts_type_common_value_fields): ...this. Update comment.
2863 (unpack_value_fields): Adjust for renaming.
2864 (lto_input_ts_type_tree_pointers): Split into...
2865 (lto_input_ts_type_common_tree_pointer): ...this and...
2866 (lto_input_ts_type_non_common_tree_pointers): ...this.
2867 (lto_input_tree_pointers): Adjust for above split.
2868 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2869 (pack_ts_type_common_value_fields): ...this. Update comment.
2870 (lto_output_ts_type_tree_pointers): Split into...
2871 (lto_output_ts_type_common_tree_pointers): ...this and...
2872 (lto_output_ts_type_non_common_tree_pointers): ...this.
2873 (lto_output_tree_pointers): Adjust for above split.
2874 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2875 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2876 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2877 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2879 (struct tree_type): Split into...
2880 (struct tree_type_common: ...this and...
2881 (struct tree_type_with_lang_specific): ...this and...
2882 (struct tree_type_non_common): ...this. Adjust accessor macros
2884 (TYPE_VALUES_RAW): Define.
2885 (union tree_node): Update for above changes.
2886 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2888 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2889 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2890 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2891 * treestructu.def (TS_TYPE): Remove.
2892 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2895 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2898 * tree-ssa.c (reset_debug_uses): New function.
2899 * tree-flow.h (reset_debug_uses): New prototype.
2900 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2901 * tree-loop-distribution.c (generate_loops_for_partition): Call
2902 reset_debug_uses on the stmts that will be removed. Keep around
2903 all debug stmts, don't count them as bits in partition bitmap.
2904 (generate_builtin): Don't count debug stmts or labels as bits in
2907 2011-05-11 Richard Guenther <rguenther@suse.de>
2909 * gimple.c (gimple_type_hash_1): Merge with ...
2910 (gimple_type_hash): ... this.
2911 (gtc_visit): Remove mode parameter and simplify accordingly.
2912 (gimple_types_compatible_p_1): Likewise.
2913 (gimple_types_compatible_p): Likewise.
2914 (iterative_hash_gimple_type): Likewise.
2916 (gimple_type_eq): Adjust.
2918 2011-05-11 Revital Eres <revital.eres@linaro.org>
2920 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2921 enters the branch create an anti edge in the opposite direction
2922 to prevent the creation of reg-moves.
2923 * modulo-sched.c: Adjust comment to reflect the fact we are
2924 scheduling closing branch.
2925 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2926 (stage_count): New field in struct partial_schedule.
2927 (calculate_stage_count): New function.
2928 (normalize_sched_times): Rename to reset_sched_times and handle
2929 incrementing the sched time of the nodes by a constant value
2930 passed as parameter.
2931 (duplicate_insns_of_cycles): Skip closing branch.
2932 (sms_schedule_by_order): Schedule closing branch.
2933 (ps_insn_find_column): Handle closing branch.
2934 (sms_schedule): Call reset_sched_times and adjust the code to
2935 support scheduling of the closing branch.
2936 (ps_insert_empty_row): Update calls to normalize_sched_times
2937 and rotate_partial_schedule functions.
2939 2011-05-11 Richard Guenther <rguenther@suse.de>
2942 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2944 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2946 * opts.c (finish_options): Move warning settings from process_options.
2947 * toplev.c (process_options): Move warning settings to finish_options.
2949 2011-05-11 Richard Guenther <rguenther@suse.de>
2951 PR tree-optimization/18041
2952 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2953 (simplify_bitwise_binary): ... this. Handle operand conversions
2954 by applying them to the result instead.
2955 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2957 2011-05-11 Richard Guenther <rguenther@suse.de>
2959 * gimple.c (gimple_canonical_types_compatible_p): Split out
2960 from gimple_types_compatible_p and friends. Do not recurse
2961 to pointed-to types.
2962 (gimple_canonical_type_eq): Use it.
2963 (iterative_hash_canonical_type): Split out from
2964 iterative_hash_gimple_type and friends. Do not recurse
2965 to pointed-to types.
2966 (gimple_canonical_type_hash): Use it, allocate the hash here.
2968 2011-05-11 Revital Eres <revital.eres@linaro.org>
2970 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2973 2011-05-11 Revital Eres <revital.eres@linaro.org>
2975 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2976 instead of PREV_INSN.
2978 2011-05-11 Revital Eres <revital.eres@linaro.org>
2980 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2981 * loop-doloop.c (doloop_condition_get): Likewise.
2982 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2984 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2986 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2988 * tree.def (CASE_LABEL_EXPR): Add an operand.
2989 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2991 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2993 * c-decl.c (c_override_global_bindings_to_false): Remove.
2994 (global_bindings_p): Don't check
2995 c_override_global_bindings_to_false.
2996 * c-tree.h (c_override_global_bindings_to_false): Remove.
2997 * c-typeck.c (composite_type): Don't set
2998 c_override_global_bindings_to_false.
3000 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3002 PR target/48857, 48495
3003 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3005 (VSX_MOVE_MODE): Ditto.
3006 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3007 VSX vector types. Add V2DImode.
3008 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3009 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3010 (MODES_TIEABLE_P): Ditto.
3012 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3013 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3015 (init_cumulative_args): Ditto.
3016 (rs6000_function_arg_boundary): Ditto.
3017 (rs6000_function_arg_advance_1): Ditto.
3018 (rs6000_function_arg): Ditto.
3019 (rs6000_function_ok_for_sibcall): Ditto.
3020 (emit_frame_save): Ditto.
3021 (rs6000_function_value): Ditto.
3022 (rs6000_libcall_value): Ditto.
3024 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3026 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3027 i386/darwin-lib.h to $libgcc_tm_file.
3028 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3030 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3032 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3034 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3036 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3037 * config/rs6000/rs6000-tables.opt: New file (generated).
3038 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3039 rs6000/rs6000-tables.opt to extra_options.
3040 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3041 * config/rs6000/rs6000.c (rs6000_select): Remove.
3042 (processor_target_table): Move contents to rs6000-cpus.def.
3043 (darwin_rs6000_override_options): Check
3044 global_options_set.x_rs6000_cpu_index instead of
3045 rs6000_select[1].string.
3046 (rs6000_option_override_internal): Likewise.
3047 (rs6000_handle_option): Don't assert that global structures are in
3048 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3049 (rs6000_default_cpu): New variable.
3050 (rs6000_file_start): Set it instead of local default_cpu. Check
3051 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3052 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3053 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3054 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3055 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3056 rs6000_select): Remove.
3057 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3059 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3060 * config/rs6000/t-rs6000
3061 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3062 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3063 global_options_set.x_rs6000_cpu_index instead of
3064 rs6000_select[1].string.
3065 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3066 global_options_set.x_rs6000_cpu_index instead of
3067 rs6000_select[1].string.
3069 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3071 * config.gcc (libgcc_tm_file): Define instead of including files
3072 from ../../libgcc/config/ in tm_file.
3073 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3074 * configure: Regenerate.
3075 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3076 libgcc_tm.h, cs-libgcc_tm.h): New.
3077 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3078 (clean): Remove libgcc_tm.h.
3079 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3080 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3081 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3083 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3086 * config/avr/avr.c (avr_ret_register): Return unsigned int
3088 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3089 it to avr_libcall_value.
3090 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3092 (avr_expand_binop_builtin): Ditto.
3093 (avr_expand_unop_builtin): Ditto.
3095 2011-05-10 DJ Delorie <dj@redhat.com>
3097 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3098 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3099 * config/rx/rx.c (rx_align_for_label): Add label and
3100 uses_threshold parameters. Do not align when the label is not
3102 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3104 2011-05-10 Richard Guenther <rguenther@suse.de>
3106 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3107 a series of conversions and apply foldings similar to what
3109 (tree_ssa_forward_propagate_single_use_vars): Call it.
3111 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3113 PR tree-optimization/48611
3114 PR tree-optimization/48794
3115 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3116 referenced from RESX or EH_DISPATCH arguments.
3119 * dfp.c (decimal_to_decnumber): Handle conversion from
3120 dconst{1,2,m1,half}.
3122 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3124 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3125 for !flag_prefer_avx128.
3126 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3128 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3130 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3131 (fold_ternary_loc): Use expr_location_or.
3133 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3136 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3137 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3138 Pmode and mem_mode is not VOIDmode.
3140 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3142 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3143 TYPE_QUAL_RESTRICT): Convert to enum.
3145 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3147 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3148 (const_pow2_1_to_8_operand): Ditto.
3149 (const_pow2_1_to_128_operand): Ditto.
3150 (const_pow2_1_to_32768_operand): Ditto.
3151 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3152 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3153 in insn constraint to check integer value of operand 3.
3154 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3156 (PINSR_MODE): New mode iterator.
3157 (sse2p4_1): New mode attribute.
3158 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3159 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3160 iterator. Use const_int_operand instead of
3161 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3162 exact_log2 in insn constraint to check integer value of operand 3.
3164 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3166 * config/i386/sse.md (blendbits): Remove mode attribute.
3167 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3168 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3169 Check integer value of operand 3 in insn constraint.
3171 2011-05-09 Richard Guenther <rguenther@suse.de>
3173 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3175 (lto_symtab_merge): Likewise. Do not register types here.
3176 (lto_symtab_merge_decls_2): Likewise.
3177 (lto_symtab_merge_decls_1): Likewise.
3178 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3179 * gimple.c (enum gtc_mode): Declare.
3180 (gimple_types_compatible_p): Make static.
3182 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3184 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3185 temporary register to match Pmode.
3187 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3189 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3190 and *vec_concatv4si_1_avx.
3192 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3194 PR rtl-optimization/48927
3195 * ira-conflicts.c (commutative_constraint_p): Use
3196 recog_data.alternative_enabled_p to disable alternatives where
3197 "enabled" attribute is false.
3198 (get_dup_num): Ditto.
3199 * ira-lives.c (single_reg_class): Ditto.
3200 (ira_implicitly_set_insn_hard_regs): Ditto.
3202 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3204 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3205 (dataflow_set_preserve_mem_locs): Likewise.
3207 2011-05-09 Philipp Thomas <pth@suse.de>
3209 * config/mep/mep.c (mep_validate_vliw): Syntax description
3210 should not be translated.
3212 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3214 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3215 * config/mips/mips-tables.opt: New file (generated).
3216 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3217 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3218 MIPS_ARCH_OPTION_NATIVE): Define.
3219 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3221 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3222 mips_parse_cpu): Remove.
3223 (mips_cpu_info_from_opt, mips_default_arch): New.
3224 (mips_handle_option): Don't assert that global structures are in
3225 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3226 (mips_option_override): Use new variables and functions to set
3227 state of these options. Use strcmp to check for individual CPU names.
3228 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3230 * config/mips/mips.opt (march=): Use ToLower and Enum.
3231 (mips): Use ToLower, Enum and Var.
3232 (mtune=): Use ToLower and Enum.
3233 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3235 2011-05-08 Jan Hubicka <jh@suse.cz>
3237 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3238 Arrange type pairs to be UID ordered.
3239 (gimple_lookup_type_leader): Make inline.
3241 2011-05-09 Nick Clifton <nickc@redhat.com>
3244 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3248 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3251 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3253 * combine.c (simplify_comparison): Abstract out parts into...
3254 (simplify_compare_const): ... new function.
3255 (try_combine): Generalize parallel arithmetic/compare combining
3256 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3258 2011-05-08 Jan Hubicka <jh@suse.cz>
3260 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3261 (cgraph_create_virtual_clone): Call hooks once virtual clone
3263 * cgraph.h (cgraph_clone_node): Update prototype.
3264 * ipa-cp.c (ipcp_estimate_growth): Use
3265 estimate_ipcp_clone_size_and_time.
3266 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3267 * lto-cgraph.c (input_node): Update.
3268 * ipa-inline.c (recursive_inlining): Update.
3269 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3270 (evaluate_conditions_for_known_args): Break out from ...
3271 (evaluate_conditions_for_edge): ... here.
3272 (evaluate_conditions_for_ipcp_clone): New function.
3273 (inline_node_duplication_hook): Update clone summary based
3275 (estimate_callee_size_and_time): Rename to ...
3276 (estimate_node_size_and_time): take NODE instead of EDGE;
3277 take POSSIBLE_TRUTHS as argument.
3278 (estimate_callee_size_and_time): Update.
3279 (estimate_ipcp_clone_size_and_time): New function.
3280 (do_estimate_edge_time): Update.
3282 2011-05-08 Richard Guenther <rguenther@suse.de>
3286 * expmed.c (expand_shift_1): Compute adjusted constant shift
3289 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3291 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3293 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3295 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3297 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3299 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3301 2011-05-07 Jan Hubicka <jh@suse.cz>
3303 * ipa-inline-transform.c (inline_call): Account when program size
3305 * ipa-inline.c (relative_time_benefit): New function.
3306 (edge_badness): Reorganize to be power 2 based; fix thinko when
3307 computing badness for negative growth; update comments to match
3308 reality; better dumps.
3310 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3312 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3313 type to bool and adjust comment.
3314 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3315 (fold_mathfn_compare): Remove calls to global_bindings_p.
3316 (fold_inf_compare): Likewise.
3317 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3318 * c-tree.h (global_bindings_p): Adjust prototype.
3319 * c-decl.c (global_bindings_p): Return bool and simplify.
3321 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3323 PR tree-optimization/48837
3324 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3325 when accumulator transformation is performed.
3327 2011-05-06 Jan Hubicka <jh@suse.cz>
3329 * i386.h (ix86_tune_indices): Add
3330 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3331 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3332 * i386.c (initial_ix86_tune_features): Add
3333 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3334 (software_prefetching_beneficial_p): Remove predicate.
3335 (ix86_option_override_internal): Use new macro.
3337 2011-05-06 Jan Hubicka <jh@suse.cz>
3339 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3341 2011-05-06 Jan Hubicka <jh@suse.cz>
3343 * cgraph.c (cgraph_add_thunk): Create real function node instead
3344 of alias node; finalize it and mark needed/reachale; arrange visibility
3345 to be right and add it into the corresponding same comdat group list.
3346 (dump_cgraph_node): Dump thunks.
3347 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3348 cgraph_function_with_gimple_body_p,
3349 cgraph_first_function_with_gimple_body,
3350 cgraph_next_function_with_gimple_body): New functions.
3351 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3353 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3354 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3355 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3356 devirtualization when optimizing.
3357 (verify_cgraph_node): Verify thunks.
3358 (cgraph_analyze_function): Analyze thunks.
3359 (cgraph_mark_functions_to_output): Output thunks only in combination
3360 with function they are assigned to.
3361 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3362 alias into normal node.
3363 (assemble_thunks): New functoin.
3364 (cgraph_expand_function): Use it.
3365 * lto-cgraph.c (lto_output_node): Stream thunks.
3366 (input_overwrite_node): Stream in thunks.
3367 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3368 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3369 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3370 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3371 (inline_analyze_function): Do not care about thunk jump functions.
3372 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3373 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3374 cgraph_function_with_gimple_body_p.
3375 * passes.c (do_per_function_toporder): Use
3376 cgraph_function_with_gimple_body_p.
3377 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3378 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3379 (function_called_by_processed_nodes_p): Likewise.
3381 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3383 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3384 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3386 (mabi=): Replace with separate entries for mabi=altivec,
3387 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3388 mabi=ieeelongdouble and mabi=ibmlongdouble.
3389 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3390 check for -mabi=spe without SPE ABI support here.
3391 (rs6000_handle_option): Replace OPT_mabi_ handling with
3392 OPT_mabi_altivec and OPT_mabi_spe handling.
3394 2011-05-06 Cary Coutant <ccoutant@google.com>
3396 * dwarf2out.c (contains_subprogram_definition): New function.
3397 (should_move_die_to_comdat): Call it.
3399 2011-05-06 Jeff Law <law@redhat.com>
3401 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3402 remove_ctrl_stmt_and_useless_edges.
3403 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3404 (fixup_template_block, thread_single_edge): Likewise.
3405 (mark_threaded_blocks): Use THREAD_TARGET.
3407 2011-05-06 Alan Modra <amodra@gmail.com>
3410 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3411 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3413 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3415 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3416 constraint modifier to "r".
3418 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3420 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3421 fall through for OPT_mcmodel_.
3423 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3425 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3427 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3429 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3432 * config/arm/arm.opt (marm): Document it.
3433 (mthumb): Reject negative variant.
3435 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3438 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3439 Fix typo in "ccvt" variable name.
3441 2011-05-06 Tristan Gingold <gingold@adacore.com>
3444 * config/vms/vms-ar.c (main): Remove cwd variable.
3446 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3449 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3451 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3453 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3454 * gimplify.c (gimplify_switch_expr): Likewise.
3455 * omp-low.c (expand_omp_sections): Likewise.
3456 * tree-eh.c (lower_try_finally_switch): Likewise.
3457 (lower_eh_dispatch): Likewise.
3458 * tree.h (build_case_label): Declare.
3459 * tree.c (build_case_label): Define.
3461 2011-05-05 Jason Merrill <jason@redhat.com>
3464 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3465 (copy_statement_list): Don't recurse.
3466 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3469 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3471 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3472 through from -mfpu= handling.
3473 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3475 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3477 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3480 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3482 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3484 (hppa[12]*-*-hpux11*): Ditto.
3485 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3486 * config/ia64/hpux-unix2003.h: New.
3487 * config/pa/pa-hpux1131.opt: New.
3488 * config/pa/pa-hpux1131.h: New.
3489 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3490 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3491 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3493 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3496 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3497 instead of mode as 3rd argument to recursive call.
3498 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3499 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3501 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3502 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3503 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3504 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3506 2011-05-05 Julian Brown <julian@codesourcery.com>
3508 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3509 parenthesis in D-register case.
3511 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3513 * opt-functions.awk (var_type_struct): Handle Enum options.
3514 * optc-gen.awk: Don't check range of variables of character type.
3515 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3516 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3517 rs6000_sdata_name, rs6000_explicit_options): Remove.
3518 (rs6000_option_override_internal): Check for -malign-power here.
3519 Use global_options_set instead of rs6000_explicit_options.
3520 (rs6000_parse_fpu_option): Remove.
3521 (rs6000_handle_option): Access variables via opts and opts_set
3522 pointers. Use error_at and warning_at. Add fall-through
3523 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3524 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3525 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3526 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3527 here. Don't use rs6000_parse_fpu_option.
3528 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3529 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3530 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3532 (mspe): Use Var and Save.
3533 (mtraceback=): Use Enum and Var.
3534 (rs6000_traceback_type): New Enum and EnumValue entries.
3535 (mfloat-gprs=): Use Enum, Var and Save.
3536 (rs6000_float_gprs): New Enum and EnumValue entries.
3537 (mlong-double-): use Var and Save.
3538 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3539 (malign-): Use Enum and Var.
3540 (rs6000_alignment_flags): New Enum and EnumValue entries.
3542 (fpu_type_t): New Enum and EnumValue entries.
3543 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3544 global_options_set instead of rs6000_explicit_options.
3545 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3546 global_options_set instead of rs6000_explicit_options.
3547 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3548 global_options_set instead of rs6000_explicit_options.
3549 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3550 global_options_set instead of rs6000_explicit_options.
3551 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3552 global_options_set instead of rs6000_explicit_options.
3553 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3554 global_options_set instead of rs6000_explicit_options.
3555 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3557 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3558 global_options_set instead of rs6000_explicit_options.
3559 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3560 (rs6000_cmodel): New Enum and EnumValue entries.
3561 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3562 global_options_set instead of rs6000_explicit_options.
3563 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3564 (mtls-size=): Use Enum and Var.
3565 (rs6000_tls_size): New Enum and EnumValue entries.
3567 2011-05-05 Michael Matz <matz@suse.de>
3569 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3570 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3571 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3572 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3573 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3574 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3575 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3576 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3577 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3578 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3579 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3580 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3581 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3582 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3583 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3584 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3586 2011-05-05 Richard Guenther <rguenther@suse.de>
3588 * expmed.c (expand_variable_shift): Rename to ...
3589 (expand_shift_1): ... this. Take an expanded shift amount.
3590 For rotates recurse directly not building trees for the shift amount.
3591 (expand_variable_shift): Wrap around expand_shift_1.
3592 (expand_shift): Adjust.
3594 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3596 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3598 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3600 * tree.h (get_pending_sizes): Remove prototype.
3601 (put_pending_size): Likewise.
3602 (put_pending_sizes): Likewise.
3603 * stor-layout.c (pending_sizes): Delete.
3604 (get_pending_sizes): Likewise.
3605 (put_pending_size): Likewise.
3606 (put_pending_sizes): Likewise.
3607 (variable_size): Do not call put_pending_size and tidy up.
3608 * function.h (struct function): Remove dont_save_pending_sizes_p.
3609 * lto-streamer-in.c (input_function): Do not stream it.
3610 * lto-streamer-out.c (output_function): Likewise.
3611 * tree-inline.c (initialize_cfun): Do not copy it.
3612 * c-decl.c (store_parm_decls): Do not set it.
3613 * omp-low.c (create_task_copyfn): Likewise.
3614 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3616 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3618 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3620 (*movdf_internal): Ditto.
3621 (*movdf_internal_nointeger): Ditto.
3622 (*movsf_internal): Ditto.
3624 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3626 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3627 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3628 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3629 (c_variable_size): Remove.
3630 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3631 call put_pending_sizes.
3632 (get_parm_info): Add parameter expr. Use it to set
3633 arg_info->pending_sizes.
3634 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3636 * c-parser.c (c_parser_parms_declarator): Update call to
3637 c_parser_parms_list_declarator.
3638 (c_parser_parms_list_declarator): Take parameter expr. Update
3639 call to push_parm_decl. Update recursive call. Don't call
3640 get_pending_sizes. Update calls to get_parm_info.
3641 (c_parser_objc_method_definition): Update calls to
3642 c_parser_objc_method_decl and objc_start_method_definition.
3643 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3644 (c_parser_objc_method_decl): Add parameter expr. Update call to
3646 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3647 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3648 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3650 2011-05-05 Michael Hope <michael.hope@linaro.org>
3653 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3656 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3658 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3659 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3660 (spu_output_mi_thunk): New function.
3662 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3664 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3665 targetm.asm_out.print_operand.
3666 * config/sol2.c: Include target.h.
3668 2011-05-04 Jan Hubicka <jh@suse.cz>
3670 * ipa-inline.c (reset_edge_caches): New function.
3671 (update_caller_keys): Add check_inlinablity_for; do not
3672 reset edge caches; remove now unnecesary loop.
3673 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3674 (update_all_callee_keys): Likewise.
3675 (inline_small_functions): Sanity check cache; update code
3678 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3680 PR rtl-optimization/47612
3681 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3682 as the last insn of the sequence to be moved.
3684 2011-05-04 Tobias Burnus <burnus@net-b.de>
3687 * doc/invoke.texi (Ofast): Document that it
3688 enables Fortran's -fno-protect-parens.
3690 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3692 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3694 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3696 * stor-layout.c (variable_size): Do not issue errors.
3698 2011-05-04 Richard Guenther <rguenther@suse.de>
3700 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3701 for array-ref indices.
3702 (tree_coverage_counter_addr): Likewise.
3703 (build_fn_info_type): Use size_int for index types.
3704 (build_gcov_info): Likewise.
3706 2011-05-04 Richard Guenther <rguenther@suse.de>
3708 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3710 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3711 for constructor indices.
3712 (push_init_level): Likewise.
3714 2011-05-04 Richard Guenther <rguenther@suse.de>
3716 * explow.c (promote_mode): Move variable declarations before code.
3718 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3720 * tree.h (build_function_type_array): Declare.
3721 (build_varargs_function_type_array): Declare.
3722 (build_function_type_vec, build_varargs_function_type_vec): Define.
3723 * tree.c (build_function_type_array_1): New function.
3724 (build_function_type_array): New function.
3725 (build_varargs_function_type_array): New function.
3727 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3729 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3730 before setting STMT_VINFO_TYPE.
3732 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3734 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3735 instead of spu_pass_by_reference.
3737 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3739 * calls.c (emit_library_call_value_1): Invoke
3740 promote_function_mode hook on libcall arguments.
3741 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3742 argument being NULL.
3743 * targhooks.c (default_promote_function_mode): Lisewise.
3744 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3745 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3747 * doc/tm.texi: Document that TYPE argument might be NULL.
3749 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3751 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3753 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3756 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3758 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3760 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3761 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3763 * mips-tfile.c: ... here.
3764 Don't include coretypes.h, tm.h, filenames.h.
3765 (saber_stop): Remove definition and all calls.
3766 [__SABER__]: Remove.
3767 (__LINE__): Remove default.
3768 (Size_t, Ptrdiff_t): Remove definitions.
3769 Replace by size_t, ptrdiff_t.
3770 [!MIPS_DEBUGGING_INFO]: Remove.
3771 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3772 (progname): Add const.
3774 Replace all uses by static.
3775 (ALIGN_SYMTABLE_OFFSET): Remove default.
3776 * mips-tdump.c: Don't include coretypes.h, tm.h.
3777 Remove !MIPS_IS_STAB guard.
3778 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3779 $(TM_H), filenames.h dependencies.
3780 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3782 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3785 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3786 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3788 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3791 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3792 account and save/restore RETS.
3793 (PROFILE_BEFORE_PROLOGUE): Define.
3794 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3795 the push insn to use predecrement.
3797 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3800 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3802 2011-05-04 Nick Clifton <nickc@redhat.com>
3804 * config/mn10300/mn10300.c: Include cfgloop.h.
3806 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3807 Lcc or a FLcc insn into the instruction stream.
3808 (mn10300_block_contains_call): New function. Returns true if the
3809 given basic block contains a CALL insn.
3810 (mn10300_loop_contains_call_insn): New function. Returns true if
3811 the given loop contains a CALL insn.
3812 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3813 to use the SETLB and Lcc or FLcc insns.
3814 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3815 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3816 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3817 disable the SETLB optimization.
3818 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3819 __SETLB__ or __NO_SETLB__.
3820 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3821 (movsf_internal): Handle MDR register.
3822 (cmpsi): Make visible.
3823 (setlb): New pattern.
3825 (FLcc): New pattern.
3827 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3830 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3831 for reg<->xmm moves.
3832 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3833 (vec_concatv2di_rex64_sse): Ditto.
3834 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3835 (*vec_extractv2di_1_rex64): Ditto.
3838 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3840 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3842 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3844 2011-05-04 Richard Guenther <rguenther@suse.de>
3846 * tree.h (int_const_binop): Remove notrunc argument.
3847 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3848 create integer constants that are properly truncated.
3849 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3850 (const_binop): Remove zero notrunc argument to int_const_binop.
3851 (size_binop_loc): Likewise.
3852 (fold_div_compare): Likewise.
3853 (maybe_canonicalize_comparison_1): Likewise.
3854 (fold_comparison): Likewise.
3855 (fold_binary_loc): Likewise.
3856 (multiple_of_p): Likewise.
3857 * expr.c (store_constructor): Likewise.
3858 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3859 (maybe_fold_stmt_addition): Likewise.
3860 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3861 * stor-layout.c (layout_type): Likewise.
3862 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3863 * tree-sra.c (build_ref_for_offset): Likewise.
3864 (build_user_friendly_ref_for_offset): Likewise.
3865 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3866 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3867 * tree-ssa-loop-niter.c (inverse): Likewise.
3868 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3869 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3870 * tree-switch-conversion.c (check_range): Likewise.
3871 (build_constructors): Likewise.
3872 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3873 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3874 (extract_range_from_assert): Likewise.
3875 (vrp_int_const_binop): Likewise.
3876 (extract_range_from_binary_expr): Likewise.
3877 (extract_range_from_unary_expr): Likewise.
3878 (check_array_ref): Likewise.
3879 (find_case_label_range): Likewise.
3880 (simplify_div_or_mod_using_ranges): Likewise.
3881 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3882 comparing case labels for merging.
3884 2011-05-03 Mark Wielaard <mjw@redhat.com>
3886 * dwarf2out.c (debug_str_hash_forced): Removed.
3887 (gen_label_for_indirect_string): Removed.
3888 (get_debug_string_label): Removed.
3889 (AT_string_form): Generate label directly.
3890 (output_indirect_string): Test indirect_string_node for
3891 DW_FORM_strp instead of checking label and refcount.
3892 (prune_indirect_string): Removed.
3893 (prune_unused_types): Don't check debug_str_hash_forced or
3894 call prune_indirect_string.
3896 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3899 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3901 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3905 * combine.c (try_combine): Skip debug insns at m_split tests.
3907 2011-04-26 Mark Wielaard <mjw@redhat.com>
3910 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3911 when info_section_emitted.
3913 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3915 * config/mips/mips-opts.h: New.
3916 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3918 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3919 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3920 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3922 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3924 (mips_abi, mips_code_readable): Don't declare.
3925 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3926 (mabi=): Use Enum and Var.
3927 (mips_abi): New Enum and EnumValue entries.
3928 (mcode-readable=): Use Enum and Var.
3929 (mips_code_readable_setting): New Enum and EnumValue entries.
3930 (mr10k-cache-barrier=): Use Enum and Var.
3931 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3933 2011-05-03 Jan Hubicka <jh@suse.cz>
3935 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3936 replace hash by pointer map.
3937 (cgraph_node_set_element_def, cgraph_node_set_element,
3938 const_cgraph_node_set_element, varpool_node_set_element_def,
3939 varpool_node_set_element, const_varpool_node_set_element): Remove.
3940 (free_cgraph_node_set, free_varpool_node_set): New function.
3941 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3942 * tree-emutls.c: Free varpool node set.
3943 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3944 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3945 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3946 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3947 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3948 Move here from ipa.c; implement using pointer_map
3949 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3950 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3951 debug_cgraph_node_set, varpool_node_set_new,
3952 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3953 dump_varpool_node_set, debug_varpool_node_set):
3954 Move to ipa-uitls.c.
3955 * passes.c (ipa_write_summaries): Update.
3957 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3959 From Mike Frysinger:
3960 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3961 bf542/bf544/bf547/bf548/bf549.
3963 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3965 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3967 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3970 * config/bfin/bfin.md (MOVCC): New mode_macro.
3971 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3972 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3973 comments from generated assembly.
3975 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3978 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3979 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3980 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3981 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3982 * config/bfin/lib1funcs.asm (___muldi3): New function.
3984 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3986 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3987 build_function_type_list instead of build_function_type.
3988 Rearrange initialization of `args' to do so.
3990 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3992 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3993 instead of build_function_type.
3995 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3997 * config/rs6000/rs6000.c (spe_init_builtins): Call
3998 build_function_type_list instead of build_function_type.
3999 (paired_init_builtins, altivec_init_builtins): Likewise.
4000 (builtin_function_type): Likewise.
4002 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4004 * config/sh/sh.c (sh_media_init_builtins): Call
4005 build_function_type_list instead of build_function_type.
4007 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4009 * config/sparc/sparc.c (sparc_file_end): Call
4010 build_function_type_list instead of build_function_type.
4012 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4014 * config/alpha/alpha.c (alpha_init_builtins): Call
4015 build_function_type_list instead of build_function_type.
4017 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4019 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4020 build_function_type_list instead of build_function_type.
4022 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4024 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4025 build_function_type_list instead of build_function_type.
4026 Delete `endlink' variable.
4028 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4030 * config/avr/avr.c (avr_init_builtins): Call
4031 build_function_type_list instead of build_function_type.
4033 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4035 * config/picochip/picochip.c (picochip_init_builtins): Call
4036 build_function_type_list instead of build_function_type.
4037 Delete `endlink' variable.
4039 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4041 * config/bfin/bfin.c (bfin_init_builtins): Call
4042 build_function_type_list instead of build_function_type.
4044 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4047 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4048 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4050 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4053 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4054 libbffastfp overrides libgcc when -mfast-fp.
4056 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4058 Originally from Bernd Schmidt
4059 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4060 * config/bfin/bfin.c (override_options): Test it and error if
4063 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4065 Originally From Bernd Schmidt
4066 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4069 2011-05-03 Jeff Law <law@redhat.com>
4071 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4072 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4073 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4074 than accessing AUX field directly. Free the AUX field before
4076 (thread_block, thread_through_loop_header): Likewise.
4077 (thread_single_edge, mark_threaded_blocks): Likewise.
4078 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4079 (register_jump_thread): Do not attempt to thread to a NULL edge.
4081 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4083 * function.c (init_function_start): Call decide_function_section.
4084 * varasm.c (decide_function_section): New function.
4085 (assemble_start_function): When not using
4086 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4087 or first_function_block_is_cold.
4088 * rtl.h (decide_function_section): Declare.
4090 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4091 Jakub Jelinek <jakub@redhat.com>
4094 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4095 only succeed if req_mode is the same as set_mode.
4097 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4099 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4100 * genemit.c (gen_exp): Handle RETURN.
4101 * emit-rtl.c (verify_rtx_sharing): Likewise.
4102 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4103 * rtl.c (copy_rtx): RETURN is shared.
4104 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4106 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4107 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4108 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4109 * config/cris/cris.c (cris_expand_return): Likewise.
4110 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4111 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4112 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4113 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4114 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4116 * config/v850/v850.c (expand_epilogue): Likewise.
4117 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4118 * config/arm/arm.md (epilogue): Likewise.
4119 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4120 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4121 variable to ret_reg.
4123 2011-05-03 Richard Guenther <rguenther@suse.de>
4126 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4127 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4128 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4130 2011-05-03 Richard Guenther <rguenther@suse.de>
4132 * c-decl.c (grokdeclarator): Instead of looking at
4133 TREE_OVERFLOW check if the constant fits in the index type.
4135 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4137 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4138 (vec_store_lanes<mode><mode>): Likewise.
4140 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4142 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4143 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4144 convert_optab_index values.
4145 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4146 * genopinit.c (optabs): Initialize the new optabs.
4147 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4148 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4149 (expand_STORE_LANES): New functions.
4150 * tree.h (build_array_type_nelts): Declare.
4151 * tree.c (build_array_type_nelts): New function.
4152 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4153 (vect_model_load_cost): Likewise.
4154 (vect_store_lanes_supported, vect_load_lanes_supported)
4155 (vect_record_strided_load_vectors): Declare.
4156 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4157 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4158 (vect_transform_strided_load): Split out statement recording into...
4159 (vect_record_strided_load_vectors): ...this new function.
4160 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4161 (write_vector_array, create_array_ref): New functions.
4162 (vect_model_store_cost): Add store_lanes_p argument.
4163 (vect_model_load_cost): Add load_lanes_p argument.
4164 (vectorizable_store): Try to use store-lanes functions for
4166 (vectorizable_load): Likewise load-lanes and loads.
4167 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4168 to vect_model_store_cost.
4169 (vect_build_slp_tree): Likewise vect_model_load_cost.
4171 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4173 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4174 * hooks.c (hook_bool_mode_uhwi_false): New function.
4175 * target.def (array_mode_supported_p): New hook.
4176 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4177 * doc/tm.texi: Regenerate.
4178 * stor-layout.c (mode_for_array): New function.
4179 (layout_type): Use it.
4180 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4181 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4183 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4186 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4187 for -fstack-check if the size to allocate is negative.
4189 2011-05-02 Lawrence Crowl <crowl@google.com>
4191 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4192 (timevar_cond_start): New for starting a timer only when it is not
4194 (timevar_cond_stop): New for stopping a timer when it was not already
4197 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4198 (timevar_cond_start): New as above.
4199 (timevar_cond_stop): New as above.
4201 * timevar.def: Add start/stop timers for compiler phases,
4202 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4203 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4204 and TV_PHASE_FINALIZE.
4205 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4206 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4207 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4208 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4209 Make unused TV_OVERLOAD into a start/stop timer.
4211 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4212 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4213 to indicate that they are start/stop timers.
4215 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4216 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4217 Move initialization to do_compile.
4218 (do_compile): Add initialization from above.
4219 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4221 * c-decl.c (c_write_global_declarations): Add start/stop of
4222 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4224 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4225 or TV_PARSE_INLINE, as appropriate.
4226 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4227 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4229 2011-05-02 Jason Merrill <jason@redhat.com>
4232 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4234 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4237 * c-decl.c (finish_decl): Only create a composite if the types are
4240 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4242 * config/fr30/fr30-protos.h (Mmode): Don't define.
4243 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4244 definition where used.
4245 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4246 define. Expand definitions where used.
4247 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4248 Expand definitions where used.
4249 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4250 rx_function_arg, rx_function_arg_advance,
4251 rx_function_arg_boundary): Expand definitions of those macros.
4252 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4253 definition where used.
4255 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4257 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4259 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4260 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4261 with *movv2sf_internal_rex64_avx.
4262 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4263 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4264 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4265 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4266 "vex" in "prefix" attribute calculation.
4267 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4269 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4272 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4273 inputs match the output.
4275 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4278 * config/m68k/m68k.c (m68k_expand_prologue): Set
4279 current_function_static_stack_size.
4281 2011-05-02 Jan Hubicka <jh@suse.cz>
4283 * lto-streamer.c (lto_streamer_cache_insert_1,
4284 lto_streamer_cache_lookup, lto_streamer_cache_create,
4285 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4286 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4288 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4290 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4291 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4292 config/m68k/t-opts: New files.
4293 * config/m68k/m68k-tables.opt: New file (generated).
4294 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4295 extra_options and m68k/t-opts to tmake_file.
4296 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4297 (all_isas): Initialize using m68k-isas.def.
4298 (all_microarchs): Initialize using m68k-microarchs.def.
4299 (m68k_find_selection): Remove.
4300 (m68k_handle_option): Don't assert that global structures are in
4301 use. Use error_at. Access variables via opts pointer. Don't
4302 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4303 directly for -m68020-40 and -m68020-60.
4304 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4305 m68k_tune_entry here.
4306 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4308 (m68k_library_id_string): Remove declaration.
4309 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4310 (m68k_library_id_string): New Variable.
4311 (march=, mcpu=, mtune=): Use Enum and Var.
4313 2011-05-02 Richard Guenther <rguenther@suse.de>
4315 * varasm.c (output_constructor_regular_field): Compute zero-based
4316 index with double-ints. Make sure to ICE instead of producing
4318 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4319 in asserts. Properly use a signed type.
4321 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4323 * config/i386/sse.md (V): New mode iterator.
4324 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4326 (V_256): Rename from AVX256MODE.
4327 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4328 condition to all users.
4330 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4331 condition to all users.
4332 (VF_128): Make V4SF mode unconditional.
4333 (VF_256): Rename from AVX256MODEF2P.
4334 (VI4F_128): Rename from SSEMODE4S.
4335 (VI8F_128): Rename from SSEMODE2D.
4336 (VI4F_256): Rename from AVX256MODE8P.
4337 (VI8F_256): Rename from AVX256MODE4P.
4338 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4339 (ssescalarmodesuffix): Remove SF and DF modes.
4340 (SSEMODE124): Remove.
4341 (SSEMODE1248): Ditto.
4342 (SSEMODEF2P): Ditto.
4343 (AVXMODEF2P): Ditto.
4344 (AVXMODEFDP): Ditto.
4345 (AVXMODEFSP): Ditto.
4346 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4348 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4350 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4351 xop_pcmov_<mode>256. Use V mode iterator.
4353 Adjust RTX patterns globally for renamed mode attributes.
4355 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4357 * haifa-sched.c (sched_emit_insn): Emit insn before first
4358 non-scheduled insn. Inform back-end about new insn. Add
4359 new insn to scheduled_insns list.
4361 2011-05-02 Richard Guenther <rguenther@suse.de>
4363 PR tree-optimization/48822
4364 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4365 (process_scc): Indicate which iteration we start.
4367 2011-05-02 Jan Hubicka <jh@suse.cz>
4369 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4370 (lto_section_overrun): New.
4371 * lto-section-out.c (append_block): Rename to ...
4372 (lto_append_block): ... this one; export.
4373 (lto_output_1_stream): Move lto lto-streamer.h
4374 (lto_output_data_stream): Update.
4375 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4376 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4379 2011-05-02 Richard Guenther <rguenther@suse.de>
4381 * tree.c (tree_code_counts): New global array.
4382 (record_node_allocation_statistics): Count individual tree codes.
4383 (dump_tree_statistics): Dump individual code stats.
4385 2011-05-01 Jan Hubicka <jh@suse.cz>
4387 * ipa-inline.c (caller_growth_limits): Fix thinko when
4388 looking for largest stack frame.
4389 * ipa-inline.h (dump_inline_summary): Declare.
4390 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4392 (dump_inline_summary): Export.
4393 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4395 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4397 * reginfo.c (memory_move_cost): Change rclass argument type form
4398 'enum reg_class' to reg_class_t.
4399 * reload.h (memory_move_cost): Update prototype.
4400 * postreload.c reload_cse_simplify_set): Change type dclass var to
4402 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4404 (ira_allocate_and_set_costs): Change aclass argument type form
4405 'enum reg_class' to reg_class_t.
4406 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4407 Change aclass argument type to reg_class_t.
4408 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4410 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4411 memory_move_cost call.
4413 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4414 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4415 Change type tmp var to reg_class_t.
4417 2011-04-30 Jan Hubicka <jh@suse.cz>
4419 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4420 inlining into function with flatten attribute.
4421 (want_inline_small_function_p): Be more realistic about inlining
4422 cold calls where callee size grows.
4424 2011-04-30 Jan Hubicka <jh@suse.cz>
4426 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4429 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4431 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4432 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4433 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4434 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4435 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4436 (print_operand): Rename to...
4437 (sparc_print_operand): ...this. Make static. Adjust
4438 sparc_print_operand function call.
4439 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4442 2011-04-30 Jan Hubicka <jh@suse.cz>
4445 * ipa-inline.c (early_inliner): Disable when doing late
4446 addition of function.
4448 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4450 * dwarf2out.c (get_address_mode): New inline.
4451 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4452 if not dwarf_strict emit
4453 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4454 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4455 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4456 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4457 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4458 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4459 mem_loc_descriptor callers.
4460 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4461 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4462 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4463 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4464 (base_types): New variable.
4465 (get_base_type_offset, calc_base_type_die_sizes,
4466 base_type_for_mode, mark_base_types, base_type_cmp,
4467 move_marked_base_types): New functions.
4468 (calc_die_sizes): Assert that die_offset is 0 or equal to
4470 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4471 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4472 callers. If not dwarf_strict, call mem_loc_descriptor even for
4473 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4474 (gen_subprogram_die): Don't give up on call site parameters
4475 with non-integral or large integral modes. Adjust
4476 mem_loc_descriptor callers.
4477 (prune_unused_types): Call prune_unused_types_mark on base_types
4479 (resolve_addr): Call mark_base_types.
4480 (dwarf2out_finish): Call move_marked_base_types.
4482 PR tree-optimization/48809
4483 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4485 (gen_inbound_check): Don't compute index_expr - range_min in utype
4486 again, instead reuse SSA_NAME initialized in build_arrays.
4487 Remove two useless gsi_for_stmt calls.
4489 2011-04-29 Jeff Law <law@redhat.com>
4491 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4493 2011-04-29 Martin Jambor <mjambor@suse.cz>
4495 * cgraph.h (cgraph_postorder): Remove declaration.
4496 * ipa-utils.h (ipa_free_postorder_info): Declare.
4497 (ipa_reverse_postorder): Likewise.
4498 * cgraphunit.c: Include ipa-utils.h.
4499 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4500 * ipa-inline.c: Include ipa-utils.h.
4501 (ipa_inline): Update call to ipa_reverse_postorder.
4502 * ipa-pure-const.c (propagate_pure_const): Update call to
4503 ipa_reduced_postorder and ipa_print_order. Call
4504 ipa_free_postorder_info to clean up.
4505 (propagate_nothrow): Likewise.
4506 * ipa-reference.c (propagate): Removed a useless call to
4507 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4508 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4509 * ipa.c: Include ipa-utils.h.
4510 (ipa_profile): Update call to ipa_reverse_postorder.
4511 (cgraph_postorder): Moved to...
4512 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4513 (ipa_utils_print_order): Renamed to ipa_print_order.
4514 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4516 (ipa_free_postorder_info): New function.
4517 * passes.c: Include ipa-utils.h.
4518 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4519 (ipa_write_summaries): Likewise.
4520 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4521 (cgraphunit.o): Likewise.
4523 (ipa-inline.o): Likewise.
4525 2011-04-29 Jan Hubicka <jh@suse.cz>
4527 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4528 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4529 * ipa-inline.h (clause_t): Turn into unsigned int.
4530 * ipa-inline-analysis.c (add_clause): Do more simplification.
4531 (and_predicates): Shortcut more cases.
4532 (predicates_equal_p): Move forward; check that clauses are properly
4534 (or_predicates): Shortcut more cases.
4535 (edge_execution_predicate): Rewrite as...
4536 (set_cond_stmt_execution_predicate): ... this function; handle
4537 __builtin_constant_p.
4538 (set_switch_stmt_execution_predicate): New .
4539 (compute_bb_predicates): New.
4540 (will_be_nonconstant_predicate): Update TODO.
4541 (estimate_function_body_sizes): Use compute_bb_predicates
4542 and free them later, always try to estimate if stmt is constant.
4543 (estimate_time_after_inlining, estimate_size_after_inlining):
4544 Gracefully handle optimized out edges.
4545 (read_predicate): Fix off by one error.
4547 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4549 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4551 2011-04-27 Xinliang David Li <davidxl@google.com>
4553 * tree-profile.c (init_ic_make_global_vars): Set
4554 tls attribute on ic vars.
4555 * coverage.c (coverage_end_function): Initialize
4556 function_list with zero.
4558 2011-04-29 Richard Guenther <rguenther@suse.de>
4560 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4561 for the type of the result.
4562 (fold_builtin_isascii): Likewise.
4563 (fold_builtin_toascii): Use integer_type_node where appropriate.
4564 (fold_builtin_logb): Likewise.
4565 (fold_builtin_frexp): Likewise.
4566 (fold_builtin_strstr): Likewise.
4567 (fold_builtin_strpbrk): Likewise.
4568 (fold_builtin_fputs): Likewise.
4569 (fold_builtin_sprintf): Likewise.
4570 (fold_builtin_snprintf): Likewise.
4571 (fold_builtin_printf): Likewise.
4572 (do_mpfr_remquo): Use a proper type for the assigned constant.
4573 (do_mpfr_lgamma_r): Likewise.
4574 * dwarf2out.c (resolve_one_addr): Use size_int.
4575 * except.c (init_eh): Likewise.
4576 (assign_filter_values): Use integer_type_node for filter values.
4577 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4579 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4580 for EH region numbers.
4581 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4582 for the shift amount.
4584 2011-04-29 Richard Guenther <rguenther@suse.de>
4586 * expr.h (expand_shift): Rename to ...
4587 (expand_variable_shift): ... this.
4588 (expand_shift): Take a constant shift amount.
4589 * expmed.c (expand_shift): Rename to ...
4590 (expand_variable_shift): ... this.
4591 (expand_shift): New wrapper around expand_variable_shift.
4592 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4593 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4594 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4595 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4596 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4597 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4598 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4599 emit_store_flag_1, emit_store_flag): Likewise.
4600 * builtins.c (expand_builtin_signbit): Likewise.
4601 * calls.c (load_register_parameters): Likewise.
4602 * function.c (assign_parm_setup_block): Likewise.
4603 * lower-subreg.c (resolve_shift_zext): Likewise.
4604 * optabs.c (widen_bswap, expand_abs_nojump,
4605 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4606 * spu/spu.c (spu_expand_extv): Likewise.
4607 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4609 2011-04-29 Richard Guenther <rguenther@suse.de>
4611 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4612 for the remapped region number.
4613 * predict.c (build_predict_expr): Use integer_type_node for the
4615 * fold-const.c (fold_binary_loc): Use integer_type_node for
4616 the shift amount. Use a proper type for the PLUS_EXPR operand.
4618 2011-04-29 Michael Matz <matz@suse.de>
4620 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4621 other trees that just builtins.
4622 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4624 2011-04-29 Richard Guenther <rguenther@suse.de>
4626 * tree-nested.c (get_trampoline_type): Use size_int.
4627 (get_nl_goto_field): Likewise.
4628 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4630 (lower_eh_constructs_2): Likewise.
4631 (lower_resx): Likewise.
4632 (lower_eh_dispatch): Likewise.
4633 * tree-mudflap.c (mf_build_string): Use size_int.
4634 (mudflap_register_call): Use integer_type_node for the flag.
4635 (mudflap_enqueue_constant): Use size_int.
4636 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4637 instead of rebuilding it.
4639 2011-04-29 Richard Guenther <rguenther@suse.de>
4641 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4642 Handle OBJ_TYPE_REF.
4643 (find_func_aliases_for_call): Use it more consistently.
4645 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4647 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4648 (rank_for_schedule): Use it.
4649 (schedule_block): Set it.
4651 2011-04-28 David Li <davidxl@google.com>
4653 * tree.c (crc32_string): Use crc32_byte.
4654 (crc32_byte): New function.
4655 * tree.h (crc32_byte): New function.
4656 * gcov.c (read_graph_file): Handle new cfg_cksum.
4657 (read_count_file): Ditto.
4658 * profile.c (instrument_values): Ditto.
4659 (get_exec_counts): Ditto.
4660 (read_profile_edge_counts): Ditto.
4661 (compute_branch_probabilities): Ditto.
4662 (compute_value_histograms): Ditto.
4663 (branch_prob): Ditto.
4664 (end_branch_prob): Ditto.
4665 * coverage.c (read_counts_file): Ditto.
4666 (get_coverage_counts): Ditto.
4667 (tree_coverage_counter_addr): Ditto.
4668 (coverage_checksum_string): Ditto.
4669 (coverage_begin_output): Ditto.
4670 (coverage_end_function): Ditto.
4671 (build_fn_info_type): Ditto.
4672 (build_fn_info_value): Ditto.
4673 * libgcov.c (gcov_exit): Ditto.
4674 * gcov-dump.c (tag_function): Ditto.
4675 (compute_checksum): Remove.
4677 2011-04-29 Alan Modra <amodra@gmail.com>
4679 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4680 unspec plus offset. Tidy macho code.
4682 2011-04-29 Martin Jambor <mjambor@suse.cz>
4684 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4685 node instead of a decl. Update all callers.
4686 * cgraph.h: Update declaration.
4688 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4690 PR tree-optimization/48765
4691 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4692 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4693 to indicate if loop aware SLP is being used. Scan the statements
4694 and update the vectorization factor according to the type of
4695 vectorization before statement analysis.
4696 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4697 pass it to vect_analyze_loop_operations.
4698 (vectorizable_reduction): Set number of copies to 1 in case of pure
4700 * tree-vect-stmts.c (vectorizable_conversion,
4701 vectorizable_assignment, vectorizable_shift,
4702 vectorizable_operation, vectorizable_type_demotion,
4703 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4705 (vectorizable_condition): Move the check that it is not SLP
4706 vectorization before the number of copies check.
4707 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4708 to vectorize the loop using SLP.
4710 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4713 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4716 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4718 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4719 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4720 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4721 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4722 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4724 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4725 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4726 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4727 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4728 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4729 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4731 * config/i386/linux.h (REG_NAME): Don't define.
4732 * config/i386/linux64.h (REG_NAME): Don't define.
4733 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4734 Undefine before defining.
4736 2011-04-28 Jan Hubicka <jh@suse.cz>
4738 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4739 nonconstant_names array.
4740 (estimate_function_body_sizes): Build nonconstant_names array; handle
4741 BUILT_IN_CONSTANT_P.
4743 2011-04-28 Richard Guenther <rguenther@suse.de>
4747 2011-04-28 Richard Guenther <rguenther@suse.de>
4749 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4750 as late as possible.
4752 2011-04-28 Richard Guenther <rguenther@suse.de>
4754 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4755 (debug_constraint): Do it here.
4756 (dump_constraints): And here.
4757 (rewrite_constraints): And here.
4758 (dump_constraint_edge): Remove.
4759 (dump_constraint_graph): Rewrite to produce DOT output.
4760 (solve_constraints): Build succ graph as late as possible.
4761 Dump constraint graphs before and after solving.
4763 2011-04-28 Richard Guenther <rguenther@suse.de>
4765 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4766 New function split out from ...
4767 (find_func_aliases): ... here. Call it.
4768 (find_func_aliases_for_call): Likewise.
4770 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4772 * internal-fn.h (internal_fn_name_array): Declare.
4773 (internal_fn_flags_array): Likewise.
4775 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4777 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4778 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4780 (ssemodefsuffix): Remove.
4781 (ssevecmodesuffix): New mode attribute.
4782 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4783 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4784 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4785 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4786 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4787 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4788 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4789 ssemodesuffix mode attribute.
4790 (float splitters): Use ssevecmodesuffix mode attribute.
4791 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4792 (sseinsmode): Rename from avxvecmode.
4793 (avxsizesuffix): Rename from avxmodesuffix.
4794 (sseintvecmode): Rename from avxpermvecmode.
4795 (ssedoublevecmode): Rename from ssedoublesizemode.
4796 (ssehalfvecmode): Rename from avxhalfvecmode.
4797 (ssescalarmode): Rename from avxscalarmode.
4798 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4799 templates for ssemodesuffix mode attribute.
4800 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4803 Adjust RTX patterns globally for renamed mode attributes.
4805 2011-04-27 Jan Hubcika <jh@suse.cz>
4807 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4808 * ipa-inline-analysis.c: Include alloc-pool.h.
4809 (edge_predicate_pool): New.
4810 (trye_predicate_p): New function
4811 (false_predicate_p): New function.
4812 (add_clause): Sanity check that false clauses are "optimized";
4813 never add clauses to predicate that is already known to be false.
4814 (and_predicate): Use flase_predicate_p.
4815 (evaulate_predicate): Rename to ...
4816 (evaluate_predicate): ... this one; update all callers; assert
4817 that false is not listed among possible truths.
4818 (dump_predicate): Use true_predicate_p.
4819 (account_size_time): Use false_predicate_p.
4820 (evaulate_conditions_for_edge): Rename to ...
4821 (evaluate_conditions_for_edge) ... this one.
4822 (edge_set_predicate): New function.
4823 (inline_edge_duplication_hook): Duplicate edge predicates.
4824 (inline_edge_removal_hook): Free edge predicates.
4825 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4826 (dump_inline_summary): Update.
4827 (estimate_function_body_sizes): Set edge predicates.
4828 (estimate_calls_size_and_time): Handle predicates.
4829 (estimate_callee_size_and_time): Update.
4830 (remap_predicate): Add toplev_predicate; update comment.
4831 (remap_edge_predicates): New function.
4832 (inline_merge_summary): Compute toplev predicate; update.
4833 (read_predicate): New function.
4834 (read_inline_edge_summary): Use it.
4835 (inline_read_section): Likewise.
4836 (write_predicate): New function.
4837 (write_inline_edge_summary): Use it.
4838 (inline_write_summary): Likewise.
4839 (inline_free_summary): Free alloc pool and edge summary vec.
4841 2011-04-27 Richard Guenther <rguenther@suse.de>
4843 * tree-ssa-structalias.c (changed_count): Remove.
4844 (changed): Use a bitmap.
4845 (unify_nodes): Adjust.
4846 (do_sd_constraint): Likewise.
4847 (do_ds_constraint): Likewise.
4848 (do_complex_constraint): Likewise.
4849 (solve_graph): Likewise.
4851 2011-04-27 Jan Hubicka <jh@suse.cz>
4853 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4855 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4857 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4858 (avx_vperm2f128_*_operand): Ditto.
4859 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4860 Use avx_vpermilp_parallel in insn condition.
4861 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4862 Use avx_vperm2f128_parallel in insn condition.
4864 2011-04-27 Richard Guenther <rguenther@suse.de>
4866 * Makefile.in (tree-ssa-structalias.o): Remove
4867 gt-tree-ssa-structalias.h dependency.
4868 (GTFILES): Remove tree-ssa-structalias.c.
4869 * tree.c (allocate_decl_uid): New function.
4870 (make_node_stat): Use it.
4871 (copy_node_stat): Likewise.
4872 * tree.h (allocate_decl_uid): Declare.
4873 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4874 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4875 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4876 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4877 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4878 (struct heapvar_map): Likewise.
4879 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4880 heapvar_insert): Likewise.
4881 (make_heapvar_for): Rename to ...
4882 (make_heapvar): ... this. Simplify.
4883 (fake_var_decl_obstack): New global var.
4884 (build_fake_var_decl): New function.
4885 (make_constraint_from_heapvar): Adjust.
4886 (handle_lhs_call): Likewise.
4887 (create_function_info_for): Likewise.
4888 (intra_create_variable_infos): Likewise.
4889 (init_alias_vars): Allocate fake_var_decl_obstack.
4890 (init_alias_heapvars, delete_alias_heapvars): Remove.
4891 (compute_points_to_sets): Do not call init_alias_heapvars.
4892 (ipa_pta_execute): Likewise.
4893 (delete_points_to_sets): Free fake_var_decl_obstack.
4895 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4897 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4898 (si_from_UTItype, si_to_UTItype): New functions.
4899 (__udivmodti4): Use them to implement type-punning.
4900 * config/spu/multi3.c (union qword_TItype): New data type.
4901 (si_from_TItype, si_to_TItype): New functions.
4902 (__multi3): Use them to implement type-punning.
4904 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4906 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4908 2011-04-27 Jan Hubicka <jh@suse.cz>
4910 * ipa-prop.c (function_insertion_hook_holder): New holder.
4911 (ipa_add_new_function): New function.
4912 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4913 Register/deregister holder.
4915 2011-04-27 Richard Guenther <rguenther@suse.de>
4917 PR tree-optimization/48772
4918 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4920 2011-04-27 Richard Guenther <rguenther@suse.de>
4922 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4923 TARGET_MEM_REF handling.
4925 2011-04-27 Nick Clifton <nickc@redhat.com>
4927 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4928 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4929 (REG_CLASS_NAMES): Likewise.
4930 (REG_CLASS_CONTENTS): Likewise.
4931 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4932 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4933 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4934 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4935 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4936 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4937 duplicate register classes.
4938 (frv_class_likely_spilled_p): Likewise.
4939 (frv_register_move_cost): Likewise.
4941 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4942 end of the regno_reg_class array.
4944 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4947 * c-typeck.c (build_binary_op): Don't wrap arguments if
4948 int_operands is true.
4950 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4953 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4954 targetm.calls.must_pass_in_stack for void type.
4956 2011-04-26 Jan Hubicka <jh@suse.cz>
4958 * cgraphbuild.c (build_cgraph_edges): Update call
4959 of cgraph_create_edge and cgraph_create_indirect_edge.
4960 * cgraph.c (cgraph_create_edge_including_clones,
4961 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4962 cgraph_update_edges_for_call_stmt_node): Do not take nest
4963 argument; do not initialize call_stmt_size/time.
4964 (dump_cgraph_node): Do not dump nest.
4965 (cgraph_clone_edge): Do not take loop_nest argument;
4966 do not propagate it; do not clone call_stmt_size/time.
4967 (cgraph_clone_node): Likewise.
4968 (cgraph_create_virtual_clone): Update.
4969 * cgraph.h (struct cgraph_edge): Remove
4970 call_stmt_size/call_stmt_time/loop_nest.
4971 (cgraph_create_edge, cgraph_create_indirect_edge,
4972 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4974 * tree-emutls.c (gen_emutls_addr): Update.
4975 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4976 loop_nest; handle indirect calls, too.
4977 (clone_inlined_nodes): Do not care about updating inline summaries.
4978 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4979 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4980 stream call_stmt_size/call_stmt_time/loop_nest.
4981 * ipa-inline.c (edge_badness): Update.
4982 (ipa_inline): dump summaries after inlining.
4983 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4985 (inline_edge_summary): New function.
4986 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4987 (inline_edge_removal_hook): Handle edge summaries.
4988 (inline_edge_duplication_hook): New hook.
4989 (inline_summary_alloc): Alloc hooks.
4990 (initialize_growth_caches): Do not register removal hooks.
4991 (free_growth_caches); Do not free removal hook.
4992 (dump_inline_edge_summary): New function.
4993 (dump_inline_summary): Use it.
4994 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4995 (inline_update_callee_summaries): New function.
4996 (inline_merge_summary): Use it.
4997 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4998 (read_inline_edge_summary): New function.
4999 (inline_read_section): Use it.
5000 (write_inline_edge_summary): New function.
5001 (inline_write_summary): Use it.
5002 (inline_free_summary): Free edge new holders.
5003 * tree-inline.c (copy_bb): Update.
5005 2011-04-26 Jason Merrill <jason@redhat.com>
5007 * tree-eh.c (lower_try_finally_switch): Create the label along with
5008 the CASE_LABEL_EXPR.
5010 2011-04-26 David S. Miller <davem@davemloft.net>
5011 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5013 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5014 * configure: Regenerate.
5016 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5019 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5021 (VEC_reduc): New code iterator and splitters for vector reduction.
5022 (VEC_reduc_name): Ditto.
5023 (VEC_reduc_rtx): Ditto.
5024 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5025 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5027 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5028 support for extracting SF on VSX.
5030 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5031 generating xscvspdp.
5032 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5033 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5034 double add, minimum, maximum vector reduction.
5035 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5036 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5037 optimize double vector reduction.
5038 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5040 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5042 * config/fr30/fr30.h (inhibit_libc): Don't define.
5043 * config/m32r/m32r-protos.h: Correct comment.
5044 * config/v850/v850.h (GHS_default_section_names,
5045 GHS_current_section_names): Use tree, not union tree_node *.
5047 2011-04-26 Xinliang David Li <davidxl@google.com>
5049 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5050 * c-family/c-opts.c (c_common_handle_option): Set
5051 warn_maybe_uninitialized.
5052 * opts.c (common_handle_option): Ditto.
5053 * common.opt: New option.
5054 * tree-ssa.c (warn_uninit): Add one more parameter.
5055 (warn_uninitialized_var): Pass warning code.
5056 * tree-flow.h: Interface change.
5058 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5060 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5061 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5062 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5064 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5066 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5067 * config/mips/mips.opt (mmips-tfile): Remove.
5069 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5070 mips-tdump reference to ...
5071 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5072 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5073 reference by Tru64 UNIX.
5075 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5078 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5079 is error_mark_node, set value to NULL.
5081 PR tree-optimization/48734
5082 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5083 if return value from maybe_fold_*_comparsions isn't something
5084 the code is prepared to handle.
5086 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5088 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5090 (ext_QIreg_nomode_operands): Remove.
5091 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5095 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5097 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5099 2011-04-26 Richard Guenther <rguenther@suse.de>
5101 * c-typeck.c (build_unary_op): Do not expand array-refs via
5102 pointer arithmetic. Only adjust qualifiers for function types.
5104 2011-04-26 Richard Guenther <rguenther@suse.de>
5107 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5108 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5109 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5110 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5112 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5114 * doc/extend.texi: Document __underlying_type.
5116 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5118 * config/rs6000/titan.md (automata_option "progress"): Remove.
5120 2011-04-25 Jeff Law <law@redhat.com>
5122 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5124 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5126 * system.h (ENUM_BITFIELD): Remove.
5128 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5129 Eric Botcazou <ebotcazou@adacore.com>
5131 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5132 for STORE_FLAG_VALUE==-1 case.
5134 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5137 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5138 LEGITIMATE_PIC_OPERAND_P.
5140 2011-04-24 Jan Hubicka <jh@suse.cz>
5142 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5144 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5145 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5146 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5147 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5148 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5149 Sanity check predicate length.
5150 (remap_predicate): Likewise; sanity check jump functions.
5151 (inline_read_section, inline_write_summary): Sanity check
5154 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5157 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5158 __is_literal_type, and __is_trivial; update throughout about
5159 possibly cv-qualified void types.
5161 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5163 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5164 testsuite and make it version agnostic.
5166 2011-04-22 Jan Hubicka <jh@suse.cz>
5168 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5170 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5173 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5174 to VOID_TYPE even around MODIFY_EXPR.
5176 2011-04-22 Mike Stump <mikestump@comcast.net>
5178 * gensupport.c (read_md_rtx): Fix typo in comment.
5179 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5182 2011-04-22 Jan Hubicka <jh@suse.cz>
5184 * gengtype.c (open_base_files): Add ipa-inline.h include.
5185 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5186 ipa-prop.c; update all uses.
5187 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5188 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5189 merge summary of inlined function into former caller.
5190 * ipa-inline.c (max_benefit): Remove.
5191 (edge_badness): Compensate for removal of benefits.
5192 (update_caller_keys): Use
5193 reset_node_growth_cache/reset_edge_growth_cache.
5194 (update_callee_keys): Likewise.
5195 (update_all_callee_keys): Likewise.
5196 (inline_small_functions): Do not collect max_benefit; do not reset
5197 estimated_growth; call free_growth_caches and initialize_growth_caches.
5198 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5199 struct size_time_entry): New structures.
5200 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5201 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5202 and estimated_growth.
5203 (edge_growth_cache_entry): New structure.
5204 (node_growth_cache, edge_growth_cache): New global vars.
5205 (estimate_growth): Turn into inline.
5206 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5207 initialize_growth_caches, free_growth_caches): Declare.
5208 (estimate_edge_growth): Rewrite.
5209 (estimate_edge_time): Implement as inline cache lookup.
5210 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5212 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5213 (NUM_CONDITIONS): New constant.
5214 (predicate_conditions): New enum.
5215 (IS_NOT_CONSTANT): New constant.
5216 (edge_removal_hook_holder): New var.
5217 (node_growth_cache, edge_growth_cache): New global vars.
5218 (true_predicate, single_cond_predicate, false_predicate,
5219 not_inlined_predicate, add_condition, add_clause, and_predicates,
5220 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5221 dump_clause, dump_predicate, account_size_time,
5222 evaulate_conditions_for_edge): New functions.
5223 (inline_summary_alloc): Move to heap.
5224 (inline_node_removal_hook): Clear condition and entry vectors.
5225 (inline_edge_removal_hook): New function.
5226 (initialize_growth_caches, free_growth_caches): New function.
5227 (dump_inline_summary): Update.
5228 (edge_execution_predicate): New function.
5229 (will_be_nonconstant_predicate): New function.
5230 (estimate_function_body_sizes): Compute BB and constantness predicates.
5231 (compute_inline_parameters): Do not clear estimated_growth.
5232 (estimate_edge_size_and_time): New function.
5233 (estimate_calls_size_and_time): New function.
5234 (estimate_callee_size_and_time): New function.
5235 (remap_predicate): New function.
5236 (inline_merge_summary): New function.
5237 (do_estimate_edge_time): New function based on...
5238 (estimate_edge_time): ... this one.
5239 (do_estimate_edge_growth): New function.
5240 (do_estimate_growth): New function based on....
5241 (estimate_growth): ... this one.
5242 (inline_analyze_function): Analyze after deciding on jump functions.
5243 (inline_read_section): New function.
5244 (inline_read_summary): Use it.
5245 (inline_write_summary): Write all the new data.
5246 * ipa-prop.c (ipa_get_param_decl_index): Export.
5247 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5248 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5250 (ipa_get_lattice): Move here from ipa-cp.c
5251 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5252 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5253 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5254 cgraph_edge_inlinable_p): Remove.
5255 * cgraphunit.c: Include ipainline.h
5256 (cgraph_process_new_functions): Update call of
5257 compute_inline_parameters.
5259 2011-04-22 Richard Guenther <rguenther@suse.de>
5261 * tree.c (build_int_cst): Properly create canonicalized integer
5263 (build_int_cst_type): Remove scary comments.
5265 2011-04-22 Xinliang David Li <davidxl@google.com>
5267 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5268 by default when -Wno-error is not specified.
5269 * opts-global.c (decode_options): Remove call to
5270 control_warning_options.
5272 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5274 PR tree-optimization/48717
5275 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5276 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5278 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5280 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5281 definition where used.
5283 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5286 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5287 TREE_STATIC variables declared inside of some OpenMP construct.
5289 2011-04-22 Martin Jambor <mjambor@suse.cz>
5292 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5294 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5297 * c-typeck.c (pop_init_level): Do not warn about initializing
5300 2011-04-22 Alan Modra <amodra@gmail.com>
5302 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5303 when returning call_cookie.
5304 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5305 pointers, to functions with no more vector args than the current
5306 function, and some non-local calls for ABI_V4.
5307 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5308 sibcall_nonlocal_aix64): Combine to ..
5309 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5310 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5311 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5312 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5313 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5315 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5316 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5317 sibcall_value_symbolic_64): Delete.
5319 2011-04-21 Xinliang David Li <davidxl@google.com>
5321 * cgraph.h: Remove pid.
5322 * cgraph.c: Remove pid.
5323 * value-prof.c (init_node_map): New function.
5324 (del_node_map): New function.
5325 (find_func_by_funcdef_no): New function.
5326 (gimple_ic_transform): Call new function.
5327 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5328 * function.c (get_last_funcdef_no): New function.
5329 * function.h (get_last_funcdef_no): New function.
5330 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5331 to libgcov function.
5332 (tree-profiling): Call node map init and delete function.
5334 2011-04-21 Ian Lance Taylor <iant@google.com>
5336 * godump.c (go_format_type): Use exported Go name for anonymous
5339 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5341 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5342 Call builtin_function_type_list instead of builtin_function_type.
5343 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5345 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5347 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5348 build_function_type_list instead of build_function_type.
5349 Delete variable `endlink'.
5351 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5353 * config/s390/s390.c (s390_init_builtins): Call
5354 build_function_type_list instead of build_function_type.
5356 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5358 * config/ia64/ia64.c (ia64_init_builtins): Call
5359 build_function_type_list instead of builtin_function_type.
5361 2011-04-21 Easwaran Raman <eraman@google.com>
5363 * cfgexpand.c (stack_var): Remove OFFSET...
5364 (add_stack_var): ...and its reference here...
5365 (expand_stack_vars): ...and here.
5366 (stack_var_cmp): Sort by descending order of size.
5367 (partition_stack_vars): Change heuristic.
5368 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5369 (dump_stack_var_partition): Add newline after each partition.
5371 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5372 Jeff Law <law@redhat.com>
5374 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5375 * gengtype.c (matching_file_name_substitute): Likewise.
5377 2011-04-21 Richard Guenther <rguenther@suse.de>
5380 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5382 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5384 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5386 2011-04-21 Richard Guenther <rguenther@suse.de>
5388 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5391 2011-04-21 Richard Guenther <rguenther@suse.de>
5393 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5394 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5395 Use DECL_P, not SSA_VAR_P.
5396 (ptr_derefs_may_alias_p): Likewise.
5397 (ptr_deref_may_alias_ref_p_1): Likewise.
5398 (decl_refs_may_alias_p): Likewise.
5399 (refs_may_alias_p_1): Likewise.
5400 (ref_maybe_used_by_call_p_1): Likewise.
5401 (call_may_clobber_ref_p_1): Likewise.
5402 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5403 are either MEM_REF or TARGET_MEM_REF.
5404 (indirect_refs_may_alias_p): Likewise.
5405 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5406 for MEM_EXPR of indirect calls.
5408 2011-04-21 Tristan Gingold <gingold@adacore.com>
5410 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5411 (dst_file_info_struct): Remove flen field.
5412 (lookup_filename): Remove code that set flen field.
5414 2011-04-21 Tristan Gingold <gingold@adacore.com>
5416 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5418 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5421 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5422 vec_extract and vec_concat for non-SSE4_1 targets.
5424 2011-04-21 Richard Guenther <rguenther@suse.de>
5426 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5429 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5431 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5433 (FILE): Don't undefine.
5435 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5437 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5439 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5441 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5442 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5443 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5445 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5446 definitions where used.
5447 * config/microblaze/microblaze.h (struct microblaze_args): Use
5448 rtx, not struct rtx_def *.
5449 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5451 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5452 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5453 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5454 not struct rtx_def *.
5455 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5457 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5459 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5461 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5463 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5464 operand_equal_p to compare DR_BASE_ADDRESSes.
5465 (vect_check_interleaving): Likewise.
5467 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5470 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5471 for all Neon struct constants.
5473 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5475 * target.def (legitimate_constant_p): New hook.
5476 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5477 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5478 * doc/tm.texi: Regenerate.
5479 * hooks.h (hook_bool_mode_rtx_true): Declare.
5480 * hooks.c (hook_bool_mode_rtx_true): Define.
5481 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5482 * calls.c (precompute_register_parameters): Replace uses of
5483 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5484 (emit_library_call_value_1): Likewise.
5485 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5486 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5487 * ira-costs.c (scan_one_insn): Likewise.
5488 * recog.c (general_operand, immediate_operand): Likewise.
5489 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5490 * reload1.c (init_eliminable_invariants): Likewise.
5492 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5494 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5495 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5497 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5498 * config/alpha/predicates.md (input_operand): Update call to
5499 alpha_legitimate_constant_p.
5501 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5502 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5503 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5504 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5505 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5506 (arm_legitimate_constant_p): New functions.
5507 (arm_cannot_force_const_mem): Make static.
5509 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5511 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5512 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5513 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5514 instead of bfin_legitimate_constant_p.
5515 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5516 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5518 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5520 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5522 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5523 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5524 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5525 (frv_legitimate_constant_p): Make static. Add a mode argument.
5527 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5528 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5529 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5531 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5532 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5533 * config/i386/i386.c (legitimate_constant_p): Rename to...
5534 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5536 (ix86_cannot_force_const_mem): Update accordingly.
5537 (ix86_legitimate_address_p): Likewise.
5538 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5539 * config/i386/i386.md: Update commentary.
5541 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5542 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5543 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5544 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5546 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5548 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5549 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5550 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5551 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5553 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5554 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5555 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5557 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5558 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5559 (m32r_legitimate_constant_p): New function.
5561 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5562 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5563 LEGITIMATE_CONSTANT_P.
5564 (LEGITIMATE_CONSTANT_P): Delete.
5565 * config/m68k/m68k.c (m68k_expand_prologue): Call
5566 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5567 (m68k_legitimate_constant_p): New function.
5568 * config/m68k/m68k.md: Update comments.
5570 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5571 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5572 (mcore_legitimate_constant_p): New function.
5574 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5575 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5576 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5577 Add a mode argument.
5578 (mep_legitimate_address): Update accordingly.
5579 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5581 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5583 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5584 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5585 static. Check OP's mode for VOIDmode.
5586 (microblaze_legitimate_constant_p): New function.
5587 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5589 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5590 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5591 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5592 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5593 * config/mips/predicates.md: Update comments.
5595 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5596 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5597 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5598 (mmix_legitimate_constant_p): Make static, return a bool, and take
5600 (mmix_print_operand_address): Update accordingly.
5602 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5604 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5605 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5606 static. Add a mode argument.
5607 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5609 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5611 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5612 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5613 (pa_legitimate_constant_p): New function.
5615 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5617 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5618 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5619 (pdp11_legitimate_constant_p): New function.
5621 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5622 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5623 (rs6000_legitimate_constant_p): New function.
5625 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5626 (rx_legitimate_constant_p): ...this.
5627 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5628 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5629 (rx_legitimate_constant_p): ...this.
5630 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5631 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5633 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5634 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5635 * config/s390/s390.c (legitimate_constant_p): Rename to...
5636 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5637 and add a mode argument.
5638 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5640 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5642 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5643 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5644 (sh_legitimate_constant_p): New function.
5646 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5647 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5648 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5649 (legitimate_constant_p): Rename to...
5650 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5652 (constant_address_p): Update accordingly.
5654 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5655 argument and return a bool.
5656 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5657 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5658 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5659 (spu_rtx_costs): Update accordingly.
5660 * config/spu/predicates.md (vec_imm_operand): Likewise.
5662 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5664 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5665 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5666 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5668 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5669 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5670 * config/vax/vax.c (legitimate_constant_p): Likewise.
5672 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5673 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5674 (xtensa_legitimate_constant_p): New function.
5676 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5678 * target.def (cannot_force_const_mem): Add a mode argument.
5679 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5680 * doc/tm.texi: Regenerate.
5681 * hooks.h (hook_bool_mode_rtx_false): Declare.
5682 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5683 (hook_bool_mode_const_rtx_true): Likewise.
5684 (hook_bool_mode_rtx_false): New function.
5685 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5686 to be non-VOID. Update call to cannot_force_const_mem.
5687 (find_reloads): Update accordingly.
5688 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5689 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5691 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5692 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5693 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5694 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5695 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5696 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5697 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5698 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5699 (m68k_cannot_force_const_mem): ...this new function.
5700 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5702 (mips_const_insns, mips_legitimize_const_move): Update calls.
5703 (mips_secondary_reload_class): Likewise.
5704 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5705 (pa_cannot_force_const_mem): ...this new function.
5706 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5707 (rs6000_cannot_force_const_mem): ...this new function.
5708 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5710 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5711 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5713 (xtensa_cannot_force_const_mem): ...this new function.
5715 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5717 * config/mips/mips.c (mips16_build_function_stub): Call
5718 build_function_type_list instead of build_function_type.
5719 (mips16_build_call_stub): Likewise.
5721 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5723 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5724 instead of build_function_type.
5726 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5728 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5729 instead of build_function_type.
5731 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5734 * config/i386/i386.md (insv): Change operand 0 constraint to
5735 "register_operand". Change operand 1 and 2 constraint to
5736 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5737 * config/i386/sse.md (sse4_1_pinsrb): Export.
5738 (sse2_pinsrw): Ditto.
5739 (sse4_1_pinsrd): Ditto.
5740 (sse4_1_pinsrq): Ditto.
5741 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5742 * config/i386/i386.c (ix86_expand_pinsr): New.
5744 2011-04-20 Easwaran Raman <eraman@google.com>
5746 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5747 containing union type only with -fstrict-aliasing.
5749 2011-04-20 Jim Meyering <meyering@redhat.com>
5751 Remove useless if-before-free tests.
5752 * calls.c (expand_call, save_area): Likewise.
5753 * cfgcleanup.c (try_forward_edges): Likewise.
5754 * collect2.c (collect_execute): Likewise.
5755 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5756 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5757 * coverage.c (coverage_checksum_string): Likewise.
5758 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5759 * cselib.c (cselib_init): Likewise.
5760 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5761 (df_set_clean_cfg): Likewise.
5762 * function.c (free_after_compilation): Likewise.
5763 * gcc.c (do_spec_1, main): Likewise.
5764 * gcov.c (create_file_names): Likewise.
5765 * gensupport.c (identify_predicable_attribute): Likewise.
5766 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5767 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5768 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5769 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5770 * ipa-pure-const.c (local_pure_const): Likewise.
5771 * ipa-reference.c (propagate): Likewise.
5772 * ira-costs.c (free_ira_costs): Likewise.
5773 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5774 * matrix-reorg.c (mat_free): Likewise.
5775 * prefix.c (get_key_value): Likewise.
5776 * profile.c (compute_value_histograms): Likewise.
5777 * reload1.c (free_reg_equiv): Likewise.
5778 * sched-deps.c (free_deps): Likewise.
5779 * sel-sched-ir.c (fence_clear): Likewise.
5780 * sese.c (set_rename, if_region_set_false_region): Likewise.
5781 * tree-data-ref.c (free_rdg): Likewise.
5782 * tree-eh.c (lower_try_finally): Likewise.
5783 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5784 * tree-ssa-live.c (delete_var_map): Likewise.
5785 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5786 * tree-ssa-pre.c (phi_trans_add): Likewise.
5788 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5790 PR tree-optimization/48611
5791 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5792 beyond ERT_MUST_NOT_THROW region.
5794 2011-04-20 Catherine Moore <clm@codesourcery.com>
5796 * config/mips/mips.opt (mfix-24k): New.
5797 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5798 * config/mips/mips.md (length): Increase by 4 for stores if
5800 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5801 all noreorder if fixing 24K errata.
5802 * doc/invoke.texi: Document mfix-24k.
5804 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5806 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5807 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5809 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5811 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5812 (const_ok_for_op): ... to here.
5814 2011-04-20 Kai Tietz <ktietz@redhat.com>
5816 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5817 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5819 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5821 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5823 2011-04-20 Richard Guenther <rguenther@suse.de>
5825 PR tree-optimization/47892
5826 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5829 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5831 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5833 2011-04-20 Tristan Gingold <gingold@adacore.com>
5835 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5837 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5841 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5842 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5843 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5844 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5845 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5847 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5850 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5851 (avr_asm_named_section, avr_asm_output_aligned_common,
5852 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5853 New functions to update...
5854 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5855 (avr_asm_init_sections): Overwrite section callbacks for
5856 data_section, bss_section.
5857 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5859 (avr_file_end): ...here.
5861 2011-04-20 Richard Guenther <rguenther@suse.de>
5864 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5865 objects and types here. Adjust for their offset before comparing.
5867 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5869 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5872 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5874 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5875 (GIMPLE_H): Include $(INTERNAL_FN_H).
5876 (OBJS-common): Add internal-fn.o.
5877 (internal-fn.o): New rule.
5878 * internal-fn.def: New file.
5879 * internal-fn.h: Likewise.
5880 * internal-fn.c: Likewise.
5881 * gimple.h: Include internal-fn.h.
5882 (GF_CALL_INTERNAL): New gf_mask.
5883 (gimple_statement_call): Put fntype into a union with a new
5885 (gimple_build_call_internal): Declare.
5886 (gimple_build_call_internal_vec): Likewise.
5887 (gimple_call_same_target_p): Likewise.
5888 (gimple_call_internal_p): New function.
5889 (gimple_call_internal_fn): Likewise.
5890 (gimple_call_fntype): Return null for internal calls.
5891 (gimple_call_set_fntype): Assert that the function is not internal.
5892 (gimple_call_set_fn): Likewise.
5893 (gimple_call_set_fndecl): Likewise.
5894 (gimple_call_set_internal_fn): New function.
5895 (gimple_call_addr_fndecl): Handle null functions.
5896 (gimple_call_return_type): Likewise null types.
5897 * gimple.c (gimple_build_call_internal_1): New function.
5898 (gimple_build_call_internal): Likewise.
5899 (gimple_build_call_internal_vec): Likewise.
5900 (gimple_call_same_target_p): Likewise.
5901 (gimple_call_flags): Handle calls to internal functions.
5902 (gimple_call_fnspec): New function.
5903 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5904 (gimple_has_side_effects): Handle null functions.
5905 (gimple_rhs_has_side_effects): Likewise.
5906 (gimple_call_copy_skip_args): Handle calls to internal functions.
5907 * cfgexpand.c (expand_call_stmt): Likewise.
5908 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5909 * gimple-fold.c (gimple_fold_call): Handle null functions.
5910 (gimple_fold_stmt_to_constant_1): Don't fold
5911 calls to internal functions.
5912 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5914 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5915 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5916 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5917 (do_warn_unused_result): Likewise.
5918 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5919 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5920 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5921 the target of a call.
5922 (initialize_hash_element): Update accordingly.
5923 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5924 (iterative_hash_hashable_expr): Handle calls to internal functions.
5925 (print_expr_hash_elt): Likewise.
5926 * tree-ssa-pre.c (can_value_number_call): Likewise.
5927 (eliminate): Handle null functions.
5928 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5929 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5930 (find_func_aliases): Likewise.
5931 * value-prof.c (gimple_ic_transform): Likewise.
5932 (gimple_indirect_call_to_profile): Likewise.
5933 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5934 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5936 2011-04-19 Jan Hubicka <jh@suse.cz>
5938 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5939 * ipa-inline.c (inline_small_functions): Compute summaries first,
5940 populate heap later.
5942 2011-04-19 Jan Hubicka <jh@suse.cz>
5944 * cgraph.h (save_inline_function_body): Remove.
5945 * ipa-inline-transform.c: New file, broke out of...
5946 * ipa-inline.c: ... this one; Update toplevel comment.
5947 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5949 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5950 (cgraph_mark_inline_edge): Rename to inline_call; move to
5951 ipa-inline-transform.c.
5952 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5953 move to ipa-inline-transform.c
5954 (recursive_inlining, inline_small_functions, flatten_function,
5955 ipa_inline, inline_always_inline_functions,
5956 early_inline_small_functions): Update.
5957 (inline_transform): Move to ipa-inline-transform.c.
5958 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5960 * Makefile.in (ipa-inline-transform.o): New file.
5961 * cgraphunit.c (save_inline_function_body): Move to
5962 ipa-inline-transform.c
5964 2011-04-19 DJ Delorie <dj@redhat.com>
5966 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5967 registers if we already know there aren't any.
5968 (m32c_emit_epilogue): Don't emit a barrier here.
5969 (m32c_emit_eh_epilogue): Likewise.
5970 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5971 operands at expand time.
5972 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5974 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5975 duplicates. Provide aliases instead.
5976 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5977 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5980 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5982 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5983 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5984 (general_or_i64_p, sparc_register_move_cost): New function.
5986 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5988 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5989 Add lynx, mipssde. Sort table.
5991 2011-04-19 Xinliang David Li <davidxl@google.com>
5993 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5996 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5999 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6000 is a SUBREG with non-MODE_INT mode inside of it.
6002 2011-04-19 Martin Jambor <mjambor@suse.cz>
6004 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6005 also according to actual contants.
6006 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6007 (gimple_fold_call): Use it.
6008 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6010 2011-04-19 Martin Jambor <mjambor@suse.cz>
6012 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6013 non-pointer assignments.
6015 2011-04-19 Martin Jambor <mjambor@suse.cz>
6017 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6018 account anc_offset and otr_type from the indirect edge info.
6019 * ipa-prop.c (get_ancestor_addr_info): New function.
6020 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6021 get_ancestor_addr_info, call it.
6022 (ipa_note_param_call): Do not initialize information about polymorphic
6023 calls, return the indirect call graph edge. Remove the last
6024 parameter, adjust all callers.
6025 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6026 parameters. Initialize polymorphic information in the indirect edge.
6028 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6031 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6032 the types if they have different enumeration identifiers.
6034 2011-04-19 Jan Hubicka <jh@suse.cz>
6036 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6037 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6038 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6039 (optimize_function_for_size_p) ... here.
6041 2011-04-19 Richard Guenther <rguenther@suse.de>
6044 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6047 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6049 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6050 if DECL_NO_INLINE_WARNING_P is set on the function.
6052 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6055 * reload1.c (inc_for_reload): Return void. All callers changed.
6056 (emit_input_reload_insns): Don't try to delete previous output
6057 reloads to a register, or record spill_reg_store for autoincs.
6059 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6061 * gengtype.h: Updated copyright year.
6062 (struct input_file_st): Add inpisplugin field.
6063 (type_fileloc): New function.
6065 (write_typed_struct_alloc_def): Add gcc_assert.
6066 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6067 (write_typed_alloc_defns): Don't output for plugin files.
6068 (input_file_by_name): Clear inpisplugin field.
6069 (main): Set inpisplugin field for plugin files.
6071 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6073 * gengtype-state.c (string_eq): New.
6074 (read_state): Use string_eq instead of strcmp when creating the
6077 2011-04-19 Wei Guozhi <carrot@google.com>
6080 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6081 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6083 * config/arm/constraints.md (Uu): New constraint.
6084 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6086 2011-04-19 Tristan Gingold <gingold@adacore.com>
6088 * config.gcc (-*-*-*vms): Added.
6089 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6091 * config/vms/vms-ld.c: New file.
6092 * config/vms/vms-ar.c: New file.
6093 * config/vms/t-vmsnative: New file.
6095 2011-04-18 Xinliang David Li <davidxl@google.com>
6097 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6099 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6102 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6103 if TREE_TYPE (v) is non-NULL.
6105 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6106 gimple_get_virt_mehtod_for_binfo.
6107 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6108 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6110 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6112 2011-04-18 Michael Matz <matz@suse.de>
6113 Steve Ellcey <sje@cup.hp.com>
6115 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6116 use its mode as source mode if it isn't VOIDmode.
6118 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6120 * doc/passes.texi: Fill crossref nodes.
6122 2011-04-18 Jim Meyering <meyering@redhat.com>
6124 Fix doubled-word typos in comments and strings
6125 * config/alpha/vms-unwind.h: s/for for/for/
6126 * config/arm/unwind-arm.h: Likewise.
6127 * config/microblaze/microblaze.c: Likewise.
6128 * config/sh/constraints.md: s/in in/in/
6129 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6131 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6133 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6134 (AVX_FLOAT_MODE_P): Ditto.
6135 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6136 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6137 (AVX_VEC_FLOAT_MODE_P): Ditto.
6138 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6139 (UNSPEC_MASKSTORE): Ditto.
6140 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6141 Merge from <sse>_movmsk<ssemodesuffix> and
6142 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6143 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6145 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6146 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6147 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6149 2011-04-18 Jan Hubicka <jh@suse.cz>
6151 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6153 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6154 (want_inline_function_called_once_p): Break out the logic from
6156 (edge_badness): Ensure that profile is not misupdated.
6157 (lookup_recursive_calls): Prioritize by call frequencies.
6158 (inline_small_functions): Move program size estimates here;
6159 actually process whole queue even when unit growth has been
6160 met. (to properly compute inline_failed reasons and for the
6161 case unit size decrease.) Revisit comments on recursive inlining.
6162 (ipa_inline): Remove unit summary code; first inline hot calls
6163 of functions called once, cold calls next.
6164 (order, nnodes): Remove unused variables.
6165 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6166 (GTFILES): Remove ipa-inline.c
6167 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6169 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6171 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6173 2011-04-18 Jie Zhang <jie@codesourcery.com>
6174 Richard Earnshaw <rearnsha@arm.com>
6176 * arm.c (neon_builtin_type_bits): Remove.
6177 (typedef enum neon_builtin_mode): New.
6178 (T_MAX): Don't define.
6179 (typedef enum neon_builtin_datum): Remove bits, codes[],
6180 num_vars and base_fcode. Add mode, code and fcode.
6181 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6182 VAR10): Change accordingly.
6183 (neon_builtin_data[]): Change accordingly
6184 (arm_init_neon_builtins): Change accordingly.
6185 (neon_builtin_compare): Remove.
6186 (locate_neon_builtin_icode): Remove.
6187 (arm_expand_neon_builtin): Change accordingly.
6189 * arm.h (enum arm_builtins): Move to ...
6190 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6192 * arm.c (arm_builtin_decl): Declare.
6193 (TARGET_BUILTIN_DECL): Define.
6194 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6195 (arm_builtin_decls[]): New.
6196 (arm_init_neon_builtins): Store builtin declarations in
6197 arm_builtin_decls[].
6198 (arm_init_tls_builtins): Likewise.
6199 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6200 (arm_builtin_decl): New.
6202 2011-04-18 Richard Guenther <rguenther@suse.de>
6204 * tree.c (upper_bound_in_type): Build properly canonicalized
6206 (lower_bound_in_type): Likewise.
6208 2011-04-18 Richard Guenther <rguenther@suse.de>
6210 * gimple.h (gimple_call_addr_fndecl): New function.
6211 (gimple_call_fndecl): Use it.
6212 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6214 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6215 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6217 2011-04-18 Richard Guenther <rguenther@suse.de>
6220 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6222 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6225 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6226 DECL_IN_CONSTANT_POOL without RTL.
6228 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6229 Ira Rosen <ira.rosen@linaro.org>
6232 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6233 to match neon_vzip/vuzp/vtrn_internal.
6234 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6235 outputs explicitly dependent on both inputs.
6236 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6238 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6240 PR tree-optimization/48616
6241 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6242 whether the shift is by scalar or vector based on whether all SLP
6243 scalar stmts have the same rhs.
6245 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6247 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6250 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6253 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6256 2011-04-17 Jan Hubicka <jh@suse.cz>
6258 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6259 * cgrpahunit.c (cgraph_finalize_function): Do not set
6260 finalized_by_frontend.
6261 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6262 finalized_by_frontend.
6264 2011-04-17 Jan Hubicka <jh@suse.cz>
6266 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6267 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6268 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6269 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6271 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6273 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6275 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6278 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6279 is non-null before accessing it.
6280 (input_cgraph): Remove trailing spaces.
6282 2011-04-17 Revital Eres <revital.eres@linaro.org>
6284 * params.def (sms-min-sc): New param flag.
6285 * modulo-sched.c (sms_schedule): Use it.
6286 * doc/invoke.texi (sms-min-sc): Document it.
6288 2011-04-17 Jan Hubicka <jh@suse.cz>
6290 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6291 present, also set gimple_call_set_cannot_inline.
6292 * ipa-inline.c: Update toplevel comment.
6294 (cgraph_clone_inlined_nodes): Fix linebreaks.
6295 (cgraph_check_inline_limits): Restructure to ...
6296 (caller_growth_limits): ... this one; be more tolerant
6297 on growth in nested inline chains; add explanatory comment;
6298 fix stack accounting thinko introduced by previous patch.
6299 (cgraph_default_inline_p): Remove.
6300 (report_inline_failed_reason): New function.
6301 (can_inline_edge_p): New function.
6302 (can_early_inline_edge_p): New function.
6303 (leaf_node_p): Move upwards in file.
6304 (want_early_inline_function_p): New function.
6305 (want_inline_small_function_p): New function.
6306 (want_inline_self_recursive_call_p): New function.
6307 (cgraph_edge_badness): Rename to ...
6308 (edge_badness) ... this one; fix linebreaks.
6309 (update_edge_key): Update call of edge_baddness; add
6310 detailed dump about queue updates.
6311 (update_caller_keys): Use can_inline_edge_p and
6312 want_inline_small_function_p.
6313 (cgraph_decide_recursive_inlining): Rename to...
6314 (recursive_inlining): Use can_inline_edge_p and
6315 want_inline_self_recursive_call_p; simplify and remove no longer
6317 (cgraph_set_inline_failed): Remove.
6318 (add_new_edges_to_heap): Use can_inline_edge_p and
6319 want_inline_small_function_p.
6320 (cgraph_decide_inlining_of_small_functions): Rename to ...
6321 (inline_small_functions): ... this one; cleanup; use
6322 can/want predicates; cleanup debug ouput; work edges till fibheap
6323 is exhausted and do not stop once unit growth is reached; remove
6324 later loop processing remaining edges.
6325 (cgraph_flatten): Rename to ...
6326 (flatten_function): ... this one; use can_inline_edge_p
6327 and can_early_inline_edge_p predicates.
6328 (cgraph_decide_inlining): Rename to ...
6329 (ipa_inline): ... this one; remove unreachable nodes before
6330 inlining functions called once; simplify the pass.
6331 (cgraph_perform_always_inlining): Rename to ...
6332 (inline_always_inline_functions): ... this one; use
6333 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6334 (cgraph_decide_inlining_incrementally): Rename to ...
6335 (early_inline_small_functions): ... this one; simplify
6336 using new predicates; cleanup; make dumps prettier.
6337 (cgraph_early_inlining): Rename to ...
6338 (early_inliner): newer inline regular functions into always-inlines;
6339 fix updating of call stmt summaries.
6340 (pass_early_inline): Update for new names.
6341 (inline_transform): Fix formating.
6342 (gate_cgraph_decide_inlining): Rename to ...
6343 (pass_ipa_inline): ... this one.
6344 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6345 * ipa-inline-analysis.c (dump_inline_summary): Update.
6346 (compute_inline_parameters): Do not compute disregard_inline_limits;
6347 look for mismatching arguments.
6348 (estimate_growth): Fix handlig of non-trivial self recursion.
6349 (inline_read_summary): Do not read info->disregard_inline_limits.
6350 (inline_write_summary): Do not write info->disregard_inline_limits.
6351 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6352 and move all checks into can_inline_edge_p predicate; re-enable code
6353 comparing optimization levels.
6354 (expand_call_inline): Do not test inline_forbidden_into_p.
6355 * Makefile.in (ipa-inline.o): Update arguments.
6357 2011-04-17 Revital Eres <revital.eres@linaro.org>
6359 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6361 2011-04-17 Revital Eres <revital.eres@linaro.org>
6363 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6365 2011-04-17 Michael Matz <matz@suse.de>
6367 PR tree-optimization/48622
6369 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6370 in same order as they're written.
6372 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6374 * config/pa/predicates.md: Reorganize and simplify predicates.
6375 Eliminate duplicate code checks.
6376 (arith_operand): Rename to arith14_operand
6377 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6378 * config/pa/pa.md: Use renamed operands.
6379 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6380 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6381 arith11_operand, adddi3_operand, indexed_memory_operand,
6382 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6383 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6384 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6385 move_dest_operand, move_src_operand, prefetch_cc_operand,
6386 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6387 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6388 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6389 div_operand, int5_operand, movb_comparison_operator,
6390 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6391 arith_double_operand, ireg_operand, lhs_lshift_operand,
6392 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6393 integer_store_memory_operand): Likewise.
6394 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6395 (integer_store_memory_operand, read_only_operand,
6396 function_label_operand, borx_reg_operand,
6397 non_hard_reg_operand): Likewise.
6398 (eq_neq_comparison_operator): Delete unused operator.
6399 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6400 function_label_operand.
6401 (emit_move_sequence): Likewise.
6403 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6405 * config/i386/sse.md (sseunpackmode): New mode attribute.
6406 (ssepackmode): Ditto.
6407 (vec_pack_trunc_<mode>): Macroize expander from
6408 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6409 (vec_unpacks_lo_<mode>): Macroize expander from
6410 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6411 (vec_unpacks_hi_<mode>): Macroize expander from
6412 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6413 (vec_unpacku_lo_<mode>): Macroize expander from
6414 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6415 (vec_unpacku_hi_<mode>): Macroize expander from
6416 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6417 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6418 ix86_expand_sse4_unpack.
6419 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6421 2011-04-16 Jan Hubicka <jh@suse.cz>
6423 * cgraphbuild.c: Include ipa-inline.h.
6424 (reset_inline_failed): Use initialize_inline_failed.
6425 * cgraph.c: Include ipa-inline.h.
6426 (cgraph_create_node_1): Do not initialize estimated_growth.
6427 (initialize_inline_failed): More to ipa-inline-analysis.c
6428 (dump_cgraph_node): Do not dump inline flags.
6429 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6430 and disregard_inline_limits flags.
6431 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6432 time, size, estimated_growth.
6433 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6435 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6436 DECL_DISREGARD_INLINE_LIMITS.
6437 (cgraph_analyze_function): Do not initialize
6438 node->local.disregard_inline_limits.
6439 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6440 inlinable, versionable and disregard_inline_limits.
6441 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6442 cgraph_check_inline_limits, cgraph_default_inline_p,
6443 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6444 add_new_edges_to_heap): Update.
6445 (cgraph_decide_inlining_of_small_function): Update; set
6446 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6447 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6448 cgraph_decide_inlining_incrementally): Update.
6449 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6450 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6451 time, size and estimated_growth parameters.
6452 (estimate_edge_growth): Update.
6453 (initialize_inline_failed): Declare.
6454 * ipa-split.c: Include ipa-inline.h
6455 (execute_split_functions): Update.
6456 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6457 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6458 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6459 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6460 estimated_growth to INT_MIN.
6461 (inline_node_duplication_hook): Likewise.
6462 (dump_inline_summary): Dump new fields.
6463 (compute_inline_parameters): Update.
6464 (estimate_edge_time, estimate_time_after_inlining,
6465 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6466 inline_write_summary):
6467 (initialize_inline_failed): Move here from cgraph.c.
6468 * tree-sra.c: Include ipa-inline.h.
6469 (ipa_sra_preliminary_function_checks): Update.
6470 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6473 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6475 * config/i386/sse.md (V16): New mode iterator.
6477 (AVXMODEQI, AVXMODEDI): Remove.
6478 (sse2, sse3): New mode attribute.
6479 (mov<mode>): Use V16 mode iterator.
6480 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6481 (push<mode>1): Use V16 mode iterator.
6482 (movmisalign<mode>): Ditto.
6483 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6484 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6485 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6486 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6487 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6488 avx_movdqu<avxmodesuffix>.
6489 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6490 *avx_movdqu<avxmodesuffix>.
6491 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6492 avx_lddqu<avxmodesuffix>.
6493 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6494 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6495 avx_movnt<AVXMODEDI:mode>.
6496 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6497 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6499 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6502 * haifa-sched.c (prune_ready_list, schedule_block): Use
6503 sched_pressure_p rather than flag_sched_pressure.
6505 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6507 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6508 cgraph_get_node instead of cgraph_get_create_node.
6510 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6512 * cfgexpand.c (expand_debug_expr): Use
6513 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6515 2011-04-15 Michael Matz <matz@suse.de>
6517 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6518 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6519 * function.c (gimplify_parameters): Ditto.
6520 * gimplify.c (gimplify_vla_decl): Ditto.
6522 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6523 (gimple_call_set_alloca_for_var): New inline function.
6524 (gimple_call_alloca_for_var_p): Ditto.
6525 * gimple.c (gimple_build_call_from_tree): Remember
6526 CALL_ALLOCA_FOR_VAR_P state.
6527 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6529 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6530 calls if they were for VLA objects.
6532 2011-04-15 Martin Jambor <mjambor@suse.cz>
6534 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6537 2011-04-15 Martin Jambor <mjambor@suse.cz>
6540 * tree-emutls.c (lower_emutls_function_body): Call
6541 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6544 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6546 * c-decl.c (detect_field_duplicates): Call
6547 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6549 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6551 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6552 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6553 * ipa-pure-const.c (check_stmt): Call it.
6554 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6556 2011-04-15 Richard Guenther <rguenther@suse.de>
6558 PR tree-optimization/48290
6559 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6560 Properly decide inhibiting propagation based on the valueized
6561 operand. Do loop-closed SSA form preserving here ...
6562 (init_copy_prop): ... not here.
6564 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6567 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6568 (*ieee_smax<mode>3): Likewise.
6570 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6572 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6573 Replace match_operand with match_dup for the third operand in
6576 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6578 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6579 to track processing of conditionals. Update all callers.
6580 (try_combine, simplify_if_then_else): Update.
6582 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6584 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6587 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6589 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6590 instead of match_operand for operand 3.
6592 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6594 * recog.h (insn_operand_data): Add an "allows_mem" field.
6595 * genoutput.c (output_operand_data): Initialize it.
6596 * optabs.c (maybe_legitimize_operand_same_code): New function.
6597 (maybe_legitimize_operand): Use it when matching the original
6600 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6602 * gimplify.c: Fix issues in comments throughout.
6603 (voidify_wrapper_expr): Fix long line.
6604 (build_stack_save_restore): Likewise.
6605 (gimplify_loop_expr): Likewise.
6606 (gimplify_compound_lval): Likewise.
6607 (gimplify_init_ctor_eval): Likewise.
6608 (gimplify_modify_expr_rhs): Likewise.
6609 (omp_notice_threadprivate_variable): Likewise.
6611 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6613 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6614 original one if this is not a builtin function.
6616 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6619 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6620 offset it as needed based on top 2 bits in operands[3], change
6621 MEM mode to SFmode and mask those 2 bits away from operands[3].
6623 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6625 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6626 change from objc_declare_protocols() to objc_declare_protocol().
6628 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6630 * config/i386/sse.md (sse4_1): New mode attribute.
6631 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6632 avx_blend<ssemodesuffix><avxmodesuffix> and
6633 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6634 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6635 avx_blendv<ssemodesuffix><avxmodesuffix> and
6636 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6637 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6638 avx_dp<ssemodesuffix><avxmodesuffix> and
6639 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6640 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6641 (sse4_1_packusdw): Merge with *avx_packusdw.
6642 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6643 (sse4_1_pblendw): Merge with *avx_pblendw.
6644 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6645 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6646 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6648 (sse4_1_round<ssescalarmodesuffix>): Merge with
6649 *avx_round<ssescalarmodesuffix>.
6650 (aesenc): Merge with *avx_aesenc.
6651 (aesenclast): Merge with *avx_aesenclast.
6652 (aesdec): Merge with *avx_aesdec.
6653 (aesdeclast): Merge with *avx_aesdeclast.
6654 (pclmulqdq): Merge with *pclmulqdq.
6655 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6657 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6659 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6662 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6663 (align_local_variable): This. Update DECL_ALIGN.
6664 (add_stack_var): Updated.
6665 (expand_one_stack_var): Likewise.
6667 2011-04-14 Richard Guenther <rguenther@suse.de>
6669 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6671 (dse_initialize_block_local_data, dse_leave_block,
6672 record_voperand_set, get_stmt_uid): Likewise.
6673 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6674 (dse_optimize_stmt): Remove voperand set handling code.
6675 Simplify and improve to handle any kind of killing stmt.
6676 (dse_record_phi): Remove.
6677 (dse_enter_block): Simplify.
6678 (tree_ssa_dse): Likewise.
6679 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6681 2011-04-14 Jan Hubicka <jh@suse.cz>
6683 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6684 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6685 (cgraph_local_info): Remove inline_summary.
6686 * ipa-cp.c: Include ipa-inline.h.
6687 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6688 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6690 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6691 (input_overwrite_node): Do not set inline summary.
6692 (input_node): Do not stream inline summary.
6693 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6694 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6695 growth; we do not have inline parameters computed for that anyway.
6696 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6697 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6698 (inline_summary_t): New type and VECtor.
6699 (debug_inline_summary, dump_inline_summaries): Declare.
6700 (inline_summary): Use VOCtor.
6701 (estimate_edge_growth): Kill hack computing call stmt size directly.
6702 * lto-section-in.c (lto_section_name): Add inline section.
6703 * ipa-inline-analysis.c: Include lto-streamer.h
6704 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6705 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6706 (inline_summary_vec): Define.
6707 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6708 dump_inline_summaries): New functions.
6709 (estimate_function_body_sizes): Properly compute size/time of outgoing
6711 (compute_inline_parameters): Alloc inline_summary; do not compute
6712 size/time of incomming calls.
6713 (estimate_edge_time): Avoid missing time summary hack.
6714 (inline_read_summary): Read inline summary info.
6715 (inline_write_summary): Write inline summary info.
6716 (inline_free_summary): Free all hooks and inline summary vector.
6717 * lto-streamer.h: Add LTO_section_inline_summary section.
6718 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6719 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6721 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6723 * tree-vectorizer.h (vect_strided_store_supported): Add a
6724 HOST_WIDE_INT argument.
6725 (vect_strided_load_supported): Likewise.
6726 (vect_permute_store_chain): Return void.
6727 (vect_transform_strided_load): Likewise.
6728 (vect_permute_load_chain): Delete.
6729 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6730 count argument. Check that the count is a power of two.
6731 (vect_strided_load_supported): Likewise.
6732 (vect_permute_store_chain): Return void. Update after above changes.
6733 Assert that the access is supported.
6734 (vect_permute_load_chain): Likewise.
6735 (vect_transform_strided_load): Return void.
6736 * tree-vect-stmts.c (vectorizable_store): Update calls after
6737 above interface changes.
6738 (vectorizable_load): Likewise.
6739 (vect_analyze_stmt): Don't check for strided powers of two here.
6741 2011-04-14 Richard Guenther <rguenther@suse.de>
6743 PR tree-optimization/48590
6744 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6745 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6746 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6747 BUILT_IN_STACK_SAVE.
6748 * tree-ssa-dce.c (propagate_necessity): Handle
6749 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6751 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6753 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6756 2011-04-14 Richard Guenther <rguenther@suse.de>
6758 * tree.h (get_object_alignment_1): Declare.
6759 * builtins.c (get_object_alignment_1): Split out worker from ...
6760 (get_object_alignment): ... here.
6761 * fold-const.c (get_pointer_modulus_and_residue): Use
6762 get_object_alignment_1.
6764 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6766 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6768 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6769 parameter. Generalise code to handle arrays as well as vectors.
6770 (vect_setup_realignment): Update accordingly.
6771 * tree-vect-stmts.c (vectorizable_store): Likewise.
6772 (vectorizable_load): Likewise.
6774 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6776 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6777 within the per-copy loop.
6779 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6781 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6784 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6786 * doc/options.texi (Negative): Explicitly mention that the
6787 Negative chain must be circular.
6789 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6791 * function.h (block_chainon): Declare.
6792 * function.c (block_chainon): Define.
6794 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6795 Eric Weddington <eric.weddington@atmel.com>
6796 Georg-Johann Lay <avr@gjlay.de>
6798 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6800 (avr_init_builtins, avr_expand_builtin,
6801 avr_expand_delay_cycles, avr_expand_unop_builtin,
6802 avr_expand_binop_builtin ): New functions.
6803 (avr_builtin_id): New enum
6804 (struct avr_builtin_description): New struct
6805 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6806 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6808 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6809 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6810 UNSPECV_DELAY_CYCLES): new enumeration values
6811 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6812 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6813 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6814 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6815 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6816 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6817 "fmulsu"): New insns
6819 * config/avr/avr-c.c: fix line endings
6820 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6821 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6822 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6823 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6824 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6826 * doc/extend.texi (AVR Built-in Functions): New node
6827 (Target Builtins): Add documentation of AVR
6830 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6833 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6834 alone. Error if non-const data has attribute progmem.
6836 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6838 * tree.h (struct tree_constructor): Include tree_typed instead of
6840 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6841 TS_TYPED instead of TS_COMMON.
6843 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6845 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6846 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6847 (sse2_psadbw): Merge with *avx_psadbw.
6848 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6849 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6850 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6851 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6852 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6853 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6854 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6855 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6856 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6857 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6858 (ssse3_palignrti): Merge with *avx_palignrti.
6860 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6862 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6863 * tree-ssanames.c (fini_ssanames): VEC_free it.
6864 (make_ssa_name_fn): Update for VECness of free_ssanames.
6865 (release_ssa_name, release_dead_ssa_names): Likewise.
6866 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6868 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6869 TS_TYPED instead of TS_COMMON.
6871 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6873 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6874 statistics_counter_event.
6875 * tree-ssa-copyrename.c (stats): Define.
6876 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6877 statistics_counter_event.
6878 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6879 (bswap_stats, widen_mul_stats): Define.
6880 (insert_reciprocals): Increment rdivs_inserted.
6881 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6882 rfuncs_inserted. Add calls to statistics_counter_event.
6883 (execute_cse_sincos_1): Increment inserted.
6884 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6885 statistics_counter_event.
6886 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6887 of bswap_stats. Add calls to statistics_counter_event.
6888 (convert_mult_to_widen): Increment widen_mults_inserted.
6889 (convert_plusminus_to_widen): Increment maccs_inserted.
6890 (convert_mult_to_fma): Increment fmas_inserted.
6891 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6892 calls to statistics_counter_event.
6894 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6896 PR rtl-optimization/48455
6897 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6898 `temp_costs->mem_cost'.
6900 2011-04-13 Jan Hubicka <jh@suse.cz>
6902 * ipa-inline.h: New file.
6903 * ipa-inline-analysis.c: New file. Broken out of ...
6904 * ipa-inline.c: ... this file; update toplevel comment;
6905 include ipa-inline.h
6906 (inline_summary): Move to ipa-inline.h
6907 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6908 ipa-inline-analysis.c.
6909 (cgraph_estimate_time_after_inlining): Rename to
6910 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6911 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6912 to estimate_edge_growth.
6913 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6914 rename to estimate_size_after_inlining.
6915 (cgraph_mark_inline_edge): Update for new naming convention.
6916 (cgraph_check_inline_limits): Likewise.
6917 (cgraph_edge_badness): Likewise.
6918 (cgraph_decide_recursive_inlining): Likewise.
6919 (cgraph_decide_inlining_of_small_functions): Likewise.
6920 (cgraph_decide_inlining_incrementally): Likewise.
6921 (cgraph_estimate_growth): Rename to estimate_growth; move to
6922 ipa-inline-analysis.c.
6923 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6924 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6925 (compute_inline_parameters): Likewise.
6926 (compute_inline_parameters_for_current): Likewise.
6927 (pass_inline_parameters): Likewise.
6928 (inline_indirect_intraprocedural_analysis): Likewise.
6929 (analyze_function): Rename to inline_analyze_function; likewise.
6930 (add_new_function): Move to ipa-inline-analysis.c.
6931 (inline_generate_summary): Likewise.
6932 (inline_read_summary): Likewise.
6933 (inline_write_summary): Likewise.
6934 * Makefile.in (ipa-inline-analysis.c): New file.
6936 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6938 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6939 * configure: Regenerate.
6941 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6943 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6944 instead of tree_common.
6945 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6947 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6948 TS_TYPED rather than TS_COMMON.
6949 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6951 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6954 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6955 r20 around calls of __tablejump_elpm__
6957 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6960 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6962 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6964 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6966 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6967 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6968 (cfi_vec): New typedef.
6969 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6970 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6971 (cie_cfi_vec): New static variable.
6972 (cie_cfi_head): Delete.
6973 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6974 declaration changed. Use vector rather than list operations.
6975 (new_cfi): Don't initialize the dw_cfi_next field.
6976 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6977 rather than list operations.
6978 (lookup_cfa): Use vector rather than list operations.
6979 (output_cfis): New argument upto. Accept a cfi_vec rather than
6980 a dw_cfi_ref list head as argument. All callers changed.
6981 Iterate over the vector using upto as a maximum index.
6982 (output_all_cfis): New static function.
6983 (output_fde): Use vector rather than list operations. Use the
6984 new upto argument for output_cfis rather than manipulating a
6986 (dwarf2out_begin_prologue): Change initializations to match
6988 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6989 from the vector length rather than searching for the end of a list.
6990 Use output_all_cfis.
6991 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6993 2011-04-13 Nick Clifton <nickc@redhat.com>
6995 * config/rx/rx.md (movmemsi): Do not use this pattern when
6996 volatile pointers are involved.
6998 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7000 * config/i386/sse.md (pinsrbits): Remove.
7001 (sse2_packsswb): Merge with *avx_packsswb.
7002 (sse2_packssdw): Merge with *avx_packssdw.
7003 (sse2_packuswb): Merge with *avx_packuswb.
7004 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7005 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7006 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7007 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7008 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7009 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7010 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7011 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7012 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7013 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7014 (sse2_loadld): Merge with *avx_loadld.
7015 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7016 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7017 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7018 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7019 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7021 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7023 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7025 * print-tree.c (print_node): Likewise.
7026 * tree-inline.c (copy_tree_r): Likewise.
7027 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7028 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7029 instead of TS_COMMON.
7030 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7031 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7032 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7033 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7034 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7036 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7038 (TREE_CHAIN): Check for a TS_COMMON structure.
7039 (TREE_TYPE): Check for a TS_TYPED structure.
7041 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7043 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7044 cgraph_get_create_node instead of cgraph_node.
7046 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7048 * c-parser.c (c_parser_initelt): Updated call to
7049 objc_build_message_expr.
7050 (c_parser_postfix_expression): Likewise.
7052 2011-04-12 Kai Tietz <ktietz@redhat.com>
7054 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7055 MASK_MS_BITFIELD_LAYOUT bit.
7057 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7059 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7060 assert it is always true.
7061 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7064 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7066 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7067 compiling Objective-C to be more efficient.
7069 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7071 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7074 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7076 * recog.h, genoutput.c, optabs.c: Revert last patch.
7078 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7081 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7083 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7085 * recog.h (insn_operand_data): Add an "allows_mem" field.
7086 * genoutput.c (output_operand_data): Initialize it.
7087 * optabs.c (maybe_legitimize_operand_same_code): New function.
7088 (maybe_legitimize_operand): Use it when matching the original
7091 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7093 * genpreds.c (process_define_predicate): Move most processing
7094 to gensupport.c. Continue to validate the expression.
7095 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7096 (process_define_predicate): Move processing to gensupport.c.
7097 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7098 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7099 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7101 (valid_predicate_name_p): New function, split out from old
7102 genpreds.c:process_define_predicate.
7103 (process_define_predicate): New function, combining code from
7104 old genpreds.c and genrecog.c functions.
7105 (process_rtx): Call it for DEFINE_PREDICATE and
7106 DEFINE_SPECIAL_PREDICATE.
7108 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7110 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7111 size of a '%A' memory reference.
7112 (T_DREG, T_QREG): New neon_builtin_type_bits.
7113 (arm_init_neon_builtins): Assert that the load and store operands
7114 are neon_struct_operands.
7115 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7116 (NEON_ARG_MEMORY): New builtin_arg.
7117 (neon_dereference_pointer): New function.
7118 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7119 Handle NEON_ARG_MEMORY.
7120 (arm_expand_neon_builtin): Update after above interface changes.
7121 Use NEON_ARG_MEMORY for loads and stores.
7122 * config/arm/predicates.md (neon_struct_operand): New predicate.
7123 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7124 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7125 (V_four_elem): Tweak formatting.
7126 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7127 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7128 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7129 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7130 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7131 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7132 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7133 Use %A in the output template.
7134 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7135 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7136 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7137 the width of the memory access. Remove post-increment.
7138 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7140 2011-04-12 Nick Clifton <nickc@redhat.com>
7142 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7143 instruction for interrupt handlers if the target is the basic V850
7145 (expand_epilogue): Likewise.
7147 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7149 PR rtl-optimization/48549
7150 * combine.c (propagate_for_debug): Also stop after BB_END of
7151 this_basic_block. Process LAST and just stop processing after it.
7152 (combine_instructions): If last_combined_insn has been deleted,
7153 set last_combined_insn to its PREV_INSN.
7155 2011-04-12 Richard Guenther <rguenther@suse.de>
7157 PR tree-optimization/46076
7158 * gimple.h (struct gimple_statement_call): Add fntype field.
7159 (gimple_call_fntype): Adjust.
7160 (gimple_call_set_fntype): New function.
7161 * gimple.c (gimple_build_call_1): Set the call function type.
7162 * gimplify.c (gimplify_call_expr): Preserve the function
7163 type the frontend used for the call.
7164 (gimplify_modify_expr): Likewise.
7165 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7167 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7169 * tree-ssa.c (useless_type_conversion_p): Function pointer
7170 conversions are useless.
7172 2011-04-12 Martin Jambor <mjambor@suse.cz>
7174 * cgraph.h (cgraph_node): Remove function declaration.
7175 (cgraph_create_node): Declare.
7176 (cgraph_get_create_node): Likewise.
7177 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7178 Updated all callers.
7179 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7180 the decl does not already exist. Call cgraph_get_create_node instead
7182 (cgraph_get_create_node): New function.
7183 (cgraph_same_body_alias): Update comment.
7184 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7185 assert it does not return NULL.
7186 (cgraph_update_edges_for_call_stmt): Likewise.
7187 (cgraph_clone_edge): Likewise.
7188 (cgraph_create_virtual_clone): Likewise.
7189 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7190 instead of cgraph_node.
7191 (cgraph_add_new_function): Call cgraph_create_node or
7192 cgraph_get_create_node instead of cgraph_node.
7193 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7194 instead of cgraph_node.
7195 (record_eh_tables): Likewise.
7196 (mark_address): Likewise.
7197 (mark_load): Likewise.
7198 (build_cgraph_edges): Call cgraph_get_create_node instead
7200 (rebuild_cgraph_edges): Likewise.
7201 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7202 instead of cgraph_node.
7203 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7205 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7206 cgraph_create_node instead of cgraph_node.
7207 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7209 * lto-cgraph.c (input_node): Likewise.
7210 * lto-streamer-in.c (input_function): Likewise.
7211 * varasm.c (mark_decl_referenced): Likewise.
7212 (assemble_alias): Likewise.
7214 2011-04-12 Martin Jambor <mjambor@suse.cz>
7216 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7217 instead of cgraph_node and assert it does not return NULL.
7218 * lto-streamer-in.c (lto_read_body): Likewise.
7219 * omp-low.c (new_omp_context): Likewise.
7220 (create_task_copyfn): Likewise.
7221 * tree-emutls.c (lower_emutls_function_body): Likewise.
7222 * matrix-reorg.c (transform_allocation_sites): Likewise.
7224 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7227 * c-typeck.c (build_asm_expr): Error out on attempts to use
7228 void type outputs or inputs for constraints that allow reg or
7231 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7232 Richard Earnshaw <rearnsha@arm.com>
7235 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7236 to use sign-magnitude offsets. Reject unsupported unaligned
7237 cases. Add detailed description in comments.
7238 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7239 condition from TARGET_32BIT to TARGET_ARM.
7241 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7243 * tree.h (struct typed_tree): New.
7244 (struct tree_common): Include it instead of tree_base.
7245 (TREE_TYPE): Update for new location of type field.
7246 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7247 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7248 (union tree_node): Add typed field.
7249 * treestruct.def (TS_TYPED): New.
7250 * lto-streamer.c (check_handled_ts_structures): Handle it.
7251 * tree.c (MARK_TS_TYPED): New macro.
7252 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7254 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7256 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7257 (force_nonfallthru): Do not alter the loop nest if no basic block
7260 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7262 * config/i386/sse.md (VI): New mode iterator.
7264 (AVX256MODEI): Ditto.
7265 (AVXMODEF4P): Ditto.
7266 (avxvecpsmode): Ditto.
7267 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7268 (sse2_andnot<mode>3): New expander.
7269 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7270 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7271 (<any_logic:code><mode>3): Use VI mode iterator.
7272 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7273 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7274 (*andnottf3): Handle AVX three-operand constraints.
7275 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7277 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7278 Robert Millan <rmh@gnu.org>
7280 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7281 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7282 GNU_USER_DYNAMIC_LINKER64): Define.
7283 (REG_NAME): Don't undefine.
7284 (MD_UNWIND_SUPPORT): Undefine.
7285 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7286 (REG_NAME): Don't undefine.
7287 (MD_UNWIND_SUPPORT): Undefine.
7288 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7290 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7292 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7293 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7295 2011-04-11 Xinliang David Li <davidxl@google.com>
7297 * value-profile.c (check_ic_target): New function.
7298 (gimple_ic_transform): Sanity check indirect call target.
7299 * gimple-low.c (gimple_check_call_args): Interface change.
7300 (gimple_check_call_matching_types): New function.
7301 * tree-inline.c (tree_can_inline_p): Call new function.
7303 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7305 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7306 tree-pretty-print.h & realmpfr.h.
7308 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7311 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7312 (setup_allocno_and_important_classes): Ditto.
7314 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7316 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7317 GNU_USER_DYNAMIC_LINKER.
7318 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7319 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7320 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7321 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7322 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7323 GNU_USER_TARGET_OS_CPP_BUILTINS.
7324 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7325 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7326 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7327 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7328 * config/cris/linux.h (CRIS_LINK_SUBTARGET_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/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7333 GNU_USER_DYNAMIC_LINKER.
7334 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7335 GNU_USER_TARGET_OS_CPP_BUILTINS.
7336 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7337 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7338 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7339 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7340 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7341 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7342 GNU_USER_DYNAMIC_LINKER64): Remove.
7343 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7344 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7345 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7346 GNU_USER_DYNAMIC_LINKER.
7347 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7348 GNU_USER_TARGET_OS_CPP_BUILTINS.
7349 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7350 GNU_USER_TARGET_OS_CPP_BUILTINS.
7351 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7352 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7353 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7354 GNU_USER_TARGET_OS_CPP_BUILTINS.
7355 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7356 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7357 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7358 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7360 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7361 GNU_USER_DYNAMIC_LINKER.
7362 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7363 GNU_USER_TARGET_OS_CPP_BUILTINS.
7364 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7365 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7366 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7367 GNU_USER_DYNAMIC_LINKER.
7368 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7369 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7370 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7371 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7372 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7373 GNU_USER_DYNAMIC_LINKER.
7374 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7375 GNU_USER_DYNAMIC_LINKERN32.
7376 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7377 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7378 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7379 GNU_USER_DYNAMIC_LINKER32.
7380 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7381 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7382 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7383 GNU_USER_DYNAMIC_LINKER.
7384 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7385 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7386 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7387 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7388 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7389 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7390 GNU_USER_DYNAMIC_LINKER32.
7391 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7392 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7393 GNU_USER_DYNAMIC_LINKER.
7394 * config/s390/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_LINKER32 to
7397 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7398 GNU_USER_DYNAMIC_LINKER64.
7399 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7400 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7401 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7402 GNU_USER_DYNAMIC_LINKER.
7403 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7404 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7405 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7406 GNU_USER_DYNAMIC_LINKER.
7407 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7408 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7409 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7410 GNU_USER_DYNAMIC_LINKER32.
7411 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7412 GNU_USER_DYNAMIC_LINKER64.
7413 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7414 GNU_USER_DYNAMIC_LINKER64.
7415 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7416 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7417 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7418 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7419 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7421 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7423 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7424 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7425 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7426 GNU_USER_DYNAMIC_LINKER.
7427 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7428 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7429 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7430 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7431 GNU_USER_DYNAMIC_LINKER64.
7432 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7433 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7434 GNU_USER_LINK_EMULATION.
7435 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7436 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7437 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7438 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7439 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7440 CPP_SPEC, CC1_SPEC): Remove.
7441 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7442 (GNU_USER_DYNAMIC_LINKER): Define.
7443 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7444 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7445 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7446 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7447 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7448 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7449 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7450 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7451 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7452 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7453 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7454 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7455 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7456 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7457 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7458 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7459 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7460 GNU_USER_DYNAMIC_LINKER.
7461 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7462 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7463 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7464 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7465 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7466 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7467 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7468 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7469 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7470 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7472 2011-04-11 Kai Tietz <ktietz@redhat.com>
7476 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7477 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7479 (ix86_is_msabi_thiscall): Removed.
7480 (ix86_is_type_thiscall): Likewise.
7481 (ix86_get_callcvt): New function.
7482 (ix86_comp_type_attributes): Simplify check.
7483 (ix86_function_regparm): Use ix86_get_callcvt for calling
7484 convention attribute checks.
7485 (ix86_return_pops_args): Likewise.
7486 (ix86_static_chain): Likewise.
7487 (x86_this_parameter): Likewise.
7488 (x86_output_mi_thunk): Likewise.
7489 (ix86_function_type_abi): Optimize check for types without attributes.
7490 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7491 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7492 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7494 (IX86_BASE_CALLCVT): Helper macro.
7495 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7496 Use ix86_get_callcvt for calling convention attribute checks and avoid
7497 symbol-decoration for stdcall in TARGET_RTD case.
7498 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7500 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7503 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7505 * config/i386/sse.md (VI_128): New mode iterator.
7506 (VI12_128): Rename from SSEMODE12.
7507 (VI14_128): Rename from SSEMODE14.
7508 (VI124_128): New mode iterator.
7509 (VI24_128): Rename from SSEMODE248.
7510 (VI248_128): Rename from SSEMODE248.
7511 (SSEMODE124C8): Remove.
7512 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7513 (*sse2_<plusminus_insn><mode>3): Merge with
7514 *avx_<plusminus_insn><mode>3.
7515 (*mulv8hi3): Merge with *avx_mulv8hi3.
7516 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7517 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7518 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7519 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7520 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7521 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7522 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7523 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7524 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7525 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7526 (*<smaxmin:code>v8hi3): Ditto.
7527 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7528 (*<smaxmin:code>v16qi3): Ditto.
7529 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7530 (*sse2_eq<mode>3): Ditto.
7531 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7532 (*sse2_gt<mode>3): Ditto.
7533 (vcondv2di): Split out of vcond<mode>.
7534 (vconduv2di): Split out of vcondu<mode>.
7536 2011-04-11 Richard Guenther <rguenther@suse.de>
7538 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7539 before calling tree_low_cst.
7541 2011-04-11 Richard Guenther <rguenther@suse.de>
7543 * stor-layout.c (layout_type): Compute all array index size operations
7544 in the original type.
7545 (initialize_sizetypes): Add comment.
7546 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7548 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7550 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7552 2011-04-11 Martin Jambor <mjambor@suse.cz>
7554 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7555 of cgraph_node, handle NULL return value.
7556 (cgraph_global_info): Likewise.
7557 (cgraph_rtl_info): Likewise.
7558 * tree-inline.c (estimate_num_insns): Likewise.
7559 * gimplify.c (unshare_body): Likewise.
7560 (unvisit_body): Likewise.
7561 (gimplify_body): Likewise.
7562 * predict.c (optimize_function_for_size_p): Likewise.
7563 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7564 (call_may_clobber_ref_p_1): Likewise.
7565 * varasm.c (function_section_1): Likewise.
7566 (assemble_start_function): Likewise.
7568 2011-04-11 Martin Jambor <mjambor@suse.cz>
7570 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7572 * final.c (rest_of_clean_state): Likewise.
7573 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7574 * passes.c (pass_init_dump_file): Likewise.
7575 (execute_all_ipa_transforms): Likewise.
7576 (function_called_by_processed_nodes_p): Likewise.
7577 * predict.c (maybe_hot_frequency_p): Likewise.
7578 (probably_never_executed_bb_p): Likewise.
7579 (compute_function_frequency): Likewise.
7580 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7581 (unnest_nesting_tree_1): Likewise.
7582 (lower_nested_functions): Likewise.
7583 * tree-optimize.c (execute_fixup_cfg): Likewise.
7584 (tree_rest_of_compilation): Likewise.
7585 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7586 * tree-sra.c (ipa_early_sra): Likewise.
7587 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7588 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7589 * ipa.c (record_cdtor_fn): Likewise.
7590 * ipa-inline.c (cgraph_early_inlining): Likewise.
7591 (compute_inline_parameters_for_current): Likewise.
7592 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7593 * ipa-pure-const.c (local_pure_const): Likewise.
7594 * ipa-split.c (split_function): Likewise.
7595 (execute_split_functions): Likewise.
7596 * cgraphbuild.c (build_cgraph_edges): Likewise.
7597 (rebuild_cgraph_edges): Likewise.
7598 (cgraph_rebuild_references): Likewise.
7599 (remove_cgraph_callee_edges): Likewise.
7600 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7601 (verify_cgraph_node): Likewise.
7602 (cgraph_analyze_functions): Likewise.
7603 (cgraph_preserve_function_body_p): Likewise.
7604 (save_inline_function_body): Likewise.
7605 (save_inline_function_body): Likewise.
7606 * tree-inline.c (copy_bb): Likewise.
7607 (optimize_inline_calls): Likewise.
7609 2011-04-11 Martin Jambor <mjambor@suse.cz>
7611 PR tree-optimization/48195
7612 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7613 ipa_check_create_edge_args.
7614 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7615 ipa_check_create_edge_args.
7616 * ipa-inline.c (inline_generate_summary): Do not call
7617 ipa_check_create_node_params and ipa_check_create_edge_args.
7618 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7619 ipa_check_create_edge_args.
7621 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7623 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7625 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7626 * function.c (record_hard_reg_sets): Likewise.
7627 * ira.c (compute_regs_asm_clobbered): Likewise.
7628 * sched-deps.c (sched_analyze_1): Likewise.
7629 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7631 2011-04-09 Xinliang David Li <davidxl@google.com>
7633 PR tree-optimization/PR48484
7634 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7635 has_valid_pred lazily
7637 2011-04-09 Duncan Sands <baldrick@free.fr>
7639 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7641 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7643 * combine.c (combine_validate_cost): Adjust comments. Set registered
7644 cost of I0 to zero at the end, if any.
7646 2011-04-08 Xinliang David Li <davidxl@google.com>
7648 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7649 to insane profile data.
7651 2011-04-08 Xinliang David Li <davidxl@google.com>
7653 * ipa-cp.c (ipcp_update_profiling): Correct
7654 negative scale factor due to insane profile data.
7656 2011-04-08 Xinliang David Li <davidxl@google.com>
7658 * final.c (dump_basic_block_info): New function.
7659 (final): Dump basic block.
7660 (final_scan_insn): Remove old dump.
7662 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7665 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7668 2011-04-08 Michael Matz <matz@suse.de>
7671 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7673 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7674 * rtl.h (rebuild_jump_labels_chain): Declare.
7675 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7676 insns inserted on edges.
7678 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7680 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7681 * config/arm/arm-arches.def: New.
7682 * config/arm/arm-opts.h: New.
7683 * config/arm/genopt.sh: New.
7684 * config/arm/arm-tables.opt: New (generated).
7685 * config/arm/arm.c (arm_handle_option, arm_target_help,
7686 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7687 (all_architectures): Get most table contents from arm-arches.def.
7688 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7689 arm_selected_tune here.
7690 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7691 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7692 (march=, mcpu=, mtune=): Use Enum and Var.
7693 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7694 (arm.o): Update dependencies.
7696 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7698 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7700 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7701 (write_typed_alloc_defns): Likewise.
7702 (main): Calls write_typed_alloc_defns with output_header.
7704 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7707 * ira-color.c (setup_profitable_hard_regs): Add comments.
7708 Don't take prohibited hard regs into account.
7709 (setup_conflict_profitable_regs): Rename to
7710 get_conflict_profitable_regs.
7711 (check_hard_reg_p): Check prohibited hard regs.
7713 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7715 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7716 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7717 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7719 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7722 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7723 move from floating point to shift amount register.
7724 (emit_move_sequence): Remove secondary reload support for floating
7725 point to shift amount amount register copies.
7726 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7727 amount register copies.
7728 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7729 register, return false if mode isn't a scalar integer mode.
7730 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7732 2011-04-08 Richard Guenther <rguenther@suse.de>
7734 * gimple.c (gimple_call_flags): Remove kludge.
7736 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7738 * sel-sched.c (sel_region_init): Move call to
7739 sel_setup_region_sched_flags after setup_current_loop_nest.
7741 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7743 PR rtl-optimization/48272
7744 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7745 init_insn_reg_pressure_info. Adjust a caller.
7746 * sched-int.h (init_insn_reg_pressure_info): Declare.
7747 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7748 when sched-pressure is enabled.
7750 2011-04-08 Richard Guenther <rguenther@suse.de>
7752 * gimple.c (gimple_set_modified): Do not queue calls to
7753 MODIFIED_NORETURN_CALLS here ...
7754 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7756 2011-04-08 Richard Guenther <rguenther@suse.de>
7759 * toplev.c (lang_dependent_init): Do not open asm_out_file
7760 in WPA mode, nor perform debug machinery initialization.
7761 (finalize): Do not unlink asm_out_file in WPA mode.
7763 2011-04-08 Richard Guenther <rguenther@suse.de>
7765 * gimple.h (gimple_call_fntype): New function.
7766 (gimple_call_return_type): Use it.
7767 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7768 * gimple-low.c (gimple_check_call_args): Likewise.
7769 * gimple.c (gimple_call_flags): Likewise.
7770 (gimple_call_arg_flags): Likewise.
7771 (gimple_call_return_flags): Likewise.
7772 * tree-cfg.c (verify_gimple_call): Likewise.
7773 (do_warn_unused_result): Likewise.
7774 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7775 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7777 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7779 PR rtl-optimization/48235
7780 * sel-sched.c (code_motion_process_successors): Recompute the last
7781 insn in basic block if control flow changed.
7782 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7783 Update condition for ilist_remove.
7785 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7787 PR rtl-optimization/48302
7788 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7789 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7790 it to record added preheader blocks.
7791 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7792 on to sel_add_loop_preheaders.
7793 (sel_region_init): Move call to setup_current_loop_nest after
7796 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7799 * cfgloop.h (loop_has_exit_edges): New helper.
7800 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7802 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7803 that have no exit edges.
7805 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7807 PR rtl-optimization/48442
7808 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7809 all callers. Adjust assert.
7811 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7813 PR tree-optimization/48377
7814 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7815 is_packed to true even for types with smaller TYPE_ALIGN than
7818 2011-04-08 Richard Guenther <rguenther@suse.de>
7821 * doc/tm.texi: Re-generate.
7823 2011-04-08 Wei Guozhi <carrot@google.com>
7826 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7827 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7828 * config/arm/arm.md (*push_multi): Change the length computation to
7831 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7833 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7834 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7835 * doc/tm.texi: Regenerate.
7836 * system.h (ASM_OUTPUT_BSS): Poison.
7837 * varasm.c (asm_output_bss): Remove function.
7838 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7840 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7841 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7842 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7843 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7845 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7847 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7849 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7851 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7853 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7856 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7858 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7859 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7860 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7862 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7863 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7864 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7865 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7866 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7867 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7868 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7869 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7870 options. Don't map other m68k options manually. Don't handle
7871 old-style options as canonical.
7872 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7873 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7875 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7877 * basic-block.h (force_nonfallthru): Move to...
7878 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7879 (force_nonfallthru): ...here.
7880 * cfghooks.c (force_nonfallthru): New function.
7881 * cfgrtl.c (force_nonfallthru): Rename into...
7882 (rtl_force_nonfallthru): ...this.
7883 (commit_one_edge_insertion): Do not set AUX field.
7884 (commit_edge_insertions): Do not discover new basic blocks.
7885 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7886 (cfg_layout_rtl_cfg_hooks): Likewise.
7887 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7888 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7889 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7891 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7893 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7896 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7898 * config/i386/sse.md: Update copyright year.
7899 (avxcvtvecmode): Remove.
7900 (sse_movhlps): Merge with *avx_movhlps.
7901 (sse_movlhps): Merge with *avx_movlhps.
7902 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7903 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7904 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7905 (sse_loadhps): Merge with *avx_loadhps.
7906 (sse_storelps): Merge with *avx_storelps.
7907 (sse_loadlps): Merge with *avx_loadlps.
7908 (sse_movss): Merge with *avx_movss.
7909 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7910 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7911 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7912 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7913 (vec_set<mode>_0): Ditto.
7914 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7915 (sse4_1_insertps): Merge with *avx_insertps.
7916 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7917 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7918 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7919 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7920 (sse2_storehpd): Merge with *avx_storehpd.
7921 (sse2_loadhpd): Merge with *avx_loadhpd.
7922 (sse2_loadlpd): Merge with *avx_loadlpd.
7923 (sse2_movsd): Merge with *avx_movsd.
7924 (*vec_concatv2df): Merge with *vec_concatv2df.
7926 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7929 * combine.c (combine_instructions): Add last_combined_insn,
7930 update it if insn is after it, pass it to all try_combine calls.
7931 (try_combine): Add last_combined_insn parameter, pass it instead of
7932 i3 to propagate_for_debug.
7934 2011-04-07 Nick Clifton <nickc@redhat.com>
7936 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7937 to handle MDR <-> data register transfers.
7938 (movhi_internal): Likewise.
7940 2011-04-07 Alan Modra <amodra@gmail.com>
7942 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7943 previous stack info.
7945 2011-04-07 Tom de Vries <tom@codesourcery.com>
7948 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7949 flow_find_cross_jump. Swap variables to implement backward replacement.
7950 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7952 2011-04-07 Tom de Vries <tom@codesourcery.com>
7955 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7956 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7958 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7959 src1 or src2. Redirect edges to the last basic block. Update
7960 frequency and count on multiple basic blocks in case of fallthru.
7962 2011-04-07 Tom de Vries <tom@codesourcery.com>
7965 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7967 (old_insns_match_p): Change return type. Replace return false/true
7968 with return dir_none/dir_both. Use can_replace_by.
7969 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7970 direction from dir_p. Register replacement direction in dir, last_dir
7971 and afterlast_dir. Handle new return type of old_insns_match_p using
7972 merge_dir. Return replacement direction in dir_p.
7973 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7974 return type of old_insns_match_p.
7975 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7976 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7977 flow_find_cross_jump.
7978 * basic-block.h (enum replace_direction): New type.
7979 (flow_find_cross_jump): Add parameter to declaration.
7981 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7983 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7984 (AVXMODEDCVTPS2DQ): Ditto.
7985 (VEC_FLOAT_MODE): Ditto.
7986 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7987 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7988 (<any_logic:code><mode>3): Use VF mode iterator.
7989 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7990 Use VF mode iterator.
7991 (copysign<mode>3): Use VF mode iterator.
7992 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7993 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7994 (*<any_logic:code><MODEF:mode>3): Merge with
7995 *avx_<any_logic:code><MODEF:mode>3.
7996 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7997 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7998 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7999 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8000 (sse2_cvtdq2ps): Use %v modifier.
8001 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8002 (avx_cvtps2dq<avxmodesuffix>): Remove.
8003 (sse2_cvtps2dq): Use %v modifier.
8004 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8005 (avx_cvttps2dq<avxmodesuffix>): Remove.
8006 (sse2_cvttps2dq): Use %v modifier.
8007 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8008 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8009 (sse2_cvtsd2siq): Fix insn template.
8010 (sse2_cvtsd2siq_2): Ditto.
8011 (sse2_cvttsd2siq): Ditto.
8012 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8013 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8015 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8017 * gcov-io.c: Use GCC Runtime Library Exception.
8019 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8022 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8023 as base_reg whatever register reg has been eliminated to, instead
8024 of hardcoding STACK_POINTER_REGNUM.
8026 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8028 * doc/tm.texi.in: Document C target hooks as separate from general
8030 * doc/tm.texi: Regenerate.
8031 * genhooks.c (struct hook_desc): Add docname field.
8032 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8034 (hook_array): Include c-target.def.
8035 (emit_documentation): Use docname field in output.
8036 (emit_init_macros): Take docname argument. Only emit definitions
8037 for hooks matching docname.
8038 (main): Expect additional arguments in all cases. Pass argument
8039 to emit_init_macros.
8040 * target.def: Move initial macro definitions and comments to
8041 target-hooks-macros.h.
8042 (gcc_targetcm): Move to c-family/c-target.def.
8043 * target.h (targetcm): Move declaration to c-family/c-target.h.
8044 * targhooks.c (default_handle_c_option): Move to
8046 * targhooks.h (default_handle_c_option): Move declaration to
8047 c-family/c-common.h.
8048 * target-hooks-macros.h: New file.
8049 * config.gcc (target_has_targetcm): Define and use to add to
8050 c_target_objs and cxx_target_objs.
8051 * config/default-c.c: New file.
8052 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8053 of target.h and target-def.h.
8054 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8055 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8056 darwin_check_cfstring_format_arg): Make static.
8057 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8058 TARGET_STRING_OBJECT_REF_TYPE_P,
8059 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8060 * config/darwin-protos.h (darwin_objc_construct_string,
8061 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8063 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8064 TARGET_STRING_OBJECT_REF_TYPE_P,
8065 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8066 * config/t-darwin (darwin-c.o): Update dependencies.
8067 * system.h (TARGET_HAS_TARGETCM): Poison.
8068 * Makefile.in (TARGET_H): Update.
8069 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8070 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8071 (default-c.o): New target.
8072 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8073 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8074 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8076 (build/genhooks.o): Update dependencies.
8078 2011-04-06 Richard Guenther <rguenther@suse.de>
8080 * ipa-inline.c (enum inlining_mode): Remove.
8081 (cgraph_flatten): Use some other token.
8082 (cgraph_edge_early_inlinable_p): New function, split out from ...
8083 (cgraph_perform_always_inlining): New function, split out from ...
8084 (cgraph_decide_inlining_incrementally): ... here.
8085 (cgraph_mark_inline_edge): Adjust.
8086 (cgraph_early_inlining): Re-structure.
8087 (pass_early_inline): Require SSA form.
8089 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8090 Julian Brown <julian@codesourcery.com>
8091 Mark Shinwell <shinwell@codesourcery.com>
8093 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8094 LO_REGS only for Thumb-1.
8095 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8096 be used in short instructions when optimising for size on Thumb-2.
8098 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8100 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8101 associated with user returns to be preserved.
8103 2011-04-06 Tristan Gingold <gingold@adacore.com>
8105 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8106 symbol_queue_size, DBXOUT_DECR_NESTING,
8107 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8108 if XCOFF_DEBUGGING_INFO.
8110 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8112 * config/i386/i386.md (attribute isa): New.
8113 (attribute enabled): New.
8114 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8115 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8116 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8117 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8118 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8119 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8120 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8121 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8123 * config/i386/sse.md (VF): New mode iterator.
8127 (SSEMODEF4): Remove.
8128 (attribute sse): Handle V8SF and V4DF modes.
8129 (<absneg:code><mode>2): Use VF mode iterator.
8130 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8132 (<plusminus_insn><mode>3): Use VF mode iterator.
8133 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8134 Use VF mode iterator.
8135 (<sse>_vm<plusminus_insn><mode>3): Merge with
8136 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8137 (mul<mode>3): Use VF mode iterator.
8138 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8139 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8141 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8142 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8143 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8144 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8146 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8147 Use VF1 mode iterator.
8148 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8149 (sqrt<VF2:mode>2): New expander.
8150 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8151 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8152 and sqrtv2df2. Use VF mode iterator.
8153 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8155 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8156 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8157 Use VF1 mode iterator.
8158 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8159 (<smaxmin:code><mode>3): Use VF mode iterator.
8160 (*<smaxmin:code><mode>3_finite): Merge with
8161 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8162 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8163 (<sse>_vm<smaxmin:code><mode>2): Merge with
8164 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8165 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8167 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8169 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8170 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8171 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8172 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8173 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8175 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8176 Use VF_128 mode iterator.
8177 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8179 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8180 VF_128 mode iterator.
8181 (vcond<mode>): Use VF mode iterator.
8182 * config/i386/predicates.md (sse_comparison_operator): Merge with
8183 avx_comparison_float_operator. Do not declare as special_predicate.
8184 * config/i386/i386.c (struct builtin_description): Update for renamed
8186 (ix86_expand_args_builtin): Ditto.
8187 (ix86_expand_sse_compare_mask): Ditto.
8189 2011-04-06 Richard Guenther <rguenther@suse.de>
8191 * tree-inline.c (estimate_num_insns): For calls simply account
8192 for all passed arguments and a used return value.
8194 2011-04-06 Richard Guenther <rguenther@suse.de>
8196 PR tree-optimization/47663
8197 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8198 call_stmt_time fields.
8199 (cgraph_edge_inlinable_p): Declare.
8200 (cgraph_edge_recursive_p): New inline function.
8201 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8202 (cgraph_clone_edge): Copy it.
8203 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8204 Account for call stmt time.
8205 (cgraph_estimate_time_after_inlining): Take edge argument.
8206 (cgraph_estimate_edge_growth): Account call stmt size.
8207 (cgraph_estimate_size_after_inlining): Take edge argument.
8208 (cgraph_mark_inline_edge): Adjust.
8209 (cgraph_check_inline_limits): Likewise.
8210 (cgraph_recursive_inlining_p): Remove.
8211 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8212 (cgraph_decide_recursive_inlining): Take edge argument and
8214 (cgraph_decide_inlining_of_small_functions): Do not avoid
8215 diags for recursive inlining here.
8216 (cgraph_flatten): Adjust.
8217 (cgraph_decide_inlining_incrementally): Likewise.
8218 (estimate_function_body_sizes): Remove call cost handling.
8219 (compute_inline_parameters): Initialize caller edge call costs.
8220 (cgraph_estimate_edge_growth): New function.
8221 (cgraph_estimate_growth): Use it.
8222 (cgraph_edge_badness): Likewise.
8223 (cgraph_check_inline_limits): Take an edge argument.
8224 (cgraph_decide_inlining_of_small_functions): Adjust.
8225 (cgraph_decide_inlining): Likewise.
8226 * tree-inline.c (estimate_num_insns): Only account for call
8227 return value if it is used.
8228 (expand_call_inline): Avoid diagnostics on recursive inline
8230 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8231 (input_edge): Input edge call costs.
8233 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8235 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8237 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8239 * doc/invoke.texi (Spec Files): Fix typo.
8241 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8243 * profile.c (branch_prob): Move declaration of local variable. Remove
8244 obsolete ??? comment. Expand the location explicitly instead of using
8245 the LOCATION_FILE and LOCATION_LINE macros.
8247 2011-04-06 Wei Guozhi <carrot@google.com>
8250 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8251 (arm_cond_branch): Likewise.
8252 (arm_cond_branch_reversed): Likewise.
8253 (arm_jump): Likewise.
8254 (push_multi): Likewise.
8255 * config/arm/constraints.md (Py): New constraint.
8257 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8260 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8262 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8263 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8264 #ifdef DBX_DEBUGGING_INFO.
8266 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8269 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8270 if old and new states differ.
8272 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8274 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8275 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8276 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8277 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8278 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8280 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8281 ColdFire options to -mcpu= options.
8283 2011-04-05 Jeff Law <law@redhat.com>
8285 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8286 check if BB is a successor of LOOP->header and return
8287 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8289 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8291 * cprop.c (struct reg_use): Remove.
8292 (reg_use_table): Make an array of RTX.
8293 (find_used_regs, constprop_register, local_cprop_pass,
8294 bypass_block): Simplify users of reg_use_table.
8295 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8296 on one of the uses found by find_used_regs.
8298 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8301 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8304 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8306 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8308 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8310 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8313 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8315 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8317 * combine.c: Include obstack.h.
8318 (struct insn_link): Define.
8319 (uid_log_links): Adjust type.
8320 (FOR_EACH_LOG_LINK): New macro.
8321 (insn_link_obstack): Declare.
8322 (alloc_insn_link): Define.
8323 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8324 type of link variables.
8325 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8326 (try_combine, record_promoted_values, distribute_notes): Likewise.
8327 (distribute_links): Likewise. Tweak prototype.
8328 (clear_log_links): Delete.
8329 (adjust_for_new_dest): Call alloc_insn_link.
8330 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8332 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8334 * gcse.c (modify_mem_list): Convert to an array of VECs.
8335 (canon_modify_mem_list, compute_transp): Tweak formatting.
8336 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8337 (load_killed_in_block_p): Likewise.
8338 (record_last_mem_set_info): Likewise.
8339 (clear_modify_mem_tables): Likewise.
8341 2011-04-05 Tom de Vries <tom@codesourcery.com>
8344 * function.c (emit_use_return_register_into_block): Only define if
8347 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8349 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8351 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8353 * config/rx/rx-opts.h: New.
8354 * config/rx/rx.c (rx_cpu_type): Remove.
8355 (rx_handle_option): Don't assert that global structures are in
8356 use. Access variables via opts pointer. Defer most handling of
8357 OPT_mint_register_. Use error_at.
8358 (rx_option_override): Handle deferred OPT_mint_register_ here.
8359 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8360 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8361 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8362 (rx_cpu_types): New Enum and EnumValue entries.
8363 (mint-register=): Use Defer and use Var accordingly.
8365 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8367 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8368 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8369 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8371 (debug_free_queue, debug_nesting, symbol_queue_index):
8373 * dbxout.c: ...to here. Make static.
8375 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8377 * gcse.c (modify_pair): Define. Define a VEC of it.
8378 (canon_modify_mem_list): Convert to an array of VECs.
8379 (free_insn_expr_list_list): Delete.
8380 (clear_modify_mem_tables): Call VEC_free instead.
8381 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8382 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8383 (canon_list_insert, compute_transp): Likewise.
8385 2011-04-05 Tom de Vries <tom@codesourcery.com>
8388 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8391 2011-04-05 Tom de Vries <tom@codesourcery.com>
8394 * function.c (emit_use_return_register_into_block): New function.
8395 (thread_prologue_and_epilogue_insns): Use
8396 emit_use_return_register_into_block.
8398 2011-04-05 Tom de Vries <tom@codesourcery.com>
8401 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8404 2011-04-05 Tom de Vries <tom@codesourcery.com>
8406 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8408 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8410 * config/arm/arm.md (define_constants for unspec): Replace with
8412 (define_constants for unspecv): Replace with define_c_enum.
8413 * config/arm/neon.md (define_constants for unspec): Replace with
8416 2011-04-04 Richard Henderson <rth@redhat.com>
8419 * dwarf2out.c (output_line_info): Always emit line info from
8420 at least one section.
8421 (dwarf2out_init): Create text_section_line_info here ...
8422 (set_cur_line_info_table): ... not here.
8424 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8427 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8430 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8432 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8434 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8435 (expr_equiv_p): Remove.
8436 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8437 (hash_scan_set): Update call to insert_set_in_table.
8438 (dump_hash_table): Dump <dest, src> pair.
8439 (lookup_set): Simplify. Lookup <dest, src> pair.
8440 (compute_transp): Remove, fold heavily simplified code into...
8441 (compute_local_properties): ...here. Expect COMP and TRANSP
8443 (find_avail_set): Take set directly from struct expr.
8444 (find_bypass-set): Likewise.
8445 (bypass_block): Likewise.
8446 (cprop_insn): Likewise. Remove redundant INSN_P test.
8448 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8449 checks on form of COND from find_implicit_sets to here.
8450 (find_implicit_sets): Cleanup control flow. Split critical edges
8451 if it exposes implicit sets. Allocate/resize implicit_sets as
8453 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8454 changed something. Run df_analyze after find_implicit_sets if any
8455 edges were split. Do not allocate implicit_sets here.
8457 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8458 (gcse_obstack): Renamed to cprop_obstack.
8459 (GNEW, GNEWVEC, GNEWVAR): Remove.
8461 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8462 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8463 (gcse_alloc): Likewise, and rename to cprop_alloc.
8464 (alloc_gcse_men, free_gcse_mem): Remove.
8465 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8466 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8467 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8469 * cprop.c (oprs_not_set_p): Remove.
8470 (mark_set, mark_clobber): Remove.
8471 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8472 (reg_not_set_p): New function.
8473 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8474 (cprop_insn): Likewise.
8475 (cprop_jump): Use FOR_EACH_EDGE.
8477 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8480 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8481 (rank_for_schedule): Use scheduled_insns vector instead of
8482 last_scheduled_insn.
8483 (ok_for_early_queue_removal): Likewise.
8484 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8486 (choose_ready): Likewise.
8487 (commit_schedule): Use VEC_iterate.
8488 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8489 a dbg_cnt, use it and ensure the first insn is in the ready list.
8490 (haifa_sched_init): Allocate scheduled_insns.
8491 (sched_extend_ready_list): Don't allocate it; reserve space.
8492 (haifa_sched_finish): Free it.
8494 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8496 * optc-gen.awk: Always remove type from Variable entry before
8497 recording in var_seen.
8499 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8501 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8502 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8503 call to tidy_fallthru_edges.
8505 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8507 * doc/options.texi (ToLower): Document.
8508 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8509 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8510 * opts.h (cl_option): Add cl_tolower field.
8511 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8512 arguments with lowercase strings.
8513 * config/rx/rx.opt (mcpu=): Add ToLower.
8514 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8517 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8519 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8521 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8523 * config/vax/vax.c: Include reload.h.
8525 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8527 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8528 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8529 (sparc_preferred_reload_class): New function.
8531 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8534 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8535 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8537 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8539 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8540 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8542 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8544 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8545 (ASM_OUTPUT_ALIGNED_BSS): Define.
8547 2011-04-03 Michael Matz <matz@suse.de>
8549 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8550 and next_slot members.
8551 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8552 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8553 (lto_streamer_cache_append): Declare.
8554 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8555 unsigned index, remove offset parameter, ensure that we append
8556 or update existing entries.
8557 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8558 parameter, update next_slot for append.
8559 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8561 (lto_streamer_cache_insert_at): Likewise.
8562 (lto_streamer_cache_append): New function.
8563 (lto_streamer_cache_lookup): Use unsigned index.
8564 (lto_streamer_cache_get): Likewise.
8565 (lto_record_common_node): Don't test tree_node_can_be_shared.
8566 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8567 (lto_streamer_cache_delete): Don't free offsets member.
8568 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8569 (lto_output_string_with_length): Use lto_output_data_stream.
8570 (lto_output_tree_header): Remove ix parameter, don't write it.
8571 (lto_output_builtin_tree): Likewise.
8572 (lto_write_tree): Adjust callers to above, don't track and write
8573 offset, write unsigned index.
8574 (output_unreferenced_globals): Don't emit all global vars.
8575 (write_global_references): Use unsigned indices.
8576 (lto_output_decl_state_refs): Likewise.
8577 (write_symbol): Likewise.
8578 * lto-streamer-in.c (lto_input_chain): Move earlier.
8579 (input_function): Use unsigned index.
8580 (input_alias_pairs): Don't read and then ignore all global vars.
8581 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8582 don't pass it back, use lto_streamer_cache_append.
8583 (lto_register_var_decl_in_symtab): Use unsigned index.
8584 (lto_register_function_decl_in_symtab): Likewise.
8585 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8587 (lto_get_builtin_tree): Don't read index, use
8588 lto_streamer_cache_append.
8589 (lto_read_tree): Adjust call to lto_materialize_tree.
8591 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8592 don't use function calls in arguments to MIN.
8594 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8597 * gimple.c (gimple_type_leader_entry): Mark deletable.
8599 2011-04-03 Alan Modra <amodra@gmail.com>
8601 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8603 2011-04-03 Michael Matz <matz@suse.de>
8605 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8607 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8609 2011-04-03 Michael Matz <matz@suse.de>
8611 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8612 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8613 without function context.
8614 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8615 current_function_decl and cfun.
8617 2011-04-03 Michael Matz <matz@suse.de>
8619 * tree.c (decl_init_priority_insert): Don't create entry for
8621 (decl_fini_priority_insert): Ditto.
8622 (fields_compatible_p, find_compatible_field): Remove.
8623 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8624 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8626 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8628 * combine.c (try_combine): Remove useless local variable.
8630 2011-04-03 Richard Guenther <rguenther@suse.de>
8631 Ira Rosen <ira.rosen@linaro.org>
8633 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8634 non-variable offsets and compare the remaining bases of the two
8635 accesses instead of looking for exact same data-ref.
8637 2011-04-02 Kai Tietz <ktietz@redhat.com>
8640 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8642 * i386.c (ix86_is_msabi_thiscall): New helper function.
8643 (ix86_is_type_thiscall): New helper function.
8644 (ix86_comp_type_attributes): Handle thiscall for method-functions
8646 (init_cumulative_args): Likewise.
8647 (find_drap_reg): Likewise.
8648 (ix86_static_chain): Likewise.
8649 (x86_this_parameter): Likewise.
8650 (x86_output_mi_thunk): Likewise.
8652 2011-04-01 Olivier Hainque <hainque@adacore.com>
8653 Nicolas Setton <setton@adacore.com>
8654 Eric Botcazou <ebotcazou@adacore.com>
8656 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8657 (add_gnat_descriptive_type_attribute): New function.
8658 (gen_array_type_die): Call it.
8659 (gen_enumeration_type_die): Likewise.
8660 (gen_struct_or_union_type_die): Likewise.
8661 (modified_type_die): Likewise.
8662 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8663 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8664 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8666 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8669 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8670 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8673 2011-03-17 Richard Guenther <rguenther@suse.de>
8676 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8677 origin for decls in other ltrans units.
8678 (input_varpool_node): Likewise.
8680 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8683 * expr.c (expand_assignment): Handle all possibilities
8684 if TO_RTX is CONCAT.
8685 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8686 (store_split_bit_field): If SUBREG_REG (op0) or
8687 op0 itself has smaller mode than word, return it
8688 for offset 0 and const0_rtx for out-of-bounds stores.
8689 If word is const0_rtx, skip it.
8691 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8693 * config/h8300/h8300.c (print_operand_address): Rename to...
8694 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8695 Call h8300_print_operand and h8300_print_operand_address instead of
8696 print_operand and print_operand_address. Declare.
8697 (print_operand): Renake to...
8698 (h8300_print_operand): ...this. Make static. Adjust comments.
8699 Call h8300_print_operand instead of print_operand. Declare.
8700 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8701 (h8300_register_move_cost): Likewise.
8702 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8703 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8704 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8705 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8706 * config/h8300/h8300-protos.h (print_operand): Delete.
8707 (print_operand_address): Delete.
8709 2011-04-01 Richard Henderson <rth@redhat.com>
8712 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8713 in strict mode before dwarf4. Re-order tests to early out
8714 before switching sections.
8716 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8718 * config/h8300/constraints.md: New file.
8719 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8720 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8721 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8722 * config/h8300/predicates.md (bit_operand): Likewise.
8723 (incdec_operand): Use satisfies_constraint_M and
8724 satisfies_constraint_O. Don't use C code block.
8725 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8726 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8727 (compute_mov_length): Use satisfies_constraint_G.
8728 (fix_bit_operand): Use satisfies_constraint_U.
8729 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8730 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8731 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8732 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8733 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8734 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8735 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8736 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8737 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8738 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8739 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8740 (EXTRA_MEMORY_CONSTRAINT): Delete.
8742 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8743 Michael Meissner <meissner@linux.vnet.ibm.com>
8746 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8747 operands, as per the specifications.
8749 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8750 (vec_extract_evenv4sf): Ditto.
8751 (vec_extract_evenv8hi): Ditto.
8752 (vec_extract_evenv16qi): Ditto.
8753 (vec_extract_oddv4si): Ditto.
8755 2011-03-31 Mark Wielaard <mjw@redhat.com>
8757 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8758 high_pc attribute if the CU has no associated code. Only output
8759 DW_AT_entry_pc for CU if not generating strict dwarf and
8762 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8764 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8765 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8767 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8768 * final.c (final_start_function): Call the new function rather
8769 than using a NULL argument for dwarf2out_frame_debug.
8771 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8772 that contains the prologue.
8774 * haifa-sched.c (queue_insn): New arg REASON. All callers
8775 changed. Print it in debugging output.
8777 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8779 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8780 Split most of the code into...
8781 (begin_move_insn): ... here. New function.
8782 (ebb_sched_info): Add a pointer to it.
8783 * haifa-sched.c (scheduled_insns): New static variable.
8784 (sched_extend_ready_list): Allocate it.
8785 (schedule_block): Use it to record the order of scheduled insns.
8786 Perform RTL changes to move insns only after all scheduling
8787 decisions have been made.
8788 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8789 begin_move_insn field.
8790 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8791 * sched-int.h (struct haifa_sched_info): Remove second argument
8792 from begin_schedule_ready hook. Add new member begin_move_insn.
8793 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8794 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8796 * haifa-sched.c (prune_ready_list): New function, broken out of
8798 (schedule_block): Use it.
8800 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8802 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8804 2011-04-01 Kai Tietz <ktietz@redhat.com>
8806 * config.gcc (*-*-mingw*): Allow as option the
8807 posix threading model.
8808 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8809 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8811 (CPP_SPEC): Add pthread/no-pthread handling.
8812 (LIB_SPEC): Likewise.
8813 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8814 (LIB_SPEC): Likewise.
8815 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8816 flag to pass -pthread option for shared libgcc build.
8817 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8818 for shared libgcc build.
8819 * config/i386/t-mingw-pthread: New file.
8820 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8821 New define to enable use of library pthread by default.
8822 * config/i386/mingw.opt (pthread): New driver option.
8823 (no-pthread): New driver option.
8824 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8825 * config/i386/mingw-w64.opt: Likewise.
8827 2011-04-01 Gary Funck <gary@intrepid.com>
8829 * c-decl.c (grokdeclarator): Fix formatting.
8831 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8833 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8834 instead of n_operands.
8835 (set_storage_via_setmem): Likewise.
8836 * optabs.c (maybe_gen_insn): Likewise.
8837 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8838 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8839 (mips_expand_builtin_direct): Likewise.
8840 * config/spu/spu.c (expand_builtin_args): Likewise.
8842 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8844 * recog.h (insn_data_d): Add n_generator_args.
8845 * genoutput.c (data): Likewise.
8846 (output_insn_data): Print it.
8847 (max_opno, num_dups): Delete.
8848 (scan_operands): Just fill in "d->operand[...]".
8849 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8851 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8853 * gensupport.h (pattern_stats): New structure.
8854 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8855 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8856 (max_operand_1, max_operand_vec): Delete.
8857 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8859 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8861 * emit-rtl.c (emit_pattern_after_setloc): New function.
8862 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8863 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8864 (emit_pattern_after): New function.
8865 (emit_insn_after, emit_jump_insn_after): Call it.
8866 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8867 (emit_pattern_before_setloc): New function.
8868 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8869 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8871 (emit_pattern_before): New function.
8872 (emit_insn_before, emit_jump_insn_before): Call it.
8873 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8875 2011-03-31 Richard Henderson <rth@redhat.com>
8877 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8878 (dw_separate_line_info_entry): Remove.
8879 (enum dw_line_info_opcode): New.
8880 (dw_line_info_entry): Use it.
8881 (dw_line_info_table, dw_line_info_table_p): New.
8882 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8883 (line_info_table, line_info_label_num): Remove.
8884 (line_info_table_in_use): Remove.
8885 (separate_line_info_table): Remove.
8886 (separate_line_info_table_allocated): Remove.
8887 (separate_line_info_table_in_use): Remove.
8888 (LINE_INFO_TABLE_INCREMENT): Remove.
8889 (line_info_label_num): New.
8890 (cur_line_info_table): New.
8891 (text_section_line_info, cold_text_section_line_info): New.
8892 (separate_line_info): New.
8893 (SEPARATE_LINE_CODE_LABEL): Remove.
8894 (print_dwarf_line_table): Remove.
8895 (debug_dwarf): Don't dump it.
8896 (output_one_line_info_table): New.
8897 (output_line_info): Use it.
8898 (new_line_info_table): New.
8899 (set_cur_line_info_table): New.
8900 (dwarf2out_switch_text_section): Use it.
8901 (dwarf2out_begin_function): Likewise.
8902 (push_dw_line_info_entry): New.
8903 (dwarf2out_source_line): Rewrite for new line info tables.
8904 (dwarf2out_init): Remove dead initailizations.
8906 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8908 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8910 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8911 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8912 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8913 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8914 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8915 * opt-functions.awk (flag_init, switch_bit_fields): New.
8916 (switch_flags): Don't handle flags moved to bit-fields. Don't
8917 generate CL_MISSING_OK or CL_SAVE.
8918 * optc-gen.awk: Update to generate bit-field output as well as
8920 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8921 bit-field instead of CL_REJECT_DRIVER flag.
8922 * opts-common.c (generate_canonical_option,
8923 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8924 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8925 instead of CL_REJECT_NEGATIVE flag.
8926 * toplev.c (print_switch_values): Use cl_report bit-field instead
8929 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8931 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8932 a zero minimum index only if it is redundant.
8934 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8936 PR rtl-optimization/48381
8937 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8938 instead of ira_class_hard_reg_index for calculating conflicting
8941 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8943 * cprop.c: Clean up hash table building.
8944 (reg_avail_info): Remove.
8945 (oprs_available_p): Remove.
8946 (record_last_reg_set_info): Remove.
8947 (record_last_set_info): Remove.
8948 (reg_available_p): New function.
8949 (gcse_constant_p): Do not treat unfolded conditions as constants.
8950 (make_set_regs_unavailable): New function.
8951 (hash_scan_set): Simplify with new reg_available_p.
8952 (compute_hash_table_work): Traverse insns stream only once.
8953 Do not compute reg_avail_info. Traverse insns in reverse order.
8954 Record implicit sets after recording explicit sets from the block.
8956 2011-03-31 Michael Matz <matz@suse.de>
8958 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8960 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8962 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8963 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8964 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8965 (h8300_mode_dependent_address_p): New function.
8966 (h8300_get_index): Make static.
8968 2011-03-31 Jeff Law <law@redhat.com>
8970 * reload1.c (elimination_effects): Fix typo in recent change.
8972 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8973 typo potentially leading to null pointer dereference.
8975 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8976 (setup_save_areas): Corresponding changes to avoid useless
8979 * jump.c (reversed_comparison_code_parts): Avoid successive return
8980 statements when REVERSE_CONDITION is defined.
8982 * expr.c (expand_assignment): Avoid useless assignments.
8983 (expand_expr_real_1): Likewise.
8984 (expand_expr_real_2): Avoid useless statements.
8986 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8988 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8990 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8993 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8995 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8998 * doc/tm.texi.in (TARGET_VERSION): Remove.
8999 * doc/tm.texi: Regenerate.
9000 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9001 * collect2.c (main): Don't use TARGET_VERSION.
9002 * mips-tdump.c (main): Don't use TARGET_VERSION.
9003 * mips-tfile.c (main): Don't use TARGET_VERSION.
9004 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9005 * config/rs6000/vxworksae.h: Remove.
9006 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9007 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9008 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9009 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9010 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9011 * config/arm/arm.h (TARGET_VERSION): Remove.
9012 * config/arm/coff.h (TARGET_VERSION): Remove.
9013 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9014 * config/arm/elf.h (TARGET_VERSION): Remove.
9015 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9016 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9017 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9018 * config/arm/pe.h (TARGET_VERSION): Remove.
9019 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9020 * config/arm/semi.h (TARGET_VERSION): Remove.
9021 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9022 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9023 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9024 * config/avr/avr.h (TARGET_VERSION): Remove.
9025 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9026 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9027 * config/frv/frv.h (TARGET_VERSION): Remove.
9028 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9029 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9030 * config/i386/darwin.h (TARGET_VERSION): Remove.
9031 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9032 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9033 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9034 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9035 * config/i386/gnu.h (TARGET_VERSION): Remove.
9036 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9037 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9038 * config/i386/linux.h (TARGET_VERSION): Remove.
9039 * config/i386/linux64.h (TARGET_VERSION): Remove.
9040 * config/i386/lynx.h (TARGET_VERSION): Remove.
9041 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9042 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9043 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9044 * config/i386/netware.h (TARGET_VERSION): Remove.
9045 * config/i386/nto.h (TARGET_VERSION): Remove.
9046 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9047 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9048 * config/ia64/elf.h (TARGET_VERSION): Remove.
9049 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9050 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9051 * config/ia64/linux.h (TARGET_VERSION): Remove.
9052 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9053 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9054 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9055 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9056 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9057 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9058 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9059 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9060 * config/m68k/linux.h (TARGET_VERSION): Remove.
9061 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9062 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9063 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9064 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9065 * config/mep/mep.h (TARGET_VERSION): Remove.
9066 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9067 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9068 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9069 * config/mips/linux.h (TARGET_VERSION): Remove.
9070 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9071 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9072 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9073 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9074 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9075 * config/pa/pa.h (TARGET_VERSION): Remove.
9076 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9077 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9078 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9079 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9080 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9081 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9082 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9083 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9084 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9085 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9086 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9087 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9088 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9089 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9090 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9091 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9092 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9093 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9094 * config/s390/linux.h (TARGET_VERSION): Remove.
9095 * config/s390/s390.h (TARGET_VERSION): Remove.
9096 * config/s390/tpf.h (TARGET_VERSION): Remove.
9097 * config/score/score.h (TARGET_VERSION): Remove.
9098 * config/sh/linux.h (TARGET_VERSION): Remove.
9099 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9100 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9101 * config/sh/sh.h (TARGET_VERSION): Remove.
9102 * config/sh/sh64.h (TARGET_VERSION): Remove.
9103 * config/sh/superh.h (TARGET_VERSION): Remove.
9104 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9105 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9106 * config/sparc/linux.h (TARGET_VERSION): Remove.
9107 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9108 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9109 TARGET_NAME32, TARGET_NAME): Remove.
9110 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9111 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9112 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9113 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9114 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9115 * config/spu/spu.h (TARGET_VERSION): Remove.
9116 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9117 * config/v850/v850.h (TARGET_VERSION): Remove.
9118 * config/vax/linux.h (TARGET_VERSION): Remove.
9119 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9120 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9121 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9123 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9126 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9127 frame-related from frame-unrelated adjustments to the stack pointer.
9129 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9131 * common.opt (fdebug-types-section): Move earlier.
9132 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9134 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9136 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9139 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9141 * tree.h (CASE_CHAIN): Define.
9142 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9143 (gimple_redirect_edge_and_branch): Likewise.
9145 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9148 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9151 2011-03-30 Jeff Law <law@redhat.com>
9153 * PR bootstrap/48371
9154 * reload1.c (reload): Fix botch in last change.
9156 * reload.h (struct reload): Fix typo introduced in last change.
9158 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9160 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9161 Undocumented. Remove help text.
9162 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9165 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9167 * doc/options.texi (NegativeAlias): Document.
9168 (Alias): Mention NegativeAlias.
9169 * opt-functions.awk: Handle NegativeAlias.
9170 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9171 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9172 * opts.h (CL_NEGATIVE_ALIAS): Define.
9173 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9174 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9176 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9178 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9179 mno-spe and mno-isel instead of mspe=no and -misel=no.
9181 2011-03-29 Mark Wielaard <mjw@redhat.com>
9183 * common.opt (fdebug-types-section): New flag.
9184 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9185 * dwarf2out.c (use_debug_types): New define.
9186 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9187 (print_die): Guard output of type unit signatures using
9189 (build_abbrev_table): Replace assert of dwarf_version >= 4
9190 with assert on use_debug_types.
9191 (size_of_die): Likewise.
9192 (unmark_dies): Likewise.
9193 (value_format): Decide AT_ref_external form on use_debug_types.
9194 (output_die): Replace dwarf_version version check guard with
9195 use_debug_types where appropriate.
9196 (modified_type_die): Likewise.
9197 (gen_reference_type_die): Likewise.
9198 (dwarf2out_start_source_file): Likewise.
9199 (dwarf2out_end_source_file): Likewise.
9200 (prune_unused_types_walk_attribs): Likewise.
9201 (dwarf2out_finish): Likewise.
9203 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9205 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9207 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9209 PR rtl-optimization/48332
9210 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9211 mode of input operand N and modeN to its actual mode.
9213 2011-03-30 Jeff Law <law@redhat.com>
9215 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9216 define accessor macro.
9217 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9218 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9219 (reg_equiv_init): Likewise.
9220 (reg_equivs_size): New variable.
9221 (reg_equiv_init_size): Remove.
9222 (allocate_initial_values): Move prototype to here from....
9223 * integrate.h (allocate_initial_values): Remove prototype.
9224 * integrate.c: Include reload.h.
9225 (allocate_initial_values): Corresponding changes.
9226 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9227 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9228 (update_equiv_regs): Corresponding changes.
9229 (ira): Corresponding changes.
9230 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9231 (push_secondary_reload): Corresponding changes.
9232 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9233 (make_memloc, find_reloads_address): Corresponding changes.
9234 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9235 (find_reloads_address_1): Corresponding changes.
9236 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9237 (refers_to_regno_for_reload_p): Corresponding changes.
9238 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9239 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9240 * reload1.c: Include ggc.h.
9241 (grow_reg_equivs): New function.
9242 (replace_pseudos_in, reload): Corresponding changes.
9243 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9244 (eliminate_regs_1, elimination_effects): Corresponding changes.
9245 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9246 (delete_output_reload): Likewise.
9247 * caller-save.c (mark_referenced_regs): Corresponding changes.
9248 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9249 * frv/predicates.md (frv_load_operand): Corresponding changes.
9250 * microblaze/microblaze.c (double_memory_operand): Corresponding
9252 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9253 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9254 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9255 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9256 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9258 * pa/pa.c (emit_move_sequence): Corresponding changes.
9259 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9261 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9264 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9265 structure modes. Don't check neon_vector_mem_operand for
9266 vector or structure modes.
9268 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9269 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9272 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9273 operand 1 and reshuffle the operands to match.
9274 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9276 2011-03-30 Christian Schüler <cschueler@gmx.de>
9279 * config/c.opt (F): Added 'Driver' to -F option.
9282 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9284 * config/darwin.opt: Added '-arch' option.
9286 2011-03-30 Nick Clifton <nickc@redhat.com>
9288 * config/rx/rx.md: Add peepholes and patterns to combine
9289 extending loads and simple arithmetic instructions.
9290 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9291 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9292 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9293 modes to use pre-decrement and post-increment addressing.
9294 (rx_is_restricted_memory_address): Add range checking of REG+INT
9296 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9297 (rx_memory_move_cost): Adjust cost of stores.
9298 (rx_adjust_insn_length): New function.
9300 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9303 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9304 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9305 matching arg00/arg01 types.
9307 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9309 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9310 last_location to UNKNOWN_LOCATION.
9312 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9315 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9318 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9319 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9322 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9324 (sparc_cpu): Likewise.
9325 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9328 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9332 PR rtl-optimization/48345
9333 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9334 hard regs for given mode from profitable regs when doing secondary
9337 2011-03-29 Jeff Law <law@redhat.com>
9340 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9341 do_not_duplicate field.
9342 (lookup_redirection_data): Corresponding changes.
9343 (create_duplicates): Always create a template block.
9344 (redirect_edges): Remove code which reused the original block
9345 when it was going to become unreachable code.
9346 (thread_block): Don't set do_not_duplicate field.
9348 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9350 * lto-opts.c (register_user_option_p, lto_register_user_option):
9351 Make type argument unsigned.
9352 * lto-streamer.h (lto_register_user_option): Make type argument
9354 * opth-gen.awk: Make CL_* macros unsigned.
9355 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9356 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9357 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9358 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9359 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9360 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9361 (find_opt): Make lang_mask argument unsigned.
9363 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9365 PR rtl-optimization/48331
9366 PR rtl-optimization/48334
9367 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9368 for any used algorithm.
9370 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9372 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9375 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9377 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9378 (alpha_option_override): Don't set alpha_sr_alias_set.
9379 (emit_frame_store_1): Use gen_frame_mem rather than calling
9381 (alpha_expand_epilogue): Ditto.
9383 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9385 PR tree-optimization/48290
9386 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9387 vectorization, check that relevant phis in the basic block after
9388 the inner loop are really inner loop's exit phis.
9390 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9393 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9394 (cached_dw_loc_list_def): New structure.
9395 (cached_dw_loc_list): New typedef.
9396 (cached_dw_loc_list_table): New variable.
9397 (cached_dw_loc_list_table_hash): New function.
9398 (cached_dw_loc_list_table_eq): Likewise.
9399 (add_location_or_const_value_attribute): Take a bool cache_p.
9400 Cache the list when the parameter is true.
9401 (gen_formal_parameter_die): Update caller.
9402 (gen_variable_die): Likewise.
9403 (dwarf2out_finish): Likewise.
9404 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9405 while generating debug info for the decl.
9406 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9407 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9408 (resolve_addr): Cache the result of resolving a chain of
9411 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9413 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9414 conflict object hard regset nodes have intersecting hard reg sets.
9416 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9417 after regstat_init_n_sets_and_refs.
9419 * ira.c: Add more comments at the top.
9420 (setup_stack_reg_pressure_class, setup_pressure_classes):
9421 Add comments how we compute the register pressure classes.
9422 (setup_allocno_and_important_classes): Add more comments.
9423 (setup_class_translate_array, reorder_important_classes)
9424 (setup_reg_class_relations): Add comments.
9426 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9429 * ira-color.c: Add 2011 to the Copyright line.
9430 (assign_hard_reg): Add more comments.
9431 (improve_allocation): Ditto.
9433 * ira-costs.c: Add 2011 to the Copyright line.
9434 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9436 (setup_regno_cost_classes_by_mode): Ditto.
9438 Initial patches from ira-improv branch:
9440 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9442 * ira-build.c (ira_create_object): Remove initialization of
9443 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9444 (ira_create_allocno): Remove initialization of
9445 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9446 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9447 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9448 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9449 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9450 Initialize ALLOCNO_ADD_DATA.
9451 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9452 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9454 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9455 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9457 * ira.c (ira_reallocate): Remove.
9458 (setup_pressure_classes): Call
9459 ira_init_register_move_cost_if_necessary. Use
9460 ira_register_move_cost instead of ira_get_register_move_cost.
9461 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9462 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9464 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9465 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9466 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9467 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9468 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9469 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9471 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9472 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9473 (struct allocno_color_data): New.
9474 (allocno_color_data_t): New typedef.
9475 (allocno_color_data): New definition.
9476 (ALLOCNO_COLOR_DATA): New macro.
9477 (struct object_color_data): New.
9478 (object_color_data_t): New typedef.
9479 (object_color_data): New definition.
9480 (OBJECT_COLOR_DATA): New macro.
9481 (update_copy_costs, calculate_allocno_spill_cost): Call
9482 ira_init_register_move_cost_if_necessary. Use
9483 ira_register_move_cost instead of ira_get_register_move_cost.
9484 (move_spill_restore, update_curr_costs): Ditto.
9485 (allocno_spill_priority): Make it inline.
9486 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9487 (struct coalesce_data, coalesce_data_t): New.
9488 (allocno_coalesce_data): New definition.
9489 (ALLOCNO_COALESCE_DATA): New macro.
9490 (merge_allocnos, coalesced_allocno_conflict_p): Use
9491 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9492 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9493 (coalesce_allocnos): Ditto.
9494 (setup_coalesced_allocno_costs_and_nums): Ditto.
9495 (collect_spilled_coalesced_allocnos): Ditto.
9496 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9497 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9498 (coalesce_spill_slots): Ditto.
9499 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9500 free allocno_coalesce_data.
9502 * ira-conflicts.c: Fix formatting.
9503 (process_regs_for_copy): Call
9504 ira_init_register_move_cost_if_necessary. Use
9505 ira_register_move_cost instead of ira_get_register_move_cost.
9506 (build_object_conflicts): Optimize.
9508 * ira-costs.c (record_reg_classes): Optimize. Call
9509 ira_init_register_move_cost_if_necessary. Use
9510 ira_register_move_cost, ira_may_move_in_cost, and
9511 ira_may_move_out_cost instead of ira_get_register_move_cost and
9512 ira_get_may_move_cost.
9513 (record_address_regs): Ditto.
9514 (scan_one_insn): Optimize.
9515 (find_costs_and_classes): Optimize.
9516 (process_bb_node_for_hard_reg_moves): Call
9517 ira_init_register_move_cost_if_necessary. Use
9518 ira_register_move_cost instead of ira_get_register_move_cost.
9520 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9521 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9522 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9523 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9525 (ira_initiate_emit_data, ira_finish_emit_data)
9526 (create_new_allocno): New functions.
9527 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9528 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9529 Use ira_register_move_cost instead of ira_get_register_move_cost.
9531 * ira-int.h: Fix some comments.
9532 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9533 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9534 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9535 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9537 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9538 bitfield after mode. Make hard_regno a short int. Make
9539 hard_regno short. Remove first_coalesced_allocno and
9540 next_coalesced_allocno. Move mem_optimized_dest_p,
9541 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9542 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9543 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9544 temp, colorable_p. Add new member add_data.
9545 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9546 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9547 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9548 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9549 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9550 (ALLOCNO_ADD_DATA): New macro.
9551 (ira_emit_data_t): New typedef.
9552 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9553 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9554 from struct ira_allocno.
9555 (ALLOCNO_EMIT_DATA): New macro.
9556 (ira_allocno_emit_data, allocno_emit_reg): New.
9557 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9558 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9559 (OBJECT_ADD_DATA): New macro.
9560 (ira_reallocate): Remove.
9561 (ira_initiate_emit_data, ira_finish_emit_data): New.
9562 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9563 (ira_init_register_move_cost_if_necessary): New.
9564 (ira_object_conflict_iter_next): Merge into
9565 ira_object_conflict_iter_cond.
9566 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9568 * ira-live.c (process_single_reg_class_operands): Call
9569 ira_init_register_move_cost_if_necessary. Use
9570 ira_register_move_cost instead of ira_get_register_move_cost.
9572 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9574 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9576 * ira-costs.c: Fix formatting.
9577 (cost_classes, cost_classes_num): Remove.
9578 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9579 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9580 (cost_classes_del, cost_classes_htab): New.
9581 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9582 (initiate_regno_cost_classes, setup_cost_classes): New.
9583 (setup_regno_cost_classes_by_aclass): New.
9584 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9585 (record_reg_classes): Use regno_cost_classes instead of
9586 cost_classes. Move checking opposite operand up.
9587 (record_address_regs): Use regno_cost_classes
9588 instead of cost_classes.
9589 (scan_one_insn): Ditto. Use always general register.
9590 (print_allocno_costs): Use regno_cost_classes instead of
9592 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9593 (find_costs_and_classes): Set up cost classes for each registers.
9594 Use also their mode for this. Use regno_cost_classes instead of
9596 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9598 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9599 (ira_costs, ira_set_pseudo_classes): Call
9600 initiate_regno_cost_classes and finish_regno_cost_classes.
9602 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9604 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9606 * target.def (ira_cover_classes): Remove.
9608 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9610 * doc/tm.texi.in: Ditto.
9612 * ira-conflicts.c: Remove mentioning cover classes from the file.
9613 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9614 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9616 * targhooks.c (default_ira_cover_classes): Remove.
9618 * targhooks.h (default_ira_cover_classes): Ditto.
9620 * haifa-sched.c: Remove mentioning cover classes from the file.
9621 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9622 ira_pressure_classes and ira_pressure_classes_num instead of
9623 ira_reg_class_cover_size and ira_reg_class_cover. Use
9624 sched_regno_pressure_class instead of sched_regno_cover_class.
9625 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9626 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9628 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9629 classes from the file.
9630 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9631 (struct object_hard_regs, struct object_hard_regs_node): New.
9632 (struct ira_object): New members profitable_hard_regs,
9633 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9634 (struct ira_allocno): Rename cover_class to aclass. Rename
9635 cover_class_cost and updated_cover_class_cost to class_cost and
9636 updated_class_cost. Remove splay_removed_p and
9637 left_conflict_size. Add new members colorable_p.
9638 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9639 (ALLOCNO_COLORABLE_P): New macro.
9640 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9641 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9642 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9643 (OBJECT_...): Rename parameter C to O.
9644 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9645 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9646 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9647 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9648 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9649 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9650 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9651 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9652 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9653 x_ira_reg_class_subunion.
9654 (ira_max_memory_move_cost, ira_max_register_move_cost)
9655 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9656 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9657 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9658 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9659 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9660 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9661 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9662 (ira_tune_allocno_costs_and_cover_classes): Rename to
9663 ira_tune_allocno_costs.
9664 (ira_debug_hard_regs_forest): New.
9665 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9666 (ira_object_conflict_iter_next): Fix comments.
9667 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9668 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9669 cover_class to aclass.
9670 (ira_allocate_and_accumulate_costs): Ditto.
9671 (ira_allocate_and_set_or_copy_costs): Ditto.
9673 * opts.c (decode_options): Remove ira_cover_class check.
9675 * ira-color.c: Remove mentioning cover classes from the file. Use
9676 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9677 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9678 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9679 (splay-tree.h): Remove include.
9680 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9681 before copy_freq_compare_func.
9682 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9683 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9685 (hard_regs_roots, hard_regs_node_vec): Ditto.
9686 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9687 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9688 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9689 (create_new_object_hard_regs_node): Ditto.
9690 (add_new_object_hard_regs_node_to_forest): Ditto.
9691 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9692 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9694 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9695 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9696 (remove_unused_object_hard_regs_nodes): Ditto.
9697 (enumerate_object_hard_regs_nodes): Ditto.
9698 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9699 (object_hard_regs_subnode_t): Ditto.
9700 (struct object_hard_regs_subnode): Ditto.
9701 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9702 (setup_object_hard_regs_subnode_index): Ditto.
9703 (get_object_hard_regs_subnodes_num): Ditto.
9704 (form_object_hard_regs_nodes_forest): Ditto.
9705 (finish_object_hard_regs_nodes_tree): Ditto.
9706 (finish_object_hard_regs_nodes_forest): Ditto.
9707 (allocnos_have_intersected_live_ranges_p): Rename to
9708 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9709 (pseudos_have_intersected_live_ranges_p): Rename to
9710 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9711 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9712 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9713 (update_copy_costs): Remove assert. Skip cost update if the hard
9714 reg does not belong the class.
9715 (assign_hard_reg): Process only profitable hard regs.
9716 (uncolorable_allocnos_num): Make it scalar.
9717 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9718 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9719 and ira_reg_class_max_nregs.
9720 (bucket_allocno_compare_func): Check frequency first.
9721 (sort_bucket): Add compare function as a parameter.
9722 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9723 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9724 (push_allocno_to_stack): Rewrite for checking new allocno
9726 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9727 (push_only_colorable): Pass new parameter to sort_bucket.
9728 (push_allocno_to_spill): Remove.
9729 (allocno_spill_priority_compare): Make it inline and rewrite.
9730 (splay_tree_allocate, splay_tree_free): Remove.
9731 (allocno_spill_sort_compare): New function.
9732 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9733 build and use splay tree. Choose first allocno in uncolorable
9734 allocno bucket to spill. Remove setting spill cost.
9735 (all_conflicting_hard_regs): Remove.
9736 (setup_allocno_available_regs_num): Check only profitable hard
9737 regs. Print info about hard regs nodes.
9738 (setup_allocno_left_conflicts_size): Remove.
9739 (put_allocno_into_bucket): Don't call
9740 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9741 (improve_allocation): New.
9742 (color_allocnos): Call setup_profitable_hard_regs,
9743 form_object_hard_regs_nodes_forest, improve_allocation,
9744 finish_object_hard_regs_nodes_forest. Setup spill cost.
9745 (print_loop_title): Use pressure classes.
9746 (color_allocnso): Ditto.
9747 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9748 and allocnos_for_spilling.
9749 (ira_sort_regnos_for_alter_reg): Don't setup members
9750 {first,next}_coalesced_allocno.
9751 (color): Remove allocating and freeing removed_splay_allocno_vec.
9752 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9753 prohibited_class_mode_regs.
9755 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9757 (update_allocno_pressure_excess_length): Use pressure classes.
9758 (inc_register_pressure, dec_register_pressure): Check for pressure
9760 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9761 pressure class. Use ira_reg_class_nregs instead of
9762 ira_reg_class_max_nregs.
9763 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9764 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9765 (single_reg_class): Use ira_reg_class_nregs instead of
9766 ira_reg_class_max_nregs.
9767 (process_bb_node_lives): Use pressure classes.
9769 * ira-emit.c: Remove mentioning cover classes from the file. Use
9770 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9771 (change_loop): Use pressure classes.
9772 (modify_move_list): Call ira_set_allocno_class instead of
9773 ira_set_allocno_cover_class.
9775 * ira-build.c: Remove mentioning cover classes from the file. Use
9776 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9777 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9778 ALLOCNO_UPDATED_CLASS_COST instead of
9779 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9780 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9781 (ira_create_allocno): Remove initialization of
9782 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9783 ALLOCNO_COLORABLE_P.
9784 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9785 Update conflict regs for the objects.
9786 (create_cap_allocno): Remove assert. Don't propagate
9787 ALLOCNO_AVAILABLE_REGS_NUM.
9788 (ira_free_allocno_costs): New function.
9789 (finish_allocno): Change a part of code into call of
9790 ira_free_allocno_costs.
9791 (low_pressure_loop_node_p): Use pressure classes.
9792 (object_range_compare_func): Don't compare classes.
9793 (setup_min_max_conflict_allocno_ids): Ditto.
9795 * loop-invariant.c: Remove mentioning cover classes from the file.
9796 Use ira_pressure_classes and ira_pressure_classes_num instead of
9797 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9798 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9799 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9800 Use reg_allocno_class instead of reg_cover_class.
9801 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9802 STACK_REG_COVER_CLASS.
9803 (get_regno_cover_class): Rename to get_regno_pressure_class.
9804 (move_loop_invariants): Initialize and finalize regstat.
9806 * ira.c: Remove mentioning cover classes from the file. Add
9807 comments about coloring without cover classes. Use ALLOCNO_CLASS
9808 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9809 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9810 setup_class_subset_and_memory_move_costs.
9811 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9812 (setup_cover_and_important_classes): Rename to
9813 setup_allocno_and_important_classes.
9814 (setup_class_translate_array): New.
9815 (setup_class_translate): Call it for allocno and pressure classes.
9816 (cover_class_order): Rename to allocno_class_order.
9817 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9818 of ira_class_translate.
9819 (reorder_important_classes): Set up ira_important_class_nums.
9820 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9821 (print_class_cover): Rename to print_classes. Add parameter.
9822 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9823 Print pressure classes too.
9824 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9825 setup_reg_subclasses.
9826 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9827 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9828 (setup_prohibited_class_mode_regs): Use
9829 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9830 (clarify_prohibited_class_mode_regs): New function.
9831 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9832 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9833 (ira_init_once): Initialize them.
9834 (free_register_move_costs): Process them.
9835 (ira_init): Move calls of find_reg_classes and
9836 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9837 Call clarify_prohibited_class_mode_regs.
9838 (ira_no_alloc_reg): Remove.
9839 (too_high_register_pressure_p): Use pressure classes.
9841 * sched-deps.c: Remove mentioning cover classes from the file.
9842 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9843 ira_pressure_classes and ira_pressure_classes_num instead of
9844 ira_reg_class_cover_size and ira_reg_class_cover.
9845 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9846 sched_regno_pressure_class instead of sched_regno_cover_class.
9847 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9848 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9850 * ira.h: Add 2010 to Copyright.
9851 (ira_no_alloc_reg): Remove external.
9852 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9853 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9854 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9855 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9856 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9857 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9858 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9859 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9860 x_ira_no_alloc_regs.
9861 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9862 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9863 ira_allocno_classes_num and ira_allocno_classes.
9864 (ira_class_translate): Rename to ira_allocno_class_translate.
9865 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9866 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9867 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9868 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9869 (ira_no_alloc_regs): New.
9871 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9872 classes from the file. Use ALLOCNO_CLASS instead of
9873 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9874 ALLOCNO_COVER_CLASS_COST.
9875 (regno_cover_class): Rename to regno_aclass.
9876 (record_reg_classes): Use ira_reg_class_subunion instead of
9877 ira_reg_class_union.
9878 (record_address_regs): Check overflow.
9879 (scan_one_insn): Ditto.
9880 (print_allocno_costs): Print total mem cost fore regional allocation.
9881 (print_pseudo_costs): Use REG_N_REFS.
9882 (find_costs_and_classes): Use classes intersected with them on the
9883 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9884 ira_reg_class_union. Use ira_allocno_class_translate and
9885 regno_aclass instead of ira_class_translate and regno_cover_class.
9886 Modify code for finding regno_aclass. Setup preferred classes for
9888 (setup_allocno_cover_class_and_costs): Rename to
9889 setup_allocno_class_and_costs. Use regno_aclass instead of
9890 regno_cover_class. Use ira_set_allocno_class instead of
9891 ira_set_allocno_cover_class.
9892 (init_costs, finish_costs): Use regno_aclass instead of
9894 (ira_costs): Use setup_allocno_class_and_costs instead of
9895 setup_allocno_cover_class_and_costs.
9896 (ira_tune_allocno_costs_and_cover_classes): Rename to
9897 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9898 by processing objects. Use ira_reg_class_max_nregs instead of
9899 ira_reg_class_nregs.
9901 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9903 * sched-int.h: Remove mentioning cover classes from the file.
9904 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9906 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9907 classes from the file.
9908 (struct reg_pref): Rename coverclass into allocnoclass.
9909 (reg_cover_class): Rename to reg_allocno_class.
9911 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9913 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9915 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9917 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9919 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9921 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9923 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9925 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9927 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9929 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9931 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9932 (i386_ira_cover_classes): Ditto.
9934 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9936 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9938 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9940 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9942 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9944 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9946 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9947 (mips_ira_cover_classes): Ditto.
9949 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9951 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9953 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9955 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9957 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9959 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9960 (IRA_COVER_CLASSES_VSX): Ditto.
9962 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9963 (rs6000_ira_cover_classes): Ditto.
9965 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9967 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9969 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9971 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9973 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9975 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9977 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9979 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9981 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9983 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9985 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9988 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9989 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9990 dw_fde_unlikely_section_end_label, cold_in_std_section,
9991 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9992 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9994 (output_fde): Use dw_fde_second_{begin,end} if second is
9995 true, otherwise dw_fde_{begin,end}.
9996 (output_call_frame_info): Test dw_fde_second_begin != NULL
9997 instead of dw_fde_switched_sections.
9998 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9999 fields, initialize new fields. Initialize in_std_section
10000 unconditionally from the first partition.
10001 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10002 dw_fde_second_begin is non-NULL.
10003 (dwarf2out_switch_text_section): Stop initializing removed
10004 dw_fde_struct fields, initialize new fields, initialize
10005 also dw_fde_end here. Set dw_fde_switch_cfi even when
10006 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10007 (struct var_loc_list_def): Add last_before_switch field.
10008 (arange_table, arange_table_allocated, arange_table_in_use,
10009 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10010 (size_of_aranges): Count !in_std_section and !second_in_std_section
10011 hunks in fdes, instead of looking at arange_table_in_use.
10012 (output_aranges): Add aranges_length argument, don't call
10013 size_of_aranges here. Instead of using aranges_table*
10014 emit ranges for fdes when !in_std_section resp.
10015 !second_in_std_section.
10016 (dw_loc_list): Break ranges crossing section switch.
10017 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10018 use dw_fde_second_end instead of dw_fde_end as end of last range.
10019 (gen_subprogram_die): Don't call add_arange. Use
10020 dw_fde_{begin,end} for first partition and if switched
10021 section dw_fde_second_{begin,end} for the second.
10022 (var_location_switch_text_section_1,
10023 var_location_switch_text_section): New functions.
10024 (dwarf2out_begin_function): Initialize cold_text_section even
10025 when function_section () isn't text_section.
10026 (prune_unused_types): Don't walk arange_table.
10027 (dwarf2out_finish): Don't needlessly test
10028 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10029 If info_section_emitted, call size_of_aranges and if it indicates
10030 non-empty .debug_aranges, call output_aranges with the computed
10031 size. Stop using removed dw_fde_struct fields, use
10032 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10036 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10037 create ENTRY_VALUE if incoming or address of incoming's MEM
10039 * dwarf2out.c (mem_loc_descriptor): Don't emit
10040 DW_OP_GNU_entry_value of DW_OP_fbreg.
10041 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10042 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10043 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10044 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10046 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10047 is a REG_P or MEM_P with REG_P address, compute hash directly
10048 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10049 (preserve_only_constants): Don't clear VALUES forwaring
10050 ENTRY_VALUE to some other VALUE.
10052 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10054 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10055 instead of GEN_INT.
10057 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10059 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10060 block before expanding the statement.
10061 (expand_gimple_stmt_1): Likewise. Set them here...
10062 (expand_gimple_stmt): ...and not here. Tidy.
10063 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10066 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10068 * Makefile.in: New rule for cprop.o.
10069 * gcse.c: Move constant/copy propagation to cprop.c.
10070 (compute_local_properties): Only handle expression tables.
10071 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10072 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10073 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10074 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10075 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10076 compute_cprop_data, find_used_regs, try_replace_reg,
10077 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10078 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10079 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10080 find_bypass_set, reg_killed_on_edge, bypass_block,
10081 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10082 execute_rtl_cprop, pass_rtl_cprop): Move to...
10083 * cprop.c: ...here. New file, constant/copy propagation for RTL
10084 moved from gcse.c to here with minor cleanups in duplicated code.
10086 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10088 * config/i386/i386.c (flag_opts): Fix a typo in
10089 -mavx256-split-unaligned-store.
10091 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10093 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10094 LIBCALL_VALUE): Remove macros.
10095 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10096 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10097 (h8300_function_value, h8300_libcall_value,
10098 h8300_function_value_regno_p): New functions.
10100 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10102 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10104 2011-03-28 Jeff Law <law@redhat.com>
10106 * tree-ssa-threadupdate.c (redirect_edges): Call
10107 create_edge_and_update_destination_phis as needed.
10108 (create_edge_and_update_destination_phis): Accept new BB argument.
10109 All callers updated.
10110 (thread_block): Do not update the profile when threading around
10111 intermediate blocks.
10112 (thread_single_edge): Likewise.
10113 (determine_bb_domination_status): If BB is not a successor of the
10114 loop header, return NONDOMINATING.
10115 (register_jump_thread): Note when we register a jump thread around
10116 an intermediate block.
10117 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10118 (thread_across_edge): Use it.
10120 2011-03-28 Tristan Gingold <gingold@adacore.com>
10122 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10123 when for_return is 2.
10125 2011-03-28 Jeff Law <law@redhat.com>
10127 * var-tracking.c (canonicalize_values_mark): Delete unused
10129 (canonicalize_values_star, set_variable_part): Likewise.
10130 (clobber_variable_part, delete_variable_part): Likewise.
10132 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10134 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10136 2011-03-28 Martin Jambor <mjambor@suse.cz>
10138 * tree-inline.c (expand_call_inline): Do not check that destination
10140 (optimize_inline_calls): Assert that destination node is analyzed.
10141 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10142 not call tree_lowering_passes.
10143 * cgraph.h (cgraph_analyze_function): Declare.
10144 * cgraphunit.c (cgraph_analyze_function): Make public.
10146 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10148 * config/sparc/sparc-opts.h: New.
10149 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10150 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10151 (sparc_option_override): Store processor_type enumeration rather
10152 than string in cpu_default. Remove name and enumeration from
10153 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10154 without using sparc_select. Use target_flags_explicit instead of
10156 * config/sparc/sparc.h (enum processor_type): Move to
10158 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10159 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10160 HeaderInclude entry.
10161 (mcpu=, mtune=): Use Var and Enum.
10162 (sparc_processor_type): New Enum and EnumValue entries.
10164 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10165 Iain Sandoe <iains@gcc.gnu.org>
10168 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10170 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10172 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10173 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10174 Insert new statements at it in lieu of STMT.
10175 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10176 * tree-vect-stmts.c (vectorizable_store): Likewise.
10177 (vectorizable_load): Likewise.
10179 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10181 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10186 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10188 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10189 unaligned 256bit load/store.
10190 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10191 (*avx_movdqu<avxmodesuffix>): Likewise.
10193 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10196 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10197 * config/pa/pa.md (iordi3): Use new predicate in expander.
10198 (iorsi3): Likewise.
10200 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10202 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10203 FUNCTION_VALUE_REGNO_P): Remove macros.
10204 * config/mips/mips-protos.h (mips_function_value): Remove.
10205 * config/mips/mips.c (mips_function_value): Rename to...
10206 (mips_function_value_1): ... this. Make static. Handle receiving
10207 the function type in 'fn_decl_or_type' argument.
10208 (mips_function_value, mips_libcall_value,
10209 mips_function_value_regno_p): New function.
10210 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10211 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10213 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10215 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10216 and -mavx256-split-unaligned-store.
10217 (ix86_option_override_internal): Split 32-byte AVX unaligned
10218 load/store by default.
10219 (ix86_avx256_split_vector_move_misalign): New.
10220 (ix86_expand_vector_move_misalign): Use it.
10222 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10223 -mavx256-split-unaligned-store.
10225 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10226 256bit load/store. Generate unaligned store on misaligned memory
10228 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10230 (*avx_movdqu<avxmodesuffix>): Likewise.
10232 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10233 -mavx256-split-unaligned-store.
10235 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10238 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10241 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10243 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10244 opno arguments with an expand_operand. Use create_input_operand.
10245 (mips_prepare_builtin_target): Delete.
10246 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10248 (mips_expand_builtin_direct): Use create_output_operand and
10249 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10250 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10251 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10253 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10255 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10257 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10259 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10261 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10262 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10263 basic blocks and call commit_edge_insertions directly.
10264 (fixup_abnormal_edges): Move from here to...
10265 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10266 on the edges and return whether some have actually been inserted.
10267 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10270 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10272 PR rtl-optimization/48144
10273 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10274 (merge_expr_data): ... here.
10275 (av_set_intersect): Rename to av_set_code_motion_filter.
10276 Update all callers. Call merge_history_vect when an expression
10277 is found in both sets.
10278 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10280 2011-03-26 Alan Modra <amodra@gmail.com>
10282 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10283 cmodel medium addresses.
10284 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10285 64-bit gpr loads and stores.
10286 (rs6000_secondary_reload_ppc64): New function.
10287 * config/rs6000/rs6000-protos.h: Declare it.
10288 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10290 2011-03-26 Alan Modra <amodra@gmail.com>
10293 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10294 GNU Go in traceback table.
10296 2011-03-25 Richard Henderson <rth@redhat.com>
10298 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10299 if there are exactly 6 operands.
10300 (set_storage_via_setmem): Similarly.
10302 2011-03-25 Kai Tietz <ktietz@redhat.com>
10304 * collect2.c (write_c_file_stat): Handle backslash
10305 as right-hand directory separator.
10306 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10307 checking just for slash.
10308 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10309 instead of checking for trailing slash.
10310 * gcc.c (record_temp_file): Use filename_cmp instead
10312 (do_spec_1): Likewise.
10313 (replace_outfile_spec_function): Likewise.
10314 (is_directory): Use filename_ncmp instead of strncmp.
10315 (print_multilib_info): Likewise.
10316 * gcov.c (find_source): Use filename_cmp instead
10318 (make_gcov_file_name): Fix order of slash/backslash
10320 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10321 (add_standard_paths): Likewise.
10322 * mips-tfile.c (saber_stop): Handle backslash.
10323 * prefix.c (update_path): Use filename_ncmp instead of
10325 * profile.c (output_location): Use filename_cmp instead
10327 * read-md.c (handle_toplevel_file): Handle backslash.
10328 * tlink.c (frob_extension): Likewise.
10329 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10331 * tree-dump.c (dequeue_and_dump): Handle backslash.
10332 * tree.c (get_file_function_name): Likewise.
10333 * gengtype.c (read_input_list): Likewise.
10334 (get_file_realbasename): Likewise.
10335 (get_output_file_with_visibility): Use filename_cmp
10338 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10340 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10343 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10345 * fold-const.c (expr_location_or): New function.
10346 (fold_truth_not_expr): Call it.
10348 2011-03-25 Jeff Law <law@redhat.com>
10350 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10352 * c-family/c-common.c (def_fn_type): Likewise.
10353 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10354 * emit-rtl.c (gen_rtvec): Likewise.
10355 * lto/lto-lang.c (def_fn_type): Likewise.
10357 2011-03-25 Richard Guenther <rguenther@suse.de>
10359 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10360 also generate copies.
10361 (fini_copy_prop): Handle constant values properly.
10363 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10365 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10366 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10367 (hash_loc_operands, compare_loc_operands): Handle
10368 DW_OP_GNU_entry_value.
10370 2011-03-25 Kai Tietz <ktietz@redhat.com>
10372 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10373 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10374 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10375 comment and use macro TARGET_64BIT_MS_ABI instead.
10376 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10377 and change default behavior for 32-bit MS_ABI.
10378 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10379 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10381 (ix86_cfun_abi): Likewise.
10382 (ix86_maybe_switch_abi): Adjust comment.
10383 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10384 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10385 instead of checking for SYSV_ABI.
10386 (ix86_nsaved_sseregs): Likewise.
10387 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10389 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10390 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10391 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10392 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10393 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10395 2011-03-25 Richard Guenther <rguenther@suse.de>
10397 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10398 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10399 (verify_gimple): Remove.
10400 * tree-cfg.c (verify_gimple_call): Merge verification
10402 (verify_gimple_phi): Merge verification from verify_stmts.
10403 (verify_gimple_label): New function.
10404 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10405 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10406 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10407 (verify_stmts): Rename to verify_gimple_in_cfg.
10408 (verify_gimple_in_cfg): New function.
10409 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10410 * tree-ssa.c (verify_ssa): Likewise.
10411 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10413 2011-03-25 Richard Guenther <rguenther@suse.de>
10415 * passes.c (init_optimization_passes): Add FRE pass after
10418 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10419 Andrew Stubbs <ams@codesourcery.com>
10421 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10423 (arm_movdi_vfp_cortexa8): New pattern.
10424 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10425 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10426 instructions when tuning for Cortex-A8. Set attribute "arch".
10427 * config/arm/arm.md: Move include arm-tune.md up a bit.
10428 (define_attr "arch"): Add "onlya8" and "nota8" values.
10429 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10431 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10435 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10437 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10438 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10439 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10440 * passes.c (init_optimization_passes): Move
10441 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10443 2011-03-25 Kai Tietz <ktietz@redhat.com>
10445 * c-typeck.c (comptypes_internal): Replace target
10446 hook call of comp_type_attributes by version in tree.c file.
10447 * gimple.c (gimple_types_compatible_p_1): Likewise.
10448 * tree-ssa.c (useless_type_conversion_p): Likewise.
10449 * tree.c (build_type_attribute_qual_variant): Likewise.
10450 (attribute_value_equal): New static helper function.
10451 (comp_type_attributes): New function.
10452 (merge_attributes): Use attribute_value_equal for comparison.
10453 (attribute_list_contained): Likewise.
10454 * tree.h (comp_type_attributes): New prototype.
10456 2011-03-25 Richard Guenther <rguenther@suse.de>
10458 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10459 of complex types at -O0.
10460 (verify_gimple_assign_binary): Likewise.
10461 (verify_gimple_assign_ternary): Likewise.
10463 2011-03-24 Mark Wielaard <mjw@redhat.com>
10465 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10466 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10468 2011-03-24 Mark Wielaard <mjw@redhat.com>
10471 * dwarf2out.c (output_abbrev_section): Only write table when
10472 abbrev_die_table_in_use > 1.
10474 2011-02-24 Richard Henderson <rth@redhat.com>
10476 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10477 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10478 (alpha_expand_unaligned_load_words): Use extql.
10479 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10480 (emit_insxl): Handle all modes for consistency.
10482 2011-02-24 Richard Henderson <rth@redhat.com>
10484 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10485 (alpha_expand_unaligned_load): Likewise.
10486 (alpha_expand_unaligned_store): Likewise.
10487 (alpha_expand_unaligned_load_words): Likewise.
10488 (alpha_expand_unaligned_store_words): Likewise.
10489 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10490 (alpha_split_lock_test_and_set_12): Likewise.
10491 (print_operand, alpha_fold_builtin_extxx): Likewise.
10492 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10493 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10494 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10495 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10496 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10497 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10498 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10499 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10500 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10501 (extwl, extll, extql): Similarly.
10502 (inswh, inslh, insqh): Similarly.
10503 (mskbl, mskwl, mskll, mskql): Similarly.
10504 (mskwh, msklh, mskqh): Similarly.
10506 2011-02-24 Richard Henderson <rth@redhat.com>
10508 * config/alpha/alpha.md (attribute isa): Add er, ner.
10509 (attribute enabled): Handle them.
10510 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10512 2011-02-24 Richard Henderson <rth@redhat.com>
10514 * config/alpha/alpha.md (attribute isa): Add vms.
10515 (attribute enabled): Handle it.
10516 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10517 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10518 (*movtf): Rename from *movtf_internal for consistency.
10519 (*movsi): Merge with *movsi_nt_vms.
10520 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10521 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10522 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10523 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10525 2011-02-24 Richard Henderson <rth@redhat.com>
10527 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10528 (extendqisi2, extendhisi2): Likewise.
10529 (extendqidi2): Simplify BWX/non-BWX expansions.
10530 (extendhidi2): Similarly.
10532 2011-02-24 Richard Henderson <rth@redhat.com>
10534 * config/alpha/alpha.md (attribute isa): New.
10535 (attribute enabled): New.
10536 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10537 (zero_extendqisi2, zero_extendqidi2): Similarly.
10538 (zero_extendhisi2, zero_extendhidi2): Similarly.
10539 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10541 2011-02-24 Richard Henderson <rth@redhat.com>
10543 * config/alpha/predicates.md (input_operand): Revert last change;
10544 update comment to mention 32-bit VMS rather than Windows.
10546 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10548 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10549 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10550 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10551 * passes.c (init_optimization_passes): Move
10552 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10554 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10556 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10558 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10560 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10563 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10566 * simplify-rtx.c (simplify_const_unary_operation): Call
10567 real_convert when changing mode class with FLOAT_EXTEND.
10569 2011-03-24 Nick Clifton <nickc@redhat.com>
10571 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10572 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10573 * config/rx/rx.c (rx_option_override): Set align_jumps,
10574 align_loops and align_labels if not set by the user.
10575 (rx_align_for_label): New function.
10576 (rx_max_skip_for_label): New function.
10577 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10578 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10579 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10580 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10581 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10583 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10585 PR rtl-optimization/48263
10586 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10587 and original commutative_p handling. Use maybe_gen_insn.
10589 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10591 * reload.c (find_reloads_subreg_address): Add address_reloaded
10592 parameter and return true there if the full address has been
10594 (find_reloads_toplev): Pass address_reloaded flag.
10595 (find_reloads_address_1): Don't use address_reloaded parameter.
10597 2011-03-24 Jeff Law <law@redhat.com>
10599 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10600 unused variable "ann".
10601 (remove_unused_locals): Likewise.
10603 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10606 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10609 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10611 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10612 for invalid symbolic addresses.
10613 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10616 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10618 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10619 the argument in calls to fold_truth_not_expr.
10621 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10623 * tree.c (record_node_allocation_statistics): New function.
10624 (make_node_stat, copy_node_stat, build_string): Call it.
10625 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10626 (build1_stat, build_omp_clause): Likewise.
10628 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10630 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10633 2011-03-24 Richard Guenther <rguenther@suse.de>
10635 PR tree-optimization/48271
10636 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10637 blocks that still exist.
10639 2011-03-24 Richard Guenther <rguenther@suse.de>
10641 PR tree-optimization/48270
10642 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10643 not free datarefs before ddrs.
10645 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10647 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10648 from the address built for a reference with variable offset.
10650 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10653 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10654 alternatives that can be handled with movq or movabsq insn.
10655 (*movdf_internal): Disable for !TARGET_64BIT.
10656 (*movdf_internal_nointeger): Ditto.
10657 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10659 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10661 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10662 (FUNCTION_ARG_ADVANCE): Likewise.
10663 * tm.texi.in: Change references to them to hook references.
10664 * tm.texi: Regenerate.
10665 * targhooks.c (default_function_arg): Eliminate check for target macro.
10666 (default_function_incoming_arg): Likewise.
10667 (default_function_arg_advance): Likewise.
10668 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10669 (function_arg_advance): Likewise.
10670 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10672 2011-03-24 Richard Guenther <rguenther@suse.de>
10674 PR middle-end/48269
10675 * tree-object-size.c (addr_object_size): Do not double-account
10676 for MEM_REF offsets.
10678 2011-03-24 Diego Novillo <dnovillo@google.com>
10680 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10681 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10682 (lto_input_data_block): Move from lto-opts.c. Make extern.
10684 (lto_input_string): Rename from input_string. Make extern.
10686 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10687 output_string_with_length.
10688 Output 0 to indicate a non-NULL string. Update all callers to
10690 (lto_output_string): Rename from output_string. Make extern.
10692 (lto_output_decl_state_streams): Make extern.
10693 (lto_output_decl_state_refs): Make extern.
10694 * lto-streamer.h (lto_input_string): Declare.
10695 (lto_input_data_block): Declare.
10696 (lto_output_string): Declare.
10697 (lto_output_string_with_length): Declare.
10698 (lto_output_decl_state_streams): Declare.
10699 (lto_output_decl_state_refs): Declare.
10701 2011-03-24 Richard Guenther <rguenther@suse.de>
10703 PR tree-optimization/46562
10704 * tree.c (build_invariant_address): New function.
10705 * tree.h (build_invariant_address): Declare.
10706 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10707 a renamed function moved ...
10708 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10709 Take valueization callback parameter.
10710 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10711 * gimple-fold.h: New file.
10712 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10713 (ccp_fold, fold_const_aggregate_ref,
10714 fold_ctor_reference, fold_nonarray_ctor_reference,
10715 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10716 get_base_constructor): Move ...
10717 * gimple-fold.c: ... here.
10718 (gimple_fold_stmt_to_constant_1): New function
10719 split out from ccp_fold. Take a valueization callback parameter.
10720 Valueize all operands.
10721 (gimple_fold_stmt_to_constant): New wrapper function.
10722 (fold_const_aggregate_ref_1): New function split out from
10723 fold_const_aggregate_ref. Take a valueization callback parameter.
10724 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10725 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10726 invariant POINTER_PLUS_EXPRs to invariant form.
10727 (vn_valueize): New function.
10728 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10729 * tree-vrp.c (vrp_valueize): New function.
10730 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10731 to fold statements to constants.
10732 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10733 function declarations.
10734 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10735 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10737 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10739 * config/h8300/predicates.md (jump_address_operand): Fix register
10742 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10744 * doc/invoke.texi (max-stores-to-sink): Document.
10745 * params.h (MAX_STORES_TO_SINK): Define.
10746 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10747 if either vectorization or if-conversion is disabled.
10748 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10749 tree-vect-data-refs.c vect_equal_offsets.
10750 (dr_equal_offsets_p): New function.
10751 (find_data_references_in_bb): Remove static.
10752 * tree-data-ref.h (find_data_references_in_bb): Declare.
10753 (dr_equal_offsets_p): Likewise.
10754 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10755 (vect_drs_dependent_in_basic_block): Update calls to
10756 vect_equal_offsets.
10757 (vect_check_interleaving): Likewise.
10758 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10759 (cond_if_else_store_replacement): Rename to...
10760 (cond_if_else_store_replacement_1): ... this. Change arguments and
10762 (cond_if_else_store_replacement): New function.
10763 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10764 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10766 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10769 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10770 to subtract lower bound instead of GEN_INT().
10772 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10777 * doc/extend.texi (Alignment): Move section to match order in TOC.
10778 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10779 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10781 2011-03-23 Jeff Law <law@redhat.com>
10783 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10784 before removing the edge.
10786 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10787 it may have been freed by redirect_branch_edge or
10788 redirect_edge_succ_nodup.
10790 2011-03-23 Richard Guenther <rguenther@suse.de>
10792 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10793 (check_va_list_escapes): Likewise.
10794 (check_all_va_list_escapes): Likewise.
10796 2011-03-23 Richard Guenther <rguenther@suse.de>
10798 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10799 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10800 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10801 (alias.o): Likewise.
10802 (ipa-type-escape.o): Remove.
10803 (ipa-struct-reorg.o): Likewise.
10804 (GTFILES): Remove ipa-struct-reorg.c.
10805 * alias.c: Do not include ipa-type-escape.h.
10806 * tree-ssa-alias.c: Likewise.
10807 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10808 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10809 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10810 and ipa-type-escape passes.
10811 * tree-pass.h (pass_ipa_type_escape): Remove.
10812 (pass_ipa_struct_reorg): Likewise.
10813 * ipa-struct-reorg.h: Remove.
10814 * ipa-struct-reorg.c: Likewise.
10815 * ipa-type-escape.h: Likewise.
10816 * ipa-type-escape.c: Likewise.
10817 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10818 (--param struct-reorg-cold-struct-ratio): Likewise.
10819 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10820 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10821 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10823 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10825 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10826 cpu attribute value.
10827 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10828 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10829 * config/s390/s390.c (processor_flags_table): New constant array.
10830 (s390_handle_arch_option): Remove.
10831 (s390_handle_option): Remove s390_handle_arch_option invocations
10832 and OPT_mwarn_framesize_ handling.
10833 (s390_option_override): Remove s390_handle_arch_option invocation.
10834 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10836 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10837 * config/s390/s390.opt (s390_tune, s390_arch)
10838 (march=): Replace s390_arch_option enum and values with
10839 processor_type. Set variable name to s390_arch. Set
10840 initialization value.
10841 (mtune=): Replace s390_arch_option with processor_type. Set
10842 variable name to s390_tune. Set initialization value.
10844 2011-03-23 Julian Brown <julian@codesourcery.com>
10846 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10847 accesses which are not naturally aligned.
10849 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10852 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10854 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10856 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10857 parameter from "int" to "enum insn_code".
10858 (expand_operand_type): New enum.
10859 (expand_operand): New structure.
10860 (create_expand_operand): New function.
10861 (create_fixed_operand, create_output_operand): Likewise
10862 (create_input_operand, create_convert_operand_to): Likewise.
10863 (create_convert_operand_from, create_address_operand): Likewise.
10864 (create_integer_operand): Likewise.
10865 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10866 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10867 (expand_insn, expand_jump_insn): Likewise.
10868 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10869 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10870 (expand_movstr, expand_builtin___clear_cache): Likewise.
10871 (expand_builtin_lock_release): Likewise.
10872 * explow.c (allocate_dynamic_stack_space): Likewise.
10873 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10874 and use the default handling in that case.
10875 * expmed.c (check_predicate_volatile_ok): Delete.
10876 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10877 (emit_cstore): Likewise.
10878 * expr.c (emit_block_move_via_movmem): Likewise.
10879 (set_storage_via_setmem, expand_assignment): Likewise.
10880 (emit_storent_insn, try_casesi): Likewise.
10881 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10882 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10883 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10884 (expand_twoval_unop, expand_twoval_binop): Likewise.
10885 (expand_unop_direct, emit_indirect_jump): Likewise.
10886 (emit_conditional_move, vector_compare_rtx): Likewise.
10887 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10888 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10889 (expand_sync_lock_test_and_set): Likewise.
10890 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10891 (emit_unop_insn): Likewise.
10892 (expand_copysign_absneg): Change icode to an insn_code.
10893 (create_convert_operand_from_type): New function.
10894 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10895 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10896 (expand_insn, expand_jump_insn): Likewise.
10897 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10898 than const_int_operand for operand 2.
10900 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10902 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10905 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10907 * emit-rtl.c (emit_pattern_before_noloc): New function.
10908 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10909 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10910 (emit_pattern_after_noloc): New function.
10911 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10912 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10914 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10916 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10917 (__ffsDI2): Likewise.
10919 2011-03-22 Richard Henderson <rth@redhat.com>
10921 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10922 of !TARGET_ABI_OPEN_VMS.
10923 (alpha_trampoline_init, alpha_start_function): Likewise.
10924 (alpha_expand_epilogue, alpha_file_start): Likewise.
10925 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10926 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10927 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10928 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10929 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10931 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10933 * config/s390/s390-opts.h: New.
10934 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10935 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10936 s390_stack_guard): Remove.
10937 (s390_handle_arch_option): Return void. Take enum
10938 s390_arch_option value instead of string and searching array.
10939 (s390_handle_option): Don't assert that global structures are in
10940 use. Access variables via opts pointer. Use error_at. Don't use
10941 sscanf for -mstack-guard= or -mstack-size=. Update call to
10942 s390_handle_arch_option.
10943 (s390_option_override): Update call to s390_handle_arch_option.
10944 (s390_emit_prologue): Use %d format for s390_stack_size in
10945 diagnostic. Use %wd for HOST_WIDE_INT.
10946 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10947 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10948 * config/s390/s390.opt (config/s390/s390-opts.h): New
10949 HeaderInclude entry.
10950 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10951 s390_arch_flags, s390_warn_framesize): New Variable entries.
10952 (s390_arch_option): New Enum and EnumValue entries.
10953 (march=): Use Enum instead of Var.
10954 (mstack-guard=, mstack-size=): Use UInteger and Var.
10955 (mtune=): Use Enum.
10957 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10959 * config/score/score.c (score_handle_option): Don't assert that
10960 global structures are in use. Access target_flags via opts
10961 pointer. Use value of -march= option to determine target_flags
10963 * config/score/score.opt (march=): Use Enum.
10964 (score_arch): New Enum and EnumValue entries.
10966 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10968 * config/mep/mep.c (option_mtiny_specified): Remove.
10969 (mep_option_override): Move register handling for -mivc2 from
10970 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10971 instead of option_mtiny_specified.
10972 (mep_handle_option): Access target_flags via opts pointer. Don't
10973 assert that global structures are in use. Defer part of -mivc2
10974 handling and move it to mep_option_override.
10975 * config/mep/mep.opt (IVC2): New Mask entry.
10976 (mivc2): Use Var and Defer instead of Mask.
10978 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10980 * config/v850/v850-opts.h: New.
10981 * config/v850/v850.c (small_memory): Replace with
10982 small_memory_physical_max array. Make that array static const.
10983 (v850_handle_memory_option): Take integer value of argument. Take
10984 gcc_options pointer, option text and location. Return void.
10985 Update for changes to small memory structures.
10986 (v850_handle_option): Access target_flags via opts pointer. Don't
10987 assert that global structures are in use. Update calls to
10988 v850_handle_memory_option.
10989 (v850_encode_data_area): Update references to small memory settings.
10990 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10991 (enum small_memory_type): Move to v850-opts.h.
10992 * config/v850/v850.opt (config/v850/v850-opts.h): New
10993 HeaderInclude entry.
10994 (small_memory_max): New Variable entry.
10995 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10996 (mtda, mzda): Likewise.
10998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11000 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11001 pointer. Don't assert that global structures are in use.
11003 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11005 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11006 via opts pointer. Don't assert that global structures are in use.
11008 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11010 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11011 (munix=93): Use Var.
11012 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11013 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11014 * config/pa/pa-opts.h: New.
11015 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11016 (pa_handle_option): Don't assert that global structures are in
11017 use. Access target_flags via opts pointer. Don't handle
11018 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11020 (pa_option_override): Handle deferred OPT_mfixed_range_.
11022 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11024 * config/mn10300/mn10300-opts.h: New.
11025 * config/mn10300/mn10300.c (mn10300_processor,
11026 mn10300_tune_string): Remove.
11027 (mn10300_handle_option): Don't assert that global structures are
11028 in use. Access mn10300_processor via opts pointer. Don't handle
11030 * config/mn10300/mn10300.h (enum processor_type): Move to
11032 (mn10300_processor): Remove.
11033 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11034 HeaderInclude entry.
11035 (mn10300_processor): New Variable entry.
11038 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11040 * config/microblaze/microblaze.c: Don't include opts.h.
11041 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11042 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11043 (mno-clearbss): Use Var and Warn.
11045 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11047 * config/m32r/m32r-opts.h: New.
11048 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11049 (m32r_handle_option): Don't assert that global structures are in
11050 use. Access target_flags and m32r_cache_flush_func via opts
11051 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11052 OPT_mno_flush_trap here.
11053 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11054 include of m32r-opts.h.
11055 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11056 HeaderInclude entry.
11057 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11058 (mmodel=): Use Enum and Var.
11059 (m32r_model): New Enum and EnumValue entries.
11060 (mno-flush-trap): Use Var.
11061 (msdata=): Use Enum and Var.
11062 (m32r_sdata): New Enum and EnumValue entries.
11064 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11066 * config/m32c/m32c.c: Don't include opts.h.
11067 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11068 m32c_handle_option): Remove.
11069 (m32c_option_override): Check global_options_set.x_target_memregs
11070 instead of target_memregs_set.
11071 * config/m32c/m32c.h (target_memregs): Remove.
11072 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11075 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11077 * config/iq2000/iq2000-opts.h: New.
11078 * config/iq2000/iq2000.c: Don't include opts.h.
11079 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11080 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11081 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11082 HeaderInclude entry.
11083 (iq2000_tune): New Variable entry.
11084 (march=): Add comment. Use Enum.
11085 (iq2000_arch): New Enum and EnumValue entries.
11086 (mcpu=): Use Enum and Var.
11087 (iq2000_tune): New Enum and EnumValue entries.
11089 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11091 * config/ia64/ia64-opts.h: New.
11092 * config/ia64/ia64.c (ia64_tune): Remove.
11093 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11094 here. Use error_at.
11095 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11096 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11097 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11098 HeaderInclude entry.
11099 (ia64_tune): New Variable entry.
11100 (mfixed-range=): Use Defer and Var.
11101 (mtune=): Use Enum and Var.
11102 (ia64_tune): New Enum and EnumValue entries.
11104 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11106 * config/frv/frv-opts.h: New.
11107 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11109 (frv_cpu_type): Remove.
11110 * config/frv/frv.c: Don't include opts.h.
11111 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11112 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11113 (frv_cpu_type): New Variable entry.
11114 (frv_cpu): New Enum and EnumValue entries.
11116 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11118 * config/cris/cris.c (cris_handle_option): Access target_flags via
11119 opts pointer. Don't assert that global structures are in use.
11120 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11121 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11123 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11125 * config/bfin/bfin-opts.h: New.
11126 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11127 bfin_si_revision, bfin_workarounds): Remove.
11128 (bfin_cpus): Make static const.
11129 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11130 not bfin_lib_id_given.
11131 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11132 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11133 pointer. Use error_at. Don't assert that global structures are in use.
11134 * config/bfin/bfin.h: Include bfin-opts.h.
11135 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11136 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11137 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11138 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11141 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11143 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11144 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11145 or -msoft-float here.
11146 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11147 -msoft-float and -mhard-float.
11148 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11149 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11151 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11153 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11154 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11156 (LIBGCC_SPEC): Don't handle -msoft-float.
11157 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11159 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11161 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11162 -mfloat-abi=*, not -msoft-float and -mhard-float.
11163 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11165 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11166 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11167 mhard-float and msoft-float.
11168 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11169 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11170 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11171 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11173 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11174 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11176 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11178 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11181 2011-03-22 Richard Henderson <rth@redhat.com>
11183 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11184 TARGET_ABI_WINDOWS_NT.
11185 (alpha_output_function_end_prologue): Likewise.
11186 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11187 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11188 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11189 (trap, *movsi_nt_vms): Likewise.
11190 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11191 (*tablejump_osf_nt_internal): Remove.
11192 * config/alpha/predicates.md (input_operand): Only test Pmode.
11194 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11196 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11197 via opts pointer. Use error_at. Don't assert that global
11198 structures are in use.
11200 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11202 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11203 (ix86_handle_option): Access ix86_isa_flags and
11204 ix86_isa_flags_explicit via opts pointer. Don't assert that
11205 global structures are in use.
11206 (ix86_function_specific_save, ix86_function_specific_restore):
11207 Update ix86_isa_flags_explicit field name.
11208 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11209 (ix86_isa_flags_explicit): Rename TargetSave entry to
11210 x_ix86_isa_flags_explicit.
11212 2011-03-22 Richard Henderson <rth@redhat.com>
11214 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11215 (alpha_option_override, direct_return): Likewise.
11216 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11217 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11218 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11219 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11220 (alpha_expand_epilogue, alpha_end_function): Likewise.
11221 (alpha_init_libfuncs): Likewise.
11222 (struct machine_function): Remove unicosmk members.
11223 (print_operand) ['t']: Remove.
11224 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11225 unicosmk_output_module_name, unicosmk_output_common,
11226 current_section_align, unicosmk_output_text_section_asm_op,
11227 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11228 unicosmk_section_type_flags, unicosmk_unique_section,
11229 unicosmk_asm_named_section, unicosmk_insert_attributes,
11230 unicosmk_output_align, unicosmk_defer_case_vector,
11231 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11232 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11233 unicosmk_output_ssib, unicosmk_add_call_info_word,
11234 unicosmk_extern_head, unicosmk_output_default_externs,
11235 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11236 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11237 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11238 * config/alpha/alpha-protos.h: Update.
11239 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11240 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11241 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11242 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11243 (*mulsi_se, mulvsi3): Likewise.
11244 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11245 (*divmodsi_internal, call, call_value, realign): Likewise.
11246 (moddi3, umoddi3): Likewise; remove duplicate expander.
11247 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11248 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11249 (*movdi_nofix): Remove r/U alternative.
11250 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11251 * config/alpha/constraints.md ("U"): Remove.
11252 * config/alpha/predicates.md (call_operand"): Don't test
11253 TARGET_ABI_UNICOSMK.
11255 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11257 * target.def (handle_option): Take gcc_options and
11258 cl_decoded_option pointers and location_t.
11259 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11260 * doc/tm.texi: Regenerate.
11261 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11262 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11263 * lto-opts.c (lto_reissue_options): Generate option structure for
11264 targetm.handle_option call.
11265 * opts.c (target_handle_option): Update call to
11266 targetm.handle_option. Remove assertions about values now passed
11268 * targhooks.c (default_target_handle_option): New.
11269 * targhooks.h (default_target_handle_option): Declare.
11270 * config/alpha/alpha.c: Include opts.h.
11271 (alpha_handle_option): Update to new hook interface.
11272 * config/arm/arm.c: Include opts.h.
11273 (arm_handle_option): Update to new hook interface.
11274 * config/arm/t-arm (arm.o): Update dependencies.
11275 * config/bfin/bfin.c: Include opts.h.
11276 (bfin_handle_option): Update to new hook interface.
11277 * config/cris/cris.c: Include opts.h.
11278 (cris_handle_option): Update to new hook interface.
11279 * config/frv/frv.c: Include opts.h.
11280 (frv_handle_option): Update to new hook interface.
11281 * config/i386/i386.c: Include opts.h.
11282 (ix86_handle_option): Update to new hook interface.
11283 (ix86_valid_target_attribute_inner_p): Generate option structure
11284 for call to ix86_handle_option.
11285 * config/i386/t-i386 (i386.o): Update dependencies.
11286 * config/ia64/ia64.c: Include opts.h.
11287 (ia64_handle_option): Update to new hook interface.
11288 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11289 * config/iq2000/iq2000.c: Include opts.h.
11290 (iq2000_handle_option): Update to new hook interface.
11291 * config/m32c/m32c.c: Include opts.h.
11292 (m32c_handle_option): Update to new hook interface.
11293 * config/m32r/m32r.c: Include opts.h.
11294 (m32r_handle_option): Update to new hook interface.
11295 * config/m68k/m68k.c: Include opts.h.
11296 (m68k_handle_option): Update to new hook interface.
11297 * config/mep/mep.c: Include opts.h.
11298 (mep_handle_option): Update to new hook interface.
11299 * config/microblaze/microblaze.c: Include opts.h.
11300 (microblaze_handle_option): Update to new hook interface.
11301 * config/mips/mips.c: Include opts.h.
11302 (mips_handle_option): Update to new hook interface.
11303 * config/mn10300/mn10300.c: Include opts.h.
11304 (mn10300_handle_option): Update to new hook interface.
11305 * config/pa/pa.c: Include opts.h.
11306 (pa_handle_option): Update to new hook interface.
11307 * config/pdp11/pdp11.c: Include opts.h.
11308 (pdp11_handle_option): Update to new hook interface.
11309 * config/rs6000/rs6000.c: Include opts.h.
11310 (rs6000_handle_option): Update to new hook interface.
11311 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11312 * config/rx/rx.c: Include opts.h.
11313 (rx_handle_option): Update to new hook interface.
11314 * config/s390/s390.c: Include opts.h.
11315 (s390_handle_option): Update to new hook interface.
11316 * config/score/score.c: Include opts.h.
11317 (score_handle_option): Update to new hook interface.
11318 * config/sh/sh.c: Include opts.h.
11319 (sh_handle_option): Update to new hook interface.
11320 * config/sparc/sparc.c: Include opts.h.
11321 (sparc_handle_option): Update to new hook interface.
11322 * config/v850/v850.c: Include opts.h.
11323 (v850_handle_option): Update to new hook interface.
11325 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11327 * gcc.c (driver_unknown_option_callback): Only permit and save
11328 unknown -Wno- options.
11329 (driver_wrong_lang_callback): Save options directly instead of via
11330 driver_unknown_option_callback.
11332 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11334 * combine.c (simplify_set): Try harder to find the best CC mode when
11335 simplifying a nested COMPARE on the RHS.
11337 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11339 * config/alpha/gnu.h: Remove.
11340 * config/arc: Remove directory.
11341 * config/arm/netbsd.h: Remove.
11342 * config/arm/t-pe: Remove.
11343 * config/crx: Remove directory.
11344 * config/i386/netbsd.h: Remove.
11345 * config/m68hc11: Remove directory.
11346 * config/m68k/uclinux-oldabi.h: Remove.
11347 * config/mcore/mcore-pe.h: Remove.
11348 * config/mcore/t-mcore-pe: Remove.
11349 * config/netbsd-aout.h: Remove.
11350 * config/rs6000/gnu.h: Remove.
11351 * config/sh/sh-symbian.h: Remove.
11352 * config/sh/symbian-base.c: Remove.
11353 * config/sh/symbian-c.c: Remove.
11354 * config/sh/symbian-cxx.c: Remove.
11355 * config/sh/symbian-post.h: Remove.
11356 * config/sh/symbian-pre.h: Remove.
11357 * config/sh/t-symbian: Remove.
11358 * config/svr3.h: Remove.
11359 * config/vax/netbsd.h: Remove.
11360 * config.build: Don't handle i[34567]86-*-pe.
11361 * config.gcc: Remove handling of deprecations for most deprecated
11363 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11364 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11365 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11366 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11367 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11368 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11370 * config.host: Don't handle i[34567]86-*-pe.
11371 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11372 (ASM_SPEC32): Don't handle -mcall-gnu.
11373 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11375 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11376 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11377 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11378 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11379 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11380 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11381 conditional on SYMBIAN.
11382 * configure.ac: Don't handle powerpc*-*-gnu*.
11383 * configure: Regenerate.
11384 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11385 * doc/install-old.texi (m6811, m6812): Don't mention.
11386 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11387 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11388 (m68k-uclinuxoldabi): Don't mention.
11389 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11391 (-mcall-gnu): Remove.
11392 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11393 families): Remove constraint documentation.
11395 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11397 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11398 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11399 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11401 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11404 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11405 vector when peeking at the next token for vector, don't expand the
11408 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11410 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11411 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11412 * config/avr/avr.c (init_cumulative_args)
11413 (avr_function_arg_advance): Use it.
11414 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11416 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11417 (avr_function_ok_for_sibcall): ...this new function.
11418 (avr_lookup_function_attribute1): New static Function.
11419 (avr_naked_function_p, interrupt_function_p)
11420 (signal_function_p, avr_OS_task_function_p)
11421 (avr_OS_main_function_p): Use it.
11422 * config/avr/avr.md ("sibcall", "sibcall_value")
11423 ("sibcall_epilogue"): New expander.
11424 ("*call_insn", "*call_value_insn"): New insn.
11425 ("call_insn", "call_value_insn"): Remove
11426 ("call", "call_value", "epilogue"): Change expander to handle
11429 2011-03-21 Nick Clifton <nickc@redhat.com>
11431 * doc/invoke.texi (Overall Options): Move closing brace to end of
11433 (Optimization Options): Add missing @gol.
11434 (Directory Options): Likewise.
11435 (i386 and x86-64 Options): Likewise.
11436 (RS6000 and PowerPC Options): Likewise.
11437 (i386 and x86-64 Windows Options): Likewise.
11438 (V850 Options): Add text missing from descriptions.
11440 2011-03-22 Richard Henderson <rth@redhat.com>
11442 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11443 (avr_incoming_return_addr_rtx): New.
11444 (emit_push_byte): New.
11445 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11446 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11447 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11448 (emit_pop_byte): New.
11449 (expand_epilogue): Use it. Pop frame pointer by bytes.
11450 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11451 (INCOMING_RETURN_ADDR_RTX): New.
11452 (INCOMING_FRAME_SP_OFFSET): New.
11453 (ARG_POINTER_CFA_OFFSET): New.
11454 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11455 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11458 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11460 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11462 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11463 (FUNCTION_ARG_ADVANCE): Likewise.
11464 * tm.texi.in: Change references to them to hook references.
11465 * tm.texi: Regenerate.
11466 * targhooks.c (default_function_arg): Eliminate check for target
11468 (default_function_incoming_arg): Likewise.
11469 (default_function_arg_advance): Likewise.
11470 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11471 (function_arg_advance): Likewise.
11472 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11474 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11476 * tree.c (build_call_1): New function.
11477 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11479 2011-03-22 Richard Guenther <rguenther@suse.de>
11481 PR tree-optimization/48228
11482 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11483 for single-arg PHIs.
11485 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11487 PR rtl-optimization/48143
11488 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11489 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11490 sse2_cvtps2pd): Likewise.
11492 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11494 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11496 2011-03-22 Richard Guenther <rguenther@suse.de>
11498 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11499 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11500 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11501 and REALIGN_LOAD_EXPR.
11502 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11503 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11504 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11505 DOT_PROD_EXPR case ...
11506 (expand_expr_real_2): ... here.
11507 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11508 and REALIGN_LOAD_EXPR.
11509 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11510 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11511 (vect_create_epilog_for_reduction): Likewise.
11512 (vectorizable_reduction): Likewise.
11513 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11514 * tree-vect-stmts.c (vectorizable_load): Likewise.
11516 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11518 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11520 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11522 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11523 handling for PLTOFF/GOTOFF.
11525 2011-03-22 Nick Clifton <nickc@redhat.com>
11527 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11528 trailing backslash from the end of the macro definition.
11530 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11532 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11535 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11537 * expr.h (prepare_operand): Move to...
11538 * optabs.h (prepare_operand): ...here and change the insn code
11539 parameter from "int" to "enum insn_code".
11540 (insn_operand_matches): Declare.
11541 * expr.c (init_expr_target): Use insn_operand_matches.
11542 (compress_float_constant): Likewise.
11543 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11544 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11545 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11546 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11548 (gen_cond_trap): Likewise.
11549 (prepare_operand): Likewise. Change icode to an insn_code.
11550 (insn_operand_matches): New function.
11551 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11552 * reload1.c (gen_reload): Likewise.
11553 * targhooks.c (default_secondary_reload): Likewise.
11555 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11557 * config/alpha/alpha.md (unspec): New define_c_enum.
11560 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11563 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11564 between a call and its CALL_ARG_LOCATION note.
11566 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11568 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11570 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11574 * c-common.c (shorten_compare): If primopN is first sign-extended
11575 to opN and then zero-extended to result type, set primopN to opN.
11577 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11579 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11580 for barrier handlers.
11582 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11584 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11585 UNSPEC constants to be in the unspec enumeration, and redefine
11586 all UNSPECV constants to be in the unspecv enumeration, so that
11587 dumps print which unspec/unspec_volatile this is.
11588 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11589 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11590 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11591 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11592 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11594 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11595 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11596 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11597 * config/rs6000/sync.md (isync, lwsync): Ditto.
11599 2011-03-21 Richard Guenther <rguenther@suse.de>
11601 * params.def (lto-min-partition): Fix typo.
11603 2011-03-21 Richard Guenther <rguenther@suse.de>
11606 * c-decl.c (grokdeclarator): Drop to the main variant only
11607 for array types. Drop flag_gen_aux_info check.
11609 2011-03-21 Richard Guenther <rguenther@suse.de>
11611 PR translation/47911
11612 * params.def (lto-partitions): Fix typo.
11613 (lto-min-partition): Fix wording.
11615 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11617 * config/rs6000/t-freebsd: Remove duplication from file.
11619 2011-03-21 Richard Guenther <rguenther@suse.de>
11621 PR middle-end/47661
11622 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11624 2011-03-21 Richard Guenther <rguenther@suse.de>
11627 * params.def (lto-partitions): Require at least 1 partition.
11629 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11631 * gthr-solaris.h: Remove.
11632 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11633 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11634 (LIB_SPEC): Likewise.
11635 * config/sol2.opt (threads): Remove.
11636 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11637 (sparc*-*-solaris2*): Likewise.
11638 * configure.ac (enable_threads): Enable solaris support.
11639 * configure: Regenerate.
11640 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11641 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11644 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11646 * config.gcc: Obsolete *-*-solaris2.8*.
11647 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11649 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11652 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11653 reference. Solaris 8 perl works.
11655 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11658 * doc/install.texi (Prerequisites): Move jar etc. up.
11659 Explain support library version requirements.
11661 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11664 * doc/install.texi (Prerequisites): Move Perl to build
11665 requirements. Always necessary on Solaris 2 with Sun ld.
11667 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11669 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11671 (Specific, i?86-*-solaris2.[89]): Likewise.
11672 (Specific, i?86-*-solaris2.10): Likewise.
11673 (Specific, mips-sgi-irix6): Likewise.
11674 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11675 Update for binutils 2.21.
11677 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11679 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11680 Allow -fuse-linker-plugin for non-default plugin linker.
11681 * configure: Regenerate.
11683 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11686 * gengtype.c (files_rules): Added rule for cp/parser.h.
11688 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11691 * config/s390/s390.c (s390_delegitimize_address): Don't call
11692 lowpart_subreg if orig_x has BLKmode.
11694 2011-03-21 Kai Tietz <ktietz@redhat.com>
11697 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11698 * tree.h (attribute_spec): Add new member affects_type_identity.
11699 * attribs.c (empty_attribute_table): Adjust attribute_spec
11701 * config/alpha/alpha.c: Likewise.
11702 * config/arc/arc.c: Likewise.
11703 * config/arm/arm.c: Likewise.
11704 * config/avr/avr.c: Likewise.
11705 * config/bfin/bfin.c: Likewise.
11706 * config/crx/crx.c: Likewise.
11707 * config/darwin.h: Likewise.
11708 * config/h8300/h8300.c: Likewise.
11709 * config/i386/cygming.h: Likewise.
11710 * config/i386/i386.c: Likewise.
11711 * config/ia64/ia64.c: Likewise.
11712 * config/m32c/m32c.c: Likewise.
11713 * config/m32r/m32r.c: Likewise.
11714 * config/m68hc11/m68hc11.c: Likewise.
11715 * config/m68k/m68k.c: Likewise.
11716 * config/mcore/mcore.c: Likewise.
11717 * config/mep/mep.c: Likewise.
11718 * config/microblaze/microblaze.c: Likewise.
11719 * config/mips/mips.c: Likewise.
11720 * config/rs6000/rs6000.c: Likewise.
11721 * config/rx/rx.c: Likewise.
11722 * config/sh/sh.c: Likewise.
11723 * config/sol2.h: Likewise.
11724 * config/sparc/sparc.c: Likewise.
11725 * config/spu/spu.c: Likewise.
11726 * config/stormy16/stormy16.c: Likewise.
11727 * config/v850/v850.c: Likewise.
11729 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11731 * simplify-rtx.c (simplify_binary_operation_1): Handle
11732 (xor (and A B) C) case when B and C are both constants.
11734 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11736 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11738 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11741 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11743 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11745 PR rtl-optimization/48156
11746 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11747 assume df and df_lr are not NULL.
11749 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11752 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11753 between a call and its CALL_ARG_LOCATION note.
11755 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11758 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11759 between a call and its corresponding CALL_ARG_LOCATION note.
11761 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11763 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11764 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11765 * haifa-sched.c (setup_ref_regs): Ditto.
11766 * caller-save.c (add_used_regs_1): Ditto.
11767 * dse.c (look_for_hardregs): Ditto.
11768 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11769 * sched-rgn.c (check_live_1): Ditto.
11771 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11773 * c-decl.c (diagnose_mismatched_decls): Give an error for
11774 redefining a typedef with variably modified type.
11776 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11778 * c-decl.c (grokfield): Don't allow typedefs for structures or
11779 unions with no tag by default.
11780 * doc/extend.texi (Unnamed Fields): Update.
11782 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11784 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11785 Rewrite using indirect functions.
11786 (lwp_slwpcb): Ditto.
11787 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11788 (avx_vinsertf128<mode>): Ditto.
11790 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11792 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11795 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11797 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11798 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11800 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11802 PR rtl-optimization/48170
11803 * gcse.c (hoist_code): Remove bogus asserts.
11805 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11807 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11808 computation for prologue/epilogue.
11810 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11812 * Makefile.in (check-consistency): Remove.
11814 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11817 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11818 arange_table_in_use is 0, but either text_section_used or
11819 cold_text_section_used is true. Don't call it if
11820 !info_section_emitted.
11822 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11824 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11825 FUNCTION_VALUE_REGNO_P): Remove.
11826 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11828 * config/avr/avr.c (avr_ret_register): Make static inline.
11829 (avr_function_value_regno_p): New function.
11830 (avr_libcall_value): Make static. Add 'func' argument.
11831 (avr_function_value): Make static. Rename 'func' argument to
11832 'fn_decl_or_type', forward it to avr_libcall_value. Call
11833 avr_ret_register function instead of RET_REGISTER macro.
11834 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11836 2011-03-18 Jason Merrill <jason@redhat.com>
11839 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11841 2011-03-18 Richard Guenther <rguenther@suse.de>
11843 * doc/install.texi (--enable-gold): Remove.
11844 (--with-plugin-ld): Document.
11845 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11847 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11849 PR middle-end/47790
11850 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11851 again after expansion changes.
11853 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11855 * combine.c (try_combine): Do simplification only call of
11856 subst() on i2 even when i1 is present. Update comments.
11858 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11860 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11861 and UNSPEC_PCREL_SYMOFF.
11863 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11865 * config/s390/s390.md: Use define_c_enum for the unspec constant
11868 2011-03-18 Richard Henderson <rth@redhat.com>
11869 Jakub Jelinek <jakub@redhat.com>
11872 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11873 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11875 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11877 PR middle-end/47725
11878 * combine.c (cant_combine_insn_p): Don't check zero/sign
11879 extended hard registers.
11881 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11883 PR middle-end/47725
11884 * combine.c (cant_combine_insn_p): Check zero/sign extended
11887 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11889 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11890 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11891 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11892 Change return type to bool.
11893 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11895 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11898 * var-tracking.c (prepare_call_arguments): If CALL target
11899 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11900 pc instead of looking it up using cselib_lookup and use
11901 Pmode for it if x has VOIDmode.
11902 * dwarf2out.c (gen_subprogram_die): If also both first and
11903 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11906 * function.c (assign_parms): For data.passed_pointer parms
11907 use MEM of data.entry_parm instead of data.entry_parm itself
11908 as DECL_INCOMING_RTL.
11909 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11910 also when passed and declared mode is the same, DECL_RTL
11911 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11914 2011-03-16 Jeff Law <law@redhat.com>
11916 PR rtl-optimization/37273
11917 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11918 handle them like argument loads from stack slots. Do not double
11919 count memory for memory constants and argument loads from stack slots.
11921 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11924 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11926 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11929 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11931 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11934 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11936 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11937 Clear call_arg_locations and call_arg_loc_last always.
11939 PR middle-end/48152
11940 * var-tracking.c (prepare_call_arguments): If argument needs to be
11941 passed by reference, adjust argtype and mode.
11943 2011-03-17 Richard Guenther <rguenther@suse.de>
11945 PR middle-end/48134
11946 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11947 a value make sure to fold the statement.
11949 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11952 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11953 return condition with !cfun->calls_alloca.
11955 2011-03-17 Richard Guenther <rguenther@suse.de>
11958 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11959 origin for decls in other ltrans units.
11960 (input_varpool_node): Likewise.
11962 2011-03-17 Richard Guenther <rguenther@suse.de>
11964 PR middle-end/48165
11965 * tree-object-size.c (compute_object_offset): Properly return
11966 the offset operand of MEM_REFs as sizetype.
11968 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11970 PR rtl-optimization/48141
11971 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11972 * dse.c: Include params.h.
11973 (active_local_stores_len): New variable.
11974 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11976 (record_store, check_mem_read_rtx): Decrease it when removing
11978 (scan_insn): Likewise. Increase it when adding to chain, if it
11979 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11980 set active_local_stores to NULL before the addition.
11981 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11983 PR rtl-optimization/48141
11984 * dse.c (record_store): If no positions are needed in an insn
11985 that cannot be deleted, at least unchain it from active_local_stores.
11987 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11990 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11991 (lookup_type_die_strip_naming_typedef): ... here.
11992 (get_context_die): Use it.
11993 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11994 the anonymous struct named by the naming typedef.
11996 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11999 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12000 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12002 2011-03-16 Jeff Law <law@redhat.com>
12004 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12005 check for operands of conditional. Allow type to be a pointer.
12007 2011-03-16 Richard Guenther <rguenther@suse.de>
12009 PR tree-optimization/48149
12010 * fold-const.c (fold_binary_loc): Fold
12011 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12013 2011-03-16 Richard Guenther <rguenther@suse.de>
12015 PR tree-optimization/26134
12016 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12017 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12018 (non_rewritable_mem_ref_base): Handle complex type component
12019 accesses, constrain offsets for vector and complex extracts
12022 2011-03-16 Richard Guenther <rguenther@suse.de>
12024 PR tree-optimization/48146
12025 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12026 operands avoiding the need for renaming.
12028 2011-03-16 Richard Guenther <rguenther@suse.de>
12030 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12031 constant folding. Move MEM_REF canonicalization first.
12032 Rely on fold_const_aggregate_ref for initializer folding.
12033 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12035 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12037 PR middle-end/48136
12038 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12039 arg0/arg1 or their arguments are always fold converted to matching
12042 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12045 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12048 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12049 Handle in-tree gold.
12050 (ld_vers): Extract binutils version for gold.
12051 (gcc_cv_ld_hidden): Handle gold here.
12052 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12053 * configure: Regenerate.
12054 * config.in: Regenerate.
12055 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12056 -fuse-linker-plugin otherwise.
12057 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12058 (LINK_COMMAND_SPEC): Use it.
12059 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12061 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12063 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12064 * calls.c: Remove debug.h include.
12065 (emit_call_1): Don't call virtual_call_token debug hook.
12066 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12067 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12068 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12069 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12070 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12071 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12072 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12073 dwarf2out_virtual_call): Remove.
12074 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12075 copy_call_info and virtual_call hooks.
12076 (dwarf2out_init): Don't initialize vcall_insn_table,
12077 debug_dcall_section and debug_vcall_section.
12078 (prune_unused_types): Don't mark nodes from dcall_table.
12079 (dwarf2out_finish): Don't output dcall or vcall tables.
12080 * final.c (final_scan_insn): Don't call direct_call or
12081 virtual_call debug hooks.
12082 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12083 virtual_call_token, copy_call_info and virtual_call hooks.
12084 (debug_nothing_uid): Remove prototype.
12085 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12086 copy_call_info and virtual_call hooks.
12087 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12088 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12089 * debug.c (do_nothing_debug_hooks): Likewise.
12090 (debug_nothing_uid): Remove.
12091 * doc/invoke.texi (-fenable-icf-debug): Remove.
12092 * common.opt (-fenable-icf-debug): Likewise.
12094 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12095 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12096 call's MEM. Handle functions returning aggregate through a hidden
12097 first pointer. For virtual calls add clobbered pc to call arguments
12099 * dwarf2out.c (gen_subprogram_die): Emit
12100 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12104 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12105 * rtl.h (ENTRY_VALUE_EXP): Define.
12106 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12107 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12108 * print-rtl.c (print_rtx): Likewise.
12109 * gengtype.c (adjust_field_rtx_def): Likewise.
12110 * var-tracking.c (vt_add_function_parameter): Adjust
12111 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12112 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12113 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12114 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12115 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12117 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12118 Call var_location debug hook even on CALL_INSNs.
12119 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12120 * rtl.def (ENTRY_VALUE): New.
12121 * dwarf2out.c: Include cfglayout.h.
12122 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12123 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12124 (struct call_arg_loc_node): New type.
12125 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12126 tail_call_site_count): New variables.
12127 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12128 DW_TAG_GNU_call_site_parameter.
12129 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12130 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12131 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12132 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12133 and DW_AT_GNU_all_source_call_sites.
12134 (mem_loc_descriptor): Handle ENTRY_VALUE.
12135 (add_src_coords_attributes): Don't add enything if
12136 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12137 (dwarf2out_abstract_function): Save and clear call_arg_location,
12138 call_site_count and tail_call_site_count around dwarf2out_decl call.
12139 (gen_call_site_die): New function.
12140 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12141 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12142 (dwarf2out_function_decl): Clear call_arg_locations,
12143 call_arg_loc_last, set call_site_count and tail_call_site_count
12144 to -1 and free block_map.
12145 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12146 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12147 followed by any real instructions.
12148 (dwarf2out_begin_function): Set call_site_count and
12149 tail_call_site_count to 0.
12150 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12151 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12152 attempt to force a DIE for it and worst case remove the attribute.
12153 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12154 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12156 * var-tracking.c: Include tm_p.h.
12157 (vt_stack_adjustments): For calls call note_register_arguments.
12158 (argument_reg_set): New variable.
12159 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12160 ensure the VALUE is resolved.
12161 (call_arguments): New variable.
12162 (prepare_call_arguments): New function.
12163 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12164 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12165 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12166 always use the best expression.
12167 (vt_expand_loc): Add ignore_cur_loc argument.
12168 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12169 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12170 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12171 note for all calls.
12172 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12173 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12174 argument. Don't call cselib_preserve_only_values and
12175 cselib_reset_table.
12176 (note_register_arguments): New function.
12177 (vt_initialize): Compute argument_reg_set. Call
12178 vt_add_function_parameters before processing basic blocks instead of
12179 afterwards. For calls call prepare_call_arguments before calling
12180 cselib_process_insn.
12181 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12182 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12183 (var-tracking.o): Depend on $(TM_P_H).
12184 * cfglayout.h (insn_scope): New prototype.
12185 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12186 * cfglayout.c (insn_scope): No longer static.
12187 * insn-notes.def (CALL_ARG_LOCATION): New.
12188 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12189 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12190 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12191 nothing for DECL_EXTERNAL BLOCK_VARS.
12193 2011-03-16 Alan Modra <amodra@gmail.com>
12196 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12197 create invalid offset address for vsx splat insn.
12198 * config/rs6000/predicates.md (splat_input_operand): New.
12199 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12201 2011-03-15 Xinliang David Li <davidxl@google.com>
12204 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12205 (normalize_preds): New function.
12206 (is_use_properly_guarded): Normalize def predicates.
12208 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12211 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12212 in the output template.
12214 2011-03-15 Richard Guenther <rguenther@suse.de>
12216 PR middle-end/47650
12217 * tree-pretty-print.c (dump_function_declaration): Properly
12218 dump unprototyped and varargs function types.
12220 2011-03-15 Richard Guenther <rguenther@suse.de>
12222 PR tree-optimization/13954
12223 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12226 2011-03-15 Richard Guenther <rguenther@suse.de>
12228 PR tree-optimization/48037
12229 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12230 selects into BIT_FIELD_REFs.
12231 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12234 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12236 PR tree-optimization/48129
12237 * builtins.c (fold_builtin_snprintf): Convert to type of
12238 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12239 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12241 2011-03-15 Richard Guenther <rguenther@suse.de>
12243 PR tree-optimization/41490
12244 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12245 value but with VUSE.
12246 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12248 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12249 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12250 * tree-tailcall.c (find_tail_calls): Ignore returns.
12252 2011-03-15 Richard Guenther <rguenther@suse.de>
12254 PR middle-end/48031
12255 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12256 or variable-indexed array accesses when in gimple form.
12258 2011-03-15 Richard Guenther <rguenther@suse.de>
12260 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12262 2011-03-15 Alan Modra <amodra@gmail.com>
12265 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12266 presume symbol_refs without a symbol_ref_decl are suitably
12267 aligned, nor other trees we may see here. Handle anchor symbols.
12268 (legitimate_constant_pool_address_p): Comment. Add mode param.
12269 Check cmodel=medium addresses. Adjust all calls.
12270 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12271 creating cmodel=medium optimized access to locals.
12272 * config/rs6000/constraints.md (R): Pass QImode to
12273 legitimate_constant_pool_address_p.
12274 * config/rs6000/predicates.md (input_operand): Pass mode to
12275 legitimate_constant_pool_address_p.
12276 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12279 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12282 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12283 64-bit constants being loaded into registers other than GPRs such
12284 as loading 0 into a VSX register.
12286 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12288 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12290 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12292 PR middle-end/47917
12293 * builtins.c (fold_builtin_snprintf): New function.
12294 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12295 (fold_builtin_4): Likewise.
12297 PR middle-end/38878
12298 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12299 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12300 and C - X == X also strip nops from +/-/p+ operand.
12301 When optimizing -X == C, fold C to arg0's type.
12304 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12305 emit it as add_AT_int instead of add_AT_unsigned.
12307 2011-03-14 Tom Tromey <tromey@redhat.com>
12309 * unwind-dw2.c: Include sys/sdt.h if it exists.
12310 (_Unwind_DebugHook): Use STAP_PROBE2.
12311 * config.in, configure: Rebuild.
12312 * configure.ac: Check for sys/sdt.h.
12314 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12316 * config/i386/i386.md (ROUND_FLOOR): New constant.
12317 (ROUND_CEIL): Ditto.
12318 (ROUND_TRUNC): Ditto.
12319 (ROUND_MXCSR): Ditto.
12320 (ROUND_NO_EXC): Ditto.
12321 (rint<mode>2): Use new defines instead of numerical constants.
12322 (floor<mode>2): Ditto.
12323 (ceil<mode>2): Ditto.
12324 (btrunc<mode>2): Ditto.
12325 * config/i386/i386-builtin-types.def: Define ROUND function type
12327 * config/i386/i386.c (enum ix86_builtins): Add
12328 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12329 (struct builtin_description): Add
12330 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12331 (ix86_expand_sse_round): New static function.
12332 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12334 (ix86_builtin_vectorized_function): Handle
12335 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12337 2011-03-14 Tom Tromey <tromey@redhat.com>
12339 * c-parser.c (c_parser_asm_string_literal): Clear
12340 warn_overlength_strings.
12342 2011-03-14 Tom Tromey <tromey@redhat.com>
12344 * c-parser.c (disable_extension_diagnostics): Save
12345 warn_overlength_strings.
12346 (restore_extension_diagnostics): Restore warn_overlength_strings.
12348 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12350 * BASE-VER: Change to 4.7.0.
12352 2011-03-14 Richard Guenther <rguenther@suse.de>
12354 PR middle-end/48098
12355 * tree.c (build_vector_from_val): Adjust assert to requirements
12358 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12361 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12363 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12365 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12366 terms of target_flags_explicit. Adjust copyright year.
12368 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12369 * config/rs6000/t-freebsd: New file. Add override for
12372 2011-03-13 Chris Demetriou <cgd@google.com>
12374 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12375 (-fno-diagnostics-show-option): this, to reflect current default.
12376 (-Werror=): Update text about -fno-diagnostics-show-option.
12378 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12381 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12382 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12383 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12384 mode is not V2DImode or V2DFmode.
12385 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12386 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12387 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12389 (movdi_internal64): Likewise.
12391 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12393 PR tree-optimization/47127
12394 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12396 (set_cloog_options): Same.
12397 (scop_to_clast): Same.
12398 (print_clast_stmt): Do not call cloog_state_malloc and
12400 (print_generated_program): Same.
12402 * graphite-clast-to-gimple.h (cloog_state): Declared.
12403 (scop_to_clast): Adjust declaration.
12404 * graphite.c (cloog_state): Defined here.
12405 (graphite_initialize): Call cloog_state_malloc.
12406 (graphite_finalize): Call cloog_state_free.
12408 2011-03-11 Jason Merrill <jason@redhat.com>
12410 * attribs.c (lookup_attribute_spec): Take const_tree.
12413 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12415 * config/sparc/sparc.c (sparc_option_override): Use
12416 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12418 2011-03-11 Richard Guenther <rguenther@suse.de>
12420 PR tree-optimization/48067
12421 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12422 multiplication result will be only used once on the target
12425 2011-03-11 Richard Guenther <rguenther@suse.de>
12427 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12429 2011-03-11 Richard Guenther <rguenther@suse.de>
12432 * tree.c (find_decls_types_r): Do not walk types only reachable
12433 from IDENTIFIER_NODEs.
12435 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12437 PR middle-end/48044
12438 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12439 all vnode->force_output nodes as needed.
12441 2011-03-11 Jason Merrill <jason@redhat.com>
12444 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12445 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12447 2011-03-11 Martin Jambor <mjambor@suse.cz>
12449 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12452 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12454 PR tree-optimization/48063
12455 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12456 inline functions called once if !tree_can_inline_p (node->callers).
12458 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12460 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12462 * config/score/score3.c: Delete.
12463 * config/score/score3.h: Delete.
12464 * config/score/mul-div.S: Delete.
12465 * config/score/sfp-machine.h: Add new file.
12466 * config/score/constraints.md: Add new file.
12467 * config/score/t-score-softfp: Add new file.
12468 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12469 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12470 (score7_extra_constraint): Delete.
12471 (score7_option_override): Remove unused code.
12472 * config/score/score.c: Remove score3 and score5 define and code.
12473 * config/score/score.h: Remove score3 and score5 define and code.
12474 * config/score/score.md: Remove score3 template and unusual insn.
12475 * config/score/score.opt: Remove score3 and score5 options.
12477 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12479 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12480 when _HPUX_SOURCE is defined.
12481 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12483 2011-03-10 Jason Merrill <jason@redhat.com>
12486 * stor-layout.c (layout_type): Don't set structural equality
12487 on arrays of incomplete type.
12488 * tree.c (type_hash_eq): Handle comparing them properly.
12490 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12493 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12494 result mode matches original rtl mode.
12496 2011-03-10 Nick Clifton <nickc@redhat.com>
12498 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12499 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12501 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12503 PR rtl-optimization/47866
12504 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12505 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12506 if target wasn't scalar.
12507 * function.c (assign_stack_temp_for_type): Assert that neither
12508 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12509 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12511 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12513 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12515 * config/s390/s390-protos.h (s390_label_align): New prototype.
12516 * config/s390/s390.c (s390_label_align): New function.
12517 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12519 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12522 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12523 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12524 (output_vec_const_move): Ditto.
12526 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12528 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12529 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12530 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12531 Change 'rclass' argument and result type to reg_class_t.
12532 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12534 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12536 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12537 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12538 (TARGET_MEMORY_MOVE_COST): Define.
12539 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12541 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12544 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12547 PR tree-optimization/48022
12548 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12551 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12554 * var-tracking.c (find_use_val): Return NULL for
12555 cui->sets && cui->store_p BLKmode MEMs.
12557 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12559 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12561 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12562 xstormy16_print_operand_address): Remove.
12563 * config/stormy16/stormy16.c (xstormy16_print_operand,
12564 xstormy16_print_operand_address): Make static.
12565 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12567 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12570 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12571 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12574 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12577 * cfgloopmanip.c (fix_bb_placements): Return immediately
12578 if FROM is BASE_LOOP's header.
12580 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12582 * gimplify.c (gimplify_function_tree): Fix building calls
12583 to __builtin_return_address.
12585 2011-03-07 Alan Modra <amodra@gmail.com>
12587 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12588 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12589 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12590 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12592 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12593 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12594 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12595 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12596 * config/rs6000/rs6000.c
12597 (rs6000_elf_end_indicate_exec_stack): Rename to..
12598 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12599 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12600 (rs6000_file_start): ..here.
12601 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12602 file scope variables.
12603 (call_ABI_of_interest): New function.
12604 (init_cumulative_args): Set above vars when function return value
12605 is a float, vector, or small struct.
12606 (rs6000_function_arg_advance_1): Likewise for function args.
12607 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12608 references float args.
12610 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12612 * doc/cfg.texi: Remove "See" before @ref.
12613 * doc/invoke.texi: Likewise.
12615 2011-03-05 Jason Merrill <jason@redhat.com>
12617 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12619 2011-03-05 Anthony Green <green@moxielogic.com>
12621 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12623 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12625 PR rtl-optimization/47899
12626 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12627 to flow_loop_nested_p when moving the loop upward.
12629 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12632 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12634 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12636 PR tree-optimization/47967
12637 * ipa-cp.c (build_const_val): Return NULL instead of creating
12638 VIEW_CONVERT_EXPR for mismatching sizes.
12639 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12640 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12641 give up on versioning.
12643 2011-03-05 Alan Modra <amodra@gmail.com>
12646 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12647 full cmodel medium/large lo_sum + high addresses.
12649 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12651 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12652 pool references in UNSPEC_LTREL_OFFSET.
12654 2011-03-04 Jan Hubicka <jh@suse.cz>
12657 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12658 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12659 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12661 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12662 cgraph_add_thunk): Add node pointers.
12663 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12664 associated to right node.
12665 (input_node): Update use of cgraph_same_body_alias
12666 and cgraph_add_thunk.
12668 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12670 * config/i386/i386.opt (mprefer-avx128): New flag.
12671 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12672 modes when the flag -mprefer-avx128 is on.
12674 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12676 * dwarf2out.c (compare_loc_operands): Fix address handling.
12678 2011-03-04 Alan Modra <amodra@gmail.com>
12680 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12682 2011-03-04 Richard Guenther <rguenther@suse.de>
12684 PR middle-end/47968
12685 * expmed.c (extract_bit_field_1): Prefer vector modes that
12686 vec_extract patterns can handle.
12688 2011-03-04 Richard Guenther <rguenther@suse.de>
12690 PR middle-end/47975
12691 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12693 2011-03-04 Richard Henderson <rth@redhat.com>
12695 * explow.c (emit_stack_save): Remove 'after' parameter.
12696 (emit_stack_restore): Likewise.
12697 * expr.h: Update to match.
12698 * builtins.c, calls.c, stmt.c: Likewise.
12699 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12700 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12701 * function.c (expand_function_end): Insert the emit_stack_save
12702 sequence before parm_birth_insn instead of after.
12704 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12706 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12707 (ssse3_pmaddubsw128): Ditto.
12708 (ssse3_pmaddubsw): Ditto.
12710 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12712 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12714 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12717 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12718 on TYPE_SIZE_UNIT if it is a DECL.
12721 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12722 first operand is not is_gimple_mem_ref_addr, try to fold it.
12723 If the operand still isn't is_gimple_mem_ref_addr, clear
12726 2011-03-03 Richard Guenther <rguenther@suse.de>
12728 PR middle-end/47283
12729 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12731 (refs_may_alias_p_1): For release branches return true if
12732 we are confused by our input.
12734 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12736 * config/s390/s390.c (s390_function_value): Rename to ...
12737 (s390_function_and_libcall_value): ... this.
12738 (s390_function_value): New function.
12739 (s390_libcall_value): New function.
12740 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12741 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12742 target macro definitions.
12743 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12745 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12747 * config/i386/freebsd64.h (CC1_SPEC): Define.
12748 * config/i386/linux64.h (CC1_SPEC): Define.
12749 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12751 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12753 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12755 * config/stormy16/stormy16.c: Include reload.h.
12756 (xstormy16_memory_move_cost): New function.
12757 (TARGET_MEMORY_MOVE_COST): Define.
12759 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12761 PR rtl-optimization/47925
12762 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12763 with side effects. Remove the more-specific check for volatile asms.
12765 2011-03-02 Alan Modra <amodra@gmail.com>
12768 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12769 toc relative addresses for valid offsets.
12771 2011-03-01 Richard Guenther <rguenther@suse.de>
12773 PR tree-optimization/47890
12774 * tree-vect-loop.c (get_initial_def_for_induction): Set
12775 related stmt properly.
12777 2011-03-01 Richard Guenther <rguenther@suse.de>
12780 * lto-streamer.c (lto_record_common_node): Also register
12781 the canonical type.
12783 2011-03-01 Richard Guenther <rguenther@suse.de>
12786 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12787 Do not stream DECL_ABSTRACT_ORIGIN.
12788 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12789 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12790 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12791 Do not stream DECL_ABSTRACT_ORIGIN.
12792 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12793 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12795 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12797 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12798 FUNCTION_VALUE_REGNO_P): Remove.
12799 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12800 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12801 Add 'outgoing' argument.
12802 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12804 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12805 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12807 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12810 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12811 (lookup_filename): Likewise.
12812 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12814 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12815 Jakub Jelinek <jakub@redhat.com>
12817 PR middle-end/47893
12818 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12819 (assign_stack_local_1): Change last argument type to int.
12820 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12821 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12822 don't record padding space into frame_space_list nor use those areas.
12823 (assign_stack_local): Adjust caller.
12824 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12825 of assign_stack_local, pass 0 as last argument.
12826 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12829 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12832 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12833 Use target address_mode and pointer_mode hooks instead of hardcoded
12834 Pmode and ptr_mode. Handle some simple cases of extending if
12835 POINTERS_EXTEND_UNSIGNED < 0.
12836 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12837 Call convert_debug_memory_address.
12838 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12839 convert_debug_memory_address.
12841 PR middle-end/46790
12842 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12843 * configure: Regenerated.
12844 * config.in: Regenerated.
12845 * varasm.c (default_function_section): Return NULL
12846 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12848 2011-02-28 Martin Jambor <mjambor@suse.cz>
12850 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12851 the description to match the printed values.
12853 2011-02-28 Richard Guenther <rguenther@suse.de>
12855 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12856 of the copied scope tree.
12858 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12860 * doc/extend.texi (Function Attributes): Avoid deeply (and
12861 wrongly) nested tables.
12863 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12865 PR middle-end/47903
12866 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12867 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12868 r isn't op0 nor op1.
12870 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12872 * config/avr/avr.md: Remove magic comment for emacs.
12874 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12877 * config/avr/avr.c (avr_option_override): Use error on bad options.
12878 (avr_help): New function.
12879 (TARGET_HELP): Define.
12881 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12884 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12885 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12887 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12889 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12890 (ARM Options): Ditto.
12891 (i386 and x86-64 Options): Ditto.
12892 (RX Options): Ditto.
12893 (SPARC Options): Ditto.
12895 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12897 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12898 FreeBSD 6 and later. Generally use cpu generic.
12900 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12902 * doc/cpp.texi: Update copyright years.
12904 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12907 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12909 2011-02-25 Jon Beniston <jon@beniston.com>
12912 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12913 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12914 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12915 (lm32_block_move_inline): Add type cast to remove warning.
12916 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12917 (gen_int_relational): Move declarations to start of function.
12919 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12921 PR tree-optimization/45470
12922 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12923 can throw internally only.
12924 * tree-vect-stmts.c (vectorizable_call): Likewise.
12926 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12928 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12929 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12930 * config/stormy16/stormy16-protos.h
12931 (xstormy16_preferred_reload_class): Remove.
12932 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12933 static. Change 'rclass' argument and return type to reg_class_t.
12934 (TARGET_PREFERRED_RELOAD_CLASS,
12935 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12937 2011-02-24 Richard Guenther <rguenther@suse.de>
12939 * lto-streamer-in.c (input_bb): Do not find referenced vars
12940 in debug statements.
12942 2011-02-23 Jason Merrill <jason@redhat.com>
12944 * common.opt (fabi-version): Document v5 and v6.
12946 2011-02-23 Richard Guenther <rguenther@suse.de>
12948 PR tree-optimization/47849
12949 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12951 2011-02-23 Jie Zhang <jie@codesourcery.com>
12953 * opts-common.c (decode_cmdline_option): Print empty string
12954 argument as "" in decoded->orig_option_with_args_text.
12955 * gcc.c (execute): Print empty string argument as ""
12956 in the verbose output.
12957 (do_spec_1): Keep empty string argument.
12959 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12961 * config.gcc: Declare score-* and crx-* obsolete.
12963 2011-02-23 Jie Zhang <jie@codesourcery.com>
12965 PR rtl-optimization/47763
12966 * web.c (web_main): Ignore naked clobber when replacing register.
12968 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12970 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12973 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12976 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12978 2011-02-22 Mike Stump <mikestump@comcast.net>
12980 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12982 * configure: Regenerate.
12984 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12986 PR rtl-optimization/46002
12987 * ira-color.c (update_copy_costs): Change class intersection
12988 test to reg_class_contents[] test of 'hard_regno'.
12990 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12992 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12993 than Driver option.
12994 * config/hpux11.opt (mt): Likewise.
12995 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12996 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12997 * config/vax/elf.opt (mno-asm-pic): Likewise.
12998 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13000 2011-02-21 Mike Stump <mikestump@comcast.net>
13003 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13004 tree so we can get save the type.
13005 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13006 for CFString instead of trying to use past the end of the builtins.
13007 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13008 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13009 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13010 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13011 Rename to darwin_builtin_cfstring.
13012 (darwin_init_cfstring_builtins): Return the built type.
13014 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13017 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13018 (_mm256_insert_epi64): Use _mm_insert_epi64.
13020 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13022 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13023 * config/stormy16/stormy16-protos.h
13024 (xstormy16_mode_dependent_address_p): Remove.
13025 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13026 Make static. Change return type to bool. Change argument type to
13027 const_rtx. Remove dead code.
13028 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13030 2011-02-21 Richard Guenther <rguenther@suse.de>
13033 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13034 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13035 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13037 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13038 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13040 2011-02-20 Richard Guenther <rguenther@suse.de>
13043 * tree.c (free_lang_data_in_decl): Clean builtins from
13044 the TU decl BLOCK_VARS.
13046 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13050 * haifa-sched.c (fix_tick_ready): Skip tick computation
13053 2011-02-19 Richard Guenther <rguenther@suse.de>
13056 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13057 Remove lazy BLOCK_VARS streaming.
13058 (lto_input_ts_block_tree_pointers): Likewise.
13059 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13061 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13063 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13065 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13067 * config/i386/biarch32.h, config/i386/mach.h,
13068 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13070 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13073 * config/i386/i386.md (peephole2 for shift and plus): Use
13074 operands[1] original mode in the first insn.
13076 2011-02-18 Mike Stump <mikestump@comcast.net>
13078 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13080 2011-02-18 Jan Hubicka <jh@suse.cz>
13082 PR middle-end/47788
13083 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13084 to zero when the function is not inlinable at all.
13086 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13088 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13089 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13090 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13091 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13092 * config/pa/t-pa64: Likewise.
13093 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13095 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13098 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13100 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13103 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13105 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13107 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13108 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13109 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13110 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13111 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13112 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13113 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13114 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13115 m32r_legitimate_address_p): New functions.
13116 * config/m32r/constraints.md (constraint "S"): Don't use
13117 STORE_PREINC_PREDEC_P.
13118 (constraint "U"): Don't use LOAD_POSTINC_P.
13120 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13122 PR rtl-optimization/46178
13123 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13124 compute ira_hard_regno_cover_class[].
13126 2011-02-18 Richard Guenther <rguenther@suse.de>
13129 * lto-streamer.h (lto_global_var_decls): Declare.
13130 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13131 statics for global var processing.
13133 2011-02-18 Richard Guenther <rguenther@suse.de>
13135 PR tree-optimization/47737
13136 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13137 edge dominance check.
13139 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13142 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13143 avoid invalid rtx sharing.
13145 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13147 * doc/cpp.texi (Obsolete Features): Add background on the
13148 origin of assertions.
13150 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13152 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13154 * config/darwin.c (output_objc_section_asm_op): Added support for
13156 (is_objc_metadata): New.
13157 (darwin_objc2_section): New.
13158 (darwin_objc1_section): New.
13159 (machopic_select_section): Added support for ABI v1 and v2.
13160 (darwin_emit_objc_zeroed): New.
13161 (darwin_output_aligned_bss): Detect objc metadata and treat it
13163 (darwin_asm_output_aligned_decl_common): Same.
13164 (darwin_asm_output_aligned_decl_local): Same.
13165 * config/darwin-sections.def: Updated for ABI v1 and v2.
13166 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13167 compiling Objective-C code for the NeXT runtime, default to using
13168 ABI version 0 for 32-bit, and version 2 for 64-bit.
13170 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13172 * common.opt (optimize_fast): New Variable.
13173 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13174 instead of local variable ofast.
13176 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13178 * doc/invoke.texi (fobjc-abi-version): Documented.
13179 (fobjc-nilcheck): Documented.
13180 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13183 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13186 * common.opt (export-dynamic): New Driver option.
13187 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13189 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13191 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13193 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13194 Jan Hubicka <jh@suse.cz>
13198 * cfgexpand.c (account_used_vars_for_block): Remove.
13199 (estimated_stack_frame_size): Use referenced vars.
13200 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13201 that were referenced in the original function. Test src_fn
13202 rather than cfun. Drop redundant get_var_ann.
13203 (setup_one_parameter): Drop redundant get_var_ann.
13204 (declare_return_variable): Likewise.
13205 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13206 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13207 * ipa-inline.c (compute_inline_parameters): Do not compute
13208 disregard_inline_limits here.
13209 (compute_inlinable_for_current, pass_inlinable): New.
13210 (pass_inline_parameters): Require PROP_referenced_vars.
13211 * cgraphunit.c (cgraph_process_new_functions): Don't run
13212 compute_inline_parameters explicitly unless function is in SSA form.
13213 (cgraph_analyze_function): Set .disregard_inline_limits.
13214 * tree-sra.c (convert_callers): Compute inliner parameters
13215 only for functions already in SSA form.
13217 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13219 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13220 -mlittle-endian-data.
13222 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13224 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13225 -mno-fpu, not -fpu and -no-fpu.
13226 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13227 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13229 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13232 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13233 input reload with PLUS RTX.
13235 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13237 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13238 of InverseVar(MDMX).
13240 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13242 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13245 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13247 * config/mn10300/mn10300.opt (mno-crt0): New.
13249 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13251 * config/m68k/uclinux.opt (static-libc): New Driver option.
13253 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13255 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13257 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13259 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13260 %{muser-extend-enabled}.
13262 2011-02-16 Richard Guenther <rguenther@suse.de>
13264 PR tree-optimization/47738
13265 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13266 the TODO from tree_predictive_commoning.
13268 2011-02-15 Jeff Law <law@redhat.com>
13271 2011-01-25 Jeff Law <law@redhat.com>
13273 PR rtl-optimization/37273
13274 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13275 handle them like argument loads from stack slots. Do not double
13276 count memory for memory constants and argument loads from stack slots.
13278 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13280 PR middle-end/47725
13281 * combine.c (cant_combine_insn_p): Revert the last change.
13283 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13286 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13287 mode for vector constants. Remove code that checks for TImode.
13289 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13293 * cgraph.h (compute_inline_parameters): Return void.
13294 * ipa-inline.c (compute_inline_parameters): Adjust.
13296 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13300 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13302 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13303 * ipa-inline.c (compute_inline_parameters): Adjust.
13305 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13309 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13310 Adjust all users. Pass FN to...
13311 * tree-flow-inline.h (first_referenced_var): ... this. Add
13313 * ipa-struct-reorg.c: Adjust.
13314 * tree-dfa.c: Adjust.
13315 * tree-into-ssa.c: Adjust.
13316 * tree-sra.c: Adjust.
13317 * tree-ssa-alias.c: Adjust.
13318 * tree-ssa-live.c: Adjust.
13319 * tree-ssa.c: Adjust.
13320 * tree-ssanames.c: Adjust.
13321 * tree-tailcall.c: Adjust.
13323 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13327 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13328 Adjust all callers.
13329 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13330 * tree-flow-inline.h: Adjust.
13331 * gimple-pretty-print.c: Adjust.
13332 * tree-into-ssa.c: Adjust.
13333 * tree-ssa.c: Adjust.
13334 * cfgexpand.c: Adjust.
13336 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13338 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13339 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13340 (EXTRA_CONSTRAINT): Delete.
13341 * config/iq2000/constraints.md: New file.
13342 * config/iq2000/iq2000.md: Include it.
13343 (define_insn ""): Delete.
13344 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13345 unsupported constraint letters from patterns.
13346 (call_value, call_value_internal1): Likewise.
13347 (call_value_multiple_internal1): Likewise.
13349 2011-02-15 Nick Clifton <nickc@redhat.com>
13351 * config/mn10300/mn10300.c: Include tm-constrs.h.
13352 (struct liw_data): New data structure describing an LIW candidate
13354 (extract_bundle): Use struct liw_data. Allow small integer
13355 operands for some instructions.
13356 (check_liw_constraints): Use struct liw_data. Remove swapped
13357 parameter. Add comments describing the checks. Fix bug when
13358 assigning the source of liw1 to the source of liw2.
13359 (liw_candidate): Delete. Code moved into extract_bundle.
13360 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13362 * config/mn10300/predicates.md (liw_operand): New predicate.
13363 Allows registers and small integer constants.
13364 * config/mn10300/constraints.md (O): New constraint. Accetps
13365 integers in the range -8 to +7 inclusive.
13366 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13367 for moving a small integer into a register. Give this alternative
13369 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13370 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13371 using the J,K,L and M constraints,
13372 (liw): Remove SI mode on second operands to allow for HI and QI
13374 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13377 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13379 PR middle-end/47725
13380 * combine.c (cant_combine_insn_p): Check zero/sign extended
13383 2011-02-15 Richard Guenther <rguenther@suse.de>
13385 PR tree-optimization/47743
13386 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13387 for a non-type-compatible VN lookup bail out.
13389 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13391 * config/fr30/constraints.md: New file.
13392 * config/fr30/fr30.md: Include it.
13393 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13394 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13395 (EXTRA_CONSTRAINT): Delete.
13397 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13399 * config/frv/constraints.md: New file.
13400 * config/frv/predicates.md: Include it.
13401 * config/frv/frv.c (reg_class_from_letter): Delete.
13402 (frv_option_override): Don't initialize it.
13403 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13404 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13405 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13406 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13407 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13408 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13409 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13410 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13411 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13412 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13413 (REG_CLASS_FROM_CONSTRAINT): Delete.
13415 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13417 PR middle-end/47581
13418 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13419 if frame size is 0 in a leaf function.
13421 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13424 * config/alpha/host-osf.c: New file.
13425 * config/alpha/x-osf: New file.
13426 * config.host (alpha*-dec-osf*): Use it.
13428 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13430 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13431 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13432 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13433 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13435 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13437 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13439 * config/stormy16/constraints.md: New file.
13440 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13441 Use satisfies_constraint_Q and satisfies_constraint_R.
13442 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13444 (xstormy16_legitiamte_address_p): Declare.
13445 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13446 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13447 (EXTRA_CONSTRAINT): Delete.
13448 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13450 (xstormy16_extra_constraint_p): Delete.
13452 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13454 PR tree-optimization/46494
13455 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13456 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13457 (pass_rtl_loop_done): Add TODO_verify_flow.
13458 * fwprop.c (pass_rtl_fwprop): Likewise.
13459 * modulo-sched.c (pass_sms): Likewise.
13460 * tree-ssa-dom.c (pass_dominator): Likewise.
13461 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13462 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13463 (pass_tree_loop_done): Likewise.
13464 * tree-ssa-pre.c (execute_pre): Likewise.
13465 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13466 * tree-ssa-sink.c (pass_sink_code): Likewise.
13467 * tree-vrp.c (pass_vrp): Likewise.
13469 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13471 * config/v850/constraints.md: New file.
13472 * config/v850/v850.md: Include it.
13473 * config/v850/predicates.md (reg_or_0_operand): Use
13474 satisfies_constraint_G.
13475 (special_symbolref_operand): Use satisfies_constraint_K.
13476 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13477 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13478 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13479 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13480 (EXTRA_CONSTRAINT): Delete.
13481 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13482 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13483 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13485 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13488 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13491 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13493 * config/mcore/constraints.md: New file.
13494 * config/mcore/mcore.md: Include it.
13495 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13496 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13497 (REG_CLASS_FROM_LETTER): Delete.
13498 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13499 insn_const_int_ok_for_constraint.
13500 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13501 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13502 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13503 (EXTRA_CONSTRAINT): Delete.
13505 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13508 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13509 (IS_SIGHANDLER): Define.
13510 (sparc64_is_sighandler): New function, split off from
13511 sparc64_fallback_frame_state.
13512 (sparc_is_sighandler): New function, split off from
13513 sparc_fallback_frame_state.
13514 (sparc64_fallback_frame_state): Merge with ...
13515 (sparc_fallback_frame_state): ... this into ...
13516 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13517 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13518 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13519 stack instead of hardcoded offsets.
13521 2011-02-14 Andriy Gapon <avg@freebsd.org>
13524 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13526 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13528 * configure: Regenerate.
13530 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13533 * gcc.c (asm_options): Correct spec matching --target-help.
13535 2011-02-12 Martin Jambor <mjambor@suse.cz>
13537 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13538 to gimple call error.
13540 2011-02-12 Mike Stump <mikestump@comcast.net>
13542 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13543 comments in backslash regions.
13545 2011-02-12 Mike Stump <mikestump@comcast.net>
13546 Jakub Jelinek <jakub@redhat.com>
13547 Iain Sandoe <iains@gcc.gnu.org>
13550 * dwarf2out.c (output_cfa_loc): When required, apply the
13551 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13552 (output_loc_sequence): Likewise.
13553 (output_loc_operands_raw): Likewise.
13554 (output_loc_sequence_raw): Likewise.
13555 (output_cfa_loc): Likewise.
13556 (output_loc_list): Suppress register number adjustment when
13557 calling output_loc_sequence()
13558 (output_die): Likewise.
13560 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13562 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13564 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13565 xtensa_memory_move_cost): New functions.
13566 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13568 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13571 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13572 in the current directory.
13573 * configure: Rebuilt.
13575 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13577 * config/darwin.c (darwin_override_options): Add a hunk missed
13578 from the commit of r168571. Trim comment line lengths and
13579 correct indents of the preceding block.
13581 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13583 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13586 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13588 * common.opt (nostartfiles): New Driver option.
13590 2011-02-11 Xinliang David Li <davidxl@google.com>
13592 PR tree-optimization/47707
13593 * tree-chrec.c (convert_affine_scev): Keep type precision.
13595 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13597 PR tree-optimization/47420
13598 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13600 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13602 PR rtl-optimization/47614
13603 * rtl.h (check_for_inc_dec): Declare.
13604 * dse.c (check_for_inc_dec): Externalize...
13605 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13606 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13608 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13611 * gcc.c (main): Do not compile inputs if there were errors in
13613 * opts-common.c (read_cmdline_option): Check for wrong language
13614 after other error checks.
13616 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13618 * cgraph.c: Fix comment typos.
13619 * cgraph.h: Likewise.
13620 * cgraphunit.c: Likewise.
13621 * ipa-cp.c: Likewise.
13622 * ipa-inline.c: Likewise.
13623 * ipa-prop.c: Likewise.
13624 * ipa-pure-const.c: Likewise.
13625 * ipa-ref.c: Likewise.
13626 * ipa-reference.c: Likewise.
13628 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13631 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13633 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13636 * doc/sourcebuild.texi (Require Support): Document
13637 dg-require-ascii-locale.
13639 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13641 * doc/lto.texi (Write summary): Fix missing parentheses.
13643 2011-02-10 DJ Delorie <dj@redhat.com>
13645 * config/m32c/m32c.c (m32c_option_override): Disable
13646 -fcombine-stack-adjustments until flag value tracking and compare
13647 optimization can be rewritten.
13649 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13651 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13653 (PROCESSOR_DEFAULT64): Likewise.
13655 2011-02-10 Richard Henderson <rth@redhat.com>
13657 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13658 change from 2011-02-03.
13659 * config/rx/rx.c (flags_from_code): Likewise.
13660 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13661 is valid, n/pz otherwise.
13662 (rx_select_cc_mode): Return CCmode if Y is not zero.
13664 2011-02-10 Richard Guenther <rguenther@suse.de>
13666 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13668 2011-02-10 Richard Guenther <rguenther@suse.de>
13670 PR tree-optimization/47677
13671 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13673 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13676 * combine.c (make_compound_operation): Only change shifts into
13677 multiplication for SCALAR_INT_MODE_P.
13679 2011-02-10 Jie Zhang <jie@codesourcery.com>
13683 2011-02-05 Jie Zhang <jie@codesourcery.com>
13685 * web.c (entry_register): Don't clobber the number of the
13686 first uninitialized reference in used[].
13688 2011-02-09 Richard Guenther <rguenther@suse.de>
13690 PR tree-optimization/47664
13691 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13694 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13698 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13700 (PROCESSOR_DEFAULT64): Same.
13701 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13703 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13705 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13707 2011-02-09 Martin Jambor <mjambor@suse.cz>
13709 PR middle-end/45505
13710 * tree-sra.c (struct access): New flags grp_scalar_read and
13711 grp_scalar_write. Changed description of assignment read and write
13713 (dump_access): Dump new flags, reorder all of them.
13714 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13715 to detect multiple scalar reads.
13716 (analyze_access_subtree): Use the new scalar read write flags instead
13717 of the old flags. Adjusted comments.
13719 2011-02-08 DJ Delorie <dj@redhat.com>
13722 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13725 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13727 * config/m68k/uclinux.opt: New.
13728 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13730 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13732 * config/cris/elf.opt (sim): New Driver option.
13734 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13736 * config/xtensa/elf.opt: New.
13737 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13739 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13741 * config/vax/elf.opt: New.
13742 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13744 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13746 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13748 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13750 * config/gnu-user.opt: New.
13751 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13752 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13753 *-*-uclinux*): Use gnu-user.opt.
13755 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13757 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13758 * config/i386/gnu.h (CPP_SPEC): Likewise.
13760 2011-02-08 Ian Lance Taylor <iant@google.com>
13762 * common.opt (fcx-limited-range): Add SetByCombined flag.
13763 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13764 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13765 (fassociative-math, freciprocal-math): Likewise.
13766 (funsafe-math-optimizations): Likewise.
13767 * opth-gen.awk: Handle SetByCombined.
13768 * optc-gen.awk: Likewise.
13769 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13770 (set_unsafe_math_optimizations_flags): Likewise.
13771 * doc/options.texi (Option properties): Document SetByCombined.
13773 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13775 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13776 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13777 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13778 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13779 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13781 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13783 PR tree-optimization/46834
13784 PR tree-optimization/46994
13785 PR tree-optimization/46995
13786 * graphite-sese-to-poly.c (used_outside_reduction): New.
13787 (detect_commutative_reduction): Call used_outside_reduction.
13788 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13789 translate_scalar_reduction_to_array only when at least one
13790 loop-phi/close-phi tuple has been detected.
13792 2011-02-08 Richard Guenther <rguenther@suse.de>
13794 PR middle-end/47639
13795 * tree-vect-generic.c (expand_vector_operations_1): Update
13797 (expand_vector_operations): ... not here. Cleanup EH info
13798 and the CFG if required.
13800 2011-02-08 Richard Guenther <rguenther@suse.de>
13802 PR tree-optimization/47641
13803 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13804 require type compatibility.
13806 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13808 * gimple-low.c (lower_function_body): Don't remove the location of
13809 the return statement here.
13810 (lower_gimple_return): Do it here instead but only if the return
13811 statement is actually used twice.
13813 2011-02-08 Richard Guenther <rguenther@suse.de>
13815 PR tree-optimization/47632
13816 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13817 unused up_to_stmt parameter, return whether cfg-cleanup is
13818 necessary, remove EH info properly.
13819 (forward_propagate_into_gimple_cond): Adjust caller.
13820 (forward_propagate_into_cond): Likewise.
13821 (forward_propagate_comparison): Likewise.
13822 (tree_ssa_forward_propagate_single_use_vars): Make
13823 forward_propagate_comparison case similar to the two others.
13825 2011-02-08 Nick Clifton <nickc@redhat.com>
13827 * config/mn10300/mn10300.opt (mliw): New command line option.
13828 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13829 (liw_bundling): New automaton.
13830 (liw): New attribute.
13831 (liw_op): New attribute.
13832 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13833 (movsi_internal): Add LIW attributes.
13834 (andsi3): Likewise.
13835 (iorsi3): Likewise.
13836 (xorsi3): Likewise.
13837 (addsi3): Separate register and immediate alternatives.
13838 Add LIW attributes.
13839 (subsi3): Likewise.
13841 (aslsi3): Likewise.
13842 (lshrsi3): Likewise.
13843 (ashrsi3): Likewise.
13844 (liw): New pattern.
13845 * config/mn10300/mn10300.c (liw_op_names): New
13846 (mn10300_print_operand): Handle 'W' operand descriptor.
13847 (extract_bundle): New function.
13848 (check_liw_constraints): New function.
13849 (liw_candidate): New function.
13850 (mn10300_bundle_liw): New function.
13851 (mn10300_reorg): New function.
13852 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13853 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13854 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13855 __LIW__ or __NO_LIW__.
13856 * doc/invoke.texi: Describe the -mliw command line option.
13858 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13860 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13861 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13862 pthread_mutex_unlock): Remove.
13863 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13864 * config/pa/t-pa64: Likewise.
13865 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13866 shared libc if not linking against libpthread.
13867 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13869 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13872 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13873 on 10.6 and later to ensure that we always use the unwinder from
13874 the system. Only add -no_compact_unwind when tarteting darwin
13877 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13880 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13881 (vec_interleave_lowv2sf): Ditto.
13882 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13883 (vec_extract_oddv2sf): Ditto.
13885 2011-02-07 Mike Stump <mikestump@comcast.net>
13888 Add __ieee_divdc3 entry point.
13889 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13891 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13892 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13893 * config/darwin.c (darwin_rename_builtins): Add.
13894 * config/darwin-protos.h (darwin_rename_builtins): Add.
13896 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13899 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13902 2011-02-07 Mike Stump <mikestump@comcast.net>
13904 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13906 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13909 * config/avr/libgcc.S (exit): Move .endfunc
13911 2011-02-07 Richard Guenther <rguenther@suse.de>
13913 PR tree-optimization/47615
13914 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13915 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13916 (run_scc_vn): Initialize it.
13917 (visit_reference_op_load): Use it.
13918 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13920 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13922 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13923 DImode trapping arithmetic libfuncs.
13925 2011-02-07 Richard Guenther <rguenther@suse.de>
13927 PR tree-optimization/47621
13928 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13930 (execute_update_addresses_taken): ... here. Make it more
13931 conservative in what we accept.
13933 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13935 * config/sparc/freebsd.h (ASM_SPEC): Define.
13936 * config/sparc/vxworks.h (ASM_SPEC): Define.
13938 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13940 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13942 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13944 * doc/invoke.texi: Remove reference to compiler internals from
13945 user documentation.
13947 * reg-notes.def: Remove REG_VALUE_PROFILE.
13948 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13950 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13952 PR middle-end/47610
13953 * varasm.c (default_section_type_flags): If decl is NULL,
13954 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13956 2011-02-05 Jie Zhang <jie@codesourcery.com>
13959 * web.c (entry_register): Don't clobber the number of the
13960 first uninitialized reference in used[].
13962 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13964 PR tree-optimization/46194
13965 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13966 (build_classic_dist_vector_1): Do not represent classic distance
13967 vectors when the access functions are variating in different loops.
13969 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13971 * config/mips/iris6.opt: New.
13972 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13974 2011-02-04 Richard Henderson <rth@redhat.com>
13975 Steve Ellcey <sje@cup.hp.com>
13978 * config/ia64/predicates.md (mux1_brcst_element): New.
13979 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13980 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13981 (ia64_unpack_sign): New.
13982 (ia64_expand_unpack): Rewrite using new routines.
13983 (ia64_expand_widen_sum): Ditto.
13984 (ia64_expand_dot_prod_v8qi): Ditto.
13985 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13986 routines, add endian check.
13987 (pmpy2_even): Rename from pmpy2_r, add endian check.
13988 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13989 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13990 (vec_widen_smult_hi_v4hi): Ditto.
13991 (vec_widen_umult_lo_v4hi): Ditto.
13992 (vec_widen_umult_hi_v4hi): Ditto.
13993 (mulv2si3): Change endian checks.
13994 (sdot_prodv4hi): Rewrite with new calls.
13995 (udot_prodv4hi): New.
13996 (vec_pack_ssat_v4hi): Add endian check.
13997 (vec_pack_usat_v4hi): Ditto.
13998 (vec_pack_ssat_v2si): Ditto.
13999 (max1_even): Rename from max1_r, add endian check.
14000 (max1_odd): Rename from max1_l, add endian check.
14001 (*mux1_rev): Format change.
14002 (*mux1_mix): Ditto.
14003 (*mux1_shuf): Ditto.
14004 (*mux1_alt): Ditto.
14005 (*mux1_brcst_v8qi): Use new predicate.
14006 (vec_extract_evenv8qi): Remove endian check.
14007 (vec_extract_oddv8qi): Ditto.
14008 (vec_interleave_lowv4hi): Format change.
14009 (vec_interleave_highv4hi): Ditto.
14010 (mix2_even): Rename from mix2_r, add endian check.
14011 (mix2_odd): Rename from mux2_l, add endian check.
14012 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14013 (vec_extract_evenodd_helper): Format change.
14014 (vec_extract_evenv4hi): Remove endian check.
14015 (vec_extract_oddv4hi): Remove endian check.
14016 (vec_interleave_lowv2si): Format change.
14017 (vec_interleave_highv2si): Format change.
14018 (vec_initv2si): Remove endian check.
14019 (vecinit_v2si): Add endian check.
14020 (reduc_splus_v2sf): Add endian check.
14021 (reduc_smax_v2sf): Ditto.
14022 (reduc_smin_v2sf): Ditto.
14023 (vec_initv2sf): Remove endian check.
14024 (fpack): Add endian check.
14025 (fswap): Add endian check.
14026 (vec_interleave_highv2sf): Add endian check.
14027 (vec_interleave_lowv2sf): Add endian check.
14028 (fmix_lr): Add endian check.
14029 (vec_setv2sf): Format change.
14030 (*vec_extractv2sf_0_be): Use shift to extract operand.
14031 (*vec_extractv2sf_1_be): New.
14032 (vec_pack_trunc_v4hi): Add endian check.
14033 (vec_pack_trunc_v2si): Format change.
14035 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14037 PR inline-asm/23200
14038 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14039 do bb, locus and block comparison and disallow loads if it is not set.
14040 (stmt_is_replaceable_p): New function.
14041 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14043 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14044 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14046 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14048 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14050 * config/rs6000/xilinx.opt: New.
14051 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14053 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14055 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14057 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14059 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14060 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14061 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14062 secondary_reload_info, xtensa_secondary_reload): Remove.
14063 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14064 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14065 (xtensa_preferred_reload_class): Make static. Change return and
14066 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14067 Use CONST_DOUBLE_P predicate.
14068 (xtensa_preferred_output_reload_class): New function.
14069 (xtensa_secondary_reload): Make static.
14071 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14073 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14074 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14075 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14077 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14079 PR middle-end/31490
14080 * output.h (SECTION_RELRO): Define.
14081 (SECTION_MACH_DEP): Adjust.
14082 (get_variable_section): New prototype.
14083 * varpool.c (varpool_finalize_named_section_flags): New function.
14084 (varpool_assemble_pending_decls): Call it.
14085 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14086 * cgraphunit.c (cgraph_output_in_order): Call
14087 varpool_finalize_named_section_flags.
14088 * varasm.c (get_section): Allow section flags conflicts between
14089 relro and read-only sections if the section hasn't been declared yet.
14090 Set SECTION_OVERRIDE after diagnosing section type conflict.
14091 (get_variable_section): No longer static.
14092 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14093 readonly sections that need relocations.
14094 (decl_readonly_section_1): New function.
14095 (decl_readonly_section): Use it.
14098 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14099 Steve Ellcey <sje@cup.hp.com>
14101 PR middle-end/31490
14102 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14103 if section attribute used.
14105 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14107 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14108 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14109 (darwin_init_sections): Remove assertion.
14111 2011-02-03 Nick Clifton <nickc@redhat.com>
14113 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14115 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14116 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14117 instead of "n" and "pz".
14118 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14121 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14124 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14125 fma, expand FMA_EXPR as fma{,f,l} call.
14128 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14129 copy them into a unsigned char variable and pass address of it to
14130 lto_output_data_stream.
14133 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14134 around backend_init_target and lang_dependent_init_target calls.
14135 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14136 (verify_cgraph_node): Don't call set_cfun here. Use
14137 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14138 Set error_found for incorrectly represented calls to thunks.
14140 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14143 PR rtl-optimization/43494
14144 * rtl.h (for_each_inc_dec_fn): New type.
14145 (for_each_inc_dec): Declare.
14146 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14147 (for_each_inc_dec_find_inc_dec): New fn.
14148 (for_each_inc_dec_find_mem): New fn.
14149 (for_each_inc_dec): New fn.
14150 * dse.c (struct insn_size): Remove.
14151 (replace_inc_dec, replace_inc_dec_mem): Remove.
14152 (emit_inc_dec_insn_before): New fn.
14153 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14154 (canon_address): Pass mem modes to cselib_lookup.
14155 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14156 (cselib_lookup_from_insn): Likewise.
14157 (cselib_subst_to_values): Likewise.
14158 * cselib.c (find_slot_memmode): New var.
14159 (cselib_find_slot): New fn. Use it instead of
14160 htab_find_slot_with_hash everywhere.
14161 (entry_and_rtx_equal_p): Use find_slot_memmode.
14162 (autoinc_split): New fn.
14163 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14164 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14165 Deal with autoinc. Special-case recursion into MEMs.
14166 (cselib_hash_rtx): Likewise.
14167 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14168 address and MEM modes.
14169 (cselib_subst_to_values): Add memmode, pass it on.
14171 (cselib_lookup): Add memmode argument, pass it on.
14172 (cselib_lookup_from_insn): Add memmode.
14173 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14174 (struct cselib_record_autoinc_data): New.
14175 (cselib_record_autoinc_cb): New fn.
14176 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14177 mode to cselib_lookup. Reset autoinced REGs here instead of...
14178 (cselib_process_insn): ... here.
14179 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14181 (add_uses): Likewise, also to cselib_subst_to_values.
14182 (add_stores): Likewise.
14183 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14184 cselib_subst_to_values.
14185 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14186 * gcse.c (do_local_cprop): Adjusted.
14187 * postreload.c (reload_cse_simplify_set): Adjusted.
14188 (reload_cse_simplify_operands): Adjusted.
14189 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14191 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14193 PR tree-optimization/45122
14194 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14195 unsafe assumptions when there's more than one loop exit.
14197 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14200 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14201 Document using vector double with the load/store builtins, and
14202 that the load/store builtins always use Altivec instructions.
14204 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14205 to use altivec memory instructions, even on VSX.
14206 (vector_altivec_store_<mode>): Ditto.
14208 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14211 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14212 V2DF, V2DI support to load/store overloaded builtins.
14214 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14215 altivec load/store builtins for V2DF/V2DI types.
14217 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14218 set avoid indexed addresses on power6 if -maltivec.
14219 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14220 vector_altivec_load/vector_altivec_store builtins.
14221 (altivec_expand_st_builtin): Ditto.
14222 (altivec_expand_builtin): Add VSX memory builtins.
14223 (rs6000_init_builtins): Add V2DI types to internal types.
14224 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14225 load/store builtins.
14226 (rs6000_address_for_altivec): Insure memory address is appropriate
14229 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14230 vec_vsx_ld and vec_vsx_st.
14231 (vsx_store_<mode>): Ditto.
14233 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14234 variables to hold long long types for VSX vector memory builtins.
14235 (RS6000_BTI_unsigned_long_long): Ditto.
14236 (long_long_integer_type_internal_node): Ditti.
14237 (long_long_unsigned_type_internal_node): Ditti.
14239 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14240 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14241 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14243 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14245 (vec_vsx_st): Ditto.
14247 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14249 * config/pa/pa-hpux10.opt: New.
14250 * config/hpux11.opt (pthread): New Driver option.
14251 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14252 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14254 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14256 * config/ia64/vms.opt: New.
14257 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14259 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14262 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14263 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14264 generator functions.
14265 (vsx_floatuns<VSi><mode>2): Ditto.
14266 (vsx_fix_trunc<mode><VSi>2): Ditto.
14267 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14269 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14271 * config/i386/djgpp.opt (posix): New Driver option.
14273 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14275 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14276 Move to the unsupported targets list.
14278 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14280 PR rtl-optimization/47525
14281 * df-scan.c: Update copyright years.
14282 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14283 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14285 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14287 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14288 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14289 (ASM_OUTPUT_ASCII): Remove.
14290 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14292 2011-02-02 Jeff Law <law@redhat.com>
14294 PR middle-end/47543
14295 * reload.c (find_reloads_address): Handle reg+d address where both
14296 components are invalid by reloading the entire address.
14298 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14299 Richard Guenther <rguenther@suse.de>
14301 PR tree-optimization/40979
14303 * passes.c (init_optimization_passes): After LIM call copy_prop
14304 and DCE to clean up.
14305 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14307 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14309 PR tree-optimization/47576
14310 PR tree-optimization/47555
14311 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14312 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14313 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14314 * tree-scalar-evolution.c (follow_ssa_edge): Use
14315 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14317 2011-02-02 Richard Guenther <rguenther@suse.de>
14319 PR tree-optimization/47566
14320 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14322 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14326 * tree-inline.c (declare_return_variable): Remove unused caller
14331 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14332 * cfgexpand.c (account_used_vars_for_block): Use them.
14333 * tree-nrv.c (tree_nrv): Likewise.
14334 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14335 (dump_scope_block): Likewise.
14336 (remove_unused_locals): Likewise.
14340 * tree-inline.c (declare_return_variable): Add result decl to
14341 local decls only once.
14342 * gimple-low.c (record_vars_into): Mark newly-created variables
14345 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14351 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14353 (no_real_insns_p, schedule_block, set_priorities): Drop special
14354 treatment of boundary debug insns.
14355 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14356 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14357 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14358 (BOUNDARY_DEBUG_INSN_P): Likewise.
14359 (SCHEDULE_DEBUG_INSN_P): Likewise.
14360 * sched-rgn.c (init_ready_list): Drop special treatment of
14361 boundary debug insns.
14362 * final.c (rest_of_clean_state): Clear notes' BB.
14364 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14366 * config/openbsd.opt (assert=): New Driver option.
14368 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14370 * config/i386/nto.opt: New.
14371 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14373 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14375 * config/i386/netware.opt: New.
14376 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14378 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14380 * config/interix.opt (posix): New Driver option.
14382 2011-02-01 DJ Delorie <dj@redhat.com>
14384 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14386 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14389 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14391 PR tree-optimization/47561
14392 * toplev.c (process_options): Print the Graphite flags. Add
14393 flag_loop_flatten to the list of options requiring Graphite.
14395 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14397 * config/i386/cygming.opt (posix): New Driver option.
14399 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14401 * config/arm/vxworks.opt: New.
14402 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14404 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14406 * config/alpha/elf.opt: New.
14407 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14408 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14410 2011-02-01 Richard Guenther <rguenther@suse.de>
14412 PR tree-optimization/47559
14413 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14414 store-motion on references that can throw.
14416 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14418 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14419 * tree-pass.h (TDF_CSELIB): New macro.
14420 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14421 cselib_lookup): Check for it rather than for TDF_DETAILS.
14423 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14426 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14427 is HOST_BIT_BUCKET.
14429 * opts.c (finish_options): Don't add x_aux_base_name if it is
14432 2011-02-01 Richard Guenther <rguenther@suse.de>
14434 PR tree-optimization/47555
14436 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14438 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14440 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14443 * config/lm32/t-lm32: Add multilib for all CPU options.
14445 2011-02-01 Richard Guenther <rguenther@suse.de>
14447 PR tree-optimization/47541
14448 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14449 sure to have a field at offset zero.
14451 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14453 * config/arc/arc.opt (EB, EL): New Driver options.
14455 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14457 * config/alpha/osf5.opt: New.
14458 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14460 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14462 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14464 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14466 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14467 -floop-interchange.
14468 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14469 is an alias of -floop-interchange and that it requires the
14470 Graphite infrastructure.
14471 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14472 flag_loop_interchange based on the value of flag_tree_loop_linear.
14474 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14475 Richard Guenther <rguenther@suse.de>
14477 PR tree-optimization/47538
14478 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14479 type instead of r1type, except for comparisons. For right
14480 shifts and comparisons punt if there are mismatches in
14481 sizetype vs. non-sizetype types.
14483 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14485 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14488 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14490 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14492 * configure: Regenerate.
14494 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14496 * configure.ac (gcc_cv_ld_static_option): Define.
14497 (gcc_cv_ld_dynamic_option): Define.
14498 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14500 (HAVE_LD_STATIC_DYNAMIC): Update message.
14501 (LD_STATIC_OPTION): Define.
14502 (LD_DYNAMIC_OPTION): Define.
14503 * configure: Regenerate.
14504 * config.in: Regenerate.
14505 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14506 HAVE_LD_STATIC_DYNAMIC]: Use them.
14508 2011-01-31 Nick Clifton <nickc@redhat.com>
14510 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14511 registers inside interrupt handlers if the handler is not a leaf
14514 2011-01-31 Nick Clifton <nickc@redhat.com>
14516 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14517 reg_renumber returning an INVALID_REGNUM.
14519 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14522 * doc/install.texi: Document host options discarded when cross
14523 configuring target libraries.
14525 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14528 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14531 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14533 (no_real_insns_p, schedule_block, set_priorities): Drop special
14534 treatment of boundary debug insns.
14535 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14536 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14537 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14538 (BOUNDARY_DEBUG_INSN_P): Likewise.
14539 (SCHEDULE_DEBUG_INSN_P): Likewise.
14540 * sched-rgn.c (init_ready_list): Drop special treatment of
14541 boundary debug insns.
14542 * final.c (rest_of_clean-state): Clear notes' BB.
14544 2011-01-31 Alan Modra <amodra@gmail.com>
14546 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14547 toc relative expressions as we do in print_operand_address.
14549 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14551 * doc/extend.texi: Follow spelling conventions.
14552 * doc/invoke.texi: Fix a typo.
14554 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14556 * config/hpux11.opt: New.
14557 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14558 ia64*-*-hpux*): Use hpux11.opt.
14560 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14562 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14565 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14567 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14570 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14572 * doc/install.texi (Binaries): Remove outdated reference for
14573 Motorola 68HC11/68HC12 downloads.
14575 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14577 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14580 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14583 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14586 2011-01-28 Ahmad Sharif <asharif@google.com>
14588 * value-prof.c (check_counter): Corrected error message.
14590 2011-01-29 Jie Zhang <jie@codesourcery.com>
14592 * config/arm/arm.c (arm_legitimize_reload_address): New.
14593 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14594 arm_legitimize_reload_address.
14595 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14597 2011-01-28 Ian Lance Taylor <iant@google.com>
14599 * godump.c (go_define): Ignore macros whose definitions include
14600 two adjacent operands.
14602 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14605 * varasm.c (force_const_mem): Store copy of x in desc->constant
14606 instead of x itself.
14607 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14608 itself into REG_EQUAL note.
14610 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14612 * config/freebsd.opt (posix, rdynamic): New Driver options.
14614 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14616 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14617 -Bstatic/-Bdynamic.
14618 * configure: Regenerate.
14620 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14622 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14623 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14625 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14627 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14628 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14629 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14630 (s390_preferred_reload_class): Make static. Change return and
14631 'rclass' argument type to reg_class_t.
14633 2011-01-27 Jan Hubicka <jh@suse.cz>
14635 PR middle-end/46949
14636 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14637 (process_function_and_variable_attributes): Check defined weakrefs.
14639 2011-01-27 Martin Jambor <mjambor@suse.cz>
14641 PR tree-optimization/47228
14642 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14643 build_ref_for_offset.
14645 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14647 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14649 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14651 PR rtl-optimization/46856
14652 * postreload.c (reload_combine_recognize_const_pattern): Do not
14653 separate cc0 setter and user on cc0 targets.
14655 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14658 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14659 passed a VOID_TYPE expression, immediately emit an error and
14660 return error_mark_node.
14662 2011-01-26 Jeff Law <law@redhat.com>
14664 PR rtl-optimization/47464
14665 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14666 rather than may_trap_p as needed.
14668 2011-01-26 DJ Delorie <dj@redhat.com>
14670 PR rtl-optimization/46878
14671 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14672 setter/user dependency as well.
14674 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14676 PR rtl-optimization/44469
14677 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14678 after removing trivially dead basic blocks.
14680 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14682 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14683 * config/frv/frv.h (LINK_SPEC): Likewise.
14684 * config/i386/netware.h (LINK_SPEC): Likewise.
14685 * config/m68k/linux.h (ASM_SPEC): Likewise.
14686 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14687 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14688 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14689 * config/sparc/linux.h (ASM_SPEC): Likewise.
14690 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14691 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14693 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14695 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14696 * config/frv/frv.h (ASM_SPEC): Likewise.
14697 * config/m68k/linux.h (ASM_SPEC): Likewise.
14698 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14699 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14700 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14701 * config/sparc/linux.h (ASM_SPEC): Likewise.
14702 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14703 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14705 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14707 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14708 * config/frv/frv.h (LINK_SPEC): Likewise.
14709 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14711 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14713 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14714 * config/frv/frv.h (ASM_SPEC): Likewise.
14715 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14716 * config/m68k/linux.h (ASM_SPEC): Likewise.
14717 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14718 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14719 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14720 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14721 * config/sparc/linux.h (ASM_SPEC): Likewise.
14722 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14723 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14724 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14726 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14729 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14731 (vec_extract_evenodd_help): Ditto.
14732 (vec_extract_evenv4hi): Ditto.
14733 (vec_extract_oddv4hi): Ditto.
14734 (vec_interleave_lowv2si): Ditto.
14735 (vec_interleave_highv2si): Ditto.
14736 (vec_extract_evenv2si): Ditto.
14737 (vec_extract_oddv2si: Ditto.
14738 (vec_pack_trunc_v2si): Ditto.
14740 2011-01-22 Jan Hubicka <jh@suse.cz>
14743 * cgraph.h (cgraph_local_info): New field can_change_signature.
14744 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14745 signature can change.
14746 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14748 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14749 (cgraph_function_versioning): We can not change signature of functions
14750 that don't allow that.
14751 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14752 (lto_input_node): Likewise.
14753 * ipa-inline.c (compute_inline_parameters): Compute
14754 local.can_change_signature.
14755 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14756 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14757 functions that can not change signature.
14758 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14759 init_cumulative_args): Do not use local calling conventions
14760 for functions that can not change signature.
14762 2011-01-22 Jan Hubicka <jh@suse.cz>
14764 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14766 2011-01-26 Richard Guenther <rguenther@suse.de>
14768 PR tree-optimization/47190
14769 * cgraphunit.c (process_common_attributes): New function.
14770 (process_function_and_variable_attributes): Use it.
14772 2011-01-26 Richard Guenther <rguenther@suse.de>
14775 * cgraphbuild.c (record_eh_tables): Record reference to personality
14778 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14781 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14782 non-debug insns from moving up.
14784 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14787 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14788 t-dlldir{,-x} fragment for build and add it to tmake_file.
14789 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14790 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14791 * config/i386/t-dlldir: New file.
14792 (SHLIB_DLLDIR): Define.
14793 * config/i386/t-dlldir-x: New file.
14794 (SHLIB_DLLDIR): Define.
14795 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14796 (SHLIB_INSTALL): Use it.
14798 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14801 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14802 lower bound of the allowed Thumb-2 coprocessor load/store
14803 index range to -256. Add explaining comment.
14805 2011-01-25 Ian Lance Taylor <iant@google.com>
14807 * godump.c (go_define): Improve lexing of macro expansion to only
14808 accept expressions which match Go spec.
14810 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14813 * tree.c (handle_dll_attribute): Handle it.
14814 * doc/extend.texi (@item dllexport): Mention it.
14815 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14817 2011-01-25 Ian Lance Taylor <iant@google.com>
14819 PR tree-optimization/26854
14820 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14821 (decl_jump_unsafe): Move higher in file, with no other change.
14822 (bind): Set has_jump_unsafe_decl if appropriate.
14823 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14824 (check_earlier_gotos): Likewise.
14825 (c_check_switch_jump_warnings): Likewise.
14827 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14829 * doc/invoke.texi (Warning Options): Add missing hyphen.
14830 (-fprofile-dir): Minor grammatical fixes.
14831 (-fbranch-probabilities): Likewise.
14833 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14837 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14839 (no_real_insns_p, schedule_block, set_priorities): Drop special
14840 treatment of boundary debug insns.
14841 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14842 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14843 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14844 (BOUNDARY_DEBUG_INSN_P): Likewise.
14845 (SCHEDULE_DEBUG_INSN_P): Likewise.
14846 * sched-rgn.c (init_ready_list): Drop special treatment of
14847 boundary debug insns.
14848 * final.c (rest_of_clean-state): Clear notes' BB.
14850 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14852 * Makefile.in (LAMBDA_H): Removed.
14853 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14854 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14855 lambda-trans.o, and tree-loop-linear.o.
14856 (lto-symtab.o): Remove dependence on LAMBDA_H.
14857 (tree-loop-linear.o): Remove rule.
14858 (lambda-mat.o): Same.
14859 (lambda-trans.o): Same.
14860 (lambda-code.o): Same.
14861 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14862 (tree-vect-slp.o): Same.
14863 * hwint.h (gcd): Moved here.
14864 (least_common_multiple): Same.
14865 * lambda-code.c: Removed.
14866 * lambda-mat.c: Removed.
14867 * lambda-trans.c: Removed.
14868 * lambda.h: Removed.
14869 * tree-loop-linear.c: Removed.
14870 * lto-symtab.c: Do not include lambda.h.
14871 * omega.c (gcd): Removed.
14872 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14873 * tree-data-ref.c (print_lambda_vector): Moved here.
14874 (lambda_vector_copy): Same.
14875 (lambda_matrix_copy): Same.
14876 (lambda_matrix_id): Same.
14877 (lambda_vector_first_nz): Same.
14878 (lambda_matrix_row_add): Same.
14879 (lambda_matrix_row_exchange): Same.
14880 (lambda_vector_mult_const): Same.
14881 (lambda_vector_negate): Same.
14882 (lambda_matrix_row_negate): Same.
14883 (lambda_vector_equal): Same.
14884 (lambda_matrix_right_hermite): Same.
14885 * tree-data-ref.h: Do not include lambda.h.
14886 (lambda_vector): Moved here.
14887 (lambda_matrix): Same.
14888 (dependence_level): Same.
14889 (lambda_transform_legal_p): Removed declaration.
14890 (lambda_collect_parameters): Same.
14891 (lambda_compute_access_matrices): Same.
14892 (lambda_vector_gcd): Same.
14893 (lambda_vector_new): Same.
14894 (lambda_vector_clear): Same.
14895 (lambda_vector_lexico_pos): Same.
14896 (lambda_vector_zerop): Same.
14897 (lambda_matrix_new): Same.
14898 * tree-flow.h (least_common_multiple): Removed declaration.
14899 * tree-parloops.c (lambda_trans_matrix): Moved here.
14900 (LTM_MATRIX): Same.
14901 (LTM_ROWSIZE): Same.
14902 (LTM_COLSIZE): Same.
14903 (LTM_DENOMINATOR): Same.
14904 (lambda_trans_matrix_new): Same.
14905 (lambda_matrix_vector_mult): Same.
14906 (lambda_transform_legal_p): Same.
14907 * tree-pass.h (pass_linear_transform): Removed declaration.
14908 * tree-ssa-loop.c (tree_linear_transform): Removed.
14909 (gate_tree_linear_transform): Removed.
14910 (pass_linear_transform): Removed.
14911 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14912 flag_loop_interchange.
14914 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14916 PR tree-optimization/47265
14917 PR tree-optimization/47443
14918 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14919 if name still has some uses.
14921 2011-01-25 Martin Jambor <mjambor@suse.cz>
14923 PR tree-optimization/47382
14924 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14925 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14927 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14929 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14930 sjlj_except_unwind_info.
14932 2011-01-25 Richard Guenther <rguenther@suse.de>
14934 PR tree-optimization/47426
14935 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14936 visible functions results escape.
14938 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14941 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14942 (arm_get_frame_offsets): Use it.
14944 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14945 Jakub Jelinek <jakub@redhat.com>
14947 PR tree-optimization/47271
14948 * tree-if-conv.c (bb_postdominates_preds): New.
14949 (if_convertible_bb_p): Call bb_postdominates_preds.
14950 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14951 (predicate_scalar_phi): Call bb_postdominates_preds.
14953 2011-01-25 Nick Clifton <nickc@redhat.com>
14955 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14956 * config/rx/rx.c (rx_function_value): Likewise.
14957 (rx_promote_function_mode): Likewise.
14958 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14959 in order to make it legitimate.
14960 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14961 make sure that the first operand is the same as the result register.
14962 (addsi3_unspec): Delete.
14963 (subdi3): Do not accept immediate operands.
14964 (subdi3_internal): Likewise.
14966 2011-01-25 Jeff Law <law@redhat.com>
14968 PR rtl-optimization/37273
14969 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14970 handle them like argument loads from stack slots. Do not double
14971 count memory for memory constants and argument loads from stack slots.
14973 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14975 PR tree-optimization/47427
14976 PR tree-optimization/47428
14977 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14978 coalesce if the new root var would be TREE_READONLY.
14980 2011-01-25 Richard Guenther <rguenther@suse.de>
14982 PR middle-end/47414
14983 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14984 correct type for TBAA.
14986 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14988 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14989 (close_phi_written_to_memory): Call for_each_index with
14990 dr_indices_valid_in_loop.
14992 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14994 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14995 when it is initialized.
14997 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14999 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15000 call to graphite_find_data_references_in_stmt.
15001 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15002 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15003 call to graphite_find_data_references_in_stmt.
15004 (analyze_drs_in_stmts): Same.
15005 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15006 in which the scalar analysis of indices is performed.
15007 (create_data_ref): Same. Update call to dr_analyze_indices.
15008 (find_data_references_in_stmt): Update call to create_data_ref.
15009 (graphite_find_data_references_in_stmt): Same.
15010 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15012 (create_data_ref): Same.
15013 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15014 call to create_data_ref.
15016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15018 * graphite-sese-to-poly.c (build_poly_scop): Move
15019 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15021 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15023 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15024 VAR_DECL, PARM_DECL, and RESULT_DECL.
15026 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15028 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15029 in a reduction PBB.
15030 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15031 that have already been marked as PBB_IS_REDUCTION.
15033 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15035 * graphite-scop-detection.c (same_close_phi_node): New.
15036 (remove_duplicate_close_phi): New.
15037 (make_close_phi_nodes_unique): New.
15038 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15040 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15042 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15043 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15044 of both data references to be the same.
15046 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15048 * graphite-dependences.c (build_lexicographical_constraint): Remove
15049 the gdim parameter.
15050 (build_lexicographical_constraint): Adjust call to
15051 ppl_powerset_is_empty.
15052 (dependence_polyhedron): Same.
15053 (graphite_legal_transform_dr): Same.
15054 (graphite_carried_dependence_level_k): Same.
15055 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15057 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15059 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15061 * graphite-sese-to-poly.c
15062 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15063 (close_phi_written_to_memory): New.
15064 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15067 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15069 * doc/install.texi: Update the expected version number of PPL to 0.11.
15070 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15071 #if PPL_VERSION_MINOR < 11.
15073 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15075 * graphite-dependences.c: Include graphite-cloog-util.h.
15076 (new_poly_ddr): Inlined into dependence_polyhedron.
15077 (free_poly_ddr): Moved close by new_poly_ddr.
15078 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15079 Early return NULL when ppl_powerset_is_empty returns true.
15080 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15081 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15082 (graphite_legal_transform_dr): Call new_poly_ddr.
15083 (graphite_carried_dependence_level_k): Same.
15084 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15085 (dot_transformed_deps_stmt_1): Removed.
15086 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15087 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15088 (dot_deps_1): Call dot_deps_2.
15089 * Makefile.in (graphite-dependences.o): Add missing dependence on
15090 graphite-cloog-util.h.
15092 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15094 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15095 (build_lexicographical_constraint): Same.
15096 (dependence_polyhedron_1): Same.
15097 (graphite_legal_transform_dr): Same.
15098 (graphite_carried_dependence_level_k): Same.
15099 * graphite-ppl.c (ppl_powerset_is_empty): New.
15100 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15101 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15103 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15105 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15106 the "a followed by b" relation and document it.
15108 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15110 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15111 iteration when the bag of constraints is empty.
15113 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15115 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15117 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15119 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15120 nest and two loop depths as parameters.
15121 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15122 lst_perfect_nestify.
15124 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15126 * graphite-dependences.c (print_pddr): Call
15127 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15129 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15131 * graphite-ppl.c (debug_gmp_value): New.
15132 * graphite-ppl.h (debug_gmp_value): Declared.
15134 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15136 * doc/install.texi: Document availability of cloog-0.16.
15138 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15140 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15141 invalid postdominance info.
15143 2011-01-24 Jan Hubicka <jh@suse.cz>
15146 * doc/extend.texi (weak pragma): Drop claim that it must
15147 appear before definition.
15148 * varasm.c (merge_weak, declare_weak): Only sanity check
15149 that DECL is not output at a time it is declared weak.
15151 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15153 * machmode.def: Fixed comments.
15155 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15157 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15159 2011-01-24 Paul Koning <ni1d@arrl.net>
15161 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15164 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15167 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15168 (block_info): Add scanned and prev.
15169 (move_or_delete_vzeroupper_2): Return if the basic block
15170 has been scanned and the upper 128bit state is unchanged
15171 from the last scan.
15172 (move_or_delete_vzeroupper_1): Return true if the exit
15174 (move_or_delete_vzeroupper): Visit basic blocks using the
15175 work-list based algorithm based on vt_find_locations in
15178 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15180 2011-01-24 Nick Clifton <nickc@redhat.com>
15182 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15183 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15184 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15185 then define __v850e1__.
15186 * doc/invoke.texi: Document -mv850es.
15188 2011-01-24 Richard Henderson <rth@redhat.com>
15190 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15191 compound unordered comparisons.
15192 * config/rx/rx.c (rx_split_fp_compare): Remove.
15193 * config/rx/rx-protos.h: Update.
15194 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15195 (cbranchsf4): Don't call rx_split_fp_compare.
15196 (*cbranchsf4): Use rx_split_cbranch.
15197 (*cmpsf): Don't accept "i" constraint.
15198 (*conditional_branch): Only valid after reload.
15199 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15201 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15204 * config/rs6000/altivec.md (vector constant splitters): Add
15205 support for creating vector single precision constants if -mvsx is
15206 used and we would create the constant using Altivec primitives.
15208 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15209 Richard Sandiford <rdsandiford@googlemail.com>
15211 PR rtl-optimization/47166
15212 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15213 mechanism for PRE_MODIFY and POST_MODIFY.
15214 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15217 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15219 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15221 2011-01-22 Jan Hubicka <jh@suse.cz>
15224 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15226 2011-01-22 Jan Hubicka <jh@suse.cz>
15228 PR tree-optimization/43884
15230 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15231 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15233 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15235 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15236 * config/s390/s390.c (s390_register_move_cost,
15237 s390_memory_move_cost): New.
15238 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15240 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15242 PR middle-end/47401
15243 * except.c (sjlj_assign_call_site_values): Move setting the
15244 crtl->uses_eh_lsda flag to ...
15245 (sjlj_mark_call_sites): ... here.
15246 (sjlj_emit_function_enter): Support NULL dispatch label.
15247 (sjlj_build_landing_pads): In a function with no landing pads
15248 that still has must-not-throw regions, generate code to register
15249 a personality function with empty LSDA.
15251 2011-01-21 Richard Henderson <rth@redhat.com>
15253 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15255 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15257 * compare-elim.c: New file.
15258 * Makefile.in (OBJS-common): Add it.
15259 (compare-elim.o): New.
15260 * common.opt (fcompare-elim): New.
15261 * opts.c (default_options_table): Add OPT_fcompare_elim.
15262 * tree-pass.h (pass_compare_elim_after_reload): New.
15263 * passes.c (init_optimization_passes): Add it.
15264 * recog.h: Protect against re-inclusion.
15265 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15266 * doc/invoke.texi (-fcompare-elim): Document it.
15267 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15268 * doc/tm.texi: Rebuild.
15270 2011-01-22 Nick Clifton <nickc@redhat.com>
15272 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15273 rx_split_fp_compare.
15275 2011-01-22 Nick Clifton <nickc@redhat.com>
15277 * config/rx/rx.md (UNSPEC_CONST): New.
15278 (deallocate_and_return): Wrap the amount popped off the stack in
15279 an UNSPEC_CONST in order to stop it being rejected by
15280 -mmax-constant-size.
15281 (pop_and_return): Add a "(return)" rtx.
15282 (call): Drop the immediate operand.
15283 (call_internal): Likewise.
15284 (call_value): Likewise.
15285 (call_value_internal): Likewise.
15286 (sibcall_internal): Likewise.
15287 (sibcall_value_internal): Likewise.
15288 (sibcall): Likewise. Generate an explicit call using
15290 (sibcall_value): Likewise.
15291 (mov<>): FAIL if a constant operand is not legitimate.
15292 (addsi3_unpsec): New pattern.
15294 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15295 (ok_for_max_constant): New function.
15296 (gen_safe_add): New function.
15297 (rx_expand_prologue): Use gen_safe_add.
15298 (rx_expand_epilogue): Likewise.
15299 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15302 2011-01-21 Jeff Law <law@redhat.com>
15304 PR tree-optimization/47053
15305 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15306 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15307 statements are deleted.
15308 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15309 is nonempty, then purge dead edges and cleanup the CFG.
15311 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15314 Temporarily revert:
15315 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15317 * tree-dfa.c (create_var_ann): Mark variable as used.
15319 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15321 PR middle-end/45566
15322 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15323 notes from other section in hot/cold partitioning even if
15324 last_action is -3. Increment call_site_base.
15326 PR rtl-optimization/47366
15327 * fwprop.c (forward_propagate_into): Return bool. If
15328 any changes are made, -fnon-call-exceptions is used and
15329 REG_EH_REGION note is present, call purge_dead_edges
15330 and return true if it purged anything.
15331 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15332 any EH edges were purged.
15334 2011-01-21 Jeff Law <law@redhat.com>
15336 PR rtl-optimization/41619
15337 * caller-save.c (setup_save_areas): Break out code to determine
15338 which hard regs are live across calls by examining the reload chains
15339 so that it is always used.
15340 Eliminate code which checked REG_N_CALLS_CROSSED.
15342 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15344 PR tree-optimization/47355
15345 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15346 NOP has non-debug uses beyond PHIs in new_bb.
15348 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15351 * cfgexpand.c (account_used_vars_for_block): Only account vars
15352 that are annotated as used.
15353 (estimated_stack_frame_size): Don't set TREE_USED.
15354 * tree-dfa.c (create_var_ann): Mark variable as used.
15356 2011-01-21 Richard Guenther <rguenther@suse.de>
15358 PR middle-end/47395
15359 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15361 2011-01-21 Richard Guenther <rguenther@suse.de>
15363 PR tree-optimization/47365
15364 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15365 (vn_reference_lookup_pieces): Adjust.
15366 (vn_reference_lookup): Likewise.
15367 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15368 (vn_reference_lookup_3): Only look through kills if in
15369 VN_WALKREWRITE mode.
15370 (vn_reference_lookup_pieces): Adjust.
15371 (vn_reference_lookup): Likewise.
15372 (visit_reference_op_load): Likewise.
15373 (visit_reference_op_store): Likewise.
15374 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15375 (compute_avail): Likewise.
15376 (eliminate): Likewise.
15378 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15380 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15381 DECL_IGNORED_P non-reg vars if they are used.
15383 PR tree-optimization/47391
15384 * varpool.c (const_value_known_p): Return false if
15387 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15390 * config/i386/i386.c (ix86_local_alignment): Handle
15391 case for va_list_type_node is nil.
15392 (ix86_canonical_va_list_type): Likewise.
15394 2011-01-21 Alan Modra <amodra@gmail.com>
15396 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15397 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15399 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15401 * config/arm/arm.md (define_attr type): Rename f_load
15402 and f_store to f_fpa_load and f_fpa_store. Update.
15403 (write_conflict): Deal with rename fallout.
15404 (*push_fp_multi): Likewise.
15405 * config/arm/fpa.md (f_load): Use f_fpa_load.
15406 (f_store): Use f_fpa_store.
15407 (*movsf_fpa): Likewise.
15408 (*movdf_fpa): Likewise.
15409 (*movxf_fpa): Likewise.
15410 (*thumb2_movsf_fpa): Likewise.
15411 (*thumb2_movdf_fpa): Likewise.
15412 (*thumb2_movxf_fpa): Likewise.
15413 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15414 f_loadd and f_stored.
15415 (*thumb2_movdi_vfp): Likewise.
15416 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15417 (*thumb2_movsi_vfp): Likewise.
15418 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15419 Use f_loads instead of f_load.
15420 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15422 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15424 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15425 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15426 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15427 (xtensa_mode_dependent_address_p): New function.
15428 (constantpool_address_p): Make static. Change return type to bool.
15429 Change argument type to const_rtx. Use CONST_INT_P predicate.
15431 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15434 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15436 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15439 * cfgexpand.c (expand_debug_expr): Instead of generating
15440 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15443 2011-01-20 Richard Guenther <rguenther@suse.de>
15445 PR middle-end/47370
15446 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15447 the pointer operand of MEM_REFs.
15449 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15451 PR tree-optimization/46130
15452 * ipa-split.c (consider_split): If return_bb contains non-virtual
15453 PHIs other than for retval or if split_function would not adjust it,
15456 2011-01-20 Richard Guenther <rguenther@suse.de>
15458 PR tree-optimization/47167
15459 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15460 Revert previous change, only avoid enumeral type changes.
15462 2011-01-19 Mike Stump <mikestump@comcast.net>
15464 * doc/tm.texi.in (BRANCH_COST): Englishify.
15465 * doc/tm.texi (BRANCH_COST): Likewise.
15467 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15470 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15471 (gen_scheduled_generic_parms_dies): New functions.
15472 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15473 generation for the end of CU compilation.
15474 (dwarf2out_finish): Generate template parameters DIEs here.
15476 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15479 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15480 debug bind stmt on merge edges.
15482 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15486 * function.c (instantiate_expr): Instantiate incoming rtl of
15487 implicit arguments, and recurse on VALUE_EXPRs.
15488 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15489 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15491 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15493 * c-parser.c (c_parser_for_statement): Initialize
15494 collection_expression.
15496 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15498 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15500 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15502 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15503 (LINK_SHLIB_SPEC): Don't use %(link_path).
15504 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15506 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15508 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15509 (NO_SHARED_LIB_SUPPORT): Remove.
15510 (LINK_SHLIB_SPEC): Remove one conditional definition.
15512 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15514 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15516 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15517 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15518 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15519 %{call_shared} and conditionals on these options not being passed.
15520 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15523 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15525 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15528 * ipa-split.c: Spelling fixes.
15530 2011-01-19 Richard Henderson <rth@redhat.com>
15532 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15533 (*mulsi3): Likewise.
15535 * longlong.h [__mn10300__] (count_leading_zeros): New.
15536 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15537 [__mn10300__] (add_ssaaaa, subddmmss): New.
15538 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15539 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15541 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15543 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15545 2011-01-19 Richard Henderson <rth@redhat.com>
15547 * config/mn10300/mn10300.md (addsi3_flags): New.
15548 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15549 (subsi3_flags, subc_internal, subdi3): New.
15550 (subdi3_internal, *subdi3_degenerate): New.
15551 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15553 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15554 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15555 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15556 * config/mn10300/mn10300-protos.h: Update.
15557 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15558 (return_ret): Likewise. Rename from return_internal_regs.
15559 (return_internal): Remove.
15561 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15562 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15563 (mn10300_legitimate_constant_p): Likewise.
15564 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15565 (mn10300_frame_size): New.
15566 (mn10300_expand_prologue): Use it.
15567 (mn10300_expand_epilogue): Likewise.
15568 (mn10300_initial_offset): Likewise.
15569 * config/mn10300/mn10300-protos.h: Update.
15570 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15571 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15572 (prologue, epilogue, return_internal): Tidy output code.
15573 (mn10300_store_multiple_operation, return): Likewise.
15574 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15575 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15576 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15577 (load_pic, am33_load_pic): New.
15578 (mn10300_load_pic0, mn10300_load_pic1): New.
15580 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15581 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15582 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15583 (cc_flags_for_mode, cc_flags_for_code): New.
15584 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15585 overflow flag is not valid. Validate that the flags we need
15586 for the comparison are valid.
15587 (mn10300_output_cmp): Remove.
15588 (mn10300_output_add): New.
15589 (mn10300_select_cc_mode): Use cc_flags_for_code.
15590 (mn10300_split_cbranch): New.
15591 (mn10300_match_ccmode): New.
15592 (mn10300_split_and_operand_count): New.
15593 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15595 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15596 (addsi3): ... here. Use mn10300_output_add.
15597 (*addsi3_flags): New.
15598 (*am33_subsi3, *mn10300_subsi3): Merge...
15599 (subsi3): ... here. Use attribute isa.
15600 (*subsi3_flags): New.
15601 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15603 (*am33_andsi3, *mn10300_andsi3): Merge...
15604 (andsi3): ... here.
15605 (*andsi3_flags): New.
15606 (andsi3 splitters): New.
15607 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15608 (iorsi3): ... here.
15609 (*iorsi3_flags): New.
15610 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15611 (xorsi3): ... here.
15612 (*xorsi3_flags): New.
15613 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15614 (one_cmplsi2): ... here.
15615 (*one_cmplsi2_flags): New.
15616 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15617 instead of "dax" in constraints. Use mn10300_split_cbranch.
15618 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15619 use matching constraints to eliminate a self-comparison.
15620 (*integer_conditional_branch): Rename from integer_conditional_branch.
15621 Use int_mode_flags to match CC_REG.
15622 (*cbranchsi4_btst, *btstsi): New.
15623 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15624 mn10300_split_cbranch.
15625 (*am33_cmpsf): Rename from am33_cmpsf.
15626 (*float_conditional_branch): Rename from float_conditional_branch.
15627 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15628 (zero_extendqisi2): ... here.
15629 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15630 (zero_extendhisi2): ... here.
15631 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15632 (extendqisi2): ... here.
15633 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15634 (extendhisi2): ... here.
15635 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15636 (ashlsi3): ... here.
15637 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15638 (lshrsi3): ... here.
15639 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15640 (ashrsi3): ... here.
15641 (consecutive add peephole): Remove.
15642 * config/mn10300/predicates.md (label_ref_operand): New.
15643 (int_mode_flags): New.
15644 (CCZN_comparison_operator): New.
15646 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15647 (throughput_42_latency_43): New reservation.
15648 (mulsidi3, umulsidi3): New expanders.
15649 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15650 the MDR register to allocation; separately allocate the low and
15651 high parts of the DImode result.
15652 (umulsidi3_internal): Similarly.
15653 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15654 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15655 (udivsi3, umodsi3): Remove.
15656 (udivmodsi4, divmodsi4): New expanders.
15657 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15658 (*divmodsi4): Simiarly.
15659 (ext_internal): New.
15661 * config/mn10300/constraints.md ("z"): New constraint.
15662 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15663 (FIXED_REGISTERS): Don't fix MDR.
15664 (CALL_USED_REGSITERS): Reformat nicely.
15665 (REG_ALLOC_ORDER): Add MDR.
15666 (enum regclass): Add MDR_REGS.
15667 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15668 (IRA_COVER_CLASSES): Add MDR_REGS.
15669 (REGNO_REG_CLASS): Handle MDR_REG.
15670 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15671 (mn10300_register_move_cost): Likewise.
15672 * config/mn10300/mn10300.md (MDR_REG): New.
15673 (*movsi_internal): Handle moves to/from MDR_REGS.
15675 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15677 (mn10300_secondary_reload): Tidy combination reload classes.
15678 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15679 addresses for AM33. Allow symbolic offsets for reg+imm.
15680 (mn10300_regno_in_class_p): New.
15681 (mn10300_legitimize_reload_address): New.
15682 * config/mn10300/mn10300.h (enum reg_class): Remove
15683 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15684 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15685 SP_OR_GENERAL_REGS.
15686 (REG_CLASS_NAMES): Update to match.
15687 (REG_CLASS_CONTENTS): Likewise.
15688 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15689 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15690 (REGNO_IN_RANGE_P): Remove.
15691 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15692 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15693 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15694 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15695 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15696 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15697 (REGNO_GENERAL_P): New.
15698 (HAVE_POST_MODIFY_DISP): New.
15699 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15700 (LEGITIMIZE_RELOAD_ADDRESS): New.
15701 * config/mn10300/mn10300-protos.h: Update.
15703 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15704 DATA_REGS for AM33 stack-pointer destination.
15705 (mn10300_preferred_output_reload_class): Likewise.
15706 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15707 into a form appropriate for ...
15708 (TARGET_SECONDARY_RELOAD): New.
15709 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15710 * config/mn10300/mn10300-protos.h: Update.
15711 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15712 reload_insi; use the "A" constraint for the scratch; handle AM33
15713 moves of sp to non-address registers.
15715 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15716 (*movqi_internal): ... here.
15717 (*am33_movhi, *mn10300_movhi): Merge into...
15718 (*movhi_internal): ... here.
15719 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15720 as the source/destination of moves from/to SP.
15721 (movsf): Only allow for AM33-2.
15722 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15723 any integer constant constraint. Only allow for AM33-2. Tidy
15724 all of the alternative outputs.
15725 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15726 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15728 (udivsi3, umodsi3): New patterns for MN103 only.
15730 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15732 * doc/tm.texi.in: Spell out that a lack of register class unions
15734 * doc/tm.texi: Regenerate.
15736 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15738 PR rtl-optimization/47337
15739 * dce.c (check_argument_store): New function.
15740 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15742 PR tree-optimization/47290
15743 * tree-eh.c (infinite_empty_loop_p): New function.
15744 (cleanup_empty_eh): Use it.
15746 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15749 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15750 (a64_expand_widen_sum): Ditto.
15751 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15752 (vec_extract_evenodd_help): Ditto.
15753 (vec_extract_evenv4hi): Ditto.
15754 (vec_extract_oddv4hi): Ditto.
15755 (vec_extract_evenv2si): Ditto.
15756 (vec_extract_oddv2si): Ditto.
15757 (vec_extract_evenv2sf): Ditto.
15758 (vec_extract_oddv2sf): Ditto.
15759 (vec_pack_trunc_v4hi: Ditto.
15760 (vec_pack_trunc_v2si): Ditto.
15761 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15762 (vec_interleave_highv8qi): Ditto.
15764 (vec_extract_oddv8qi): Ditto.
15765 (vec_interleave_lowv4hi): Ditto.
15766 (vec_interleave_highv4hi): Ditto.
15767 (vec_interleave_lowv2si): Ditto.
15768 (vec_interleave_highv2si): Ditto.
15770 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15772 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15773 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15774 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15775 (pa_c_mode_for_suffix): New.
15776 (TARGET_EXPAND_BUILTIN): Define.
15777 (TARGET_C_MODE_FOR_SUFFIX): Define.
15778 (pa_builtins): Define.
15779 (pa_init_builtins): Register __float128 type and init new support
15781 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15782 * config/pa/quadlib.c (_U_Qfcopysign): New.
15784 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15786 PR middle-end/46894
15787 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15788 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15791 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15793 PR tree-optimization/47179
15794 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15795 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15797 2011-01-18 Richard Guenther <rguenther@suse.de>
15799 PR rtl-optimization/47216
15800 * emit-rtl.c: Include tree-flow.h.
15801 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15802 of replicating it with different semantics.
15803 * Makefile.in (emit-rtl.o): Adjust.
15805 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15807 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15808 (cortex_a9_dp): Handle neon types correctly.
15810 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15812 PR rtl-optimization/47299
15813 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15814 subtarget. Use normal multiplication if both operands are constants.
15815 * expmed.c (expand_widening_mult): Don't try to optimize constant
15816 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15819 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15821 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15822 spacing after 'e.g.', typos, comma, hyphenation.
15824 2011-01-17 Richard Henderson <rth@redhat.com>
15826 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15827 (rx_restricted_mem_operand): New.
15828 (rx_shift_operand): Use register_operand.
15829 (rx_source_operand, rx_compare_operand): Likewise.
15830 * config/rx/rx.md (addsi3_flags): New expander.
15831 (adddi3): Rewrite as expander.
15832 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15833 (subsi3_flags): New expander.
15834 (subdi3): Rewrite as expander.
15835 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15837 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15838 (rx_init_builtins): Remove sat builtin.
15839 (rx_expand_builtin): Likewise.
15840 * config/rx/rx.md (ssaddsi3): New.
15841 (*sat): Rename from sat. Represent the CC_REG input.
15843 * config/rx/predicates.md (rshift_operator): New.
15844 * config/rx/rx.c (rx_expand_insv): Remove.
15845 * config/rx/rx-protos.h: Update.
15846 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15847 operand to the canonical position.
15848 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15849 (*bitclr, *bitclr_in_memory): Similarly.
15850 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15851 (insv): Retain the zero_extract in the expansion.
15853 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15854 (bswaphi2, bitinvert, revw): Likewise.
15856 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15857 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15858 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15859 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15860 (bitset, bitset_in_memory): Likewise.
15861 (bitinvert, bitinvert_in_memory): Likewise.
15862 (bitclr, bitclr_in_memory): Likewise.
15863 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15864 (rx_strend, rx_cmpstrn): Likewise.
15865 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15866 (bitop peep2 patterns): Remove.
15868 * config/rx/rx.c (rx_match_ccmode): New.
15869 * config/rx/rx-protos.h: Update.
15870 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15871 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15872 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15873 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15874 (fix_truncsfsi2, floatsisf2): Likewise.
15875 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15876 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15877 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15878 (*subsi3_flags, *xorsi3_flags): New.
15880 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15882 * config/rx/rx.c (rx_print_operand): Remove workaround for
15883 unsplit comparison operations.
15885 * config/rx/rx.md (movsicc): Split after reload.
15886 (*movsicc): Merge *movsieq and *movsine via match_operator.
15887 (*stcc): New pattern.
15889 * config/rx/rx.c (rx_float_compare_mode): Remove.
15890 * config/rx/rx.h (rx_float_compare_mode): Remove.
15891 * config/rx/rx.md (cstoresi4): Split after reload.
15892 (*sccc): New pattern.
15894 * config/rx/predicates.md (label_ref_operand): New.
15895 (rx_z_comparison_operator): New.
15896 (rx_zs_comparison_operator): New.
15897 (rx_fp_comparison_operator): New.
15898 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15899 Validate that the flags are set properly for the comparison.
15900 (rx_gen_cond_branch_template): Remove.
15901 (rx_cc_modes_compatible): Remove.
15902 (mode_from_flags): New.
15903 (flags_from_code): Rename from flags_needed_for_conditional.
15904 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15905 (rx_select_cc_mode): Likewise.
15906 (rx_split_fp_compare): New.
15907 (rx_split_cbranch): New.
15908 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15909 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15910 (*cbranchsf4): Similarly.
15911 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15912 match_operator and rx_split_cbranch.
15913 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15914 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15915 (*cmpsi): Rename from cmpsi.
15916 (*tstsi): Rename from tstsi.
15917 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15918 (*conditional_branch): Rename from conditional_branch.
15919 (*reveresed_conditional_branch): Remove.
15920 (b<code>): Remove expander.
15921 * config/rx/rx-protos.h: Update.
15923 * config/rx/rx.c (rx_compare_redundant): Remove.
15924 * config/rx/rx.md (cmpsi): Don't use it.
15925 * config/rx/rx-protos.h: Update.
15927 * config/rx/rx-modes.def (CC_F): New mode.
15928 * config/rx/rx.c (rx_select_cc_mode): New.
15929 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15930 * config/rx/rx-protos.h: Update.
15932 2011-01-17 Richard Henderson <rth@redhat.com>
15934 * except.c (dump_eh_tree): Fix stray ; after for statement.
15936 2011-01-17 Richard Guenther <rguenther@suse.de>
15938 PR tree-optimization/47313
15939 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15940 handling before copying the body. Properly deal with
15941 by-reference result in SSA form.
15943 2011-01-17 Ian Lance Taylor <iant@google.com>
15946 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15947 (struct_value_alias_set): Don't define.
15948 (sparc_option_override): Don't set sparc_sr_alias_set and
15949 struct_value_alias_set.
15950 (save_or_restore_regs): Use gen_frame_mem rather than calling
15952 (sparc_struct_value_rtx): Likewise.
15954 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15957 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15958 (_mm_maskstore_pd): Likewise.
15959 (_mm_maskload_ps): Likewise.
15960 (_mm_maskstore_ps): Likewise.
15961 (_mm256_maskload_pd): Change mask to __m256i.
15962 (_mm256_maskstore_pd): Likewise.
15963 (_mm256_maskload_ps): Likewise.
15964 (_mm256_maskstore_ps): Likewise.
15966 * config/i386/i386-builtin-types.def: Updated.
15967 (ix86_expand_special_args_builtin): Likewise.
15969 * config/i386/i386.c (bdesc_special_args): Update
15970 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15971 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15972 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15973 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15975 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15976 Use <avxpermvecmode> on mask register.
15977 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15979 2011-01-17 Olivier Hainque <hainque@adacore.com>
15980 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15981 Eric Botcazou <ebotcazou@adacore.com>
15984 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15985 if <= USHRT_MAX in 32-bit mode.
15987 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15989 * doc/install.texi (Configuration, Specific): Wrap long
15990 lines in examples. Allow line wrapping in long options
15991 and URLs where beneficial for PDF output.
15993 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15995 * config/mips/mips.c (mips_classify_symbol): Don't return
15996 SYMBOL_PC_RELATIVE for nonlocal labels.
15998 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16000 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16002 2011-01-15 Jan Hubicka <jh@suse.cz>
16004 PR tree-optimization/47276
16005 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16006 declarations as needed.
16008 2011-01-15 Martin Jambor <mjambor@suse.cz>
16010 * common.opt (fdevirtualize): New flag.
16011 * doc/invoke.texi (Option Summary): Document it.
16012 * opts.c (default_options_table): Add devirtualize flag.
16013 * ipa-prop.c (detect_type_change): Return immediately if
16014 devirtualize flag is not set.
16015 (detect_type_change_ssa): Likewise.
16016 (compute_known_type_jump_func): Likewise.
16017 (ipa_analyze_virtual_call_uses): Likewise.
16019 2011-01-14 Martin Jambor <mjambor@suse.cz>
16021 PR tree-optimization/45934
16022 PR tree-optimization/46302
16023 * ipa-prop.c (type_change_info): New type.
16024 (stmt_may_be_vtbl_ptr_store): New function.
16025 (check_stmt_for_type_change): Likewise.
16026 (detect_type_change): Likewise.
16027 (detect_type_change_ssa): Likewise.
16028 (compute_complex_assign_jump_func): Check for dynamic type change.
16029 (compute_complex_ancestor_jump_func): Likewise.
16030 (compute_known_type_jump_func): Likewise.
16031 (compute_scalar_jump_functions): Likewise.
16032 (ipa_analyze_virtual_call_uses): Likewise.
16033 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16035 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16037 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16038 * config/i386/i386.opt (msse5): New Alias.
16040 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16042 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16043 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16044 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16045 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16047 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16049 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16051 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16052 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16053 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16054 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16056 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16058 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16060 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16062 2011-01-14 Mike Stump <mikestump@comcast.net>
16064 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16065 * config/fr30/fr30.md: Likweise
16066 (movsi_push): Likewise.
16067 (movsi_pop): Likewise.
16068 (enter_func): Likewise.
16069 * config/moxie/moxie.md (movsi_push): Likewise.
16070 (movsi_pop): Likewise.
16072 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16074 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16075 %{no_archive} %{exact_version}.
16076 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16077 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16078 %{no_archive} %{exact_version}.
16079 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16080 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16081 * config/mips/vxworks.h: Likewise.
16083 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16085 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16087 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16089 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16090 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16092 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16094 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16097 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16099 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16101 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16102 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16104 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16105 Don't handle -shlib.
16107 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16109 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16110 (CC1_SPEC): Don't handle -profile.
16112 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16114 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16115 * config/mips/mips.h (CC1_SPEC): Likewise.
16117 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16119 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16120 * config/mips/mips.h (CC1_SPEC): Likewise.
16122 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16124 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16125 * config/m32r/linux.h (LINK_SPEC): Likewise.
16126 * config/mips/linux.h (LINK_SPEC): Likewise.
16127 * config/mips/linux64.h (LINK_SPEC): Likewise.
16128 * config/sparc/linux.h (LINK_SPEC): Likewise.
16129 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16130 LINK_SPEC): Likewise.
16131 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16133 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16135 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16137 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16139 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16141 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16142 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16144 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16146 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16148 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16150 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16151 supports -Bstatic/-Bdynamic.
16152 * configure: Regenerate.
16154 2011-01-14 Jan Hubicka <jh@suse.cz>
16155 Jack Howarth <howarth@bromo.med.uc.edu>
16158 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16159 when checking debug_info_level. Test write_symbols instead of
16160 debug_hooks->var_location when setting flag_var_tracking_uninit.
16162 2011-01-14 Richard Guenther <rguenther@suse.de>
16164 PR tree-optimization/47179
16165 * target.def (ref_may_alias_errno): New target hook.
16166 * targhooks.h (default_ref_may_alias_errno): Declare.
16167 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16168 (default_ref_may_alias_errno): New function.
16169 * target.h (struct ao_ref_s): Declare.
16170 * tree-ssa-alias.c: Include target.h.
16171 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16172 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16173 (targhooks.o): Likewise.
16174 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16175 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16177 2011-01-14 Richard Guenther <rguenther@suse.de>
16179 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16181 2011-01-14 Richard Guenther <rguenther@suse.de>
16183 PR tree-optimization/47280
16184 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16185 return CFG changes.
16186 (tree_ssa_forward_propagate_single_use_vars): Deal with
16187 CFG changes from associate_plusminus.
16189 2011-01-14 Richard Guenther <rguenther@suse.de>
16191 PR middle-end/47281
16193 2011-01-11 Richard Guenther <rguenther@suse.de>
16195 PR tree-optimization/46076
16196 * tree-ssa.c (useless_type_conversion_p): Conversions from
16197 unprototyped to empty argument list function types are useless.
16199 2011-01-14 Richard Guenther <rguenther@suse.de>
16201 PR tree-optimization/47286
16202 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16204 2011-01-14 Martin Jambor <mjambor@suse.cz>
16206 PR middle-end/46823
16207 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16209 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16211 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16212 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16213 * config/xtensa/xtensa.c (xtensa_libcall_value,
16214 xtensa_function_value_regno_p): New functions.
16215 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16217 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16220 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16222 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16223 New function prototype.
16224 * config/i386/winnt.c (i386_pe_assemble_visibility):
16225 Warn only if attribute was specified by user.
16227 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16230 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16232 (floatunsdidf2_fcfidu): Ditto.
16234 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16236 * config/s390/s390.c (print_operand_address): Replace 'error' with
16237 'output_operand_lossage'.
16238 (print_operand): Likewise.
16240 2011-01-13 Jeff Law <law@redhat.com>
16242 PR rtl-optimization/39077
16243 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16244 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16245 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16246 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16247 * gcse.c (prune_insertions_deletions): New function.
16248 (compute_pre_data): Use it.
16250 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16253 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16255 (prune_unused_types_mark): Use it.
16257 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16259 PR rtl-optimization/45352
16260 * sel-sched.c: Update copyright years.
16261 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16262 in the advancing loop when we have issued issue_rate insns.
16264 2011-01-12 Richard Henderson <rth@redhat.com>
16266 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16267 (TARGET_MD_ASM_CLOBBERS): New.
16269 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16270 (TARGET_DELEGITIMIZE_ADDRESS): New.
16272 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16273 (clzsi2, *bsch): New patterns.
16275 * config/mn10300/mn10300.md (INT): New mode iterator.
16276 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16278 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16279 flag_split_wide_types.
16281 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16282 (mn10300_trampoline_init): Rewrite without a template, an immediate
16283 load and a direct branch.
16284 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16286 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16288 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16289 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16290 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16291 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16293 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16296 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16299 2011-01-12 Jan Hubicka <jh@suse.cz>
16302 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16303 (PLUGIN_COND_CLOSE): New macro.
16304 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16306 2011-01-12 Richard Guenther <rguenther@suse.de>
16309 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16310 register variables in a MEM_REF.
16312 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16314 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16315 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16316 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16317 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16318 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16319 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16320 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16321 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16322 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16323 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16324 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16325 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16326 * config/gnu-user.h: New. Copied from linux.h.
16327 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16328 GNU_USER_TARGET_STARTFILE_SPEC.
16329 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16330 GNU_USER_TARGET_ENDFILE_SPEC.
16331 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16332 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16333 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16334 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16335 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16336 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16337 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16338 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16339 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16340 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16341 * config/arm/linux-eabi.h (CC1_SPEC): Use
16342 GNU_USER_TARGET_CC1_SPEC.
16343 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16344 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16345 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16346 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16347 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16348 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16349 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16350 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16352 2011-01-12 Richard Guenther <rguenther@suse.de>
16355 * doc/invoke.texi (ffast-math): Document it is turned on
16358 2011-01-12 Jan Hubicka <jh@suse.cz>
16360 PR tree-optimization/47233
16361 * opts.c (common_handle_option): Disable ipa-reference with profile
16364 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16366 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16369 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16371 * c-parser.c (c_lex_one_token): Updated and reindented some
16372 comments. No changes in code.
16374 2011-01-11 Ian Lance Taylor <iant@google.com>
16376 * godump.c (go_output_var): Don't output the variable if there is
16377 already a type with the same name.
16379 2011-01-11 Ian Lance Taylor <iant@google.com>
16381 * godump.c (go_format_type): Don't generate float80.
16383 2011-01-11 Richard Henderson <rth@redhat.com>
16385 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16386 declaration. Rewrite for both speed and size.
16387 (mn10300_address_cost_1): Remove.
16388 (mn10300_register_move_cost): New.
16389 (mn10300_memory_move_cost): New.
16390 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16391 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16392 extensions, shifts, BSWAP, CLZ.
16393 (mn10300_wide_const_load_uses_clr): Remove.
16394 (TARGET_REGISTER_MOVE_COST): New.
16395 (TARGET_MEMORY_MOVE_COST): New.
16396 * config/mn10300/mn10300-protos.h: Update.
16397 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16399 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16400 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16401 * config/mn10300/mn10300-protos.h: Update.
16402 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16403 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16404 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16405 (*test_int_bitfield, *test_byte_bitfield): Remove.
16406 (*bit_test, *subreg_bit_test): Remove.
16407 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16409 * config/mn10300/constraints.md ("c"): Rename from "A".
16410 ("A", "D"): New constraint letters.
16411 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16412 (fmssf4, fnmasf4, fnmssf4): Likewise.
16414 * config/mn10300/mn10300.md (isa): New attribute.
16415 (enabled): New attribute.
16417 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16418 (abssf2, negsf2): Define only for hardware fp.
16419 (sqrtsf2): Reformat.
16420 (addsf3, subsf3, mulsf3): Merge expander and insn.
16422 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16423 (DEBUGGER_AUTO_OFFSET): Remove.
16424 (DEBUGGER_ARG_OFFSET): Remove.
16426 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16427 Emit register stores with the same offsets as the hardware.
16428 (mn10300_store_multiple_operation): Don't check that the register
16429 save offsets are monotonic.
16430 * config/mn10300/mn10300-protos.h: Update.
16432 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16434 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16435 in terms of the value on the stack, not the MDR register.
16437 2011-01-11 Jan Hubicka <jh@suse.cz>
16441 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16442 (symbol_alias_set_destroy, symbol_alias_set_contains,
16443 propagate_aliases_backward): Declare.
16444 * lto-streamer-out.c (struct sets): New sturcture.
16445 (trivally_defined_alias): New function.
16446 (output_alias_pair_p): Rewrite.
16447 (output_unreferenced_globals): Fix output of alias pairs.
16448 (produce_symtab): Likewise.
16449 * ipa.c (function_and_variable_visibility): Set weak alias destination
16451 * varasm.c (symbol_alias_set_t): Remove.
16452 (symbol_alias_set_destroy): Export.
16453 (propagate_aliases_forward, propagate_aliases_backward): New functions
16455 (compute_visible_aliases): ... this one; remove.
16456 (trivially_visible_alias): New
16457 (trivially_defined_alias): New.
16458 (remove_unreachable_alias_pairs): Rewrite.
16459 (finish_aliases_1): Reorganize code checking if alias is defined.
16460 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16463 2011-01-11 Richard Guenther <rguenther@suse.de>
16465 PR tree-optimization/46076
16466 * tree-ssa.c (useless_type_conversion_p): Conversions from
16467 unprototyped to empty argument list function types are useless.
16469 2011-01-11 Richard Guenther <rguenther@suse.de>
16471 PR middle-end/45235
16472 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16473 volatile MEMs as MEM_READONLY_P.
16475 2011-01-11 Richard Guenther <rguenther@suse.de>
16477 PR tree-optimization/47239
16478 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16480 2011-01-11 Jeff Law <law@redhat.com>
16482 PR tree-optimization/47086
16483 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16484 IVs from statements that might throw.
16486 2011-01-10 Jan Hubicka <jh@suse.cz>
16489 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16491 2011-01-10 Jan Hubicka <jh@suse.cz>
16494 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16495 when correcting profile.
16497 2011-01-10 Jan Hubicka <jh@suse.cz>
16500 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16501 DECL_FINI_PRIORITY.
16502 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16503 Restore DECL_FINI_PRIORITY.
16505 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16507 * doc/gimple.texi: Fix quoting of multi-word return values in
16508 @deftypefn statements. Ensure presence of return value. Wrap
16509 overlong @deftypefn lines.
16510 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16511 descriptions of removed functions.
16512 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16513 of multi-word return value in @deftypefn statement.
16515 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16517 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16518 (Conditional Expressions, Logical Operators)
16519 (Statement and operand traversals): Do not indent smallexample
16520 code. Fix duplicate function argument in example.
16522 2011-01-10 Jeff Law <law@redhat.com>
16524 PR tree-optimization/47141
16525 * ipa-split.c (split_function): Handle case where we are
16526 returning a value and the return block has a virtual operand phi.
16528 2011-01-10 Jan Hubicka <jh@suse.cz>
16530 PR tree-optimization/47234
16531 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16532 (pass_feedback_split_functions): Declare.
16533 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16535 * ipa-split.c (gate_split_functions): Update comments; disable
16536 split-functions for profile_arc_flag and branch_probabilities.
16537 (gate_feedback_split_functions): New function.
16538 (execute_feedback_split_functions): New function.
16539 (pass_feedback_split_functions): New global var.
16541 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16544 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16545 calling gimple_call_set_cannot_inline.
16547 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16549 * config/darwin-sections.def: Remove unused section.
16551 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16554 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16556 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16559 * c-parser.c (c_parser_declaration_or_fndef): Improved
16562 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16564 * config/i386/winnt.c (i386_pe_start_function): Make sure
16565 to switch back to function's section.
16567 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16571 * plugin.c: Move include of dlfcn.h from here...
16572 * system.h: ... to here.
16574 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16576 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16578 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16579 two extra empty pages in PDF output.
16581 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16584 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16585 for error recovery purposes behave as if it was not specified so
16586 that the default type is usd.
16588 2011-01-07 Jan Hubicka <jh@suse.cz>
16590 PR tree-optmization/46469
16591 * ipa.c (function_and_variable_visibility): Clear needed flags on
16592 nodes with external decls; handle weakrefs merging correctly.
16594 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16596 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16599 2011-01-07 Jan Hubicka <jh@suse.cz>
16601 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16602 and no longer claim that gold is required for linker plugin.
16603 * configure: Regenerate.
16604 * gcc.c (PLUGIN_COND): New macro.
16605 (LINK_COMMAND_SPEC): Use it.
16606 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16607 * config.in (HAVE_LTO_PLUGIN): New.
16608 * configure.ac (--with-lto-plugin): New parameter; autodetect
16611 2011-01-07 Jan Hubicka <jh@suse.cz>
16613 PR tree-optimization/46367
16614 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16615 when we can update original.
16616 (cgraph_mark_inline_edge): Sanity check.
16617 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16619 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16621 * config/spu/spu.h (ASM_COMMENT_START): Define.
16623 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16626 * gcc.c (%>S): New.
16627 (SWITCH_KEEP_FOR_GCC): Likewise.
16628 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16629 (do_spec_1): Handle "%>".
16631 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16633 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16636 * config/i386/i386.c (ix86_delegitimize_address): If
16637 simplify_gen_subreg fails, return orig_x.
16640 * value-prof.c (gimple_stringop_fixed_value): Handle
16641 lhs of the call properly.
16643 2011-01-07 Jan Hubicka <jh@suse.cz>
16646 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16648 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16650 * target.def (function_switched_text_sections): New hook.
16651 * doc/tm.texi: Regenerated.
16652 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16653 * final.c (default_function_switched_text_sections): New.
16654 (final_scan_insn): Call function_switched_text_sections when a
16655 mid-function section change occurs.
16656 * output.h (default_function_switched_text_sections): Declare.
16657 * config/darwin-protos.h (darwin_function_switched_text_sections):
16659 * config/darwin.c (darwin_function_switched_text_sections): New.
16660 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16662 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16664 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16665 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16666 the secondary code fragment when outputting for DWARF == 2.
16668 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16670 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16671 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16673 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16674 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16676 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16679 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16680 when it is not empty.
16682 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16685 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16686 (case ${target}): Add btver1.
16687 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16688 -march=native recognize btver1 processors.
16689 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16690 btver1 def_and_undef
16691 * config/i386/i386.c (struct processor_costs btver1_cost): New
16693 (m_BTVER1): New definition.
16694 (m_AMD_MULTIPLE): Includes m_BTVER1.
16695 (initial_ix86_tune_features): Add btver1 tune.
16696 (processor_target_table): Add btver1 entry.
16697 (static const char *const cpu_names): Add btver1 entry.
16698 (software_prefetching_beneficial_p): Add btver1.
16699 (ix86_option_override_internal): Add btver1 instruction sets.
16700 (ix86_issue_rate): Add btver1.
16701 (ix86_adjust_cost): Add btver1.
16702 * config/i386/i386.h (TARGET_BTVER1): New definition.
16703 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16704 (enum processor_type): Add PROCESSOR_BTVER1.
16705 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16707 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16710 * config/i386/i386.c (legitimize_tls_address)
16711 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16712 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16713 (tls_initial_exec_64_sun): New pattern.
16715 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16717 * doc/invoke.texi (Overall Options): Improve wording and markup
16718 of the description of -wrapper.
16720 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16722 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16723 rdynamic, threads): New Driver options.
16725 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16728 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16729 if coming from .tdata.
16730 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16732 2011-01-06 Jan Hubicka <jh@suse.cz>
16735 * collect2.c (main): Do not enable LTOmode when plugin is active.
16737 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16740 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16741 --version output if supported.
16742 * configure: Regenerate.
16744 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16746 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16749 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16752 * c-convert.c (convert): When converting a complex expression
16753 other than COMPLEX_EXPR to a different complex type, ensure
16754 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16755 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16756 when converting COMPLEX_TYPE.
16758 2011-01-06 Ira Rosen <irar@il.ibm.com>
16760 PR tree-optimization/47139
16761 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16762 only the last reduction value is used outside the loop. Update
16765 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16767 * config/rtems.opt: New.
16768 * config.gcc (*-*-rtems*): Use rtems.opt.
16770 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16772 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16773 processors do not support 3DNow instructions.
16775 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16777 * config/spu/spu.c (spu_option_override): Set parameter
16778 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16780 2011-01-05 Jan Hubicka <jh@suse.cz>
16782 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16783 at the command line.
16785 2011-01-05 Martin Jambor <mjambor@suse.cz>
16788 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16789 deltas on streamed outgoing edges.
16790 (output_node_opt_summary): Output info for outgoing edges only when
16791 the node is in new parameter set.
16792 (output_cgraph_opt_summary): New parameter set, passed to the two
16793 aforementioned functions. Update its forward declaration and its
16796 2011-01-05 Tom Tromey <tromey@redhat.com>
16798 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16799 operator to c_finish_omp_atomic.
16800 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16801 (build_unary_op): Update.
16802 (build_modify_expr): Update.
16803 (build_asm_expr): Update.
16805 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16807 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16808 newly inserted insns.
16809 (pad_bb): Likewise.
16810 (spu_emit_branch_hint): Likewise.
16811 (insert_hbrp_for_ilb_runout): Likewise.
16812 (spu_machine_dependent_reorg): Call df_finish_pass after
16813 schedule_insns returns.
16815 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16817 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16819 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16821 PR tree-optimization/47005
16822 * tree-sra.c (struct access): Add 'non_addressable' bit.
16823 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16824 (decide_one_param_reduction): Return 0 if the parameter is passed by
16825 reference and one of the accesses in the group is non_addressable.
16827 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16829 PR tree-optimization/47056
16830 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16831 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16832 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16834 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16836 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16837 initializer. Skip view conversions from aggregate types.
16839 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16842 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16844 2011-01-04 Philipp Thomas <pth@suse.de>
16846 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16849 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16851 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16852 on empty epilogue sequences.
16854 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16856 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16857 non-static): New Driver options.
16859 2011-01-04 Jie Zhang <jie@codesourcery.com>
16862 * gcc.c (default_compilers[]): Set combinable field to 0
16863 for all assembly languages.
16865 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16867 * config/mips/loongson3a.md: New file.
16868 * config/mips/mips.md: Include loongson3a.md.
16869 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16872 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16874 PR middle-end/47017
16875 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16876 instead of convert_memory_address_addr_space on the base expression.
16878 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16880 * config/spu/spu.c (spu_option_override): Update error text
16881 for bad -march= / -mtune= values.
16883 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16885 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16886 if branch-hint optimization will be performed.
16888 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16890 PR tree-optimization/47148
16891 * ipa-split.c (split_function): Convert arguments to
16892 DECL_ARG_TYPE if possible.
16894 PR tree-optimization/47155
16895 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16896 when computing uns.
16898 PR rtl-optimization/47157
16899 * combine.c (try_combine): If undobuf.other_insn becomes
16900 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16901 and set *new_direct_jump_p too.
16903 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16905 PR tree-optimization/47021
16906 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16908 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16910 * gcc.c (process_command): Update copyright notice dates.
16911 * gcov.c (print_version): Likewise.
16912 * gcov-dump.c (print_version): Likewise.
16913 * mips-tfile.c (main): Likewise.
16914 * mips-tdump.c (main): Likewise.
16916 2011-01-03 Martin Jambor <mjambor@suse.cz>
16918 PR tree-optimization/46801
16919 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16920 aggregate fields start at byte boundary instead of the bit-field flag.
16922 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16925 * gcc.c (main): Revert revision 168407.
16927 2011-01-03 Martin Jambor <mjambor@suse.cz>
16929 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16931 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16933 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16934 vector optab to expand vector/scalar shift, update gimple to vector.
16936 2011-01-03 Martin Jambor <mjambor@suse.cz>
16938 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16941 2011-01-03 Martin Jambor <mjambor@suse.cz>
16943 PR tree-optimization/46984
16944 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16946 (cgraph_create_indirect_edge): Fixed line length.
16947 (cgraph_indirect_call_info): Declare.
16948 (cgraph_make_edge_direct) Update declaration.
16949 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16950 (cgraph_create_indirect_edge): Use it.
16951 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16953 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16954 the new thunk_delta representation.
16955 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16957 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16958 (ipa_read_indirect_edge_info): Likewise.
16959 * lto-cgraph.c (output_edge_opt_summary): New function.
16960 (output_node_opt_summary): Call it on all outgoing edges.
16961 (input_edge_opt_summary): New function.
16962 (input_node_opt_summary): Call it on all outgoing edges.
16964 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16967 * gcc.c (main): Don't check have_o when settting combine_inputs.
16969 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16971 * regrename.c: Add general comment describing the pass.
16972 (struct du_head): Remove 'length' field.
16973 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16974 (regrename_optimize): Do not sort chains. Rework comments, add others.
16975 Force renaming to the preferred class (if any) in the first pass and do
16976 not consider registers that belong to it in the second pass.
16977 (create_new_chain): Do not set 'length' field.
16978 (scan_rtx_reg): Likewise.
16980 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16982 PR tree-optimization/47140
16983 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16984 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16985 to bit_value_binop.
16987 PR rtl-optimization/47028
16988 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16989 parm_birth_insn instead of at the beginning of first bb.
16991 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16993 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16994 Remove the word "see" before "@pxref".
16995 * doc/rtl.texi: Remove the word "see" before "@pxref".
16997 2011-01-01 Jan Hubicka <jh@suse.cz>
16999 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17002 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17005 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17008 Copyright (C) 2011 Free Software Foundation, Inc.
17010 Copying and distribution of this file, with or without modification,
17011 are permitted in any medium without royalty provided the copyright
17012 notice and this notice are preserved.