1 2011-06-07 Xinliang David Li <davidxl@google.com>
2 * passes.c (enable_disable_pass): Handle assembler name.
3 (is_pass_explicitly_enabled_or_disabled): Ditto.
5 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7 PR tree-optimization/48497
8 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
10 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12 PR tree-optimization/46728
13 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
14 to use gimple_val_nonnegative_real_p.
15 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
16 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
18 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
20 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
22 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
24 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
27 2011-06-07 Richard Guenther <rguenther@suse.de>
29 * stor-layout.c (initialize_sizetypes): Initialize all
30 sizetypes based on target definitions.
31 (set_sizetype): Remove.
32 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
33 * tree.h (set_sizetype): Remove.
35 2011-06-07 Nick Clifton <nickc@redhat.com>
37 * config.gcc: Unify V850 architecture options and add support for
38 newer V850 architectures.
39 * config/v850/t-v850e: Delete.
41 2011-06-07 Richard Guenther <rguenther@suse.de>
43 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
44 Call set_sizetype from here.
46 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
48 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
49 (*maddhisi4tb, *maddhisi4tt): New define_insns.
51 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
52 Andrew Stubbs <ams@codesourcery.com>
54 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
56 * doc/md.texi (Canonicalization of Instructions): Document widening
57 multiply canonicalization.
59 2011-06-07 Jakub Jelinek <jakub@redhat.com>
62 * value-prof.c (gimple_ic): Don't assume icall has
65 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
67 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
69 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
70 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
71 vect_recog_pow_pattern): Likewise.
72 (vect_pattern_recog_1): Remove declaration.
73 (widened_name_p): Remove declaration. Add new argument to specify
74 whether to check that both types are either signed or unsigned.
75 (vect_recog_widen_mult_pattern): Update documentation. Handle
76 unsigned patterns and multiplication by constants.
77 (vect_pattern_recog_1): Update vect_recog_func references. Use
78 statement information from the statement returned from pattern
80 (vect_pattern_recog): Update vect_recog_func reference.
81 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
82 multiplication by a constant use the type of the other operand.
84 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
86 PR rtl-optimization/49145
87 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
89 2011-06-06 Jakub Jelinek <jakub@redhat.com>
92 * dwarf2out.c (native_encode_initializer): Decrement count in each
96 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
100 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
101 if stmt folded into nothing.
102 * tree-inline.c (fold_marked_statements): If a builtin at the
103 end of a bb folded into nothing, just update cgraph edges
105 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
106 to be NULL. Don't compute count and frequency if new_call is NULL.
108 2011-06-04 Diego Novillo <dnovillo@google.com>
110 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
111 (cgraph.o): Likewise.
112 (cgraphunit.o): Likewise.
113 * cgraphunit.c: Include lto-streamer.h
114 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
116 * lto-streamer-in.c (unpack_value_fields): Call
117 streamer_hooks.unpack_value_fields if set.
118 (lto_materialize_tree): For unhandled nodes, first try to
119 call lto_streamer_hooks.alloc_tree, if it exists.
120 (lto_input_ts_decl_common_tree_pointers): Move reading of
121 DECL_INITIAL to lto_streamer_read_tree.
122 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
123 (lto_streamer_read_tree): New.
124 (lto_reader_init): Rename from lto_init_reader.
125 Move initialization code to lto/lto.c.
126 * lto-streamer-out.c (pack_value_fields): Call
127 streamer_hooks.pack_value_fields if set.
128 (lto_output_tree_ref): For tree nodes that are not
129 normally indexable, call streamer_hooks.indexable_with_decls_p
131 (lto_output_ts_decl_common_tree_pointers): Move handling
132 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
133 lto_streamer_write_tree.
134 (lto_output_tree_header): Call streamer_hooks.is_streamable
135 instead of lto_is_streamable.
136 Call lto_streamer_hooks.output_tree_header if set.
137 (lto_write_tree): Call lto_streamer_hooks.write_tree if
139 (lto_streamer_write_tree): New.
140 (lto_output): Call lto_streamer_init directly.
141 (lto_writer_init): Remove.
142 * lto-streamer.c (streamer_hooks): New.
143 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
144 instead of lto_preload_common_nodes.
145 (lto_is_streamable): Move from lto-streamer.h
146 (lto_streamer_hooks_init): New.
147 (streamer_hooks): New.
148 (streamer_hooks_init): New.
149 * lto-streamer.h (struct output_block): Forward declare.
150 (struct lto_input_block): Likewise.
151 (struct data_in): Likewise.
152 (struct bitpack_d): Likewise.
153 (struct streamer_hooks): Declare.
154 (streamer_hooks): Declare.
155 (lto_streamer_hooks_init): Declare.
156 (lto_streamer_write_tree): Declare.
157 (lto_streamer_read_tree): Declare.
158 (streamer_hooks_init): Declare.
159 (lto_is_streamable): Move to lto-streamer.c
161 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
163 * longlong.h (smul_ppmm): The resulting register pair contains the
164 higher order word first.
166 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
168 PR tree-optimization/46728
169 * builtins.c (powi_table): Remove.
170 (powi_lookup_cost): Remove.
172 (expand_powi_1): Remove.
173 (expand_powi): Remove.
174 (expand_builtin_pow_root): Remove.
175 (expand_builtin_pow): Remove.
176 (expand_builtin_powi): Eliminate handling of constant exponent.
177 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
179 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
181 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
183 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
185 * dce.c (reset_unmarked_insns_debug_uses): New.
186 (delete_unmarked_insns): Skip debug insns.
187 (prescan_insns_for_dce): Likewise.
188 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
189 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
190 active reg can be found.
191 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
192 (convert_regs_1): Use it.
194 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
196 * tree-pretty-print.c (dump_function_header): Add flags.
197 Don't dump decl_uid with nouid.
198 * tree-pretty-print.h (dump_function_header): Adjust.
199 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
200 * passes.c (pass_init_dump_file): Pass dump_flags on.
201 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
203 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
206 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
208 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
210 PR tree-optimization/49243
211 * calls.c (setjmp_call_p): Also check if fndecl has the
212 returns_twice attribute.
214 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
216 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
219 2011-06-06 Richard Henderson <rth@redhat.com>
220 Georg-Johann Lay <avr@gjlay.de>
223 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
225 * config/avr/avr.md ("insv"): New insn expander.
226 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
227 "*insv.not.io", "*insv.reg"): New insns.
229 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
232 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
233 predicate to nonimmediate_operand from memory_operand for the
234 operand that is to be forced to memory by the expander. Lose
237 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
239 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
240 EH return when delayed branches are disabled.
242 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
244 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
245 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
247 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
248 Simplify MODE_V1DF and MODE_V2SF handling.
249 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
250 Simplify MODE_SF handling.
252 2011-06-04 Jan Hubicka <jh@suse.cz>
254 PR tree-optimization/48893
255 PR tree-optimization/49091
256 PR tree-optimization/49179
257 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
260 2011-06-04 Jan Hubicka <jh@suse.cz>
263 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
265 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
267 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
269 2011-06-04 Jakub Jelinek <jakub@redhat.com>
272 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
273 to be strictly smaller than 1 << shiftcount.
275 2011-06-04 Jan Hubicka <jh@suse.cz>
277 PR tree-optimize/48929
278 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
281 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
284 * calls.c (emit_call_1): Prefer the __builtin declaration of
287 2011-06-03 Diego Novillo <dnovillo@google.com>
289 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
290 (lto_input_tree_pointers): Likewise.
291 * lto-streamer-out.c (pack_value_fields): Likewise.
292 (lto_output_tree_pointers): Likewise.
293 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
294 and OPTIMIZATION_NODE.
296 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
298 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
299 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
300 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
301 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
302 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
303 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
304 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
305 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
306 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
307 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
308 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
309 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
310 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
311 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
312 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
313 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
314 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
315 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
316 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
317 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
318 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
319 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
320 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
321 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
322 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
323 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
324 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
325 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
326 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
327 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
328 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
329 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
330 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
331 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
332 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
333 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
334 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
335 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
336 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
337 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
338 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
339 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
340 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
341 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
342 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
343 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
344 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
345 * system.h (MD_UNWIND_SUPPORT): Poison.
346 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
347 * doc/tm.texi: Regenerate.
348 * unwind-dw2.c: Include md-unwind-support.h instead of
350 * config/ia64/unwind-ia64.c: Likewise.
351 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
353 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
355 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
357 2011-06-03 Richard Henderson <rth@redhat.com>
358 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
360 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
361 (sigill_hdlr): Correct insn, insn size.
362 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
364 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
366 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
368 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
369 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
370 * config/mips/t-iris: Remove.
371 * config/mips/t-irix6: New file.
372 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
374 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376 * Makefile.in (LIB2ADDEHDEP): Remove.
377 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
378 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
379 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
380 * config/t-darwin (LIB2ADDEHDEP): Remove.
381 * config/t-freebsd (LIB2ADDEHDEP): Remove.
382 * config/t-linux (LIB2ADDEHDEP): Remove.
384 2011-06-03 Diego Novillo <dnovillo@google.com>
386 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
387 (lto_register_var_decl_in_symtab): Likewise.
388 (lto_register_function_decl_in_symtab): Likewise.
389 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
390 logic to uniquify_nodes.
392 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
394 * config/alpha/t-osf5: Remove.
395 * config/alpha/t-osf-pthread: Remove.
396 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
397 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
399 2011-06-03 Julian Brown <julian@codesourcery.com>
401 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
402 (strongarm1110): Use strongarm tuning.
403 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
404 * config/arm/arm.c (arm_strongarm_tune): New.
405 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
406 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
407 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
408 setting, using previous defaults or 1 for Cortex-A5.
409 (arm_option_override): Set max_insns_skipped from current tuning.
411 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
413 * doc/install.texi (Options specification): Document --with-specs.
415 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
417 * config/arm/neon.md (orndi3_neon): Actually split it.
419 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
421 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
422 * var-tracking.c (reverse_op): Limite recurse depth to 5.
424 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
427 * target.def (delay_sched2, delay_vartrack): New.
428 * doc/tm.texi.in: Update.
429 * doc/tm.texi: Rebuild.
430 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
431 * var-tracking.c (gate_handle_var_tracking): Likewise.
432 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
433 (bfin_flag_var_tracking): Drop.
434 (output_file_start): Don't save and override flag_var_tracking.
435 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
436 (bfin_reorg): Test original variables.
437 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
438 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
439 (ia64_flag_var_tracking): Drop.
440 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
441 (ia64_file_start): Don't save and override flag_var_tracking.
442 (ia64_override_options_after_change): Ditto
443 flag_schedule_insns_after_reload.
444 (ia64_reorg): Test original variables.
445 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
446 (picochip_flag_var_tracking): Drop.
447 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
448 (picochip_option_override): Don't save and override
449 flag_schedule_insns_after_reload.
450 (picochip_asm_file_start): Ditto flag_var_tracking.
451 (picochip_reorg): Test original variables.
452 * config/spu/spu.c (spu_flag_var_tracking): Drop.
453 (TARGET_DELAY_VARTRACK): Define.
454 (spu_var_tracking): New.
455 (spu_machine_dependent_reorg): Call it.
456 (asm_file_start): Don't save and override flag_var_tracking.
458 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
461 * config/sh/predicates.md (general_movsrc_operand): Return 0
462 for memory and memory subreg of which address is an invalid
463 indexed address for QI and HImode.
464 (general_movdst_operand): Likewise.
466 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
468 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
469 edges only, when there is a non-local label in the function.
470 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
472 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
474 * config/i386/constraints.md (Y3): New register constraint.
475 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
476 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
477 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
478 *sse2_interleave_lowv2df.
480 2011-06-02 Julian Brown <julian@codesourcery.com>
482 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
483 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
484 (arm_cortex_a5_tune): New.
486 2011-06-02 Julian Brown <julian@codesourcery.com>
488 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
489 * config/arm/arm.c (arm_default_branch_cost): New.
490 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
491 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
492 (arm_fa726_tune): Set branch_cost field using
493 arm_default_branch_cost.
494 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
495 current_tune structure.
496 * dojump.c (tm_p.h): Include file.
498 2011-06-02 Julian Brown <julian@codesourcery.com>
500 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
502 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
503 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
504 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
506 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
507 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
508 (arm_fa726te_tune): Add prefer_constant_pool setting.
509 (arm_v6t2_tune, arm_cortex_tune): New.
510 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
511 prefer_constant_pool setting.
513 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
515 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
517 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
518 (*movdf_internal) <case 6,7,8>: Ditto.
520 * config/i386/constraints.md (Y4): New register constraint.
521 * config/i386/sse.md (vec_set<mode>_0): Merge with
522 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
523 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
524 *vec_extractv2di_1_sse.
525 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
526 and *vec_concatv2di_rex64_sse.
528 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
531 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
532 of cgraph_local_info for null before attempting to use it.
534 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
536 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
537 (current_function_dynamic_alloc_count): Delete.
538 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
539 (expand_builtin_nonlocal_goto): Remove obsolete comment.
540 (expand_builtin_update_setjmp_buf): Remove dead code.
541 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
542 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
544 * function.c (instantiate_virtual_regs): Likewise.
545 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
546 for a block with a single abnormal incoming edge.
547 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
548 (SETJMP_VIA_SAVE_AREA): Delete.
549 * config/sparc/sparc-protos.h (load_got_register): Declare.
550 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
551 (load_got_register): Make global.
552 (sparc_frame_pointer_required): Add 'static'.
553 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
554 (sparc_builtin_setjmp_frame_value): New function.
555 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
556 (save_stack_nonlocal): New expander.
557 (restore_stack_nonlocal): Likewise.
558 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
559 (nonlocal_goto_internal): New insn.
560 (goto_handler_and_restore): Delete.
561 (builtin_setjmp_setup): Likewise.
562 (do_builtin_setjmp_setup): Likewise.
564 (builtin_setjmp_receiver): New expander.
566 2011-06-01 David Li <davidxl@google.com>
569 * tree-pretty-print.c (dump_function_header): Format cleanup.
571 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
574 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
575 needed when original operands are used for msw_skip comparison.
577 2011-06-01 Jakub Jelinek <jakub@redhat.com>
580 * var-tracking.c (add_uses, add_stores): Don't call
581 cselib_subst_to_values on ENTRY_VALUE.
583 2011-06-01 Diego Novillo <dnovillo@google.com>
585 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
586 output_record_start with LTO_null instead of output_zero.
587 (lto_output_ts_binfo_tree_pointers): Likewise.
588 (lto_output_tree): Likewise.
589 (output_eh_try_list): Likewise.
590 (output_eh_region): Likewise.
591 (output_eh_lp): Likewise.
592 (output_eh_regions): Likewise.
593 (output_bb): Likewise.
594 (output_function): Likewise.
595 (output_unreferenced_globals): Likewise.
596 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
597 instead of NUM_TREE_CODES.
598 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
599 (lto_output_int_in_range): Change << to >> when shifting VAL.
601 2011-06-01 Diego Novillo <dnovillo@google.com>
603 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
604 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
606 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
609 * optabs.h (valid_multiword_target_p): Declare.
610 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
611 doing multi-word operations.
612 * optabs.c (expand_binop): Likewise.
613 (expand_doubleword_bswap): Likewise.
614 (expand_absneg_bit): Likewise.
615 (expand_unop): Likewise.
616 (expand_copysign_bit): Likewise.
617 (multiword_target_p): New function.
619 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
621 PR rtl-optimization/48830
622 PR rtl-optimization/48808
623 PR rtl-optimization/48792
624 * reload.c (push_reload): Check contains_reg_of_mode.
625 * reload1.c (strip_paradoxical_subreg): New function.
626 (gen_reload_chain_without_interm_reg_p): Use it to handle
628 (emit_output_reload_insns, gen_reload): Likewise.
630 2011-06-01 David Li <davidxl@google.com>
632 * predict.c : Change pass name
635 * tree-profile.c: Ditto.
638 2011-06-01 David Li <davidxl@google.com>
640 * tree-pretty-print.c (dump_function_header): New function.
641 * final.c (rest_of_clean_state): Use header dumper.
642 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
643 * passes.c (pass_init_dump_file): Use header dumper.
645 2011-06-01 Jakub Jelinek <jakub@redhat.com>
647 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
648 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
649 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
651 (mem_loc_descriptor): Use them.
653 * var-tracking.c (create_entry_value): New function.
654 (vt_add_function_parameter): Use it.
656 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
658 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
659 Include <signal.h>, <ucontext.h>.
660 (sigill_caught): Define.
661 (sigill_hdlr): New function.
662 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
663 insns can be executed.
664 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
665 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
667 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
669 * config/t-slibgcc-darwin: Move to ...
670 * config/t-slibgcc-dummy: ... this. Clarify comments.
671 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
672 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
673 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
674 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
675 Remove i386/t-crtstuff from tmake_file.
676 (i[34567]86-*-solaris2*): Remove t-svr4,
677 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
679 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
680 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
681 sparc/t-crtfm from tmake_file.
682 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
683 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
685 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
686 * config/i386/t-nwld (SHLIB_LINK): Remove.
687 * config/i386/t-rtems-i386: Rename to ...
688 * config/i386/t-rtems: ... this.
689 ($(T)crti.o, $(T)crtn.o): Remove.
690 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
691 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
692 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
693 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
694 EXTRA_MULTILIB_PARTS): Remove.
695 * config/sparc/t-sol2-64: Likewise.
696 * config/sparc/t-sol2: Remove.
697 * config/sparc/t-crtin: Remove.
698 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
699 * config/i386/gmon-sol2.c: Remove.
700 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
701 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
702 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
703 * config/i386/sol2-gc1.asm: Remove.
704 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
705 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
706 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
707 * config/t-slibgcc-sld: Remove.
709 2011-06-01 Jakub Jelinek <jakub@redhat.com>
711 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
712 base_type_for_mode with op_mode instead of mode.
714 2011-06-01 Paul Brook <paul@cpodesourcery.com>
716 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
718 * config/arm/arm-tune.md: Regenerate.
719 * config/arm/arm-tables.opt: Regenerate.
720 * config/arm/arm.c (FL_DIV): Rename...
721 (FL_THUMB_DIV): ... to this.
722 (FL_ARM_DIV): Define.
723 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
724 (arm_arch_hwdiv): Remove.
725 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
726 (arm_issue_rate): Add cortexr5.
727 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
728 __ARM_ARCH_EXT_IDIV__.
729 (TARGET_IDIV): Define.
730 (arm_arch_hwdiv): Remove.
731 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
732 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
733 (divsi3, udivsi3): New patterns.
734 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
735 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
737 2011-06-01 Martin Jambor <mjambor@suse.cz>
739 * ipa-utils.c (ipa_dfs_info): New field scc_no.
740 * ipa-utils.c (searchc): Set scc_no.
742 2011-06-01 Martin Jambor <mjambor@suse.cz>
744 * ipa-utils.c (searchc_env): New field allow_overwritable.
745 (searchc): do not ignore edges to overwritable nodes if indicated
746 by env->allow_overwritable.
747 (ipa_reduced_postorder): Set env.allow_overwritable.
749 2011-06-01 Richard Guenther <rguenther@suse.de>
751 * tree.c (free_lang_data): Do not reset boolean_type_node nor
753 * lto-streamer.c (lto_record_common_node): Take node pointer,
754 do not register types.
755 (lto_preload_common_nodes): Explicitly skip preloading nodes
756 that differ between frontends.
758 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
760 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
763 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
765 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
766 parameter value for dump. Dump cost on outermost call only.
767 (rs6000_memory_move_cost): Dump cost on outermost call only.
769 2011-05-31 Jakub Jelinek <jakub@redhat.com>
771 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
772 DW_OP_GNU_convert ops.
774 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
775 cselib_preserve_constants.
776 (cselib_lookup_1): If cselib_preserve_constants,
777 a new VALUE is being created for REG and there is a VALUE for the
778 same register in wider mode, add another loc with lowpart SUBREG of
780 (cselib_subst_to_values): Handle ENTRY_VALUE.
781 * var-tracking.c (replace_expr_with_values): Return NULL for
783 * dwarf2out.c (convert_descriptor_to_signed): New function.
784 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
785 instead of two shifts.
786 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
787 the right mode if needed.
788 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
789 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
790 convert_descriptor_to_signed.
791 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
792 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
795 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
797 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
799 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
800 of X87MODEI12 and SWI48x instead of SSEMODEI24.
801 (SWI248x): New mode iterator, rename from X87MODEI.
802 (X87MODEI): Remove mode iterator.
806 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
808 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
809 * doc/invoke.texi: Document max-vartrack-expr-depth.
810 * var-tracking.c (EXPR_DEPTH): New.
811 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
813 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
815 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
816 * config/i386/sse.md: Add n to negated FMA pattern names.
818 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
820 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
822 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
824 * gengtype-state.c (read_state_params_structs): Initialize previous.
826 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
828 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
829 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
831 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
833 * config/i386/i386.md (*movtf_internal): Avoid allocating general
834 registers. Penalize F*r->o alternative to prevent partial memory
835 stalls. Slightly penalize *roF->*r alternative. Generate SSE
836 CONST_DOUBLE immediates when optimizing function for size. Do not move
837 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
838 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
839 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
840 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
842 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
844 (fp_register_operand splitters): Use fp_register_operand
845 constraint. Do not use FP_REG_P in insn condition.
846 (any_fp_register_operand splitters): Use any_fp_register_operand
847 constraint. Do not use ANY_FP_REG_P in insn condition.
849 2011-05-31 Jan Hubicka <jh@suse.cz>
851 * cgraph.h (cgraph_inline_failed_t): Give enum a name
852 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
853 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
854 (lto_output_edge): Use output_enum and var_len_unsigned.
855 (lto_output_varpool_node): Likewise.
856 (input_overwrite_node): Do not take resolution parameter;
857 extract it from a bitpack.
858 (input_node): Do not read resolution; use input_enum and
860 (input_varpool_node): Likewise.
861 (input_edge): Likewise.
862 (input_cgraph_1): Likewise.
864 2011-05-31 Richard Guenther <rguenther@suse.de>
866 * gimple.c (gimple_register_canonical_type): Do not register
867 any types via gimple_register_type.
869 2011-05-31 Jan Hubicka <jh@suse.cz>
871 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
874 2011-05-31 Jakub Jelinek <jakub@redhat.com>
876 PR rtl-optimization/49235
877 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
878 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
880 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
882 PR tree-optimization/49093
883 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
886 2011-05-31 Dodji Seketeli <dodji@redhat.com>
889 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
890 for concrete functions containing the code of cloned functions.
892 2011-05-31 Richard Guenther <rguenther@suse.de>
894 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
896 (forward_propagate_into_comparison_1): ... this.
897 (forward_propagate_comparison): Rename to ...
898 (forward_propagate_into_comparison): ... this. Split out
899 real forward propagation code to ...
900 (forward_propagate_comparison): ... this.
901 (forward_propagate_into_gimple_cond): Remove looping.
902 (forward_propagate_into_cond): Likewise.
903 (simplify_not_neg_expr): Return whether we have done something.
904 (simplify_gimple_switch): Likewise.
905 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
906 (ssa_forward_propagate_and_combine): ... this. Re-structure
907 to do a forward forward-propagation walk on BBs and a backward
908 stmt combining walk on BBs. Consistently re-scan changed statements.
909 (pass_forwprop): Adjust.
911 2011-05-30 Ian Lance Taylor <iant@google.com>
913 * godump.c (go_format_type): Correct length of name added to
914 obstack for anonymous field.
916 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
919 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
920 part of the second operand is 0.
922 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
924 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
925 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
926 to memory for !TARGET_MEMORY_MISMATCH_STALL.
927 (*movdf_internal_rex64): Do not penalize F->r alternative.
928 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
929 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
930 when optimizing function for size. Do not move CONST_DOUBLEs
931 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
932 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
933 SUBREGs. Do not check for MEM_P operands in the insn condition,
934 check for ANY_FP_REGNO_P instead.
935 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
936 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
938 * config/i386/i386.c (ix86_option_override_internal): Do not
939 set TARGET_INTEGER_DFMODE_MOVES here.
941 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
944 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
946 2011-05-30 Jakub Jelinek <jakub@redhat.com>
948 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
949 DW_TAG_rvalue_reference_type even for
950 -gdwarf-4 -fno-debug-types-section.
952 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
954 PR tree-optimization/46728
955 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
956 (build_and_insert_binop): New.
957 (gimple_expand_builtin_pow): Reorder args for
958 build_and_insert_call; use build_and_insert_binop; add more
959 optimizations for fractional exponents.
961 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
966 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
968 * tree.h (struct tree_identifier): Inherit from tree_typed, not
970 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
971 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
972 TS_BASE instead of TS_COMMON.
973 * varasm.c (assemble_name): Remove assert.
975 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
977 * config.gcc: Keep obselete list sorted.
979 2011-05-30 Jakub Jelinek <jakub@redhat.com>
980 Eric Botcazou <ebotcazou@adacore.com>
982 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
983 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
984 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
985 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
986 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
988 2011-05-30 Richard Guenther <rguenther@suse.de>
990 * gimple.c (gimple_types_compatible_p_1): Compare record
991 and union type members properly.
993 2011-05-30 Richard Guenther <rguenther@suse.de>
995 PR tree-optimization/49210
996 * ipa-split.c (split_function): Care for the case where the call
997 result is not trivially convertible to the result holding variable.
999 2011-05-30 Richard Guenther <rguenther@suse.de>
1001 PR tree-optimization/49218
1002 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1005 2011-05-30 Richard Guenther <rguenther@suse.de>
1007 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1008 New function split out from ...
1009 (forward_propagate_into_gimple_cond): ... here. Adjust.
1010 (forward_propagate_into_cond): Likewise.
1011 (forward_propagate_comparison): Also propagate into
1012 comparisons on assignment RHS. Change return value to
1013 behave similar to forward_propagate_into_cond.
1014 (tree_ssa_forward_propagate_single_use_vars): Handle
1015 strict-overflow warnings properly for forward_propagate_comparison.
1017 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1019 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1021 * configure: Regenerate.
1023 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1025 PR tree-optimization/49199
1026 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1027 non-reduction operands are either defined in the loop or by induction.
1029 2011-05-29 Xinliang David Li <davidxl@google.com>
1031 * opts-global.c (handle_common_deferred_options): Handle new options.
1032 * passes.c (register_one_dump_file): Call register_pass_name.
1033 (execute_one_pass): Check explicit enable/disable flag.
1034 (passr_hash): New function.
1036 (register_pass_name): Ditto.
1037 (get_pass_by_name): Ditto.
1040 (enable_pass): Ditto.
1041 (disable_pass): Ditto.
1042 (is_pass_explicitly_enabled_or_disabled): Ditto.
1044 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1046 * config/i386/i386.md (*movoi_internal_avx): Use
1047 standard_sse_constant_opcode for alternative 0.
1048 (*movti_internal_sse): Ditto.
1049 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1051 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1053 (*movsi_internal): Ditto.
1054 (*movdi_internal): Ditto. Add ssecvt type moves.
1056 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1059 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1061 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1063 PR rtl-optimization/49095
1064 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1065 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1067 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1070 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1071 recurse_p argument. Only follow register copies if it is set,
1072 and prevent mips_find_pic_call_symbol from recursing.
1073 (mips_find_pic_call_symbol): Add a recurse_p argument.
1074 Pass it to mips_pic_call_symbol_from_set.
1075 (mips_annotate_pic_calls): Update accordingly.
1077 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1079 * emit-rtl.c (try_split): Use a loop to search for
1080 NOTE_INSN_CALL_ARG_LOCATIONs.
1082 2011-05-29 Richard Guenther <rguenther@suse.de>
1084 PR tree-optimization/49217
1085 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1087 2011-05-28 Jan Hubicka <jh@suse.cz>
1089 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1091 (string_slot_free): Remove
1092 (create_output_block): Initialize obstack.
1093 (destroy_output_block): Free obstack.
1094 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1095 the string unless it needs to be added into the hash.
1096 (lto_output_string_with_length): Add persistent attribute;
1097 handle NULL strings.
1098 (lto_output_string): Add PERSISTENT parameter.
1099 (output_string_cst, output_identifier): Simplify.
1100 (lto_output_location_bitpack): Update.
1101 (lto_output_builtin_tree): Update.
1102 * lto-streamer.h (struct output_block): Add obstack.
1103 (lto_output_string, lto_output_string_with_length): Remove
1104 declarations; functions are static now.
1106 2011-05-28 Jan Hubicka <jh@suse.cz>
1108 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1109 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1110 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1111 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1112 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1113 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1114 unpack_ts_decl_with_vis_value_fields,
1115 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1116 lto_get_builtin_tree): Use enum and variable length i/o.
1117 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1118 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1120 (bp_pack_enum, bp_unpack_enum): New macros.
1122 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1124 * genrecog.c: Remove redundant forward declarations.
1126 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1128 * config.gcc: Deprecate mips*-*-openbsd*.
1130 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1133 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1136 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1139 * gengtype.c (vec_prefix_type): New function.
1140 (note_def_vec): Use vec_prefix_type and change the length
1141 attribute to be based on the prefix.
1142 * vec.c: Include coretypes.h before vec.h.
1143 (struct vec_prefix): Remove.
1144 (vec_gc_p_reserve): Change the offsetof to sizeof.
1145 (vec_gc_p_reserve_exact): Likewise.
1146 (vec_heap_p_reserve): Likewise.
1147 (vec_heap_p_reserve_exact): Likewise.
1148 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1149 (vec_stack_p_reserve): Change the offsetof to sizeof.
1150 (vec_stack_p_reserve_exact): Likewise.
1151 * vec.h (struct vec_prefix): New struct definition.
1152 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1153 (VEC_T_GTY(T,B)): Likewise.
1154 (DEF_VEC_FUNC_P(T)): Use prefix field.
1155 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1156 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1158 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1160 PR tree-optimization/46728
1161 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1162 (powi_as_mults): Add gimple_set_location.
1163 (build_and_insert_call): New.
1164 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1165 0.5, 0.25, 0.75, 1./3., or 1./6.
1167 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1169 * doc/contrib.texi: Update copyright years.
1170 (Contributors): Add Zdenek Sojka.
1172 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1174 * c-decl.c (c_push_function_context): Copy the current statement
1176 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1177 (finish_struct): Call building_stmt_list_p instead of checking
1179 * c-parser.c (c_parser_postfix_expression): Likewise.
1180 * c-typeck.c (c_end_compound_stmt): Likewise.
1181 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1182 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1183 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1184 (free_stmt_list): Likewise.
1185 * tree.h (struct tree_statement_list): Include typed_tree instead
1187 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1188 as TS_TYPED instead of TS_COMMON.
1190 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1191 Uros Bizjak <ubizjak@gmail.com>
1193 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1194 (HAVE_AS_IX86_TLSGDPTL): Define.
1195 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1196 (HAVE_AS_IX86_TLSLDMPLT): Define.
1197 * configure: Regenerate.
1198 * config.in: Regenerate.
1199 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1200 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1201 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1202 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1203 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1205 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1207 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1209 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1211 (INSN_COND, INSN_REVERSE_COND): New macros.
1212 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1214 (sched_get_condition_with_rev): Cache the results, and look them up
1216 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1217 are clobbered by the current insn.
1218 * target.def (exposed_pipline): New sched data hook.
1219 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1220 * doc/tm.texi: Regenerate.
1222 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1224 PR tree-optimization/49170
1225 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1228 2011-05-27 Richard Guenther <rguenther@suse.de>
1231 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1234 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1236 * haifa-sched.c (sched_scan_info): Remove.
1237 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1239 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1241 (sched_scan): Remove.
1242 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1243 static. All callers changed.
1244 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1245 static. All callers changed.
1246 (sched_init_luids): Remove all arguments except the first. All
1247 callers changed. Don't use sched_scan.
1248 (haifa_init_h_i_d): Likewise.
1249 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1250 manually rather than using sched_init_luids. Likewise with
1251 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1252 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1253 rather than sched_init_luids with NULL args.
1254 * sel-sched-ir.c (new_insns): Remove variable.
1255 (sched_scan): New static function, previously in haifa-sched.c. Remove
1256 all arguments but the first two; all callers changed.
1257 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1258 rather than sched_init_luids.
1259 (sel_init_bbs): Remove second argument. All callers changed.
1260 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1261 with NULL arguments.
1262 (create_insn_rtx_from_pattern): Likewise.
1263 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1264 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1265 (sched_init_insn_luid, sched_extend_luids): Declare.
1266 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1269 2011-05-27 Richard Guenther <rguenther@suse.de>
1272 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1273 A CMP B ? (T) true : (T) false for non-integral types T again.
1275 2011-05-27 Jan Hubicka <jh@suse.cz>
1277 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1278 so 0 means NULL string.
1279 (lto_output_string_with_length): ... here.
1280 (lto_output_string, output_string_cst, output_identifier): Update
1281 handling of NULL strings.
1282 (lto_output_location_bitpack): New function.
1283 (lto_output_location): Use it.
1284 (lto_output_tree_ref): Use output_record_start.
1285 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1287 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1289 (input_string_internal): ... here;
1290 (input_string_cst, input_identifier, lto_input_string): Update handling
1292 (lto_input_location_bitpack): New function
1293 (lto_input_location): Use it.
1294 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1296 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1297 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1298 (bp_pack_value): Sanity check the value range.
1299 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1301 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1304 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1306 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1307 call_arg_location instructions down the floor.
1309 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1311 PR rtl-optimization/49154
1312 * ira.c (setup_pressure_classes): Process class without sublcasses
1313 as a candidate for pressure classes.
1315 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1317 PR rtl-optimization/48575
1318 * genrecog.c (position_type): New enum.
1319 (position): New structure.
1320 (decision): Use position structure instead of a string.
1321 (root_pos, peep2_insn_pos_list): New variables.
1322 (next_position, compare_positions): New functions.
1323 (new_decision): Use position structures instead of strings.
1324 (maybe_both_true): Likewise.
1325 (change_state): Likewise.
1326 (write_tree): Likewise.
1327 (make_insn_sequence): Likewise.
1329 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1331 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1332 TS_BASE instead of TS_COMMON.
1333 (find_decls_types_r): Check for TS_TYPED structure before looking at
1335 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1337 (BLOCK_CHAIN): Use new chain field.
1339 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1341 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1342 moves expensive on Power7 also.
1344 2011-05-26 Richard Guenther <rguenther@suse.de>
1346 * fold-const.c (fold_unary_loc): Remove bogus code.
1348 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1350 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1352 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1353 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1354 TS_BASE instead of TS_COMMON.
1355 * varasm.c (assemble_name): Remove assert.
1357 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1359 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1361 * libgcc-std.ver: Delete file.
1363 2011-05-26 Richard Guenther <rguenther@suse.de>
1365 PR tree-optimization/48702
1366 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1367 only when we know the base address is within bounds.
1368 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1369 assume the base address of TARGET_MEM_REFs is in bounds.
1371 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1374 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1375 declaration in TARGET_SOLARIS.
1377 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1379 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1380 The instruction is then expanded explicitly.
1381 (supported_compare): Callable instruction.
1382 (compare): Likewise.
1384 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1387 * gimplify.c (shortcut_cond_r): Don't special case
1388 COND_EXPRs if they have void type on one of their arms.
1390 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1392 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1393 to reduce duplication, and to achieve a slightly more logical order
1396 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1398 PR tree-optimization/49161
1399 * tree-vrp.c (struct case_info): New type.
1400 (compare_case_labels): Sort case_info structs instead of
1401 trees, and not primarily by CASE_LABEL uids but by
1402 label_for_block indexes.
1403 (find_switch_asserts): Put case labels into struct case_info
1404 array instead of TREE_VEC, adjust sorting, compare label_for_block
1405 values instead of CASE_LABELs.
1407 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1409 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1410 ("orndi3_neon"): Likewise.
1411 ("bic<mode>3_neon"): Likewise.
1413 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1415 PR tree-optimization/49038
1416 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1417 Ensure at least one epilogue iteration if required by data
1419 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1420 to mark loops that require peeling for gaps.
1421 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1422 (vect_get_known_peeling_cost): Take peeling for gaps into
1424 (vect_transform_loop): Generate epilogue if required by data
1426 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1427 loop as requiring an epilogue if there are gaps in the end of
1430 2011-05-25 Ian Lance Taylor <iant@google.com>
1432 * godump.c (go_format_type): Output the first field with a usable
1435 2011-05-25 Ian Lance Taylor <iant@google.com>
1437 * godump.c (go_format_type): Check for invalid type names, pointer
1438 target types, and struct field types.
1440 2011-05-25 Jason Merrill <jason@redhat.com>
1442 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1444 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1446 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1448 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1450 * config/i386/i386.md (*movqi_extv_1)): Put back
1451 "register_operand" check in "type" calculation.
1452 (*movqi_extzv_2): Likewise.
1454 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1456 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1458 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1461 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1462 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1463 __divxc3, __divtc3): Wrap definitions in #ifndef.
1465 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1468 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1469 "register_operand" check and replace q_regs_operand with
1470 QIreg_operand in "type" calculation.
1471 (*movqi_extv_1): Likewise.
1472 (*movqi_extzv_2_rex64): Likewise.
1473 (*movqi_extzv_2): Likewise.
1475 * config/i386/predicates.md (QIreg_operand): New.
1477 2011-05-25 Richard Guenther <rguenther@suse.de>
1479 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1480 type-based offset disambiguation, streamline MEM_REF and
1481 TARGET_MEM_REF handling.
1483 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1485 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1486 (bdesc_special_args): Add pause intrinsic.
1488 * config/i386/i386.md (UNSPEC_PAUSE): New.
1491 * config/i386/ia32intrin.h (__pause): Likewise.
1493 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1496 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1498 PR tree-optimization/46728
1499 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1500 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1502 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1504 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1505 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1506 instead of TS_COMMON.
1508 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1510 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1511 LIBGCC2_GNU_PREFIX is defined.
1513 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1514 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1515 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1516 __clz_tab): Define using __N.
1517 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1518 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1519 * target.def (libfunc_gnu_prefix): New hook.
1520 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1521 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1522 * doc/tm.texi: Regenerate.
1523 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1524 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1526 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1527 (init_optabs): Likewise for the bswap libfuncs.
1528 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1530 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1531 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1532 * libgcc-std.ver: Remove.
1533 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1534 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1536 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1537 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1538 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1539 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1540 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1541 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1542 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1543 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1544 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1545 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1547 2011-05-25 Jan Hubicka <jh@suse.cz>
1549 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1550 (lto_output_tree): Use output_record_start.
1551 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1552 (lto_get_pickled_tree): Use input_record_start.
1553 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1554 (lto_value_range_error): New function.
1555 * lto-streamer.h (lto_value_range_error): Declare.
1556 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1557 (lto_output_enum, lto_input_enum): New macros.
1559 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1561 * common.opt (flag_stack_usage_info): New variable.
1562 (-Wstack-usage): New option.
1563 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1564 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1565 <OPT_fstack_usage>: Likewise.
1566 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1567 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1568 of flag_stack_usage.
1569 (emit_library_call_value_1): Likewise.
1570 * explow.c (allocate_dynamic_stack_space): Likewise.
1571 * function.c (instantiate_virtual_regs ): Likewise.
1572 (prepare_function_start): Likewise.
1573 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1574 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1575 * config/arm/arm.c (arm_expand_prologue): Likewise.
1576 (thumb1_expand_prologue): Likewise.
1577 * config/avr/avr.c (expand_prologue): Likewise.
1578 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1579 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1580 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1581 * config/mips/mips.c (mips_expand_prologue): Likewise.
1582 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1583 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1584 * config/s390/s390.c (s390_emit_prologue): Likewise.
1585 * config/sh/sh.c (sh_expand_prologue): Likewise.
1586 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1587 * config/spu/spu.c (spu_expand_prologue): Likewise.
1589 2011-05-25 Richard Guenther <rguenther@suse.de>
1591 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1592 (gimple_canonical_types_compatible_p): Likewise.
1594 2011-05-25 Jan Hubicka <jh@suse.cz>
1597 * ipa.c (function_and_variable_visibility): Only add to same
1598 comdat group list if DECL_ONE_ONLY.
1600 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1602 PR rtl-optimization/49014
1603 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1605 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1608 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1610 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1612 PR rtl-optimization/48757
1613 * ira-build.c (loop_with_eh_edge_p): Rename to
1614 loop_with_complex_edge_p, check edges on complexity, make function
1616 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1619 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1621 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1622 force flag_ira_share_save_slots to 0.
1624 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1626 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1627 (vt_initialize): Set PROLOGUE_BB unconditionally.
1628 Add block comment about CFA_BASE_RTX machinery.
1629 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1630 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1632 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1635 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1636 parsing of syntax error in ObjC instance variable lists. In
1637 particular, avoid an infinite loop if there is a stray ']'.
1638 Updated error message.
1640 2011-05-24 Ian Lance Taylor <iant@google.com>
1642 * godump.c (go_define): Don't accept a string immediately after
1645 2011-05-24 Ian Lance Taylor <iant@google.com>
1647 * godump.c (struct godump_container): Add invalid_hash field.
1648 (go_format_type): Return false if type is found in invalid_hash.
1649 (go_output_typedef): Add invalid type to invalid_hash.
1650 (go_finish): Create and delete invalid_hash.
1652 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1654 PR tree-optimization/46728
1655 * tree-ssa-math-opts.c (powi_table): New.
1656 (powi_lookup_cost): New.
1658 (powi_as_mults_1): New.
1659 (powi_as_mults): New.
1660 (gimple_expand_builtin_powi): New.
1661 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1662 (gate_cse_sincos): Remove sincos/cexp restriction.
1664 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1667 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1669 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1670 * mips-tdump.c: Likewise.
1672 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1675 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1676 add -mno-XXX. Handle FMA.
1678 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1680 PR rtl-optimization/48633
1681 * ira-build.c (loop_with_eh_edge_p): New function.
1682 (mark_loops_for_removal): Use it.
1684 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1686 PR rtl-optimization/48971
1687 * ira.c (setup_pressure_classes): Don't check register move cost
1688 for classes with one registers. Don't add pressure class if there
1689 is a pressure class with the same available hard registers.
1690 Check contains_reg_of_mode. Fix a typo in collecting
1691 temp_hard_regset. Ignore hard registers not belonging to a class.
1693 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1696 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1698 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1699 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1701 PR gcov-profile/48845
1702 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1704 2011-05-24 Richard Guenther <rguenther@suse.de>
1706 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1707 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1708 (gimple_types_compatible_p_1): Adjust.
1709 (iterative_hash_canonical_type): Do not bother about complete vs.
1711 (gimple_canonical_types_compatible_p): Likewise.
1713 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1715 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1717 2011-05-24 Richard Guenther <rguenther@suse.de>
1720 * gimple.c (gimple_register_canonical_type): Revert
1722 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1723 does not for a tree for the case where it matters. Cache
1724 pointer-type alias-sets.
1726 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1728 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1729 (OBJS): Remove options.o, opts-common.o and prefix.o.
1730 (OBJS-libcommon-target): New.
1731 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1732 (BACKEND): Include libcommon-target.a.
1733 (MOSTLYCLEANFILES): Include libcommon-target.a.
1734 (libcommon-target.a): New.
1735 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1738 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1740 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1741 parts of output shared with the driver.
1742 * optc-gen.awk: Don't generate parts of output not shared with the
1744 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1745 * doc/options.texi (SourcerInclude): Mention options-save.c.
1746 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1747 (OBJS): Add options-save.o.
1748 (options-save.c, options-save.o): New.
1749 (options.o): Update dependencies.
1750 (gcc-options.o): Remove.
1751 (mostlyclean): Remove options-save.c.
1753 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1756 * dbxout.c: Include cgraph.h.
1757 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1758 and without value expr, return NULL if no varpool node exists for
1759 it or if it is not needed.
1760 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1763 * c-decl.c (start_decl): Convert expr to void_type_node.
1765 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1767 PR rtl-optimization/48826
1768 * emit-rtl.c (try_split): When splitting a call that is followed
1769 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1771 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1773 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1774 parameters passed in memory prefer using DECL_INCOMING_RTL over
1775 the pseudos it will be copied into.
1777 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1780 * config/i386/i386.c (ix86_option_override_internal): Save the
1781 initial options after checking vzeroupper.
1783 2011-05-23 David Li <davidxl@google.com>
1785 PR tree-optimization/48988
1786 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1787 Initialize has_valid_pred for each pred chain.
1789 2011-05-23 Richard Guenther <rguenther@suse.de>
1791 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1792 (iterative_hash_gimple_type): Always hash type names.
1794 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1796 * c-typeck.c (build_function_call_vec): Tweak call to
1797 check_function_arguments.
1799 2011-05-23 Richard Guenther <rguenther@suse.de>
1801 PR tree-optimization/49115
1802 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1803 is not necessarily carried out, do not claim it kills the ref.
1804 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1806 2011-05-23 Richard Guenther <rguenther@suse.de>
1809 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1810 what pointer types we accept for folding.
1812 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1814 * gthr-gnat.c: Remove.
1815 * gthr-gnat.h: Remove.
1816 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1817 * config/t-freebsd (LIB2ADDEH): Likewise.
1818 * config/t-linux (LIB2ADDEH): Likewise.
1819 * config/t-sol2 (LIB2ADDEH): Likewise.
1820 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1821 * configure.ac (target_thread_file): Remove gnat handling.
1822 * configure: Regenerate.
1823 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1825 2011-05-23 Tristan Gingold <gingold@adacore.com>
1826 Eric Botcazou <ebotcazou@adacore.com>
1828 * gcov.c (create_file_names): If no object directory is specified,
1829 keep the directory of the file.
1831 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1833 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1834 * configure: Regenerate.
1836 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1839 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1840 failed and the comparison has a single bit signed type, use
1841 constm1_rtx instead of const1_rtx for true value.
1842 (do_store_flag): If ops->type is single bit signed type, disable
1843 signel bit test optimization and pass -1 instead of 1 as last
1844 parameter to emit_store_flag_force.
1846 2011-05-23 Tom de Vries <tom@codesourcery.com>
1849 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1851 (infer_loop_bounds_from_undefined): Use new function.
1853 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1855 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1856 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1857 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1859 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1861 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1863 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1864 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1867 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1869 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1871 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1873 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1874 UNSPEC_MOVE_PIC pattern.
1876 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1878 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1879 (sparc-*-rtems*): Likewise.
1880 (sparc64-*-elf*): Likewise.
1881 (sparc64-*-rtems*): Likewise.
1882 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1883 * config/sparc/t-crtin: New file.
1884 * config/sparc/t-sol2 (crti.o): Delete rule.
1886 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1887 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1888 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1889 (ENDFILE_SPEC): Add crtn.o.
1891 2011-05-22 Tom de Vries <tom@codesourcery.com>
1894 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1895 CODE_CONTAINS_STRUCT (TS_COMMON).
1897 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1900 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1901 only after deciding which mode to use.
1903 2011-05-22 Tom de Vries <tom@codesourcery.com>
1906 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1907 for call to get_shiftadd_cost.
1909 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1912 * config/i386/cpuid.h (bit_MMXEXT): New define.
1914 2011-05-22 Nick Clifton <nickc@redhat.com>
1916 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1917 initialisation of non-existant args[2] element. Use args[] array
1918 not arg[] array to pass arguments to build_function_type_list.
1920 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1922 PR tree-optimization/49087
1923 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1925 2011-05-21 Jason Merrill <jason@redhat.com>
1928 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1929 static storage duration.
1931 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1933 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1936 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1938 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1939 false if there are call-saved registers here...
1940 (sparc_can_use_return_insn_p): ...but here instead.
1941 (save_or_restore_regs): Fix thinko.
1942 (sparc_expand_prologue): Use current_function_is_leaf.
1943 (sparc_frame_pointer_required): Likewise.
1945 2011-05-21 Nick Clifton <nickc@redhat.com>
1948 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1950 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1952 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1953 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1955 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1957 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1958 * optc-gen.awk: Move common code to opt-read.awk.
1959 * opth-gen.awk: Likewise.
1960 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1962 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1964 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1966 2011-05-20 Tom de Vries <tom@codesourcery.com>
1969 * tree-ssa-loop-ivopts.c: Include expmed.h.
1970 (get_shiftadd_cost): New function.
1971 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1973 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1976 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1977 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1979 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1981 * Makefile.in: Update comment referring to $(OBJS-common).
1983 2011-05-20 Ian Lance Taylor <iant@google.com>
1985 * godump.c (go_output_typedef): Put enum constants in the macro
1986 hash table to avoid duplicate Go const definitions.
1988 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1990 * Makefile.in (LIBDEPS): Add libcommon.a.
1992 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1993 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1994 pretty-print.o and version.o.
1995 (OBJS-libcommon): New.
1996 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1997 (BACKEND): Add libcommon.a.
1998 (MOSTLYCLEANFILES): Likewise.
2000 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2001 (cpp$(exeext)): Likewise.
2002 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2003 pretty-print.o and input.o.
2004 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2005 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2007 (mips-tfile): Don't explicitly use version.o.
2008 (mips-tdump): Likewise.
2009 (gcov.o): Depend on $(DIAGNOSTIC_H).
2010 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2011 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2012 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2013 * gcov-dump.c: Include intl.h and diagnostic.h.
2014 (main): Initialize diagnostics.
2015 * gcov.c: Include diagnostic.h.
2017 (main): Initialize diagnostics.
2018 * lto-wrapper.c: Include diagnostic.h.
2019 (main): Initialize diagnostics.
2021 2011-05-20 Michael Matz <matz@suse.de>
2023 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2025 2011-05-20 Michael Matz <matz@suse.de>
2026 Richard Guenther <rguenther@suse.de>
2028 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2029 use lto_streamer_cache_append directly instead of returning a VEC.
2030 (preload_common_node): Remove.
2031 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2033 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2035 2011-05-20 Richard Guenther <rguenther@suse.de>
2037 PR tree-optimization/49079
2038 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2039 MEM_REFs correctly for the trailing array access detection.
2040 Special case constants the same way as decls for overall size
2043 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2045 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2048 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2050 PR tree-optimization/49073
2051 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2052 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2053 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2055 2011-05-20 Richard Guenther <rguenther@suse.de>
2058 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2059 of pointer types the same way the middle-end does.
2061 2011-05-20 Richard Guenther <rguenther@suse.de>
2063 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2064 or pointer-to chains. Delay all fixup to uniquify_nodes.
2066 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2068 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2069 (fma4_fmaddsub): Likewise
2071 2011-05-19 Jan Hubicka <jh@suse.cz>
2073 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2074 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2075 (type_pair_cache): New static var.
2076 (lookup_type_pair): Use fixed sized custom hash; make inline.
2077 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2078 calls of lookup_type_pair.
2079 (print_gimple_types_stats): Remove cache stats.
2080 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2083 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2085 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2086 when TARGET_RDRND is active.
2087 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2088 Generate dummy SImode target register when target is NULL.
2090 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2092 * config/arm/arm-fpus.def: New.
2093 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2095 * config/arm/arm-tables.opt: Regenerate.
2096 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2097 (arm_option_override): Don't decode FPU name to string here.
2098 * config/arm/arm.opt (mfpu=): Use Enum.
2099 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2100 Update dependencies.
2102 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2104 * collect2.c: Include diagnostic.h.
2105 (fatal_perror, fatal, error, fancy_abort): Remove.
2106 (main): Set progname. Call xmalloc_set_program_name and
2107 diagnostic_initialize.
2108 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2109 scan_libraries, resolve_lib_name): Call fatal_error instead of
2110 fatal and fatal_perror.
2111 * collect2.h (error, fatal, fatal_perror): Don't declare.
2112 * tlink.c: Include diagnostic-core.h.
2113 (recompile_files): Call fatal_error instead of fatal_perror.
2114 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2115 pretty-print.o and input.o.
2116 (collect2.o, tlink.o): Update dependencies.
2118 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2120 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2122 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2125 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2126 COMDAT group syntax, both SPARC and x86 variants.
2127 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2128 * configure: Regenerate.
2129 * config/sol2.h (TARGET_SOLARIS): Define.
2130 (PUSHSECTION_FORMAT): Remove.
2131 (SECTION_NAME_FORMAT): Define.
2132 * config/sol2.c: Include hashtab.h.
2133 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2134 expansion, using SECTION_NAME_FORMAT.
2135 (solaris_comdat_htab): New variable.
2136 (struct comdat_entry): Define.
2137 (comdat_hash): New function.
2138 (comdat_eq): New function.
2139 (solaris_elf_asm_comdat_section): New function.
2140 (solaris_define_comdat_signature): New function.
2141 (solaris_code_end): New function.
2142 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2143 (solaris_code_end): Declare.
2144 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2145 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2147 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2148 Remove ATTRIBUTE_UNUSED.
2149 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2150 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2151 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2152 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2153 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2154 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2155 (PUSHSECTION_FORMAT): Remove.
2156 (SECTION_NAME_FORMAT): Redefine.
2158 2011-05-19 Kai Tietz <ktietz@redhat.com>
2160 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2161 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2162 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2164 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2165 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2167 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2169 2011-05-19 Richard Guenther <rguenther@suse.de>
2172 * tree-object-size.c (addr_object_size): If the pointed-to
2173 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2175 2011-05-19 Richard Guenther <rguenther@suse.de>
2177 * gimple.c (gimple_types_compatible_p_1): Compare names of
2178 the types themselves.
2179 (iterative_hash_gimple_type): And hash them that way.
2180 (gimple_register_type_1): If we register a main variant properly
2181 initialize the leader to ourselves.
2183 2011-05-19 Tom de Vries <tom@codesourcery.com>
2186 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2187 get_loop_invariant_expr_id.
2188 (get_loop_invariant_expr_id): Use get_expr_id.
2189 (parm_decl_cost): New function.
2190 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2191 Improve bound cost estimation. Use different inv_expr_id for elim and
2194 2011-05-19 Tom de Vries <tom@codesourcery.com>
2197 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2198 cost_base.cost == 0.
2200 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2203 * config/i386/sse.md
2204 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2207 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2209 PR tree-optimization/49039
2210 * tree-vrp.c (extract_range_from_binary_expr): For
2211 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2212 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2214 2011-05-18 Tom de Vries <tom@codesourcery.com>
2217 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2219 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2221 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2222 (*tls_global_dynamic_64): Ditto.
2223 (*tls_local_dynamic_base_32_gnu): Ditto.
2224 (*tls_local_dynamic_base_64): Ditto.
2225 (tls_initial_exec_64_sun): Ditto.
2227 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2229 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2230 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2232 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2233 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2234 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2235 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2236 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2237 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2238 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2240 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2242 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2243 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2244 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2245 target_thread_pointer, arm_structure_size_boundary, struct
2246 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2247 struct abi_name, arm_all_abis): Remove.
2248 (arm_option_override) Don't process most enumerated option values here.
2249 Don't process target_fpe_name here. Work with integer not string for
2250 structure size boundary; use separate diagnostics for each case.
2251 * config/arm/arm.h (enum float_abi_type, enum
2252 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2254 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2255 arm_structure_size_boundary): Remove.
2256 * config/arm/arm.opt (mabi=): Use Enum and Init.
2257 (arm_abi_type): New Enum and EnumValue entries.
2258 (mfloat-abi=): Use Enum and Init.
2259 (float_abi_type): New Enum and EnumValue entries.
2260 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2261 (mfp16-format=): Use Enum and Init.
2262 (arm_fp16_format_type): New Enum and EnumValue entries.
2263 (mstructure-size-boundary=): Use UInteger and Init.
2264 (mtp=): Use Enum and Init.
2265 (arm_tp_type): New Enum and EnumValue entries.
2267 2011-05-18 Richard Guenther <rguenther@suse.de>
2269 PR tree-optimization/49018
2270 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2271 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2272 gimple_has_side_effects.
2274 2011-05-18 Richard Guenther <rguenther@suse.de>
2276 * gimple.c (gimple_register_type_1): New function, split out from ...
2277 (gimple_register_type): ... here. Avoid infinite recursion.
2279 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2281 PR tree-optimization/41881
2282 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2283 reduction_chains along with a macro for its access.
2284 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2285 (destroy_loop_vec_info): Free reduction chains.
2286 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2287 (vect_is_slp_reduction): New function.
2288 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2289 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2290 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2291 definition types for reduction chains.
2292 (vect_supported_load_permutation_p): Don't allow permutations for
2294 (vect_analyze_slp_instance): Support reduction chains.
2295 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2296 (vect_get_constant_vectors): Handle reduction chains.
2297 (vect_schedule_slp_instance): Mark the first statement of the
2298 reduction chain as reduction.
2300 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2302 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2303 names for group elements access.
2304 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2305 reduction chains as well. Remove data reference and interleaving
2306 related words from the fields names.
2307 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2309 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2310 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2311 vect_update_interleaving_chain, vect_same_range_drs,
2312 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2313 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2314 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2315 vect_analyze_group_access, vect_analyze_data_ref_access,
2316 vect_create_data_ref_ptr, vect_transform_strided_load,
2317 vect_record_strided_load_vectors): Likewise.
2318 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2319 vect_model_load_cost, vectorizable_store, vectorizable_load,
2320 vect_remove_stores, new_stmt_vec_info): Likewise.
2321 * tree-vect-slp.c (vect_build_slp_tree,
2322 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2324 2011-05-18 Richard Guenther <rguenther@suse.de>
2327 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2328 operand verification.
2329 (verify_gimple_assign_binary): Likewise.
2330 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2331 to non-1-precision BOOLEAN_TYPEs.
2333 2011-05-18 Tom de Vries <tom@codesourcery.com>
2336 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2338 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2340 PR tree-optimization/49000
2341 * tree-ssa.c (execute_update_addresses_taken): Call
2342 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2343 be rewritten and decl has been marked for renaming, reset
2346 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2348 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2349 enum_opts_set when testing if attributes have set -mfpmath=.
2351 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2353 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2355 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2357 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2359 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2360 id.transform_lang_insert_block with NULL.
2362 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2364 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2365 (output_fp_compare): Change args 3 and 4 to bool.
2366 (ix86_expand_call): Change arg 6 to bool.
2367 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2368 (ix86_attr_length_vex_default): Change arg 3 to bool.
2369 * config/i386/i386.md: Update all uses.
2370 * config/i386/i386.c: Ditto.
2371 (ix86_flags_dependent): Change return type to bool.
2373 2011-05-17 Richard Guenther <rguenther@suse.de>
2375 * gimple.c (type_hash_pair_compare): Fix comparison.
2377 2011-05-17 Richard Guenther <rguenther@suse.de>
2379 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2380 case some more, fix final hash value of the non-singleton case.
2382 2011-05-17 Richard Guenther <rguenther@suse.de>
2386 2011-05-16 Richard Guenther <rguenther@suse.de>
2388 * gimple.c (gimple_types_compatible_p_1): Use names of the
2389 type itself, not its main variant.
2390 (iterative_hash_gimple_type): Likewise.
2392 2011-05-17 Richard Guenther <rguenther@suse.de>
2394 * gimple.c (gimple_register_canonical_type): Use the main-variant
2395 leader for computing the canonical type.
2397 2011-05-17 Nick Clifton <nickc@redhat.com>
2399 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2402 * config/rx/rx.md: Add peephole to remove redundant extensions
2404 (bitset_in_memory): Use rx_restricted_mem_operand.
2405 (bitinvert_in_memory): Likewise.
2406 (bitclr_in_memory): Likewise.
2408 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2409 Nick Clifton <nickc@redhat.com>
2411 * config/rx/rx.md: Add peepholes to match a register move followed
2412 by a comparison of the moved register. Replace these with an
2413 addition of zero that does both actions in one instruction.
2415 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2418 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2419 predicate to allow CONST_INT.
2420 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2422 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2424 * opts-common.c (opt_enum_arg_to_value): New.
2425 * opts.h (opt_enum_arg_to_value): Declare.
2426 * config/i386/i386.opt (fpmath): Remove.
2427 (mfpmath=): Use Enum, Init and Save.
2428 (fpmath_unit): New Enum and EnumValue entries.
2429 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2430 name for function fpmath state.
2431 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2432 * config/i386/i386.c: Include diagnostic.h.
2433 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2434 (ix86_target_string): Take enum fpmath_unit value instead of string.
2435 (ix86_debug_options): Update call to ix86_target_string.
2436 (ix86_option_override_internal): Don't process fpmath strings here.
2437 (x86_function_specific_save, ix86_function_specific_restore):
2438 Don't handle fpmath state specially.
2439 (ix86_function_specific_print): Pass fpmath state to
2440 ix86_target_string instead of printing in this function.
2441 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2442 Handle enum attributes.
2443 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2444 (ix86_valid_target_attribute_tree): Update option_strings
2445 handling. Handle fpmath as enum option.
2446 (ix86_can_inline_p): Update field names for function fpmath state.
2447 (ix86_expand_builtin): Update call to ix86_target_string.
2448 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2449 (ix86_fpmath): Remove.
2450 * config/i386/t-i386 (i386.o): Update dependencies.
2452 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2454 PR preprocessor/48677
2455 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2456 from decoded_options[0], not from itself.
2458 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2460 * config/i386/constraints.md (z): New constraint.
2461 * config/i386/i386.c (c): New mode attribute.
2462 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2463 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2464 constraint for operand 0.
2465 (*call_vzeroupper): Ditto.
2466 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2467 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2468 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2469 Use "lzm" constraint for operand 0.
2470 (*call_pop_vzeroupper): Ditto.
2471 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2472 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2473 constraint for operand 0.
2474 (*sibcall_vzeroupper): Ditto.
2475 (*sibcall_rex64_ms_sysv): Ditto.
2476 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2477 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2478 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2479 (*sibcall_pop_vzeroupper): Ditto.
2480 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2481 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2482 mode iterator. Use "<c>zm" constraint for operand 1.
2483 (*call_value_vzeroupper): Ditto.
2484 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2486 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2487 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2488 *call_value_pop_1. Use "lzm" constraint for operand 1.
2489 (*call_value_pop_vzeroupper): Ditto.
2490 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2491 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2492 mode iterator. Use "Uz" constraint for operand 1.
2493 (*sibcall_value_vzeroupper): Ditto.
2494 (*sibcall_value_rex64_ms_sysv): Ditto.
2495 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2496 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2497 constraint for operand 1.
2498 (*sibcall_value_pop_vzeroupper): Ditto.
2499 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2500 and "z" constraint for operand 2.
2501 (*tls_global_dynamic_32_gnu): Ditto.
2502 (*tls_local_dynamic_base_32_gnu): Ditto.
2503 (*tls_local_dynamic_base_64): Ditto.
2504 (*tls_local_dynamic_32_once): Ditto.
2505 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2507 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2509 2011-05-16 Richard Guenther <rguenther@suse.de>
2511 * gimple.c (gimple_types_compatible_p_1): Use names of the
2512 type itself, not its main variant.
2513 (iterative_hash_gimple_type): Likewise.
2515 2011-05-16 Richard Guenther <rguenther@suse.de>
2517 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2518 always visit pointer target and function result and argument types.
2520 2011-05-16 Jason Merrill <jason@redhat.com>
2523 * tree-inline.c (copy_statement_list): Put back recursion.
2525 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2529 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2530 * config/avr/avr.md ("*ior<mode>qi.byte0",
2531 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2533 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2536 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2537 register is needed for a function argument.
2539 2011-05-16 Richard Guenther <rguenther@suse.de>
2541 * gimple.c (struct type_hash_pair): New type.
2542 (type_hash_pair_compare): New function.
2543 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2545 2011-05-16 Revital Eres <revital.eres@linaro.org>
2547 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2549 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2551 * config/i386/i386.md (floating point move splitters): Fix
2552 usage of standard_80387_constant_p.
2553 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2555 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2557 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2559 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2561 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2562 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2563 (tree_ssa_lim_finalize): Likewise.
2565 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2567 * config/i386/constraint.md (Yd, Yx): New register constraints.
2568 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2569 Yd conditional register constraint.
2570 (*movtf_internal): Use standard_sse_constant_opcode.
2571 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2572 Yx conditional register constraint.
2573 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2574 Yd conditional register constraint. Use standard_sse_constant_p to
2575 check for valid SSE constants and call standard_sse_constant_opcode to
2577 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2578 constants and call standard_sse_constant_opcode to output SSE insn.
2579 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2580 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2581 optimize_size is set.
2582 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2584 2011-05-14 Tobias Burnus <burnus@net-b.de>
2586 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2588 2011-05-13 Martin Jambor <mjambor@suse.cz>
2590 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2591 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2592 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2593 (evaluate_conditions_for_ipcp_clone): Removed.
2594 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2595 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2596 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2598 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2600 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2601 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2602 lieu of MAY_HAVE_DEBUG_STMTS.
2603 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2604 debug statements if !MAY_HAVE_DEBUG_STMTS.
2606 2011-05-13 Martin Thuresson <martint@google.com>
2608 PR gcov-profile/47793
2609 * libgcov.c (gcov_exit): Support relative profile paths.
2610 * doc/invoke.texi (-fprofile-dir): Update for above change.
2612 2011-05-13 Richard Guenther <rguenther@suse.de>
2614 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2615 type-pair caching, do not compare hashes.
2617 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2620 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2621 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2623 2011-05-13 Kai Tietz <ktietz@redhat.com>
2625 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2626 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2627 compatible type for TRUTH_NOT_EXPR.
2629 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2631 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2632 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2633 can_create_pseudo_p ().
2635 2011-05-13 Richard Guenther <rguenther@suse.de>
2638 * gimple.c (iterative_hash_gimple_type): Revert change in
2639 pointer target and function result and argument hashing.
2641 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2643 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2644 (*movxf_internal_nointeger): Ditto.
2645 (*movdf_internal_rex64): Ditto.
2646 (*movdf_internal): Ditto.
2647 (*movdf_internal_nointeger): Ditto.
2648 (*movsf_internal): Ditto.
2649 (sincos splitters): Use can_create_pseudo ().
2651 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2653 * config/i386/i386-opts.h: New.
2654 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2655 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2656 ix86_section_threshold): Remove.
2657 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2658 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2660 (ix86_option_override_internal): Don't decode strings for options
2661 other than -march=, -mtune= and -mfpmath=. Don't allow for
2662 __attribute__ uses in remaining diagnostics for options with
2663 string arguments. Don't check for integer arguments being negative.
2664 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2665 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2666 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2667 ix86_branch_cost, ix86_section_threshold): Remove.
2668 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2670 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2672 (masm=): Use Enum and Init.
2673 (asm_dialect): New Enum and EnumValue entries.
2674 (mbranch-cost=): Use UInteger.
2675 (mlarge-data-threshold=): Use UInteger and Init.
2676 (mcmodel=): Use Enum and Init.
2677 (cmodel): New Enum and EnumValue entries.
2678 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2679 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2680 mregparm=): Use UInteger.
2681 (mstringop-strategy=): Use Enum and Init.
2682 (stringop_alg): New Enum and EnumValue entries.
2683 (mtls-dialect=): Use Enum and Init.
2684 (tls_dialect): New Enum and EnumValue entries.
2685 (mabi=): Use Enum and Init.
2686 (calling_abi): New Enum and EnumValue entries.
2687 (mveclibabi=): Use Enum and Init.
2688 (ix86_veclibabi): New Enum and EnumValue entries.
2690 2011-05-13 Nick Clifton <nickc@redhat.com>
2692 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2693 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2695 2011-05-13 Kai Tietz <ktietz@redhat.com>
2698 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2699 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2700 (gimple_boolify): Check for cast for boolean_type_node instead for
2703 2011-05-13 Richard Guenther <rguenther@suse.de>
2705 PR tree-optimization/48172
2706 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2707 multiplying by number of iterations for equal step.
2708 (vect_create_cond_for_alias_checks): Likewise.
2710 2011-05-13 Andreas Schwab <schwab@redhat.com>
2712 * configure.ac: Use AS_HELP_STRING throughout.
2713 * configure: Regenerate.
2715 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2717 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2718 (ix86_emit_restore_regs_using_mov): Likewise.
2719 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2721 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2723 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2724 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2725 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2726 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2727 RTX_OK_FOR_OLO10_P): ...here.
2728 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2731 2011-05-12 Kai Tietz <ktietz@redhat.com>
2733 * gimplify.c (gimple_boolify): Re-boolify expression
2734 arguments even if expression type is of kind BOOLEAN_TYPE.
2735 (gimplify_boolean_expr): Removed.
2736 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2737 and XOR. Additional take care that we keep expression's type.
2738 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2739 of TRUTH_AND|OR|XOR_EXPR.
2741 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2743 PR tree-optimization/48975
2744 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2745 on all bbs here and free and clear ifc_bbs at the end.
2747 2011-05-12 Richard Guenther <rguenther@suse.de>
2749 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2750 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2751 until after simple checks.
2752 (gimple_types_compatible_p): Likewise.
2753 (iterative_hash_gimple_type): Always hash pointer targets
2754 and function return and argument types.
2755 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2756 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2757 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2758 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2759 completely in the simple compare section.
2760 (gimple_register_canonical_type): Query the cache again after
2763 2011-05-12 Richard Guenther <rguenther@suse.de>
2765 PR tree-optimization/48172
2766 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2767 the number of iterations from the segment size calculation.
2768 (vect_create_cond_for_alias_checks): Adjust.
2770 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2773 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2774 if validate_subreg fails.
2776 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2778 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2779 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2782 2011-05-12 DJ Delorie <dj@redhat.com>
2784 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2785 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2786 created builtin into rx_builtins array.
2787 (rx_builtin_decl): New function.
2788 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2790 2011-05-12 DJ Delorie <dj@redhat.com>
2791 Nick Clifton <nickc@redhat.com>
2793 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2794 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2795 (rx_is_legitimate_address): Add pre-decrement and post-increment
2796 addressing in HImode and QImode. Fix test for out of range
2798 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2799 (rx_align_for_label): Test label before extracting its usage count.
2800 (rx_adjust_insn_lengths): Fix selection of insn codes.
2801 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2803 2011-05-11 Jason Merrill <jason@redhat.com>
2805 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2807 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2809 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2810 reindent the subsequent block.
2812 2011-05-11 Satoru Takabayashi <satorux@google.com>
2813 Paul Pluzhnikov <ppluzhnikov@google.com>
2815 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2816 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2817 * config.in: Add LINKER_HASH_STYLE.
2818 * configure.ac: Add --with-linker-hash-style.
2819 * configure: Regenerate.
2821 2011-05-11 Richard Guenther <rguenther@suse.de>
2824 * gimple.c (iterative_hash_canonical_type): Fix typo.
2826 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2828 * config/i386/i386.c (legitimize_tls_address)
2829 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2830 expanders directly for TARGET_GNU2_TLS. Determine pic and
2831 __tls_get_addr symbol reference here. Update call to
2832 gen_tls_global_dynamic_{32,64} for added arguments.
2833 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2834 expanders directly for TARGET_GNU2_TLS. Determine
2835 __tls_get_addr symbol reference here. Update call to
2836 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2837 unique UNSPEC REG_EQUIV to libcall block.
2838 (ix86_tls_get_addr): Declare static.
2839 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2840 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2841 Do not determine pic and __tls_get_addr symbol reference here. Do not
2842 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2843 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2844 (tls_global_dynamic_64): Add operand 2. Do not determine
2845 __tls_get_addr symbol reference here. Do not call
2846 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2847 (tls_local_dynamic_base64): Ditto for operand 1.
2849 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2851 * function.c (expand_function_start): Initialize stack_check_probe_note
2852 only if the generic stack checking mechanism is used.
2854 2011-05-11 Richard Guenther <rguenther@suse.de>
2856 PR tree-optimization/15256
2857 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2858 (A & B) | C, combine (A op CST1) op CST2.
2859 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2860 visit assigns that have uses.
2862 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2864 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2865 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2866 (unpack_ts_type_common_value_fields): ...this. Update comment.
2867 (unpack_value_fields): Adjust for renaming.
2868 (lto_input_ts_type_tree_pointers): Split into...
2869 (lto_input_ts_type_common_tree_pointer): ...this and...
2870 (lto_input_ts_type_non_common_tree_pointers): ...this.
2871 (lto_input_tree_pointers): Adjust for above split.
2872 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2873 (pack_ts_type_common_value_fields): ...this. Update comment.
2874 (lto_output_ts_type_tree_pointers): Split into...
2875 (lto_output_ts_type_common_tree_pointers): ...this and...
2876 (lto_output_ts_type_non_common_tree_pointers): ...this.
2877 (lto_output_tree_pointers): Adjust for above split.
2878 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2879 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2880 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2881 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2883 (struct tree_type): Split into...
2884 (struct tree_type_common: ...this and...
2885 (struct tree_type_with_lang_specific): ...this and...
2886 (struct tree_type_non_common): ...this. Adjust accessor macros
2888 (TYPE_VALUES_RAW): Define.
2889 (union tree_node): Update for above changes.
2890 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2892 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2893 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2894 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2895 * treestructu.def (TS_TYPE): Remove.
2896 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2899 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2902 * tree-ssa.c (reset_debug_uses): New function.
2903 * tree-flow.h (reset_debug_uses): New prototype.
2904 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2905 * tree-loop-distribution.c (generate_loops_for_partition): Call
2906 reset_debug_uses on the stmts that will be removed. Keep around
2907 all debug stmts, don't count them as bits in partition bitmap.
2908 (generate_builtin): Don't count debug stmts or labels as bits in
2911 2011-05-11 Richard Guenther <rguenther@suse.de>
2913 * gimple.c (gimple_type_hash_1): Merge with ...
2914 (gimple_type_hash): ... this.
2915 (gtc_visit): Remove mode parameter and simplify accordingly.
2916 (gimple_types_compatible_p_1): Likewise.
2917 (gimple_types_compatible_p): Likewise.
2918 (iterative_hash_gimple_type): Likewise.
2920 (gimple_type_eq): Adjust.
2922 2011-05-11 Revital Eres <revital.eres@linaro.org>
2924 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2925 enters the branch create an anti edge in the opposite direction
2926 to prevent the creation of reg-moves.
2927 * modulo-sched.c: Adjust comment to reflect the fact we are
2928 scheduling closing branch.
2929 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2930 (stage_count): New field in struct partial_schedule.
2931 (calculate_stage_count): New function.
2932 (normalize_sched_times): Rename to reset_sched_times and handle
2933 incrementing the sched time of the nodes by a constant value
2934 passed as parameter.
2935 (duplicate_insns_of_cycles): Skip closing branch.
2936 (sms_schedule_by_order): Schedule closing branch.
2937 (ps_insn_find_column): Handle closing branch.
2938 (sms_schedule): Call reset_sched_times and adjust the code to
2939 support scheduling of the closing branch.
2940 (ps_insert_empty_row): Update calls to normalize_sched_times
2941 and rotate_partial_schedule functions.
2943 2011-05-11 Richard Guenther <rguenther@suse.de>
2946 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2948 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2950 * opts.c (finish_options): Move warning settings from process_options.
2951 * toplev.c (process_options): Move warning settings to finish_options.
2953 2011-05-11 Richard Guenther <rguenther@suse.de>
2955 PR tree-optimization/18041
2956 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2957 (simplify_bitwise_binary): ... this. Handle operand conversions
2958 by applying them to the result instead.
2959 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2961 2011-05-11 Richard Guenther <rguenther@suse.de>
2963 * gimple.c (gimple_canonical_types_compatible_p): Split out
2964 from gimple_types_compatible_p and friends. Do not recurse
2965 to pointed-to types.
2966 (gimple_canonical_type_eq): Use it.
2967 (iterative_hash_canonical_type): Split out from
2968 iterative_hash_gimple_type and friends. Do not recurse
2969 to pointed-to types.
2970 (gimple_canonical_type_hash): Use it, allocate the hash here.
2972 2011-05-11 Revital Eres <revital.eres@linaro.org>
2974 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2977 2011-05-11 Revital Eres <revital.eres@linaro.org>
2979 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2980 instead of PREV_INSN.
2982 2011-05-11 Revital Eres <revital.eres@linaro.org>
2984 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2985 * loop-doloop.c (doloop_condition_get): Likewise.
2986 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2988 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2990 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2992 * tree.def (CASE_LABEL_EXPR): Add an operand.
2993 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2995 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2997 * c-decl.c (c_override_global_bindings_to_false): Remove.
2998 (global_bindings_p): Don't check
2999 c_override_global_bindings_to_false.
3000 * c-tree.h (c_override_global_bindings_to_false): Remove.
3001 * c-typeck.c (composite_type): Don't set
3002 c_override_global_bindings_to_false.
3004 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3006 PR target/48857, 48495
3007 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3009 (VSX_MOVE_MODE): Ditto.
3010 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3011 VSX vector types. Add V2DImode.
3012 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3013 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3014 (MODES_TIEABLE_P): Ditto.
3016 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3017 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3019 (init_cumulative_args): Ditto.
3020 (rs6000_function_arg_boundary): Ditto.
3021 (rs6000_function_arg_advance_1): Ditto.
3022 (rs6000_function_arg): Ditto.
3023 (rs6000_function_ok_for_sibcall): Ditto.
3024 (emit_frame_save): Ditto.
3025 (rs6000_function_value): Ditto.
3026 (rs6000_libcall_value): Ditto.
3028 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3030 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3031 i386/darwin-lib.h to $libgcc_tm_file.
3032 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3034 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3036 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3038 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3040 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3041 * config/rs6000/rs6000-tables.opt: New file (generated).
3042 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3043 rs6000/rs6000-tables.opt to extra_options.
3044 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3045 * config/rs6000/rs6000.c (rs6000_select): Remove.
3046 (processor_target_table): Move contents to rs6000-cpus.def.
3047 (darwin_rs6000_override_options): Check
3048 global_options_set.x_rs6000_cpu_index instead of
3049 rs6000_select[1].string.
3050 (rs6000_option_override_internal): Likewise.
3051 (rs6000_handle_option): Don't assert that global structures are in
3052 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3053 (rs6000_default_cpu): New variable.
3054 (rs6000_file_start): Set it instead of local default_cpu. Check
3055 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3056 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3057 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3058 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3059 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3060 rs6000_select): Remove.
3061 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3063 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3064 * config/rs6000/t-rs6000
3065 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3066 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3067 global_options_set.x_rs6000_cpu_index instead of
3068 rs6000_select[1].string.
3069 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3070 global_options_set.x_rs6000_cpu_index instead of
3071 rs6000_select[1].string.
3073 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3075 * config.gcc (libgcc_tm_file): Define instead of including files
3076 from ../../libgcc/config/ in tm_file.
3077 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3078 * configure: Regenerate.
3079 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3080 libgcc_tm.h, cs-libgcc_tm.h): New.
3081 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3082 (clean): Remove libgcc_tm.h.
3083 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3084 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3085 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3087 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3090 * config/avr/avr.c (avr_ret_register): Return unsigned int
3092 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3093 it to avr_libcall_value.
3094 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3096 (avr_expand_binop_builtin): Ditto.
3097 (avr_expand_unop_builtin): Ditto.
3099 2011-05-10 DJ Delorie <dj@redhat.com>
3101 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3102 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3103 * config/rx/rx.c (rx_align_for_label): Add label and
3104 uses_threshold parameters. Do not align when the label is not
3106 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3108 2011-05-10 Richard Guenther <rguenther@suse.de>
3110 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3111 a series of conversions and apply foldings similar to what
3113 (tree_ssa_forward_propagate_single_use_vars): Call it.
3115 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3117 PR tree-optimization/48611
3118 PR tree-optimization/48794
3119 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3120 referenced from RESX or EH_DISPATCH arguments.
3123 * dfp.c (decimal_to_decnumber): Handle conversion from
3124 dconst{1,2,m1,half}.
3126 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3128 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3129 for !flag_prefer_avx128.
3130 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3132 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3134 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3135 (fold_ternary_loc): Use expr_location_or.
3137 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3140 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3141 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3142 Pmode and mem_mode is not VOIDmode.
3144 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3146 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3147 TYPE_QUAL_RESTRICT): Convert to enum.
3149 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3151 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3152 (const_pow2_1_to_8_operand): Ditto.
3153 (const_pow2_1_to_128_operand): Ditto.
3154 (const_pow2_1_to_32768_operand): Ditto.
3155 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3156 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3157 in insn constraint to check integer value of operand 3.
3158 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3160 (PINSR_MODE): New mode iterator.
3161 (sse2p4_1): New mode attribute.
3162 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3163 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3164 iterator. Use const_int_operand instead of
3165 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3166 exact_log2 in insn constraint to check integer value of operand 3.
3168 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3170 * config/i386/sse.md (blendbits): Remove mode attribute.
3171 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3172 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3173 Check integer value of operand 3 in insn constraint.
3175 2011-05-09 Richard Guenther <rguenther@suse.de>
3177 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3179 (lto_symtab_merge): Likewise. Do not register types here.
3180 (lto_symtab_merge_decls_2): Likewise.
3181 (lto_symtab_merge_decls_1): Likewise.
3182 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3183 * gimple.c (enum gtc_mode): Declare.
3184 (gimple_types_compatible_p): Make static.
3186 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3188 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3189 temporary register to match Pmode.
3191 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3193 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3194 and *vec_concatv4si_1_avx.
3196 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3198 PR rtl-optimization/48927
3199 * ira-conflicts.c (commutative_constraint_p): Use
3200 recog_data.alternative_enabled_p to disable alternatives where
3201 "enabled" attribute is false.
3202 (get_dup_num): Ditto.
3203 * ira-lives.c (single_reg_class): Ditto.
3204 (ira_implicitly_set_insn_hard_regs): Ditto.
3206 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3208 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3209 (dataflow_set_preserve_mem_locs): Likewise.
3211 2011-05-09 Philipp Thomas <pth@suse.de>
3213 * config/mep/mep.c (mep_validate_vliw): Syntax description
3214 should not be translated.
3216 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3218 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3219 * config/mips/mips-tables.opt: New file (generated).
3220 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3221 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3222 MIPS_ARCH_OPTION_NATIVE): Define.
3223 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3225 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3226 mips_parse_cpu): Remove.
3227 (mips_cpu_info_from_opt, mips_default_arch): New.
3228 (mips_handle_option): Don't assert that global structures are in
3229 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3230 (mips_option_override): Use new variables and functions to set
3231 state of these options. Use strcmp to check for individual CPU names.
3232 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3234 * config/mips/mips.opt (march=): Use ToLower and Enum.
3235 (mips): Use ToLower, Enum and Var.
3236 (mtune=): Use ToLower and Enum.
3237 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3239 2011-05-08 Jan Hubicka <jh@suse.cz>
3241 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3242 Arrange type pairs to be UID ordered.
3243 (gimple_lookup_type_leader): Make inline.
3245 2011-05-09 Nick Clifton <nickc@redhat.com>
3248 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3252 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3255 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3257 * combine.c (simplify_comparison): Abstract out parts into...
3258 (simplify_compare_const): ... new function.
3259 (try_combine): Generalize parallel arithmetic/compare combining
3260 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3262 2011-05-08 Jan Hubicka <jh@suse.cz>
3264 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3265 (cgraph_create_virtual_clone): Call hooks once virtual clone
3267 * cgraph.h (cgraph_clone_node): Update prototype.
3268 * ipa-cp.c (ipcp_estimate_growth): Use
3269 estimate_ipcp_clone_size_and_time.
3270 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3271 * lto-cgraph.c (input_node): Update.
3272 * ipa-inline.c (recursive_inlining): Update.
3273 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3274 (evaluate_conditions_for_known_args): Break out from ...
3275 (evaluate_conditions_for_edge): ... here.
3276 (evaluate_conditions_for_ipcp_clone): New function.
3277 (inline_node_duplication_hook): Update clone summary based
3279 (estimate_callee_size_and_time): Rename to ...
3280 (estimate_node_size_and_time): take NODE instead of EDGE;
3281 take POSSIBLE_TRUTHS as argument.
3282 (estimate_callee_size_and_time): Update.
3283 (estimate_ipcp_clone_size_and_time): New function.
3284 (do_estimate_edge_time): Update.
3286 2011-05-08 Richard Guenther <rguenther@suse.de>
3290 * expmed.c (expand_shift_1): Compute adjusted constant shift
3293 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3295 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3297 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3299 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3301 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3303 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3305 2011-05-07 Jan Hubicka <jh@suse.cz>
3307 * ipa-inline-transform.c (inline_call): Account when program size
3309 * ipa-inline.c (relative_time_benefit): New function.
3310 (edge_badness): Reorganize to be power 2 based; fix thinko when
3311 computing badness for negative growth; update comments to match
3312 reality; better dumps.
3314 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3316 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3317 type to bool and adjust comment.
3318 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3319 (fold_mathfn_compare): Remove calls to global_bindings_p.
3320 (fold_inf_compare): Likewise.
3321 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3322 * c-tree.h (global_bindings_p): Adjust prototype.
3323 * c-decl.c (global_bindings_p): Return bool and simplify.
3325 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3327 PR tree-optimization/48837
3328 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3329 when accumulator transformation is performed.
3331 2011-05-06 Jan Hubicka <jh@suse.cz>
3333 * i386.h (ix86_tune_indices): Add
3334 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3335 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3336 * i386.c (initial_ix86_tune_features): Add
3337 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3338 (software_prefetching_beneficial_p): Remove predicate.
3339 (ix86_option_override_internal): Use new macro.
3341 2011-05-06 Jan Hubicka <jh@suse.cz>
3343 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3345 2011-05-06 Jan Hubicka <jh@suse.cz>
3347 * cgraph.c (cgraph_add_thunk): Create real function node instead
3348 of alias node; finalize it and mark needed/reachale; arrange visibility
3349 to be right and add it into the corresponding same comdat group list.
3350 (dump_cgraph_node): Dump thunks.
3351 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3352 cgraph_function_with_gimple_body_p,
3353 cgraph_first_function_with_gimple_body,
3354 cgraph_next_function_with_gimple_body): New functions.
3355 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3357 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3358 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3359 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3360 devirtualization when optimizing.
3361 (verify_cgraph_node): Verify thunks.
3362 (cgraph_analyze_function): Analyze thunks.
3363 (cgraph_mark_functions_to_output): Output thunks only in combination
3364 with function they are assigned to.
3365 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3366 alias into normal node.
3367 (assemble_thunks): New functoin.
3368 (cgraph_expand_function): Use it.
3369 * lto-cgraph.c (lto_output_node): Stream thunks.
3370 (input_overwrite_node): Stream in thunks.
3371 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3372 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3373 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3374 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3375 (inline_analyze_function): Do not care about thunk jump functions.
3376 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3377 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3378 cgraph_function_with_gimple_body_p.
3379 * passes.c (do_per_function_toporder): Use
3380 cgraph_function_with_gimple_body_p.
3381 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3382 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3383 (function_called_by_processed_nodes_p): Likewise.
3385 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3387 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3388 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3390 (mabi=): Replace with separate entries for mabi=altivec,
3391 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3392 mabi=ieeelongdouble and mabi=ibmlongdouble.
3393 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3394 check for -mabi=spe without SPE ABI support here.
3395 (rs6000_handle_option): Replace OPT_mabi_ handling with
3396 OPT_mabi_altivec and OPT_mabi_spe handling.
3398 2011-05-06 Cary Coutant <ccoutant@google.com>
3400 * dwarf2out.c (contains_subprogram_definition): New function.
3401 (should_move_die_to_comdat): Call it.
3403 2011-05-06 Jeff Law <law@redhat.com>
3405 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3406 remove_ctrl_stmt_and_useless_edges.
3407 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3408 (fixup_template_block, thread_single_edge): Likewise.
3409 (mark_threaded_blocks): Use THREAD_TARGET.
3411 2011-05-06 Alan Modra <amodra@gmail.com>
3414 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3415 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3417 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3419 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3420 constraint modifier to "r".
3422 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3424 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3425 fall through for OPT_mcmodel_.
3427 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3429 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3431 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3433 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3436 * config/arm/arm.opt (marm): Document it.
3437 (mthumb): Reject negative variant.
3439 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3442 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3443 Fix typo in "ccvt" variable name.
3445 2011-05-06 Tristan Gingold <gingold@adacore.com>
3448 * config/vms/vms-ar.c (main): Remove cwd variable.
3450 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3453 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3455 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3457 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3458 * gimplify.c (gimplify_switch_expr): Likewise.
3459 * omp-low.c (expand_omp_sections): Likewise.
3460 * tree-eh.c (lower_try_finally_switch): Likewise.
3461 (lower_eh_dispatch): Likewise.
3462 * tree.h (build_case_label): Declare.
3463 * tree.c (build_case_label): Define.
3465 2011-05-05 Jason Merrill <jason@redhat.com>
3468 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3469 (copy_statement_list): Don't recurse.
3470 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3473 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3475 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3476 through from -mfpu= handling.
3477 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3479 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3481 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3484 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3486 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3488 (hppa[12]*-*-hpux11*): Ditto.
3489 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3490 * config/ia64/hpux-unix2003.h: New.
3491 * config/pa/pa-hpux1131.opt: New.
3492 * config/pa/pa-hpux1131.h: New.
3493 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3494 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3495 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3497 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3500 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3501 instead of mode as 3rd argument to recursive call.
3502 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3503 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3505 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3506 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3507 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3508 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3510 2011-05-05 Julian Brown <julian@codesourcery.com>
3512 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3513 parenthesis in D-register case.
3515 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3517 * opt-functions.awk (var_type_struct): Handle Enum options.
3518 * optc-gen.awk: Don't check range of variables of character type.
3519 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3520 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3521 rs6000_sdata_name, rs6000_explicit_options): Remove.
3522 (rs6000_option_override_internal): Check for -malign-power here.
3523 Use global_options_set instead of rs6000_explicit_options.
3524 (rs6000_parse_fpu_option): Remove.
3525 (rs6000_handle_option): Access variables via opts and opts_set
3526 pointers. Use error_at and warning_at. Add fall-through
3527 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3528 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3529 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3530 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3531 here. Don't use rs6000_parse_fpu_option.
3532 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3533 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3534 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3536 (mspe): Use Var and Save.
3537 (mtraceback=): Use Enum and Var.
3538 (rs6000_traceback_type): New Enum and EnumValue entries.
3539 (mfloat-gprs=): Use Enum, Var and Save.
3540 (rs6000_float_gprs): New Enum and EnumValue entries.
3541 (mlong-double-): use Var and Save.
3542 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3543 (malign-): Use Enum and Var.
3544 (rs6000_alignment_flags): New Enum and EnumValue entries.
3546 (fpu_type_t): New Enum and EnumValue entries.
3547 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3548 global_options_set instead of rs6000_explicit_options.
3549 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3550 global_options_set instead of rs6000_explicit_options.
3551 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3552 global_options_set instead of rs6000_explicit_options.
3553 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3554 global_options_set instead of rs6000_explicit_options.
3555 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3556 global_options_set instead of rs6000_explicit_options.
3557 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3558 global_options_set instead of rs6000_explicit_options.
3559 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3561 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3562 global_options_set instead of rs6000_explicit_options.
3563 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3564 (rs6000_cmodel): New Enum and EnumValue entries.
3565 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3566 global_options_set instead of rs6000_explicit_options.
3567 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3568 (mtls-size=): Use Enum and Var.
3569 (rs6000_tls_size): New Enum and EnumValue entries.
3571 2011-05-05 Michael Matz <matz@suse.de>
3573 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3574 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3575 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3576 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3577 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3578 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3579 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3580 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3581 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3582 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3583 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3584 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3585 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3586 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3587 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3588 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3590 2011-05-05 Richard Guenther <rguenther@suse.de>
3592 * expmed.c (expand_variable_shift): Rename to ...
3593 (expand_shift_1): ... this. Take an expanded shift amount.
3594 For rotates recurse directly not building trees for the shift amount.
3595 (expand_variable_shift): Wrap around expand_shift_1.
3596 (expand_shift): Adjust.
3598 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3600 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3602 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3604 * tree.h (get_pending_sizes): Remove prototype.
3605 (put_pending_size): Likewise.
3606 (put_pending_sizes): Likewise.
3607 * stor-layout.c (pending_sizes): Delete.
3608 (get_pending_sizes): Likewise.
3609 (put_pending_size): Likewise.
3610 (put_pending_sizes): Likewise.
3611 (variable_size): Do not call put_pending_size and tidy up.
3612 * function.h (struct function): Remove dont_save_pending_sizes_p.
3613 * lto-streamer-in.c (input_function): Do not stream it.
3614 * lto-streamer-out.c (output_function): Likewise.
3615 * tree-inline.c (initialize_cfun): Do not copy it.
3616 * c-decl.c (store_parm_decls): Do not set it.
3617 * omp-low.c (create_task_copyfn): Likewise.
3618 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3620 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3622 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3624 (*movdf_internal): Ditto.
3625 (*movdf_internal_nointeger): Ditto.
3626 (*movsf_internal): Ditto.
3628 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3630 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3631 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3632 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3633 (c_variable_size): Remove.
3634 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3635 call put_pending_sizes.
3636 (get_parm_info): Add parameter expr. Use it to set
3637 arg_info->pending_sizes.
3638 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3640 * c-parser.c (c_parser_parms_declarator): Update call to
3641 c_parser_parms_list_declarator.
3642 (c_parser_parms_list_declarator): Take parameter expr. Update
3643 call to push_parm_decl. Update recursive call. Don't call
3644 get_pending_sizes. Update calls to get_parm_info.
3645 (c_parser_objc_method_definition): Update calls to
3646 c_parser_objc_method_decl and objc_start_method_definition.
3647 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3648 (c_parser_objc_method_decl): Add parameter expr. Update call to
3650 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3651 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3652 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3654 2011-05-05 Michael Hope <michael.hope@linaro.org>
3657 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3660 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3662 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3663 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3664 (spu_output_mi_thunk): New function.
3666 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3668 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3669 targetm.asm_out.print_operand.
3670 * config/sol2.c: Include target.h.
3672 2011-05-04 Jan Hubicka <jh@suse.cz>
3674 * ipa-inline.c (reset_edge_caches): New function.
3675 (update_caller_keys): Add check_inlinablity_for; do not
3676 reset edge caches; remove now unnecesary loop.
3677 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3678 (update_all_callee_keys): Likewise.
3679 (inline_small_functions): Sanity check cache; update code
3682 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3684 PR rtl-optimization/47612
3685 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3686 as the last insn of the sequence to be moved.
3688 2011-05-04 Tobias Burnus <burnus@net-b.de>
3691 * doc/invoke.texi (Ofast): Document that it
3692 enables Fortran's -fno-protect-parens.
3694 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3696 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3698 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3700 * stor-layout.c (variable_size): Do not issue errors.
3702 2011-05-04 Richard Guenther <rguenther@suse.de>
3704 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3705 for array-ref indices.
3706 (tree_coverage_counter_addr): Likewise.
3707 (build_fn_info_type): Use size_int for index types.
3708 (build_gcov_info): Likewise.
3710 2011-05-04 Richard Guenther <rguenther@suse.de>
3712 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3714 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3715 for constructor indices.
3716 (push_init_level): Likewise.
3718 2011-05-04 Richard Guenther <rguenther@suse.de>
3720 * explow.c (promote_mode): Move variable declarations before code.
3722 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3724 * tree.h (build_function_type_array): Declare.
3725 (build_varargs_function_type_array): Declare.
3726 (build_function_type_vec, build_varargs_function_type_vec): Define.
3727 * tree.c (build_function_type_array_1): New function.
3728 (build_function_type_array): New function.
3729 (build_varargs_function_type_array): New function.
3731 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3733 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3734 before setting STMT_VINFO_TYPE.
3736 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3738 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3739 instead of spu_pass_by_reference.
3741 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3743 * calls.c (emit_library_call_value_1): Invoke
3744 promote_function_mode hook on libcall arguments.
3745 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3746 argument being NULL.
3747 * targhooks.c (default_promote_function_mode): Lisewise.
3748 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3749 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3751 * doc/tm.texi: Document that TYPE argument might be NULL.
3753 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3755 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3757 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3760 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3762 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3764 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3765 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3767 * mips-tfile.c: ... here.
3768 Don't include coretypes.h, tm.h, filenames.h.
3769 (saber_stop): Remove definition and all calls.
3770 [__SABER__]: Remove.
3771 (__LINE__): Remove default.
3772 (Size_t, Ptrdiff_t): Remove definitions.
3773 Replace by size_t, ptrdiff_t.
3774 [!MIPS_DEBUGGING_INFO]: Remove.
3775 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3776 (progname): Add const.
3778 Replace all uses by static.
3779 (ALIGN_SYMTABLE_OFFSET): Remove default.
3780 * mips-tdump.c: Don't include coretypes.h, tm.h.
3781 Remove !MIPS_IS_STAB guard.
3782 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3783 $(TM_H), filenames.h dependencies.
3784 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3786 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3789 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3790 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3792 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3795 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3796 account and save/restore RETS.
3797 (PROFILE_BEFORE_PROLOGUE): Define.
3798 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3799 the push insn to use predecrement.
3801 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3804 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3806 2011-05-04 Nick Clifton <nickc@redhat.com>
3808 * config/mn10300/mn10300.c: Include cfgloop.h.
3810 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3811 Lcc or a FLcc insn into the instruction stream.
3812 (mn10300_block_contains_call): New function. Returns true if the
3813 given basic block contains a CALL insn.
3814 (mn10300_loop_contains_call_insn): New function. Returns true if
3815 the given loop contains a CALL insn.
3816 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3817 to use the SETLB and Lcc or FLcc insns.
3818 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3819 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3820 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3821 disable the SETLB optimization.
3822 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3823 __SETLB__ or __NO_SETLB__.
3824 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3825 (movsf_internal): Handle MDR register.
3826 (cmpsi): Make visible.
3827 (setlb): New pattern.
3829 (FLcc): New pattern.
3831 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3834 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3835 for reg<->xmm moves.
3836 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3837 (vec_concatv2di_rex64_sse): Ditto.
3838 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3839 (*vec_extractv2di_1_rex64): Ditto.
3842 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3844 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3846 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3848 2011-05-04 Richard Guenther <rguenther@suse.de>
3850 * tree.h (int_const_binop): Remove notrunc argument.
3851 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3852 create integer constants that are properly truncated.
3853 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3854 (const_binop): Remove zero notrunc argument to int_const_binop.
3855 (size_binop_loc): Likewise.
3856 (fold_div_compare): Likewise.
3857 (maybe_canonicalize_comparison_1): Likewise.
3858 (fold_comparison): Likewise.
3859 (fold_binary_loc): Likewise.
3860 (multiple_of_p): Likewise.
3861 * expr.c (store_constructor): Likewise.
3862 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3863 (maybe_fold_stmt_addition): Likewise.
3864 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3865 * stor-layout.c (layout_type): Likewise.
3866 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3867 * tree-sra.c (build_ref_for_offset): Likewise.
3868 (build_user_friendly_ref_for_offset): Likewise.
3869 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3870 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3871 * tree-ssa-loop-niter.c (inverse): Likewise.
3872 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3873 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3874 * tree-switch-conversion.c (check_range): Likewise.
3875 (build_constructors): Likewise.
3876 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3877 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3878 (extract_range_from_assert): Likewise.
3879 (vrp_int_const_binop): Likewise.
3880 (extract_range_from_binary_expr): Likewise.
3881 (extract_range_from_unary_expr): Likewise.
3882 (check_array_ref): Likewise.
3883 (find_case_label_range): Likewise.
3884 (simplify_div_or_mod_using_ranges): Likewise.
3885 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3886 comparing case labels for merging.
3888 2011-05-03 Mark Wielaard <mjw@redhat.com>
3890 * dwarf2out.c (debug_str_hash_forced): Removed.
3891 (gen_label_for_indirect_string): Removed.
3892 (get_debug_string_label): Removed.
3893 (AT_string_form): Generate label directly.
3894 (output_indirect_string): Test indirect_string_node for
3895 DW_FORM_strp instead of checking label and refcount.
3896 (prune_indirect_string): Removed.
3897 (prune_unused_types): Don't check debug_str_hash_forced or
3898 call prune_indirect_string.
3900 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3903 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3905 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3909 * combine.c (try_combine): Skip debug insns at m_split tests.
3911 2011-04-26 Mark Wielaard <mjw@redhat.com>
3914 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3915 when info_section_emitted.
3917 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3919 * config/mips/mips-opts.h: New.
3920 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3922 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3923 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3924 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3926 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3928 (mips_abi, mips_code_readable): Don't declare.
3929 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3930 (mabi=): Use Enum and Var.
3931 (mips_abi): New Enum and EnumValue entries.
3932 (mcode-readable=): Use Enum and Var.
3933 (mips_code_readable_setting): New Enum and EnumValue entries.
3934 (mr10k-cache-barrier=): Use Enum and Var.
3935 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3937 2011-05-03 Jan Hubicka <jh@suse.cz>
3939 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3940 replace hash by pointer map.
3941 (cgraph_node_set_element_def, cgraph_node_set_element,
3942 const_cgraph_node_set_element, varpool_node_set_element_def,
3943 varpool_node_set_element, const_varpool_node_set_element): Remove.
3944 (free_cgraph_node_set, free_varpool_node_set): New function.
3945 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3946 * tree-emutls.c: Free varpool node set.
3947 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3948 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3949 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3950 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3951 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3952 Move here from ipa.c; implement using pointer_map
3953 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3954 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3955 debug_cgraph_node_set, varpool_node_set_new,
3956 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3957 dump_varpool_node_set, debug_varpool_node_set):
3958 Move to ipa-uitls.c.
3959 * passes.c (ipa_write_summaries): Update.
3961 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3963 From Mike Frysinger:
3964 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3965 bf542/bf544/bf547/bf548/bf549.
3967 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3969 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3971 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3974 * config/bfin/bfin.md (MOVCC): New mode_macro.
3975 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3976 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3977 comments from generated assembly.
3979 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3982 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3983 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3984 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3985 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3986 * config/bfin/lib1funcs.asm (___muldi3): New function.
3988 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3990 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3991 build_function_type_list instead of build_function_type.
3992 Rearrange initialization of `args' to do so.
3994 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3996 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3997 instead of build_function_type.
3999 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4001 * config/rs6000/rs6000.c (spe_init_builtins): Call
4002 build_function_type_list instead of build_function_type.
4003 (paired_init_builtins, altivec_init_builtins): Likewise.
4004 (builtin_function_type): Likewise.
4006 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4008 * config/sh/sh.c (sh_media_init_builtins): Call
4009 build_function_type_list instead of build_function_type.
4011 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4013 * config/sparc/sparc.c (sparc_file_end): Call
4014 build_function_type_list instead of build_function_type.
4016 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4018 * config/alpha/alpha.c (alpha_init_builtins): Call
4019 build_function_type_list instead of build_function_type.
4021 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4023 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4024 build_function_type_list instead of build_function_type.
4026 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4028 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4029 build_function_type_list instead of build_function_type.
4030 Delete `endlink' variable.
4032 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4034 * config/avr/avr.c (avr_init_builtins): Call
4035 build_function_type_list instead of build_function_type.
4037 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4039 * config/picochip/picochip.c (picochip_init_builtins): Call
4040 build_function_type_list instead of build_function_type.
4041 Delete `endlink' variable.
4043 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4045 * config/bfin/bfin.c (bfin_init_builtins): Call
4046 build_function_type_list instead of build_function_type.
4048 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4051 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4052 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4054 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4057 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4058 libbffastfp overrides libgcc when -mfast-fp.
4060 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4062 Originally from Bernd Schmidt
4063 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4064 * config/bfin/bfin.c (override_options): Test it and error if
4067 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4069 Originally From Bernd Schmidt
4070 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4073 2011-05-03 Jeff Law <law@redhat.com>
4075 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4076 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4077 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4078 than accessing AUX field directly. Free the AUX field before
4080 (thread_block, thread_through_loop_header): Likewise.
4081 (thread_single_edge, mark_threaded_blocks): Likewise.
4082 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4083 (register_jump_thread): Do not attempt to thread to a NULL edge.
4085 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4087 * function.c (init_function_start): Call decide_function_section.
4088 * varasm.c (decide_function_section): New function.
4089 (assemble_start_function): When not using
4090 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4091 or first_function_block_is_cold.
4092 * rtl.h (decide_function_section): Declare.
4094 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4095 Jakub Jelinek <jakub@redhat.com>
4098 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4099 only succeed if req_mode is the same as set_mode.
4101 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4103 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4104 * genemit.c (gen_exp): Handle RETURN.
4105 * emit-rtl.c (verify_rtx_sharing): Likewise.
4106 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4107 * rtl.c (copy_rtx): RETURN is shared.
4108 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4110 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4111 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4112 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4113 * config/cris/cris.c (cris_expand_return): Likewise.
4114 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4115 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4116 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4117 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4118 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4120 * config/v850/v850.c (expand_epilogue): Likewise.
4121 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4122 * config/arm/arm.md (epilogue): Likewise.
4123 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4124 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4125 variable to ret_reg.
4127 2011-05-03 Richard Guenther <rguenther@suse.de>
4130 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4131 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4132 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4134 2011-05-03 Richard Guenther <rguenther@suse.de>
4136 * c-decl.c (grokdeclarator): Instead of looking at
4137 TREE_OVERFLOW check if the constant fits in the index type.
4139 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4141 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4142 (vec_store_lanes<mode><mode>): Likewise.
4144 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4146 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4147 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4148 convert_optab_index values.
4149 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4150 * genopinit.c (optabs): Initialize the new optabs.
4151 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4152 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4153 (expand_STORE_LANES): New functions.
4154 * tree.h (build_array_type_nelts): Declare.
4155 * tree.c (build_array_type_nelts): New function.
4156 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4157 (vect_model_load_cost): Likewise.
4158 (vect_store_lanes_supported, vect_load_lanes_supported)
4159 (vect_record_strided_load_vectors): Declare.
4160 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4161 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4162 (vect_transform_strided_load): Split out statement recording into...
4163 (vect_record_strided_load_vectors): ...this new function.
4164 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4165 (write_vector_array, create_array_ref): New functions.
4166 (vect_model_store_cost): Add store_lanes_p argument.
4167 (vect_model_load_cost): Add load_lanes_p argument.
4168 (vectorizable_store): Try to use store-lanes functions for
4170 (vectorizable_load): Likewise load-lanes and loads.
4171 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4172 to vect_model_store_cost.
4173 (vect_build_slp_tree): Likewise vect_model_load_cost.
4175 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4177 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4178 * hooks.c (hook_bool_mode_uhwi_false): New function.
4179 * target.def (array_mode_supported_p): New hook.
4180 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4181 * doc/tm.texi: Regenerate.
4182 * stor-layout.c (mode_for_array): New function.
4183 (layout_type): Use it.
4184 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4185 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4187 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4190 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4191 for -fstack-check if the size to allocate is negative.
4193 2011-05-02 Lawrence Crowl <crowl@google.com>
4195 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4196 (timevar_cond_start): New for starting a timer only when it is not
4198 (timevar_cond_stop): New for stopping a timer when it was not already
4201 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4202 (timevar_cond_start): New as above.
4203 (timevar_cond_stop): New as above.
4205 * timevar.def: Add start/stop timers for compiler phases,
4206 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4207 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4208 and TV_PHASE_FINALIZE.
4209 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4210 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4211 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4212 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4213 Make unused TV_OVERLOAD into a start/stop timer.
4215 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4216 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4217 to indicate that they are start/stop timers.
4219 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4220 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4221 Move initialization to do_compile.
4222 (do_compile): Add initialization from above.
4223 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4225 * c-decl.c (c_write_global_declarations): Add start/stop of
4226 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4228 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4229 or TV_PARSE_INLINE, as appropriate.
4230 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4231 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4233 2011-05-02 Jason Merrill <jason@redhat.com>
4236 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4238 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4241 * c-decl.c (finish_decl): Only create a composite if the types are
4244 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4246 * config/fr30/fr30-protos.h (Mmode): Don't define.
4247 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4248 definition where used.
4249 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4250 define. Expand definitions where used.
4251 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4252 Expand definitions where used.
4253 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4254 rx_function_arg, rx_function_arg_advance,
4255 rx_function_arg_boundary): Expand definitions of those macros.
4256 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4257 definition where used.
4259 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4261 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4263 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4264 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4265 with *movv2sf_internal_rex64_avx.
4266 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4267 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4268 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4269 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4270 "vex" in "prefix" attribute calculation.
4271 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4273 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4276 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4277 inputs match the output.
4279 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4282 * config/m68k/m68k.c (m68k_expand_prologue): Set
4283 current_function_static_stack_size.
4285 2011-05-02 Jan Hubicka <jh@suse.cz>
4287 * lto-streamer.c (lto_streamer_cache_insert_1,
4288 lto_streamer_cache_lookup, lto_streamer_cache_create,
4289 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4290 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4292 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4294 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4295 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4296 config/m68k/t-opts: New files.
4297 * config/m68k/m68k-tables.opt: New file (generated).
4298 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4299 extra_options and m68k/t-opts to tmake_file.
4300 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4301 (all_isas): Initialize using m68k-isas.def.
4302 (all_microarchs): Initialize using m68k-microarchs.def.
4303 (m68k_find_selection): Remove.
4304 (m68k_handle_option): Don't assert that global structures are in
4305 use. Use error_at. Access variables via opts pointer. Don't
4306 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4307 directly for -m68020-40 and -m68020-60.
4308 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4309 m68k_tune_entry here.
4310 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4312 (m68k_library_id_string): Remove declaration.
4313 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4314 (m68k_library_id_string): New Variable.
4315 (march=, mcpu=, mtune=): Use Enum and Var.
4317 2011-05-02 Richard Guenther <rguenther@suse.de>
4319 * varasm.c (output_constructor_regular_field): Compute zero-based
4320 index with double-ints. Make sure to ICE instead of producing
4322 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4323 in asserts. Properly use a signed type.
4325 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4327 * config/i386/sse.md (V): New mode iterator.
4328 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4330 (V_256): Rename from AVX256MODE.
4331 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4332 condition to all users.
4334 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4335 condition to all users.
4336 (VF_128): Make V4SF mode unconditional.
4337 (VF_256): Rename from AVX256MODEF2P.
4338 (VI4F_128): Rename from SSEMODE4S.
4339 (VI8F_128): Rename from SSEMODE2D.
4340 (VI4F_256): Rename from AVX256MODE8P.
4341 (VI8F_256): Rename from AVX256MODE4P.
4342 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4343 (ssescalarmodesuffix): Remove SF and DF modes.
4344 (SSEMODE124): Remove.
4345 (SSEMODE1248): Ditto.
4346 (SSEMODEF2P): Ditto.
4347 (AVXMODEF2P): Ditto.
4348 (AVXMODEFDP): Ditto.
4349 (AVXMODEFSP): Ditto.
4350 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4352 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4354 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4355 xop_pcmov_<mode>256. Use V mode iterator.
4357 Adjust RTX patterns globally for renamed mode attributes.
4359 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4361 * haifa-sched.c (sched_emit_insn): Emit insn before first
4362 non-scheduled insn. Inform back-end about new insn. Add
4363 new insn to scheduled_insns list.
4365 2011-05-02 Richard Guenther <rguenther@suse.de>
4367 PR tree-optimization/48822
4368 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4369 (process_scc): Indicate which iteration we start.
4371 2011-05-02 Jan Hubicka <jh@suse.cz>
4373 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4374 (lto_section_overrun): New.
4375 * lto-section-out.c (append_block): Rename to ...
4376 (lto_append_block): ... this one; export.
4377 (lto_output_1_stream): Move lto lto-streamer.h
4378 (lto_output_data_stream): Update.
4379 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4380 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4383 2011-05-02 Richard Guenther <rguenther@suse.de>
4385 * tree.c (tree_code_counts): New global array.
4386 (record_node_allocation_statistics): Count individual tree codes.
4387 (dump_tree_statistics): Dump individual code stats.
4389 2011-05-01 Jan Hubicka <jh@suse.cz>
4391 * ipa-inline.c (caller_growth_limits): Fix thinko when
4392 looking for largest stack frame.
4393 * ipa-inline.h (dump_inline_summary): Declare.
4394 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4396 (dump_inline_summary): Export.
4397 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4399 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4401 * reginfo.c (memory_move_cost): Change rclass argument type form
4402 'enum reg_class' to reg_class_t.
4403 * reload.h (memory_move_cost): Update prototype.
4404 * postreload.c reload_cse_simplify_set): Change type dclass var to
4406 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4408 (ira_allocate_and_set_costs): Change aclass argument type form
4409 'enum reg_class' to reg_class_t.
4410 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4411 Change aclass argument type to reg_class_t.
4412 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4414 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4415 memory_move_cost call.
4417 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4418 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4419 Change type tmp var to reg_class_t.
4421 2011-04-30 Jan Hubicka <jh@suse.cz>
4423 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4424 inlining into function with flatten attribute.
4425 (want_inline_small_function_p): Be more realistic about inlining
4426 cold calls where callee size grows.
4428 2011-04-30 Jan Hubicka <jh@suse.cz>
4430 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4433 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4435 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4436 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4437 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4438 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4439 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4440 (print_operand): Rename to...
4441 (sparc_print_operand): ...this. Make static. Adjust
4442 sparc_print_operand function call.
4443 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4446 2011-04-30 Jan Hubicka <jh@suse.cz>
4449 * ipa-inline.c (early_inliner): Disable when doing late
4450 addition of function.
4452 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4454 * dwarf2out.c (get_address_mode): New inline.
4455 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4456 if not dwarf_strict emit
4457 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4458 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4459 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4460 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4461 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4462 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4463 mem_loc_descriptor callers.
4464 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4465 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4466 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4467 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4468 (base_types): New variable.
4469 (get_base_type_offset, calc_base_type_die_sizes,
4470 base_type_for_mode, mark_base_types, base_type_cmp,
4471 move_marked_base_types): New functions.
4472 (calc_die_sizes): Assert that die_offset is 0 or equal to
4474 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4475 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4476 callers. If not dwarf_strict, call mem_loc_descriptor even for
4477 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4478 (gen_subprogram_die): Don't give up on call site parameters
4479 with non-integral or large integral modes. Adjust
4480 mem_loc_descriptor callers.
4481 (prune_unused_types): Call prune_unused_types_mark on base_types
4483 (resolve_addr): Call mark_base_types.
4484 (dwarf2out_finish): Call move_marked_base_types.
4486 PR tree-optimization/48809
4487 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4489 (gen_inbound_check): Don't compute index_expr - range_min in utype
4490 again, instead reuse SSA_NAME initialized in build_arrays.
4491 Remove two useless gsi_for_stmt calls.
4493 2011-04-29 Jeff Law <law@redhat.com>
4495 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4497 2011-04-29 Martin Jambor <mjambor@suse.cz>
4499 * cgraph.h (cgraph_postorder): Remove declaration.
4500 * ipa-utils.h (ipa_free_postorder_info): Declare.
4501 (ipa_reverse_postorder): Likewise.
4502 * cgraphunit.c: Include ipa-utils.h.
4503 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4504 * ipa-inline.c: Include ipa-utils.h.
4505 (ipa_inline): Update call to ipa_reverse_postorder.
4506 * ipa-pure-const.c (propagate_pure_const): Update call to
4507 ipa_reduced_postorder and ipa_print_order. Call
4508 ipa_free_postorder_info to clean up.
4509 (propagate_nothrow): Likewise.
4510 * ipa-reference.c (propagate): Removed a useless call to
4511 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4512 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4513 * ipa.c: Include ipa-utils.h.
4514 (ipa_profile): Update call to ipa_reverse_postorder.
4515 (cgraph_postorder): Moved to...
4516 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4517 (ipa_utils_print_order): Renamed to ipa_print_order.
4518 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4520 (ipa_free_postorder_info): New function.
4521 * passes.c: Include ipa-utils.h.
4522 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4523 (ipa_write_summaries): Likewise.
4524 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4525 (cgraphunit.o): Likewise.
4527 (ipa-inline.o): Likewise.
4529 2011-04-29 Jan Hubicka <jh@suse.cz>
4531 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4532 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4533 * ipa-inline.h (clause_t): Turn into unsigned int.
4534 * ipa-inline-analysis.c (add_clause): Do more simplification.
4535 (and_predicates): Shortcut more cases.
4536 (predicates_equal_p): Move forward; check that clauses are properly
4538 (or_predicates): Shortcut more cases.
4539 (edge_execution_predicate): Rewrite as...
4540 (set_cond_stmt_execution_predicate): ... this function; handle
4541 __builtin_constant_p.
4542 (set_switch_stmt_execution_predicate): New .
4543 (compute_bb_predicates): New.
4544 (will_be_nonconstant_predicate): Update TODO.
4545 (estimate_function_body_sizes): Use compute_bb_predicates
4546 and free them later, always try to estimate if stmt is constant.
4547 (estimate_time_after_inlining, estimate_size_after_inlining):
4548 Gracefully handle optimized out edges.
4549 (read_predicate): Fix off by one error.
4551 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4553 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4555 2011-04-27 Xinliang David Li <davidxl@google.com>
4557 * tree-profile.c (init_ic_make_global_vars): Set
4558 tls attribute on ic vars.
4559 * coverage.c (coverage_end_function): Initialize
4560 function_list with zero.
4562 2011-04-29 Richard Guenther <rguenther@suse.de>
4564 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4565 for the type of the result.
4566 (fold_builtin_isascii): Likewise.
4567 (fold_builtin_toascii): Use integer_type_node where appropriate.
4568 (fold_builtin_logb): Likewise.
4569 (fold_builtin_frexp): Likewise.
4570 (fold_builtin_strstr): Likewise.
4571 (fold_builtin_strpbrk): Likewise.
4572 (fold_builtin_fputs): Likewise.
4573 (fold_builtin_sprintf): Likewise.
4574 (fold_builtin_snprintf): Likewise.
4575 (fold_builtin_printf): Likewise.
4576 (do_mpfr_remquo): Use a proper type for the assigned constant.
4577 (do_mpfr_lgamma_r): Likewise.
4578 * dwarf2out.c (resolve_one_addr): Use size_int.
4579 * except.c (init_eh): Likewise.
4580 (assign_filter_values): Use integer_type_node for filter values.
4581 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4583 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4584 for EH region numbers.
4585 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4586 for the shift amount.
4588 2011-04-29 Richard Guenther <rguenther@suse.de>
4590 * expr.h (expand_shift): Rename to ...
4591 (expand_variable_shift): ... this.
4592 (expand_shift): Take a constant shift amount.
4593 * expmed.c (expand_shift): Rename to ...
4594 (expand_variable_shift): ... this.
4595 (expand_shift): New wrapper around expand_variable_shift.
4596 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4597 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4598 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4599 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4600 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4601 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4602 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4603 emit_store_flag_1, emit_store_flag): Likewise.
4604 * builtins.c (expand_builtin_signbit): Likewise.
4605 * calls.c (load_register_parameters): Likewise.
4606 * function.c (assign_parm_setup_block): Likewise.
4607 * lower-subreg.c (resolve_shift_zext): Likewise.
4608 * optabs.c (widen_bswap, expand_abs_nojump,
4609 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4610 * spu/spu.c (spu_expand_extv): Likewise.
4611 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4613 2011-04-29 Richard Guenther <rguenther@suse.de>
4615 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4616 for the remapped region number.
4617 * predict.c (build_predict_expr): Use integer_type_node for the
4619 * fold-const.c (fold_binary_loc): Use integer_type_node for
4620 the shift amount. Use a proper type for the PLUS_EXPR operand.
4622 2011-04-29 Michael Matz <matz@suse.de>
4624 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4625 other trees that just builtins.
4626 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4628 2011-04-29 Richard Guenther <rguenther@suse.de>
4630 * tree-nested.c (get_trampoline_type): Use size_int.
4631 (get_nl_goto_field): Likewise.
4632 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4634 (lower_eh_constructs_2): Likewise.
4635 (lower_resx): Likewise.
4636 (lower_eh_dispatch): Likewise.
4637 * tree-mudflap.c (mf_build_string): Use size_int.
4638 (mudflap_register_call): Use integer_type_node for the flag.
4639 (mudflap_enqueue_constant): Use size_int.
4640 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4641 instead of rebuilding it.
4643 2011-04-29 Richard Guenther <rguenther@suse.de>
4645 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4646 Handle OBJ_TYPE_REF.
4647 (find_func_aliases_for_call): Use it more consistently.
4649 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4651 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4652 (rank_for_schedule): Use it.
4653 (schedule_block): Set it.
4655 2011-04-28 David Li <davidxl@google.com>
4657 * tree.c (crc32_string): Use crc32_byte.
4658 (crc32_byte): New function.
4659 * tree.h (crc32_byte): New function.
4660 * gcov.c (read_graph_file): Handle new cfg_cksum.
4661 (read_count_file): Ditto.
4662 * profile.c (instrument_values): Ditto.
4663 (get_exec_counts): Ditto.
4664 (read_profile_edge_counts): Ditto.
4665 (compute_branch_probabilities): Ditto.
4666 (compute_value_histograms): Ditto.
4667 (branch_prob): Ditto.
4668 (end_branch_prob): Ditto.
4669 * coverage.c (read_counts_file): Ditto.
4670 (get_coverage_counts): Ditto.
4671 (tree_coverage_counter_addr): Ditto.
4672 (coverage_checksum_string): Ditto.
4673 (coverage_begin_output): Ditto.
4674 (coverage_end_function): Ditto.
4675 (build_fn_info_type): Ditto.
4676 (build_fn_info_value): Ditto.
4677 * libgcov.c (gcov_exit): Ditto.
4678 * gcov-dump.c (tag_function): Ditto.
4679 (compute_checksum): Remove.
4681 2011-04-29 Alan Modra <amodra@gmail.com>
4683 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4684 unspec plus offset. Tidy macho code.
4686 2011-04-29 Martin Jambor <mjambor@suse.cz>
4688 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4689 node instead of a decl. Update all callers.
4690 * cgraph.h: Update declaration.
4692 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4694 PR tree-optimization/48765
4695 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4696 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4697 to indicate if loop aware SLP is being used. Scan the statements
4698 and update the vectorization factor according to the type of
4699 vectorization before statement analysis.
4700 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4701 pass it to vect_analyze_loop_operations.
4702 (vectorizable_reduction): Set number of copies to 1 in case of pure
4704 * tree-vect-stmts.c (vectorizable_conversion,
4705 vectorizable_assignment, vectorizable_shift,
4706 vectorizable_operation, vectorizable_type_demotion,
4707 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4709 (vectorizable_condition): Move the check that it is not SLP
4710 vectorization before the number of copies check.
4711 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4712 to vectorize the loop using SLP.
4714 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4717 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4720 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4722 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4723 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4724 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4725 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4726 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4728 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4729 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4730 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4731 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4732 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4733 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4735 * config/i386/linux.h (REG_NAME): Don't define.
4736 * config/i386/linux64.h (REG_NAME): Don't define.
4737 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4738 Undefine before defining.
4740 2011-04-28 Jan Hubicka <jh@suse.cz>
4742 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4743 nonconstant_names array.
4744 (estimate_function_body_sizes): Build nonconstant_names array; handle
4745 BUILT_IN_CONSTANT_P.
4747 2011-04-28 Richard Guenther <rguenther@suse.de>
4751 2011-04-28 Richard Guenther <rguenther@suse.de>
4753 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4754 as late as possible.
4756 2011-04-28 Richard Guenther <rguenther@suse.de>
4758 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4759 (debug_constraint): Do it here.
4760 (dump_constraints): And here.
4761 (rewrite_constraints): And here.
4762 (dump_constraint_edge): Remove.
4763 (dump_constraint_graph): Rewrite to produce DOT output.
4764 (solve_constraints): Build succ graph as late as possible.
4765 Dump constraint graphs before and after solving.
4767 2011-04-28 Richard Guenther <rguenther@suse.de>
4769 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4770 New function split out from ...
4771 (find_func_aliases): ... here. Call it.
4772 (find_func_aliases_for_call): Likewise.
4774 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4776 * internal-fn.h (internal_fn_name_array): Declare.
4777 (internal_fn_flags_array): Likewise.
4779 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4781 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4782 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4784 (ssemodefsuffix): Remove.
4785 (ssevecmodesuffix): New mode attribute.
4786 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4787 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4788 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4789 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4790 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4791 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4792 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4793 ssemodesuffix mode attribute.
4794 (float splitters): Use ssevecmodesuffix mode attribute.
4795 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4796 (sseinsmode): Rename from avxvecmode.
4797 (avxsizesuffix): Rename from avxmodesuffix.
4798 (sseintvecmode): Rename from avxpermvecmode.
4799 (ssedoublevecmode): Rename from ssedoublesizemode.
4800 (ssehalfvecmode): Rename from avxhalfvecmode.
4801 (ssescalarmode): Rename from avxscalarmode.
4802 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4803 templates for ssemodesuffix mode attribute.
4804 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4807 Adjust RTX patterns globally for renamed mode attributes.
4809 2011-04-27 Jan Hubcika <jh@suse.cz>
4811 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4812 * ipa-inline-analysis.c: Include alloc-pool.h.
4813 (edge_predicate_pool): New.
4814 (trye_predicate_p): New function
4815 (false_predicate_p): New function.
4816 (add_clause): Sanity check that false clauses are "optimized";
4817 never add clauses to predicate that is already known to be false.
4818 (and_predicate): Use flase_predicate_p.
4819 (evaulate_predicate): Rename to ...
4820 (evaluate_predicate): ... this one; update all callers; assert
4821 that false is not listed among possible truths.
4822 (dump_predicate): Use true_predicate_p.
4823 (account_size_time): Use false_predicate_p.
4824 (evaulate_conditions_for_edge): Rename to ...
4825 (evaluate_conditions_for_edge) ... this one.
4826 (edge_set_predicate): New function.
4827 (inline_edge_duplication_hook): Duplicate edge predicates.
4828 (inline_edge_removal_hook): Free edge predicates.
4829 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4830 (dump_inline_summary): Update.
4831 (estimate_function_body_sizes): Set edge predicates.
4832 (estimate_calls_size_and_time): Handle predicates.
4833 (estimate_callee_size_and_time): Update.
4834 (remap_predicate): Add toplev_predicate; update comment.
4835 (remap_edge_predicates): New function.
4836 (inline_merge_summary): Compute toplev predicate; update.
4837 (read_predicate): New function.
4838 (read_inline_edge_summary): Use it.
4839 (inline_read_section): Likewise.
4840 (write_predicate): New function.
4841 (write_inline_edge_summary): Use it.
4842 (inline_write_summary): Likewise.
4843 (inline_free_summary): Free alloc pool and edge summary vec.
4845 2011-04-27 Richard Guenther <rguenther@suse.de>
4847 * tree-ssa-structalias.c (changed_count): Remove.
4848 (changed): Use a bitmap.
4849 (unify_nodes): Adjust.
4850 (do_sd_constraint): Likewise.
4851 (do_ds_constraint): Likewise.
4852 (do_complex_constraint): Likewise.
4853 (solve_graph): Likewise.
4855 2011-04-27 Jan Hubicka <jh@suse.cz>
4857 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4859 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4861 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4862 (avx_vperm2f128_*_operand): Ditto.
4863 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4864 Use avx_vpermilp_parallel in insn condition.
4865 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4866 Use avx_vperm2f128_parallel in insn condition.
4868 2011-04-27 Richard Guenther <rguenther@suse.de>
4870 * Makefile.in (tree-ssa-structalias.o): Remove
4871 gt-tree-ssa-structalias.h dependency.
4872 (GTFILES): Remove tree-ssa-structalias.c.
4873 * tree.c (allocate_decl_uid): New function.
4874 (make_node_stat): Use it.
4875 (copy_node_stat): Likewise.
4876 * tree.h (allocate_decl_uid): Declare.
4877 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4878 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4879 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4880 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4881 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4882 (struct heapvar_map): Likewise.
4883 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4884 heapvar_insert): Likewise.
4885 (make_heapvar_for): Rename to ...
4886 (make_heapvar): ... this. Simplify.
4887 (fake_var_decl_obstack): New global var.
4888 (build_fake_var_decl): New function.
4889 (make_constraint_from_heapvar): Adjust.
4890 (handle_lhs_call): Likewise.
4891 (create_function_info_for): Likewise.
4892 (intra_create_variable_infos): Likewise.
4893 (init_alias_vars): Allocate fake_var_decl_obstack.
4894 (init_alias_heapvars, delete_alias_heapvars): Remove.
4895 (compute_points_to_sets): Do not call init_alias_heapvars.
4896 (ipa_pta_execute): Likewise.
4897 (delete_points_to_sets): Free fake_var_decl_obstack.
4899 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4901 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4902 (si_from_UTItype, si_to_UTItype): New functions.
4903 (__udivmodti4): Use them to implement type-punning.
4904 * config/spu/multi3.c (union qword_TItype): New data type.
4905 (si_from_TItype, si_to_TItype): New functions.
4906 (__multi3): Use them to implement type-punning.
4908 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4910 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4912 2011-04-27 Jan Hubicka <jh@suse.cz>
4914 * ipa-prop.c (function_insertion_hook_holder): New holder.
4915 (ipa_add_new_function): New function.
4916 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4917 Register/deregister holder.
4919 2011-04-27 Richard Guenther <rguenther@suse.de>
4921 PR tree-optimization/48772
4922 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4924 2011-04-27 Richard Guenther <rguenther@suse.de>
4926 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4927 TARGET_MEM_REF handling.
4929 2011-04-27 Nick Clifton <nickc@redhat.com>
4931 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4932 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4933 (REG_CLASS_NAMES): Likewise.
4934 (REG_CLASS_CONTENTS): Likewise.
4935 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4936 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4937 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4938 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4939 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4940 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4941 duplicate register classes.
4942 (frv_class_likely_spilled_p): Likewise.
4943 (frv_register_move_cost): Likewise.
4945 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4946 end of the regno_reg_class array.
4948 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4951 * c-typeck.c (build_binary_op): Don't wrap arguments if
4952 int_operands is true.
4954 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4957 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4958 targetm.calls.must_pass_in_stack for void type.
4960 2011-04-26 Jan Hubicka <jh@suse.cz>
4962 * cgraphbuild.c (build_cgraph_edges): Update call
4963 of cgraph_create_edge and cgraph_create_indirect_edge.
4964 * cgraph.c (cgraph_create_edge_including_clones,
4965 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4966 cgraph_update_edges_for_call_stmt_node): Do not take nest
4967 argument; do not initialize call_stmt_size/time.
4968 (dump_cgraph_node): Do not dump nest.
4969 (cgraph_clone_edge): Do not take loop_nest argument;
4970 do not propagate it; do not clone call_stmt_size/time.
4971 (cgraph_clone_node): Likewise.
4972 (cgraph_create_virtual_clone): Update.
4973 * cgraph.h (struct cgraph_edge): Remove
4974 call_stmt_size/call_stmt_time/loop_nest.
4975 (cgraph_create_edge, cgraph_create_indirect_edge,
4976 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4978 * tree-emutls.c (gen_emutls_addr): Update.
4979 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4980 loop_nest; handle indirect calls, too.
4981 (clone_inlined_nodes): Do not care about updating inline summaries.
4982 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4983 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4984 stream call_stmt_size/call_stmt_time/loop_nest.
4985 * ipa-inline.c (edge_badness): Update.
4986 (ipa_inline): dump summaries after inlining.
4987 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4989 (inline_edge_summary): New function.
4990 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4991 (inline_edge_removal_hook): Handle edge summaries.
4992 (inline_edge_duplication_hook): New hook.
4993 (inline_summary_alloc): Alloc hooks.
4994 (initialize_growth_caches): Do not register removal hooks.
4995 (free_growth_caches); Do not free removal hook.
4996 (dump_inline_edge_summary): New function.
4997 (dump_inline_summary): Use it.
4998 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4999 (inline_update_callee_summaries): New function.
5000 (inline_merge_summary): Use it.
5001 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5002 (read_inline_edge_summary): New function.
5003 (inline_read_section): Use it.
5004 (write_inline_edge_summary): New function.
5005 (inline_write_summary): Use it.
5006 (inline_free_summary): Free edge new holders.
5007 * tree-inline.c (copy_bb): Update.
5009 2011-04-26 Jason Merrill <jason@redhat.com>
5011 * tree-eh.c (lower_try_finally_switch): Create the label along with
5012 the CASE_LABEL_EXPR.
5014 2011-04-26 David S. Miller <davem@davemloft.net>
5015 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5017 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5018 * configure: Regenerate.
5020 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5023 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5025 (VEC_reduc): New code iterator and splitters for vector reduction.
5026 (VEC_reduc_name): Ditto.
5027 (VEC_reduc_rtx): Ditto.
5028 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5029 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5031 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5032 support for extracting SF on VSX.
5034 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5035 generating xscvspdp.
5036 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5037 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5038 double add, minimum, maximum vector reduction.
5039 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5040 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5041 optimize double vector reduction.
5042 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5044 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5046 * config/fr30/fr30.h (inhibit_libc): Don't define.
5047 * config/m32r/m32r-protos.h: Correct comment.
5048 * config/v850/v850.h (GHS_default_section_names,
5049 GHS_current_section_names): Use tree, not union tree_node *.
5051 2011-04-26 Xinliang David Li <davidxl@google.com>
5053 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5054 * c-family/c-opts.c (c_common_handle_option): Set
5055 warn_maybe_uninitialized.
5056 * opts.c (common_handle_option): Ditto.
5057 * common.opt: New option.
5058 * tree-ssa.c (warn_uninit): Add one more parameter.
5059 (warn_uninitialized_var): Pass warning code.
5060 * tree-flow.h: Interface change.
5062 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5064 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5065 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5066 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5068 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5070 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5071 * config/mips/mips.opt (mmips-tfile): Remove.
5073 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5074 mips-tdump reference to ...
5075 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5076 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5077 reference by Tru64 UNIX.
5079 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5082 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5083 is error_mark_node, set value to NULL.
5085 PR tree-optimization/48734
5086 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5087 if return value from maybe_fold_*_comparsions isn't something
5088 the code is prepared to handle.
5090 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5092 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5094 (ext_QIreg_nomode_operands): Remove.
5095 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5099 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5101 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5103 2011-04-26 Richard Guenther <rguenther@suse.de>
5105 * c-typeck.c (build_unary_op): Do not expand array-refs via
5106 pointer arithmetic. Only adjust qualifiers for function types.
5108 2011-04-26 Richard Guenther <rguenther@suse.de>
5111 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5112 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5113 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5114 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5116 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5118 * doc/extend.texi: Document __underlying_type.
5120 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5122 * config/rs6000/titan.md (automata_option "progress"): Remove.
5124 2011-04-25 Jeff Law <law@redhat.com>
5126 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5128 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5130 * system.h (ENUM_BITFIELD): Remove.
5132 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5133 Eric Botcazou <ebotcazou@adacore.com>
5135 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5136 for STORE_FLAG_VALUE==-1 case.
5138 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5141 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5142 LEGITIMATE_PIC_OPERAND_P.
5144 2011-04-24 Jan Hubicka <jh@suse.cz>
5146 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5148 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5149 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5150 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5151 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5152 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5153 Sanity check predicate length.
5154 (remap_predicate): Likewise; sanity check jump functions.
5155 (inline_read_section, inline_write_summary): Sanity check
5158 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5161 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5162 __is_literal_type, and __is_trivial; update throughout about
5163 possibly cv-qualified void types.
5165 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5167 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5168 testsuite and make it version agnostic.
5170 2011-04-22 Jan Hubicka <jh@suse.cz>
5172 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5174 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5177 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5178 to VOID_TYPE even around MODIFY_EXPR.
5180 2011-04-22 Mike Stump <mikestump@comcast.net>
5182 * gensupport.c (read_md_rtx): Fix typo in comment.
5183 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5186 2011-04-22 Jan Hubicka <jh@suse.cz>
5188 * gengtype.c (open_base_files): Add ipa-inline.h include.
5189 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5190 ipa-prop.c; update all uses.
5191 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5192 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5193 merge summary of inlined function into former caller.
5194 * ipa-inline.c (max_benefit): Remove.
5195 (edge_badness): Compensate for removal of benefits.
5196 (update_caller_keys): Use
5197 reset_node_growth_cache/reset_edge_growth_cache.
5198 (update_callee_keys): Likewise.
5199 (update_all_callee_keys): Likewise.
5200 (inline_small_functions): Do not collect max_benefit; do not reset
5201 estimated_growth; call free_growth_caches and initialize_growth_caches.
5202 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5203 struct size_time_entry): New structures.
5204 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5205 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5206 and estimated_growth.
5207 (edge_growth_cache_entry): New structure.
5208 (node_growth_cache, edge_growth_cache): New global vars.
5209 (estimate_growth): Turn into inline.
5210 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5211 initialize_growth_caches, free_growth_caches): Declare.
5212 (estimate_edge_growth): Rewrite.
5213 (estimate_edge_time): Implement as inline cache lookup.
5214 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5216 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5217 (NUM_CONDITIONS): New constant.
5218 (predicate_conditions): New enum.
5219 (IS_NOT_CONSTANT): New constant.
5220 (edge_removal_hook_holder): New var.
5221 (node_growth_cache, edge_growth_cache): New global vars.
5222 (true_predicate, single_cond_predicate, false_predicate,
5223 not_inlined_predicate, add_condition, add_clause, and_predicates,
5224 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5225 dump_clause, dump_predicate, account_size_time,
5226 evaulate_conditions_for_edge): New functions.
5227 (inline_summary_alloc): Move to heap.
5228 (inline_node_removal_hook): Clear condition and entry vectors.
5229 (inline_edge_removal_hook): New function.
5230 (initialize_growth_caches, free_growth_caches): New function.
5231 (dump_inline_summary): Update.
5232 (edge_execution_predicate): New function.
5233 (will_be_nonconstant_predicate): New function.
5234 (estimate_function_body_sizes): Compute BB and constantness predicates.
5235 (compute_inline_parameters): Do not clear estimated_growth.
5236 (estimate_edge_size_and_time): New function.
5237 (estimate_calls_size_and_time): New function.
5238 (estimate_callee_size_and_time): New function.
5239 (remap_predicate): New function.
5240 (inline_merge_summary): New function.
5241 (do_estimate_edge_time): New function based on...
5242 (estimate_edge_time): ... this one.
5243 (do_estimate_edge_growth): New function.
5244 (do_estimate_growth): New function based on....
5245 (estimate_growth): ... this one.
5246 (inline_analyze_function): Analyze after deciding on jump functions.
5247 (inline_read_section): New function.
5248 (inline_read_summary): Use it.
5249 (inline_write_summary): Write all the new data.
5250 * ipa-prop.c (ipa_get_param_decl_index): Export.
5251 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5252 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5254 (ipa_get_lattice): Move here from ipa-cp.c
5255 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5256 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5257 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5258 cgraph_edge_inlinable_p): Remove.
5259 * cgraphunit.c: Include ipainline.h
5260 (cgraph_process_new_functions): Update call of
5261 compute_inline_parameters.
5263 2011-04-22 Richard Guenther <rguenther@suse.de>
5265 * tree.c (build_int_cst): Properly create canonicalized integer
5267 (build_int_cst_type): Remove scary comments.
5269 2011-04-22 Xinliang David Li <davidxl@google.com>
5271 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5272 by default when -Wno-error is not specified.
5273 * opts-global.c (decode_options): Remove call to
5274 control_warning_options.
5276 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5278 PR tree-optimization/48717
5279 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5280 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5282 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5284 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5285 definition where used.
5287 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5290 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5291 TREE_STATIC variables declared inside of some OpenMP construct.
5293 2011-04-22 Martin Jambor <mjambor@suse.cz>
5296 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5298 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5301 * c-typeck.c (pop_init_level): Do not warn about initializing
5304 2011-04-22 Alan Modra <amodra@gmail.com>
5306 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5307 when returning call_cookie.
5308 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5309 pointers, to functions with no more vector args than the current
5310 function, and some non-local calls for ABI_V4.
5311 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5312 sibcall_nonlocal_aix64): Combine to ..
5313 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5314 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5315 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5316 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5317 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5319 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5320 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5321 sibcall_value_symbolic_64): Delete.
5323 2011-04-21 Xinliang David Li <davidxl@google.com>
5325 * cgraph.h: Remove pid.
5326 * cgraph.c: Remove pid.
5327 * value-prof.c (init_node_map): New function.
5328 (del_node_map): New function.
5329 (find_func_by_funcdef_no): New function.
5330 (gimple_ic_transform): Call new function.
5331 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5332 * function.c (get_last_funcdef_no): New function.
5333 * function.h (get_last_funcdef_no): New function.
5334 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5335 to libgcov function.
5336 (tree-profiling): Call node map init and delete function.
5338 2011-04-21 Ian Lance Taylor <iant@google.com>
5340 * godump.c (go_format_type): Use exported Go name for anonymous
5343 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5345 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5346 Call builtin_function_type_list instead of builtin_function_type.
5347 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5349 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5351 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5352 build_function_type_list instead of build_function_type.
5353 Delete variable `endlink'.
5355 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5357 * config/s390/s390.c (s390_init_builtins): Call
5358 build_function_type_list instead of build_function_type.
5360 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5362 * config/ia64/ia64.c (ia64_init_builtins): Call
5363 build_function_type_list instead of builtin_function_type.
5365 2011-04-21 Easwaran Raman <eraman@google.com>
5367 * cfgexpand.c (stack_var): Remove OFFSET...
5368 (add_stack_var): ...and its reference here...
5369 (expand_stack_vars): ...and here.
5370 (stack_var_cmp): Sort by descending order of size.
5371 (partition_stack_vars): Change heuristic.
5372 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5373 (dump_stack_var_partition): Add newline after each partition.
5375 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5376 Jeff Law <law@redhat.com>
5378 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5379 * gengtype.c (matching_file_name_substitute): Likewise.
5381 2011-04-21 Richard Guenther <rguenther@suse.de>
5384 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5386 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5388 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5390 2011-04-21 Richard Guenther <rguenther@suse.de>
5392 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5395 2011-04-21 Richard Guenther <rguenther@suse.de>
5397 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5398 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5399 Use DECL_P, not SSA_VAR_P.
5400 (ptr_derefs_may_alias_p): Likewise.
5401 (ptr_deref_may_alias_ref_p_1): Likewise.
5402 (decl_refs_may_alias_p): Likewise.
5403 (refs_may_alias_p_1): Likewise.
5404 (ref_maybe_used_by_call_p_1): Likewise.
5405 (call_may_clobber_ref_p_1): Likewise.
5406 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5407 are either MEM_REF or TARGET_MEM_REF.
5408 (indirect_refs_may_alias_p): Likewise.
5409 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5410 for MEM_EXPR of indirect calls.
5412 2011-04-21 Tristan Gingold <gingold@adacore.com>
5414 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5415 (dst_file_info_struct): Remove flen field.
5416 (lookup_filename): Remove code that set flen field.
5418 2011-04-21 Tristan Gingold <gingold@adacore.com>
5420 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5422 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5425 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5426 vec_extract and vec_concat for non-SSE4_1 targets.
5428 2011-04-21 Richard Guenther <rguenther@suse.de>
5430 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5433 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5435 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5437 (FILE): Don't undefine.
5439 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5441 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5443 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5445 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5446 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5447 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5449 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5450 definitions where used.
5451 * config/microblaze/microblaze.h (struct microblaze_args): Use
5452 rtx, not struct rtx_def *.
5453 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5455 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5456 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5457 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5458 not struct rtx_def *.
5459 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5461 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5463 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5465 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5467 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5468 operand_equal_p to compare DR_BASE_ADDRESSes.
5469 (vect_check_interleaving): Likewise.
5471 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5474 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5475 for all Neon struct constants.
5477 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5479 * target.def (legitimate_constant_p): New hook.
5480 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5481 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5482 * doc/tm.texi: Regenerate.
5483 * hooks.h (hook_bool_mode_rtx_true): Declare.
5484 * hooks.c (hook_bool_mode_rtx_true): Define.
5485 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5486 * calls.c (precompute_register_parameters): Replace uses of
5487 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5488 (emit_library_call_value_1): Likewise.
5489 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5490 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5491 * ira-costs.c (scan_one_insn): Likewise.
5492 * recog.c (general_operand, immediate_operand): Likewise.
5493 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5494 * reload1.c (init_eliminable_invariants): Likewise.
5496 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5498 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5499 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5501 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5502 * config/alpha/predicates.md (input_operand): Update call to
5503 alpha_legitimate_constant_p.
5505 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5506 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5507 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5508 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5509 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5510 (arm_legitimate_constant_p): New functions.
5511 (arm_cannot_force_const_mem): Make static.
5513 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5515 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5516 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5517 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5518 instead of bfin_legitimate_constant_p.
5519 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5520 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5522 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5524 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5526 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5527 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5528 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5529 (frv_legitimate_constant_p): Make static. Add a mode argument.
5531 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5532 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5533 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5535 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5536 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5537 * config/i386/i386.c (legitimate_constant_p): Rename to...
5538 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5540 (ix86_cannot_force_const_mem): Update accordingly.
5541 (ix86_legitimate_address_p): Likewise.
5542 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5543 * config/i386/i386.md: Update commentary.
5545 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5546 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5547 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5548 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5550 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5552 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5553 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5554 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5555 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5557 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5558 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5559 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5561 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5562 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5563 (m32r_legitimate_constant_p): New function.
5565 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5566 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5567 LEGITIMATE_CONSTANT_P.
5568 (LEGITIMATE_CONSTANT_P): Delete.
5569 * config/m68k/m68k.c (m68k_expand_prologue): Call
5570 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5571 (m68k_legitimate_constant_p): New function.
5572 * config/m68k/m68k.md: Update comments.
5574 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5575 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5576 (mcore_legitimate_constant_p): New function.
5578 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5579 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5580 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5581 Add a mode argument.
5582 (mep_legitimate_address): Update accordingly.
5583 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5585 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5587 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5588 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5589 static. Check OP's mode for VOIDmode.
5590 (microblaze_legitimate_constant_p): New function.
5591 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5593 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5594 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5595 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5596 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5597 * config/mips/predicates.md: Update comments.
5599 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5600 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5601 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5602 (mmix_legitimate_constant_p): Make static, return a bool, and take
5604 (mmix_print_operand_address): Update accordingly.
5606 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5608 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5609 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5610 static. Add a mode argument.
5611 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5613 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5615 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5616 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5617 (pa_legitimate_constant_p): New function.
5619 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5621 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5622 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5623 (pdp11_legitimate_constant_p): New function.
5625 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5626 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5627 (rs6000_legitimate_constant_p): New function.
5629 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5630 (rx_legitimate_constant_p): ...this.
5631 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5632 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5633 (rx_legitimate_constant_p): ...this.
5634 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5635 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5637 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5638 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5639 * config/s390/s390.c (legitimate_constant_p): Rename to...
5640 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5641 and add a mode argument.
5642 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5644 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5646 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5647 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5648 (sh_legitimate_constant_p): New function.
5650 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5651 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5652 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5653 (legitimate_constant_p): Rename to...
5654 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5656 (constant_address_p): Update accordingly.
5658 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5659 argument and return a bool.
5660 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5661 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5662 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5663 (spu_rtx_costs): Update accordingly.
5664 * config/spu/predicates.md (vec_imm_operand): Likewise.
5666 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5668 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5669 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5670 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5672 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5673 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5674 * config/vax/vax.c (legitimate_constant_p): Likewise.
5676 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5677 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5678 (xtensa_legitimate_constant_p): New function.
5680 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5682 * target.def (cannot_force_const_mem): Add a mode argument.
5683 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5684 * doc/tm.texi: Regenerate.
5685 * hooks.h (hook_bool_mode_rtx_false): Declare.
5686 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5687 (hook_bool_mode_const_rtx_true): Likewise.
5688 (hook_bool_mode_rtx_false): New function.
5689 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5690 to be non-VOID. Update call to cannot_force_const_mem.
5691 (find_reloads): Update accordingly.
5692 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5693 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5695 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5696 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5697 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5698 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5699 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5700 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5701 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5702 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5703 (m68k_cannot_force_const_mem): ...this new function.
5704 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5706 (mips_const_insns, mips_legitimize_const_move): Update calls.
5707 (mips_secondary_reload_class): Likewise.
5708 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5709 (pa_cannot_force_const_mem): ...this new function.
5710 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5711 (rs6000_cannot_force_const_mem): ...this new function.
5712 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5714 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5715 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5717 (xtensa_cannot_force_const_mem): ...this new function.
5719 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5721 * config/mips/mips.c (mips16_build_function_stub): Call
5722 build_function_type_list instead of build_function_type.
5723 (mips16_build_call_stub): Likewise.
5725 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5727 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5728 instead of build_function_type.
5730 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5732 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5733 instead of build_function_type.
5735 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5738 * config/i386/i386.md (insv): Change operand 0 constraint to
5739 "register_operand". Change operand 1 and 2 constraint to
5740 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5741 * config/i386/sse.md (sse4_1_pinsrb): Export.
5742 (sse2_pinsrw): Ditto.
5743 (sse4_1_pinsrd): Ditto.
5744 (sse4_1_pinsrq): Ditto.
5745 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5746 * config/i386/i386.c (ix86_expand_pinsr): New.
5748 2011-04-20 Easwaran Raman <eraman@google.com>
5750 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5751 containing union type only with -fstrict-aliasing.
5753 2011-04-20 Jim Meyering <meyering@redhat.com>
5755 Remove useless if-before-free tests.
5756 * calls.c (expand_call, save_area): Likewise.
5757 * cfgcleanup.c (try_forward_edges): Likewise.
5758 * collect2.c (collect_execute): Likewise.
5759 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5760 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5761 * coverage.c (coverage_checksum_string): Likewise.
5762 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5763 * cselib.c (cselib_init): Likewise.
5764 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5765 (df_set_clean_cfg): Likewise.
5766 * function.c (free_after_compilation): Likewise.
5767 * gcc.c (do_spec_1, main): Likewise.
5768 * gcov.c (create_file_names): Likewise.
5769 * gensupport.c (identify_predicable_attribute): Likewise.
5770 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5771 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5772 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5773 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5774 * ipa-pure-const.c (local_pure_const): Likewise.
5775 * ipa-reference.c (propagate): Likewise.
5776 * ira-costs.c (free_ira_costs): Likewise.
5777 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5778 * matrix-reorg.c (mat_free): Likewise.
5779 * prefix.c (get_key_value): Likewise.
5780 * profile.c (compute_value_histograms): Likewise.
5781 * reload1.c (free_reg_equiv): Likewise.
5782 * sched-deps.c (free_deps): Likewise.
5783 * sel-sched-ir.c (fence_clear): Likewise.
5784 * sese.c (set_rename, if_region_set_false_region): Likewise.
5785 * tree-data-ref.c (free_rdg): Likewise.
5786 * tree-eh.c (lower_try_finally): Likewise.
5787 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5788 * tree-ssa-live.c (delete_var_map): Likewise.
5789 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5790 * tree-ssa-pre.c (phi_trans_add): Likewise.
5792 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5794 PR tree-optimization/48611
5795 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5796 beyond ERT_MUST_NOT_THROW region.
5798 2011-04-20 Catherine Moore <clm@codesourcery.com>
5800 * config/mips/mips.opt (mfix-24k): New.
5801 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5802 * config/mips/mips.md (length): Increase by 4 for stores if
5804 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5805 all noreorder if fixing 24K errata.
5806 * doc/invoke.texi: Document mfix-24k.
5808 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5810 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5811 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5813 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5815 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5816 (const_ok_for_op): ... to here.
5818 2011-04-20 Kai Tietz <ktietz@redhat.com>
5820 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5821 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5823 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5825 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5827 2011-04-20 Richard Guenther <rguenther@suse.de>
5829 PR tree-optimization/47892
5830 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5833 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5835 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5837 2011-04-20 Tristan Gingold <gingold@adacore.com>
5839 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5841 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5845 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5846 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5847 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5848 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5849 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5851 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5854 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5855 (avr_asm_named_section, avr_asm_output_aligned_common,
5856 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5857 New functions to update...
5858 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5859 (avr_asm_init_sections): Overwrite section callbacks for
5860 data_section, bss_section.
5861 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5863 (avr_file_end): ...here.
5865 2011-04-20 Richard Guenther <rguenther@suse.de>
5868 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5869 objects and types here. Adjust for their offset before comparing.
5871 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5873 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5876 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5878 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5879 (GIMPLE_H): Include $(INTERNAL_FN_H).
5880 (OBJS-common): Add internal-fn.o.
5881 (internal-fn.o): New rule.
5882 * internal-fn.def: New file.
5883 * internal-fn.h: Likewise.
5884 * internal-fn.c: Likewise.
5885 * gimple.h: Include internal-fn.h.
5886 (GF_CALL_INTERNAL): New gf_mask.
5887 (gimple_statement_call): Put fntype into a union with a new
5889 (gimple_build_call_internal): Declare.
5890 (gimple_build_call_internal_vec): Likewise.
5891 (gimple_call_same_target_p): Likewise.
5892 (gimple_call_internal_p): New function.
5893 (gimple_call_internal_fn): Likewise.
5894 (gimple_call_fntype): Return null for internal calls.
5895 (gimple_call_set_fntype): Assert that the function is not internal.
5896 (gimple_call_set_fn): Likewise.
5897 (gimple_call_set_fndecl): Likewise.
5898 (gimple_call_set_internal_fn): New function.
5899 (gimple_call_addr_fndecl): Handle null functions.
5900 (gimple_call_return_type): Likewise null types.
5901 * gimple.c (gimple_build_call_internal_1): New function.
5902 (gimple_build_call_internal): Likewise.
5903 (gimple_build_call_internal_vec): Likewise.
5904 (gimple_call_same_target_p): Likewise.
5905 (gimple_call_flags): Handle calls to internal functions.
5906 (gimple_call_fnspec): New function.
5907 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5908 (gimple_has_side_effects): Handle null functions.
5909 (gimple_rhs_has_side_effects): Likewise.
5910 (gimple_call_copy_skip_args): Handle calls to internal functions.
5911 * cfgexpand.c (expand_call_stmt): Likewise.
5912 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5913 * gimple-fold.c (gimple_fold_call): Handle null functions.
5914 (gimple_fold_stmt_to_constant_1): Don't fold
5915 calls to internal functions.
5916 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5918 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5919 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5920 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5921 (do_warn_unused_result): Likewise.
5922 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5923 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5924 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5925 the target of a call.
5926 (initialize_hash_element): Update accordingly.
5927 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5928 (iterative_hash_hashable_expr): Handle calls to internal functions.
5929 (print_expr_hash_elt): Likewise.
5930 * tree-ssa-pre.c (can_value_number_call): Likewise.
5931 (eliminate): Handle null functions.
5932 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5933 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5934 (find_func_aliases): Likewise.
5935 * value-prof.c (gimple_ic_transform): Likewise.
5936 (gimple_indirect_call_to_profile): Likewise.
5937 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5938 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5940 2011-04-19 Jan Hubicka <jh@suse.cz>
5942 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5943 * ipa-inline.c (inline_small_functions): Compute summaries first,
5944 populate heap later.
5946 2011-04-19 Jan Hubicka <jh@suse.cz>
5948 * cgraph.h (save_inline_function_body): Remove.
5949 * ipa-inline-transform.c: New file, broke out of...
5950 * ipa-inline.c: ... this one; Update toplevel comment.
5951 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5953 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5954 (cgraph_mark_inline_edge): Rename to inline_call; move to
5955 ipa-inline-transform.c.
5956 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5957 move to ipa-inline-transform.c
5958 (recursive_inlining, inline_small_functions, flatten_function,
5959 ipa_inline, inline_always_inline_functions,
5960 early_inline_small_functions): Update.
5961 (inline_transform): Move to ipa-inline-transform.c.
5962 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5964 * Makefile.in (ipa-inline-transform.o): New file.
5965 * cgraphunit.c (save_inline_function_body): Move to
5966 ipa-inline-transform.c
5968 2011-04-19 DJ Delorie <dj@redhat.com>
5970 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5971 registers if we already know there aren't any.
5972 (m32c_emit_epilogue): Don't emit a barrier here.
5973 (m32c_emit_eh_epilogue): Likewise.
5974 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5975 operands at expand time.
5976 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5978 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5979 duplicates. Provide aliases instead.
5980 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5981 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5984 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5986 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5987 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5988 (general_or_i64_p, sparc_register_move_cost): New function.
5990 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5992 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5993 Add lynx, mipssde. Sort table.
5995 2011-04-19 Xinliang David Li <davidxl@google.com>
5997 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6000 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6003 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6004 is a SUBREG with non-MODE_INT mode inside of it.
6006 2011-04-19 Martin Jambor <mjambor@suse.cz>
6008 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6009 also according to actual contants.
6010 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6011 (gimple_fold_call): Use it.
6012 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6014 2011-04-19 Martin Jambor <mjambor@suse.cz>
6016 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6017 non-pointer assignments.
6019 2011-04-19 Martin Jambor <mjambor@suse.cz>
6021 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6022 account anc_offset and otr_type from the indirect edge info.
6023 * ipa-prop.c (get_ancestor_addr_info): New function.
6024 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6025 get_ancestor_addr_info, call it.
6026 (ipa_note_param_call): Do not initialize information about polymorphic
6027 calls, return the indirect call graph edge. Remove the last
6028 parameter, adjust all callers.
6029 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6030 parameters. Initialize polymorphic information in the indirect edge.
6032 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6035 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6036 the types if they have different enumeration identifiers.
6038 2011-04-19 Jan Hubicka <jh@suse.cz>
6040 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6041 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6042 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6043 (optimize_function_for_size_p) ... here.
6045 2011-04-19 Richard Guenther <rguenther@suse.de>
6048 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6051 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6053 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6054 if DECL_NO_INLINE_WARNING_P is set on the function.
6056 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6059 * reload1.c (inc_for_reload): Return void. All callers changed.
6060 (emit_input_reload_insns): Don't try to delete previous output
6061 reloads to a register, or record spill_reg_store for autoincs.
6063 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6065 * gengtype.h: Updated copyright year.
6066 (struct input_file_st): Add inpisplugin field.
6067 (type_fileloc): New function.
6069 (write_typed_struct_alloc_def): Add gcc_assert.
6070 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6071 (write_typed_alloc_defns): Don't output for plugin files.
6072 (input_file_by_name): Clear inpisplugin field.
6073 (main): Set inpisplugin field for plugin files.
6075 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6077 * gengtype-state.c (string_eq): New.
6078 (read_state): Use string_eq instead of strcmp when creating the
6081 2011-04-19 Wei Guozhi <carrot@google.com>
6084 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6085 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6087 * config/arm/constraints.md (Uu): New constraint.
6088 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6090 2011-04-19 Tristan Gingold <gingold@adacore.com>
6092 * config.gcc (-*-*-*vms): Added.
6093 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6095 * config/vms/vms-ld.c: New file.
6096 * config/vms/vms-ar.c: New file.
6097 * config/vms/t-vmsnative: New file.
6099 2011-04-18 Xinliang David Li <davidxl@google.com>
6101 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6103 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6106 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6107 if TREE_TYPE (v) is non-NULL.
6109 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6110 gimple_get_virt_mehtod_for_binfo.
6111 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6112 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6114 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6116 2011-04-18 Michael Matz <matz@suse.de>
6117 Steve Ellcey <sje@cup.hp.com>
6119 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6120 use its mode as source mode if it isn't VOIDmode.
6122 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6124 * doc/passes.texi: Fill crossref nodes.
6126 2011-04-18 Jim Meyering <meyering@redhat.com>
6128 Fix doubled-word typos in comments and strings
6129 * config/alpha/vms-unwind.h: s/for for/for/
6130 * config/arm/unwind-arm.h: Likewise.
6131 * config/microblaze/microblaze.c: Likewise.
6132 * config/sh/constraints.md: s/in in/in/
6133 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6135 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6137 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6138 (AVX_FLOAT_MODE_P): Ditto.
6139 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6140 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6141 (AVX_VEC_FLOAT_MODE_P): Ditto.
6142 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6143 (UNSPEC_MASKSTORE): Ditto.
6144 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6145 Merge from <sse>_movmsk<ssemodesuffix> and
6146 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6147 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6149 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6150 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6151 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6153 2011-04-18 Jan Hubicka <jh@suse.cz>
6155 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6157 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6158 (want_inline_function_called_once_p): Break out the logic from
6160 (edge_badness): Ensure that profile is not misupdated.
6161 (lookup_recursive_calls): Prioritize by call frequencies.
6162 (inline_small_functions): Move program size estimates here;
6163 actually process whole queue even when unit growth has been
6164 met. (to properly compute inline_failed reasons and for the
6165 case unit size decrease.) Revisit comments on recursive inlining.
6166 (ipa_inline): Remove unit summary code; first inline hot calls
6167 of functions called once, cold calls next.
6168 (order, nnodes): Remove unused variables.
6169 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6170 (GTFILES): Remove ipa-inline.c
6171 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6173 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6175 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6177 2011-04-18 Jie Zhang <jie@codesourcery.com>
6178 Richard Earnshaw <rearnsha@arm.com>
6180 * arm.c (neon_builtin_type_bits): Remove.
6181 (typedef enum neon_builtin_mode): New.
6182 (T_MAX): Don't define.
6183 (typedef enum neon_builtin_datum): Remove bits, codes[],
6184 num_vars and base_fcode. Add mode, code and fcode.
6185 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6186 VAR10): Change accordingly.
6187 (neon_builtin_data[]): Change accordingly
6188 (arm_init_neon_builtins): Change accordingly.
6189 (neon_builtin_compare): Remove.
6190 (locate_neon_builtin_icode): Remove.
6191 (arm_expand_neon_builtin): Change accordingly.
6193 * arm.h (enum arm_builtins): Move to ...
6194 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6196 * arm.c (arm_builtin_decl): Declare.
6197 (TARGET_BUILTIN_DECL): Define.
6198 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6199 (arm_builtin_decls[]): New.
6200 (arm_init_neon_builtins): Store builtin declarations in
6201 arm_builtin_decls[].
6202 (arm_init_tls_builtins): Likewise.
6203 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6204 (arm_builtin_decl): New.
6206 2011-04-18 Richard Guenther <rguenther@suse.de>
6208 * tree.c (upper_bound_in_type): Build properly canonicalized
6210 (lower_bound_in_type): Likewise.
6212 2011-04-18 Richard Guenther <rguenther@suse.de>
6214 * gimple.h (gimple_call_addr_fndecl): New function.
6215 (gimple_call_fndecl): Use it.
6216 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6218 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6219 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6221 2011-04-18 Richard Guenther <rguenther@suse.de>
6224 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6226 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6229 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6230 DECL_IN_CONSTANT_POOL without RTL.
6232 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6233 Ira Rosen <ira.rosen@linaro.org>
6236 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6237 to match neon_vzip/vuzp/vtrn_internal.
6238 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6239 outputs explicitly dependent on both inputs.
6240 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6242 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6244 PR tree-optimization/48616
6245 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6246 whether the shift is by scalar or vector based on whether all SLP
6247 scalar stmts have the same rhs.
6249 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6251 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6254 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6257 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6260 2011-04-17 Jan Hubicka <jh@suse.cz>
6262 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6263 * cgrpahunit.c (cgraph_finalize_function): Do not set
6264 finalized_by_frontend.
6265 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6266 finalized_by_frontend.
6268 2011-04-17 Jan Hubicka <jh@suse.cz>
6270 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6271 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6272 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6273 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6275 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6277 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6279 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6282 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6283 is non-null before accessing it.
6284 (input_cgraph): Remove trailing spaces.
6286 2011-04-17 Revital Eres <revital.eres@linaro.org>
6288 * params.def (sms-min-sc): New param flag.
6289 * modulo-sched.c (sms_schedule): Use it.
6290 * doc/invoke.texi (sms-min-sc): Document it.
6292 2011-04-17 Jan Hubicka <jh@suse.cz>
6294 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6295 present, also set gimple_call_set_cannot_inline.
6296 * ipa-inline.c: Update toplevel comment.
6298 (cgraph_clone_inlined_nodes): Fix linebreaks.
6299 (cgraph_check_inline_limits): Restructure to ...
6300 (caller_growth_limits): ... this one; be more tolerant
6301 on growth in nested inline chains; add explanatory comment;
6302 fix stack accounting thinko introduced by previous patch.
6303 (cgraph_default_inline_p): Remove.
6304 (report_inline_failed_reason): New function.
6305 (can_inline_edge_p): New function.
6306 (can_early_inline_edge_p): New function.
6307 (leaf_node_p): Move upwards in file.
6308 (want_early_inline_function_p): New function.
6309 (want_inline_small_function_p): New function.
6310 (want_inline_self_recursive_call_p): New function.
6311 (cgraph_edge_badness): Rename to ...
6312 (edge_badness) ... this one; fix linebreaks.
6313 (update_edge_key): Update call of edge_baddness; add
6314 detailed dump about queue updates.
6315 (update_caller_keys): Use can_inline_edge_p and
6316 want_inline_small_function_p.
6317 (cgraph_decide_recursive_inlining): Rename to...
6318 (recursive_inlining): Use can_inline_edge_p and
6319 want_inline_self_recursive_call_p; simplify and remove no longer
6321 (cgraph_set_inline_failed): Remove.
6322 (add_new_edges_to_heap): Use can_inline_edge_p and
6323 want_inline_small_function_p.
6324 (cgraph_decide_inlining_of_small_functions): Rename to ...
6325 (inline_small_functions): ... this one; cleanup; use
6326 can/want predicates; cleanup debug ouput; work edges till fibheap
6327 is exhausted and do not stop once unit growth is reached; remove
6328 later loop processing remaining edges.
6329 (cgraph_flatten): Rename to ...
6330 (flatten_function): ... this one; use can_inline_edge_p
6331 and can_early_inline_edge_p predicates.
6332 (cgraph_decide_inlining): Rename to ...
6333 (ipa_inline): ... this one; remove unreachable nodes before
6334 inlining functions called once; simplify the pass.
6335 (cgraph_perform_always_inlining): Rename to ...
6336 (inline_always_inline_functions): ... this one; use
6337 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6338 (cgraph_decide_inlining_incrementally): Rename to ...
6339 (early_inline_small_functions): ... this one; simplify
6340 using new predicates; cleanup; make dumps prettier.
6341 (cgraph_early_inlining): Rename to ...
6342 (early_inliner): newer inline regular functions into always-inlines;
6343 fix updating of call stmt summaries.
6344 (pass_early_inline): Update for new names.
6345 (inline_transform): Fix formating.
6346 (gate_cgraph_decide_inlining): Rename to ...
6347 (pass_ipa_inline): ... this one.
6348 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6349 * ipa-inline-analysis.c (dump_inline_summary): Update.
6350 (compute_inline_parameters): Do not compute disregard_inline_limits;
6351 look for mismatching arguments.
6352 (estimate_growth): Fix handlig of non-trivial self recursion.
6353 (inline_read_summary): Do not read info->disregard_inline_limits.
6354 (inline_write_summary): Do not write info->disregard_inline_limits.
6355 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6356 and move all checks into can_inline_edge_p predicate; re-enable code
6357 comparing optimization levels.
6358 (expand_call_inline): Do not test inline_forbidden_into_p.
6359 * Makefile.in (ipa-inline.o): Update arguments.
6361 2011-04-17 Revital Eres <revital.eres@linaro.org>
6363 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6365 2011-04-17 Revital Eres <revital.eres@linaro.org>
6367 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6369 2011-04-17 Michael Matz <matz@suse.de>
6371 PR tree-optimization/48622
6373 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6374 in same order as they're written.
6376 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6378 * config/pa/predicates.md: Reorganize and simplify predicates.
6379 Eliminate duplicate code checks.
6380 (arith_operand): Rename to arith14_operand
6381 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6382 * config/pa/pa.md: Use renamed operands.
6383 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6384 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6385 arith11_operand, adddi3_operand, indexed_memory_operand,
6386 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6387 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6388 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6389 move_dest_operand, move_src_operand, prefetch_cc_operand,
6390 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6391 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6392 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6393 div_operand, int5_operand, movb_comparison_operator,
6394 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6395 arith_double_operand, ireg_operand, lhs_lshift_operand,
6396 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6397 integer_store_memory_operand): Likewise.
6398 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6399 (integer_store_memory_operand, read_only_operand,
6400 function_label_operand, borx_reg_operand,
6401 non_hard_reg_operand): Likewise.
6402 (eq_neq_comparison_operator): Delete unused operator.
6403 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6404 function_label_operand.
6405 (emit_move_sequence): Likewise.
6407 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6409 * config/i386/sse.md (sseunpackmode): New mode attribute.
6410 (ssepackmode): Ditto.
6411 (vec_pack_trunc_<mode>): Macroize expander from
6412 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6413 (vec_unpacks_lo_<mode>): Macroize expander from
6414 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6415 (vec_unpacks_hi_<mode>): Macroize expander from
6416 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6417 (vec_unpacku_lo_<mode>): Macroize expander from
6418 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6419 (vec_unpacku_hi_<mode>): Macroize expander from
6420 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6421 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6422 ix86_expand_sse4_unpack.
6423 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6425 2011-04-16 Jan Hubicka <jh@suse.cz>
6427 * cgraphbuild.c: Include ipa-inline.h.
6428 (reset_inline_failed): Use initialize_inline_failed.
6429 * cgraph.c: Include ipa-inline.h.
6430 (cgraph_create_node_1): Do not initialize estimated_growth.
6431 (initialize_inline_failed): More to ipa-inline-analysis.c
6432 (dump_cgraph_node): Do not dump inline flags.
6433 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6434 and disregard_inline_limits flags.
6435 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6436 time, size, estimated_growth.
6437 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6439 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6440 DECL_DISREGARD_INLINE_LIMITS.
6441 (cgraph_analyze_function): Do not initialize
6442 node->local.disregard_inline_limits.
6443 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6444 inlinable, versionable and disregard_inline_limits.
6445 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6446 cgraph_check_inline_limits, cgraph_default_inline_p,
6447 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6448 add_new_edges_to_heap): Update.
6449 (cgraph_decide_inlining_of_small_function): Update; set
6450 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6451 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6452 cgraph_decide_inlining_incrementally): Update.
6453 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6454 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6455 time, size and estimated_growth parameters.
6456 (estimate_edge_growth): Update.
6457 (initialize_inline_failed): Declare.
6458 * ipa-split.c: Include ipa-inline.h
6459 (execute_split_functions): Update.
6460 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6461 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6462 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6463 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6464 estimated_growth to INT_MIN.
6465 (inline_node_duplication_hook): Likewise.
6466 (dump_inline_summary): Dump new fields.
6467 (compute_inline_parameters): Update.
6468 (estimate_edge_time, estimate_time_after_inlining,
6469 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6470 inline_write_summary):
6471 (initialize_inline_failed): Move here from cgraph.c.
6472 * tree-sra.c: Include ipa-inline.h.
6473 (ipa_sra_preliminary_function_checks): Update.
6474 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6477 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6479 * config/i386/sse.md (V16): New mode iterator.
6481 (AVXMODEQI, AVXMODEDI): Remove.
6482 (sse2, sse3): New mode attribute.
6483 (mov<mode>): Use V16 mode iterator.
6484 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6485 (push<mode>1): Use V16 mode iterator.
6486 (movmisalign<mode>): Ditto.
6487 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6488 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6489 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6490 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6491 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6492 avx_movdqu<avxmodesuffix>.
6493 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6494 *avx_movdqu<avxmodesuffix>.
6495 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6496 avx_lddqu<avxmodesuffix>.
6497 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6498 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6499 avx_movnt<AVXMODEDI:mode>.
6500 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6501 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6503 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6506 * haifa-sched.c (prune_ready_list, schedule_block): Use
6507 sched_pressure_p rather than flag_sched_pressure.
6509 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6511 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6512 cgraph_get_node instead of cgraph_get_create_node.
6514 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6516 * cfgexpand.c (expand_debug_expr): Use
6517 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6519 2011-04-15 Michael Matz <matz@suse.de>
6521 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6522 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6523 * function.c (gimplify_parameters): Ditto.
6524 * gimplify.c (gimplify_vla_decl): Ditto.
6526 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6527 (gimple_call_set_alloca_for_var): New inline function.
6528 (gimple_call_alloca_for_var_p): Ditto.
6529 * gimple.c (gimple_build_call_from_tree): Remember
6530 CALL_ALLOCA_FOR_VAR_P state.
6531 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6533 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6534 calls if they were for VLA objects.
6536 2011-04-15 Martin Jambor <mjambor@suse.cz>
6538 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6541 2011-04-15 Martin Jambor <mjambor@suse.cz>
6544 * tree-emutls.c (lower_emutls_function_body): Call
6545 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6548 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6550 * c-decl.c (detect_field_duplicates): Call
6551 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6553 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6555 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6556 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6557 * ipa-pure-const.c (check_stmt): Call it.
6558 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6560 2011-04-15 Richard Guenther <rguenther@suse.de>
6562 PR tree-optimization/48290
6563 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6564 Properly decide inhibiting propagation based on the valueized
6565 operand. Do loop-closed SSA form preserving here ...
6566 (init_copy_prop): ... not here.
6568 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6571 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6572 (*ieee_smax<mode>3): Likewise.
6574 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6576 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6577 Replace match_operand with match_dup for the third operand in
6580 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6582 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6583 to track processing of conditionals. Update all callers.
6584 (try_combine, simplify_if_then_else): Update.
6586 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6588 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6591 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6593 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6594 instead of match_operand for operand 3.
6596 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6598 * recog.h (insn_operand_data): Add an "allows_mem" field.
6599 * genoutput.c (output_operand_data): Initialize it.
6600 * optabs.c (maybe_legitimize_operand_same_code): New function.
6601 (maybe_legitimize_operand): Use it when matching the original
6604 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6606 * gimplify.c: Fix issues in comments throughout.
6607 (voidify_wrapper_expr): Fix long line.
6608 (build_stack_save_restore): Likewise.
6609 (gimplify_loop_expr): Likewise.
6610 (gimplify_compound_lval): Likewise.
6611 (gimplify_init_ctor_eval): Likewise.
6612 (gimplify_modify_expr_rhs): Likewise.
6613 (omp_notice_threadprivate_variable): Likewise.
6615 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6617 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6618 original one if this is not a builtin function.
6620 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6623 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6624 offset it as needed based on top 2 bits in operands[3], change
6625 MEM mode to SFmode and mask those 2 bits away from operands[3].
6627 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6629 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6630 change from objc_declare_protocols() to objc_declare_protocol().
6632 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6634 * config/i386/sse.md (sse4_1): New mode attribute.
6635 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6636 avx_blend<ssemodesuffix><avxmodesuffix> and
6637 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6638 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6639 avx_blendv<ssemodesuffix><avxmodesuffix> and
6640 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6641 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6642 avx_dp<ssemodesuffix><avxmodesuffix> and
6643 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6644 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6645 (sse4_1_packusdw): Merge with *avx_packusdw.
6646 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6647 (sse4_1_pblendw): Merge with *avx_pblendw.
6648 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6649 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6650 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6652 (sse4_1_round<ssescalarmodesuffix>): Merge with
6653 *avx_round<ssescalarmodesuffix>.
6654 (aesenc): Merge with *avx_aesenc.
6655 (aesenclast): Merge with *avx_aesenclast.
6656 (aesdec): Merge with *avx_aesdec.
6657 (aesdeclast): Merge with *avx_aesdeclast.
6658 (pclmulqdq): Merge with *pclmulqdq.
6659 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6661 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6663 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6666 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6667 (align_local_variable): This. Update DECL_ALIGN.
6668 (add_stack_var): Updated.
6669 (expand_one_stack_var): Likewise.
6671 2011-04-14 Richard Guenther <rguenther@suse.de>
6673 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6675 (dse_initialize_block_local_data, dse_leave_block,
6676 record_voperand_set, get_stmt_uid): Likewise.
6677 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6678 (dse_optimize_stmt): Remove voperand set handling code.
6679 Simplify and improve to handle any kind of killing stmt.
6680 (dse_record_phi): Remove.
6681 (dse_enter_block): Simplify.
6682 (tree_ssa_dse): Likewise.
6683 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6685 2011-04-14 Jan Hubicka <jh@suse.cz>
6687 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6688 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6689 (cgraph_local_info): Remove inline_summary.
6690 * ipa-cp.c: Include ipa-inline.h.
6691 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6692 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6694 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6695 (input_overwrite_node): Do not set inline summary.
6696 (input_node): Do not stream inline summary.
6697 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6698 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6699 growth; we do not have inline parameters computed for that anyway.
6700 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6701 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6702 (inline_summary_t): New type and VECtor.
6703 (debug_inline_summary, dump_inline_summaries): Declare.
6704 (inline_summary): Use VOCtor.
6705 (estimate_edge_growth): Kill hack computing call stmt size directly.
6706 * lto-section-in.c (lto_section_name): Add inline section.
6707 * ipa-inline-analysis.c: Include lto-streamer.h
6708 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6709 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6710 (inline_summary_vec): Define.
6711 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6712 dump_inline_summaries): New functions.
6713 (estimate_function_body_sizes): Properly compute size/time of outgoing
6715 (compute_inline_parameters): Alloc inline_summary; do not compute
6716 size/time of incomming calls.
6717 (estimate_edge_time): Avoid missing time summary hack.
6718 (inline_read_summary): Read inline summary info.
6719 (inline_write_summary): Write inline summary info.
6720 (inline_free_summary): Free all hooks and inline summary vector.
6721 * lto-streamer.h: Add LTO_section_inline_summary section.
6722 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6723 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6725 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6727 * tree-vectorizer.h (vect_strided_store_supported): Add a
6728 HOST_WIDE_INT argument.
6729 (vect_strided_load_supported): Likewise.
6730 (vect_permute_store_chain): Return void.
6731 (vect_transform_strided_load): Likewise.
6732 (vect_permute_load_chain): Delete.
6733 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6734 count argument. Check that the count is a power of two.
6735 (vect_strided_load_supported): Likewise.
6736 (vect_permute_store_chain): Return void. Update after above changes.
6737 Assert that the access is supported.
6738 (vect_permute_load_chain): Likewise.
6739 (vect_transform_strided_load): Return void.
6740 * tree-vect-stmts.c (vectorizable_store): Update calls after
6741 above interface changes.
6742 (vectorizable_load): Likewise.
6743 (vect_analyze_stmt): Don't check for strided powers of two here.
6745 2011-04-14 Richard Guenther <rguenther@suse.de>
6747 PR tree-optimization/48590
6748 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6749 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6750 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6751 BUILT_IN_STACK_SAVE.
6752 * tree-ssa-dce.c (propagate_necessity): Handle
6753 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6755 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6757 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6760 2011-04-14 Richard Guenther <rguenther@suse.de>
6762 * tree.h (get_object_alignment_1): Declare.
6763 * builtins.c (get_object_alignment_1): Split out worker from ...
6764 (get_object_alignment): ... here.
6765 * fold-const.c (get_pointer_modulus_and_residue): Use
6766 get_object_alignment_1.
6768 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6770 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6772 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6773 parameter. Generalise code to handle arrays as well as vectors.
6774 (vect_setup_realignment): Update accordingly.
6775 * tree-vect-stmts.c (vectorizable_store): Likewise.
6776 (vectorizable_load): Likewise.
6778 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6780 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6781 within the per-copy loop.
6783 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6785 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6788 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6790 * doc/options.texi (Negative): Explicitly mention that the
6791 Negative chain must be circular.
6793 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6795 * function.h (block_chainon): Declare.
6796 * function.c (block_chainon): Define.
6798 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6799 Eric Weddington <eric.weddington@atmel.com>
6800 Georg-Johann Lay <avr@gjlay.de>
6802 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6804 (avr_init_builtins, avr_expand_builtin,
6805 avr_expand_delay_cycles, avr_expand_unop_builtin,
6806 avr_expand_binop_builtin ): New functions.
6807 (avr_builtin_id): New enum
6808 (struct avr_builtin_description): New struct
6809 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6810 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6812 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6813 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6814 UNSPECV_DELAY_CYCLES): new enumeration values
6815 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6816 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6817 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6818 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6819 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6820 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6821 "fmulsu"): New insns
6823 * config/avr/avr-c.c: fix line endings
6824 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6825 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6826 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6827 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6828 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6830 * doc/extend.texi (AVR Built-in Functions): New node
6831 (Target Builtins): Add documentation of AVR
6834 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6837 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6838 alone. Error if non-const data has attribute progmem.
6840 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6842 * tree.h (struct tree_constructor): Include tree_typed instead of
6844 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6845 TS_TYPED instead of TS_COMMON.
6847 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6849 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6850 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6851 (sse2_psadbw): Merge with *avx_psadbw.
6852 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6853 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6854 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6855 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6856 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6857 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6858 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6859 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6860 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6861 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6862 (ssse3_palignrti): Merge with *avx_palignrti.
6864 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6866 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6867 * tree-ssanames.c (fini_ssanames): VEC_free it.
6868 (make_ssa_name_fn): Update for VECness of free_ssanames.
6869 (release_ssa_name, release_dead_ssa_names): Likewise.
6870 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6872 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6873 TS_TYPED instead of TS_COMMON.
6875 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6877 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6878 statistics_counter_event.
6879 * tree-ssa-copyrename.c (stats): Define.
6880 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6881 statistics_counter_event.
6882 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6883 (bswap_stats, widen_mul_stats): Define.
6884 (insert_reciprocals): Increment rdivs_inserted.
6885 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6886 rfuncs_inserted. Add calls to statistics_counter_event.
6887 (execute_cse_sincos_1): Increment inserted.
6888 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6889 statistics_counter_event.
6890 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6891 of bswap_stats. Add calls to statistics_counter_event.
6892 (convert_mult_to_widen): Increment widen_mults_inserted.
6893 (convert_plusminus_to_widen): Increment maccs_inserted.
6894 (convert_mult_to_fma): Increment fmas_inserted.
6895 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6896 calls to statistics_counter_event.
6898 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6900 PR rtl-optimization/48455
6901 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6902 `temp_costs->mem_cost'.
6904 2011-04-13 Jan Hubicka <jh@suse.cz>
6906 * ipa-inline.h: New file.
6907 * ipa-inline-analysis.c: New file. Broken out of ...
6908 * ipa-inline.c: ... this file; update toplevel comment;
6909 include ipa-inline.h
6910 (inline_summary): Move to ipa-inline.h
6911 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6912 ipa-inline-analysis.c.
6913 (cgraph_estimate_time_after_inlining): Rename to
6914 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6915 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6916 to estimate_edge_growth.
6917 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6918 rename to estimate_size_after_inlining.
6919 (cgraph_mark_inline_edge): Update for new naming convention.
6920 (cgraph_check_inline_limits): Likewise.
6921 (cgraph_edge_badness): Likewise.
6922 (cgraph_decide_recursive_inlining): Likewise.
6923 (cgraph_decide_inlining_of_small_functions): Likewise.
6924 (cgraph_decide_inlining_incrementally): Likewise.
6925 (cgraph_estimate_growth): Rename to estimate_growth; move to
6926 ipa-inline-analysis.c.
6927 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6928 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6929 (compute_inline_parameters): Likewise.
6930 (compute_inline_parameters_for_current): Likewise.
6931 (pass_inline_parameters): Likewise.
6932 (inline_indirect_intraprocedural_analysis): Likewise.
6933 (analyze_function): Rename to inline_analyze_function; likewise.
6934 (add_new_function): Move to ipa-inline-analysis.c.
6935 (inline_generate_summary): Likewise.
6936 (inline_read_summary): Likewise.
6937 (inline_write_summary): Likewise.
6938 * Makefile.in (ipa-inline-analysis.c): New file.
6940 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6942 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6943 * configure: Regenerate.
6945 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6947 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6948 instead of tree_common.
6949 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6951 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6952 TS_TYPED rather than TS_COMMON.
6953 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6955 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6958 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6959 r20 around calls of __tablejump_elpm__
6961 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6964 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6966 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6968 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6970 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6971 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6972 (cfi_vec): New typedef.
6973 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6974 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6975 (cie_cfi_vec): New static variable.
6976 (cie_cfi_head): Delete.
6977 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6978 declaration changed. Use vector rather than list operations.
6979 (new_cfi): Don't initialize the dw_cfi_next field.
6980 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6981 rather than list operations.
6982 (lookup_cfa): Use vector rather than list operations.
6983 (output_cfis): New argument upto. Accept a cfi_vec rather than
6984 a dw_cfi_ref list head as argument. All callers changed.
6985 Iterate over the vector using upto as a maximum index.
6986 (output_all_cfis): New static function.
6987 (output_fde): Use vector rather than list operations. Use the
6988 new upto argument for output_cfis rather than manipulating a
6990 (dwarf2out_begin_prologue): Change initializations to match
6992 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6993 from the vector length rather than searching for the end of a list.
6994 Use output_all_cfis.
6995 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6997 2011-04-13 Nick Clifton <nickc@redhat.com>
6999 * config/rx/rx.md (movmemsi): Do not use this pattern when
7000 volatile pointers are involved.
7002 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7004 * config/i386/sse.md (pinsrbits): Remove.
7005 (sse2_packsswb): Merge with *avx_packsswb.
7006 (sse2_packssdw): Merge with *avx_packssdw.
7007 (sse2_packuswb): Merge with *avx_packuswb.
7008 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7009 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7010 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7011 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7012 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7013 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7014 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7015 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7016 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7017 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7018 (sse2_loadld): Merge with *avx_loadld.
7019 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7020 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7021 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7022 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7023 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7025 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7027 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7029 * print-tree.c (print_node): Likewise.
7030 * tree-inline.c (copy_tree_r): Likewise.
7031 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7032 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7033 instead of TS_COMMON.
7034 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7035 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7036 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7037 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7038 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7040 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7042 (TREE_CHAIN): Check for a TS_COMMON structure.
7043 (TREE_TYPE): Check for a TS_TYPED structure.
7045 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7047 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7048 cgraph_get_create_node instead of cgraph_node.
7050 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7052 * c-parser.c (c_parser_initelt): Updated call to
7053 objc_build_message_expr.
7054 (c_parser_postfix_expression): Likewise.
7056 2011-04-12 Kai Tietz <ktietz@redhat.com>
7058 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7059 MASK_MS_BITFIELD_LAYOUT bit.
7061 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7063 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7064 assert it is always true.
7065 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7068 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7070 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7071 compiling Objective-C to be more efficient.
7073 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7075 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7078 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7080 * recog.h, genoutput.c, optabs.c: Revert last patch.
7082 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7085 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7087 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7089 * recog.h (insn_operand_data): Add an "allows_mem" field.
7090 * genoutput.c (output_operand_data): Initialize it.
7091 * optabs.c (maybe_legitimize_operand_same_code): New function.
7092 (maybe_legitimize_operand): Use it when matching the original
7095 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7097 * genpreds.c (process_define_predicate): Move most processing
7098 to gensupport.c. Continue to validate the expression.
7099 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7100 (process_define_predicate): Move processing to gensupport.c.
7101 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7102 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7103 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7105 (valid_predicate_name_p): New function, split out from old
7106 genpreds.c:process_define_predicate.
7107 (process_define_predicate): New function, combining code from
7108 old genpreds.c and genrecog.c functions.
7109 (process_rtx): Call it for DEFINE_PREDICATE and
7110 DEFINE_SPECIAL_PREDICATE.
7112 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7114 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7115 size of a '%A' memory reference.
7116 (T_DREG, T_QREG): New neon_builtin_type_bits.
7117 (arm_init_neon_builtins): Assert that the load and store operands
7118 are neon_struct_operands.
7119 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7120 (NEON_ARG_MEMORY): New builtin_arg.
7121 (neon_dereference_pointer): New function.
7122 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7123 Handle NEON_ARG_MEMORY.
7124 (arm_expand_neon_builtin): Update after above interface changes.
7125 Use NEON_ARG_MEMORY for loads and stores.
7126 * config/arm/predicates.md (neon_struct_operand): New predicate.
7127 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7128 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7129 (V_four_elem): Tweak formatting.
7130 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7131 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7132 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7133 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7134 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7135 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7136 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7137 Use %A in the output template.
7138 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7139 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7140 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7141 the width of the memory access. Remove post-increment.
7142 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7144 2011-04-12 Nick Clifton <nickc@redhat.com>
7146 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7147 instruction for interrupt handlers if the target is the basic V850
7149 (expand_epilogue): Likewise.
7151 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7153 PR rtl-optimization/48549
7154 * combine.c (propagate_for_debug): Also stop after BB_END of
7155 this_basic_block. Process LAST and just stop processing after it.
7156 (combine_instructions): If last_combined_insn has been deleted,
7157 set last_combined_insn to its PREV_INSN.
7159 2011-04-12 Richard Guenther <rguenther@suse.de>
7161 PR tree-optimization/46076
7162 * gimple.h (struct gimple_statement_call): Add fntype field.
7163 (gimple_call_fntype): Adjust.
7164 (gimple_call_set_fntype): New function.
7165 * gimple.c (gimple_build_call_1): Set the call function type.
7166 * gimplify.c (gimplify_call_expr): Preserve the function
7167 type the frontend used for the call.
7168 (gimplify_modify_expr): Likewise.
7169 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7171 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7173 * tree-ssa.c (useless_type_conversion_p): Function pointer
7174 conversions are useless.
7176 2011-04-12 Martin Jambor <mjambor@suse.cz>
7178 * cgraph.h (cgraph_node): Remove function declaration.
7179 (cgraph_create_node): Declare.
7180 (cgraph_get_create_node): Likewise.
7181 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7182 Updated all callers.
7183 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7184 the decl does not already exist. Call cgraph_get_create_node instead
7186 (cgraph_get_create_node): New function.
7187 (cgraph_same_body_alias): Update comment.
7188 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7189 assert it does not return NULL.
7190 (cgraph_update_edges_for_call_stmt): Likewise.
7191 (cgraph_clone_edge): Likewise.
7192 (cgraph_create_virtual_clone): Likewise.
7193 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7194 instead of cgraph_node.
7195 (cgraph_add_new_function): Call cgraph_create_node or
7196 cgraph_get_create_node instead of cgraph_node.
7197 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7198 instead of cgraph_node.
7199 (record_eh_tables): Likewise.
7200 (mark_address): Likewise.
7201 (mark_load): Likewise.
7202 (build_cgraph_edges): Call cgraph_get_create_node instead
7204 (rebuild_cgraph_edges): Likewise.
7205 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7206 instead of cgraph_node.
7207 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7209 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7210 cgraph_create_node instead of cgraph_node.
7211 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7213 * lto-cgraph.c (input_node): Likewise.
7214 * lto-streamer-in.c (input_function): Likewise.
7215 * varasm.c (mark_decl_referenced): Likewise.
7216 (assemble_alias): Likewise.
7218 2011-04-12 Martin Jambor <mjambor@suse.cz>
7220 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7221 instead of cgraph_node and assert it does not return NULL.
7222 * lto-streamer-in.c (lto_read_body): Likewise.
7223 * omp-low.c (new_omp_context): Likewise.
7224 (create_task_copyfn): Likewise.
7225 * tree-emutls.c (lower_emutls_function_body): Likewise.
7226 * matrix-reorg.c (transform_allocation_sites): Likewise.
7228 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7231 * c-typeck.c (build_asm_expr): Error out on attempts to use
7232 void type outputs or inputs for constraints that allow reg or
7235 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7236 Richard Earnshaw <rearnsha@arm.com>
7239 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7240 to use sign-magnitude offsets. Reject unsupported unaligned
7241 cases. Add detailed description in comments.
7242 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7243 condition from TARGET_32BIT to TARGET_ARM.
7245 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7247 * tree.h (struct typed_tree): New.
7248 (struct tree_common): Include it instead of tree_base.
7249 (TREE_TYPE): Update for new location of type field.
7250 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7251 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7252 (union tree_node): Add typed field.
7253 * treestruct.def (TS_TYPED): New.
7254 * lto-streamer.c (check_handled_ts_structures): Handle it.
7255 * tree.c (MARK_TS_TYPED): New macro.
7256 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7258 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7260 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7261 (force_nonfallthru): Do not alter the loop nest if no basic block
7264 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7266 * config/i386/sse.md (VI): New mode iterator.
7268 (AVX256MODEI): Ditto.
7269 (AVXMODEF4P): Ditto.
7270 (avxvecpsmode): Ditto.
7271 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7272 (sse2_andnot<mode>3): New expander.
7273 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7274 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7275 (<any_logic:code><mode>3): Use VI mode iterator.
7276 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7277 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7278 (*andnottf3): Handle AVX three-operand constraints.
7279 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7281 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7282 Robert Millan <rmh@gnu.org>
7284 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7285 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7286 GNU_USER_DYNAMIC_LINKER64): Define.
7287 (REG_NAME): Don't undefine.
7288 (MD_UNWIND_SUPPORT): Undefine.
7289 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7290 (REG_NAME): Don't undefine.
7291 (MD_UNWIND_SUPPORT): Undefine.
7292 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7294 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7296 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7297 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7299 2011-04-11 Xinliang David Li <davidxl@google.com>
7301 * value-profile.c (check_ic_target): New function.
7302 (gimple_ic_transform): Sanity check indirect call target.
7303 * gimple-low.c (gimple_check_call_args): Interface change.
7304 (gimple_check_call_matching_types): New function.
7305 * tree-inline.c (tree_can_inline_p): Call new function.
7307 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7309 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7310 tree-pretty-print.h & realmpfr.h.
7312 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7315 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7316 (setup_allocno_and_important_classes): Ditto.
7318 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7320 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7321 GNU_USER_DYNAMIC_LINKER.
7322 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7323 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7324 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7325 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7326 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7327 GNU_USER_TARGET_OS_CPP_BUILTINS.
7328 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7329 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7330 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7331 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7332 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7333 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7334 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7335 GNU_USER_TARGET_OS_CPP_BUILTINS.
7336 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7337 GNU_USER_DYNAMIC_LINKER.
7338 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7339 GNU_USER_TARGET_OS_CPP_BUILTINS.
7340 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7341 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7342 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7344 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7345 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7346 GNU_USER_DYNAMIC_LINKER64): Remove.
7347 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7348 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7349 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7350 GNU_USER_DYNAMIC_LINKER.
7351 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7352 GNU_USER_TARGET_OS_CPP_BUILTINS.
7353 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7354 GNU_USER_TARGET_OS_CPP_BUILTINS.
7355 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7356 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7357 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7358 GNU_USER_TARGET_OS_CPP_BUILTINS.
7359 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7360 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7361 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7362 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7363 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7364 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7365 GNU_USER_DYNAMIC_LINKER.
7366 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7367 GNU_USER_TARGET_OS_CPP_BUILTINS.
7368 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7369 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7370 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7371 GNU_USER_DYNAMIC_LINKER.
7372 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7373 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7374 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7375 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7376 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7377 GNU_USER_DYNAMIC_LINKER.
7378 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7379 GNU_USER_DYNAMIC_LINKERN32.
7380 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7381 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7382 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7383 GNU_USER_DYNAMIC_LINKER32.
7384 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7385 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7386 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7387 GNU_USER_DYNAMIC_LINKER.
7388 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7389 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7390 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7391 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7392 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7393 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7394 GNU_USER_DYNAMIC_LINKER32.
7395 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7396 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7397 GNU_USER_DYNAMIC_LINKER.
7398 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7399 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7400 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7401 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7402 GNU_USER_DYNAMIC_LINKER64.
7403 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7404 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7405 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7406 GNU_USER_DYNAMIC_LINKER.
7407 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7408 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7409 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7410 GNU_USER_DYNAMIC_LINKER.
7411 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7412 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7413 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7414 GNU_USER_DYNAMIC_LINKER32.
7415 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7416 GNU_USER_DYNAMIC_LINKER64.
7417 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7418 GNU_USER_DYNAMIC_LINKER64.
7419 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7420 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7421 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7422 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7423 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7425 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7427 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7428 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7429 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7430 GNU_USER_DYNAMIC_LINKER.
7431 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7432 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7433 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7434 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7435 GNU_USER_DYNAMIC_LINKER64.
7436 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7437 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7438 GNU_USER_LINK_EMULATION.
7439 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7440 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7441 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7442 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7443 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7444 CPP_SPEC, CC1_SPEC): Remove.
7445 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7446 (GNU_USER_DYNAMIC_LINKER): Define.
7447 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7448 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7449 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7450 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7451 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7452 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7453 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7454 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7455 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7456 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7457 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7458 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7459 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7460 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7461 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7462 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7463 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7464 GNU_USER_DYNAMIC_LINKER.
7465 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7466 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7467 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7468 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7469 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7470 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7471 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7472 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7473 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7474 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7476 2011-04-11 Kai Tietz <ktietz@redhat.com>
7480 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7481 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7483 (ix86_is_msabi_thiscall): Removed.
7484 (ix86_is_type_thiscall): Likewise.
7485 (ix86_get_callcvt): New function.
7486 (ix86_comp_type_attributes): Simplify check.
7487 (ix86_function_regparm): Use ix86_get_callcvt for calling
7488 convention attribute checks.
7489 (ix86_return_pops_args): Likewise.
7490 (ix86_static_chain): Likewise.
7491 (x86_this_parameter): Likewise.
7492 (x86_output_mi_thunk): Likewise.
7493 (ix86_function_type_abi): Optimize check for types without attributes.
7494 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7495 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7496 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7498 (IX86_BASE_CALLCVT): Helper macro.
7499 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7500 Use ix86_get_callcvt for calling convention attribute checks and avoid
7501 symbol-decoration for stdcall in TARGET_RTD case.
7502 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7504 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7507 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7509 * config/i386/sse.md (VI_128): New mode iterator.
7510 (VI12_128): Rename from SSEMODE12.
7511 (VI14_128): Rename from SSEMODE14.
7512 (VI124_128): New mode iterator.
7513 (VI24_128): Rename from SSEMODE248.
7514 (VI248_128): Rename from SSEMODE248.
7515 (SSEMODE124C8): Remove.
7516 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7517 (*sse2_<plusminus_insn><mode>3): Merge with
7518 *avx_<plusminus_insn><mode>3.
7519 (*mulv8hi3): Merge with *avx_mulv8hi3.
7520 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7521 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7522 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7523 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7524 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7525 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7526 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7527 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7528 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7529 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7530 (*<smaxmin:code>v8hi3): Ditto.
7531 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7532 (*<smaxmin:code>v16qi3): Ditto.
7533 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7534 (*sse2_eq<mode>3): Ditto.
7535 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7536 (*sse2_gt<mode>3): Ditto.
7537 (vcondv2di): Split out of vcond<mode>.
7538 (vconduv2di): Split out of vcondu<mode>.
7540 2011-04-11 Richard Guenther <rguenther@suse.de>
7542 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7543 before calling tree_low_cst.
7545 2011-04-11 Richard Guenther <rguenther@suse.de>
7547 * stor-layout.c (layout_type): Compute all array index size operations
7548 in the original type.
7549 (initialize_sizetypes): Add comment.
7550 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7552 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7554 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7556 2011-04-11 Martin Jambor <mjambor@suse.cz>
7558 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7559 of cgraph_node, handle NULL return value.
7560 (cgraph_global_info): Likewise.
7561 (cgraph_rtl_info): Likewise.
7562 * tree-inline.c (estimate_num_insns): Likewise.
7563 * gimplify.c (unshare_body): Likewise.
7564 (unvisit_body): Likewise.
7565 (gimplify_body): Likewise.
7566 * predict.c (optimize_function_for_size_p): Likewise.
7567 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7568 (call_may_clobber_ref_p_1): Likewise.
7569 * varasm.c (function_section_1): Likewise.
7570 (assemble_start_function): Likewise.
7572 2011-04-11 Martin Jambor <mjambor@suse.cz>
7574 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7576 * final.c (rest_of_clean_state): Likewise.
7577 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7578 * passes.c (pass_init_dump_file): Likewise.
7579 (execute_all_ipa_transforms): Likewise.
7580 (function_called_by_processed_nodes_p): Likewise.
7581 * predict.c (maybe_hot_frequency_p): Likewise.
7582 (probably_never_executed_bb_p): Likewise.
7583 (compute_function_frequency): Likewise.
7584 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7585 (unnest_nesting_tree_1): Likewise.
7586 (lower_nested_functions): Likewise.
7587 * tree-optimize.c (execute_fixup_cfg): Likewise.
7588 (tree_rest_of_compilation): Likewise.
7589 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7590 * tree-sra.c (ipa_early_sra): Likewise.
7591 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7592 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7593 * ipa.c (record_cdtor_fn): Likewise.
7594 * ipa-inline.c (cgraph_early_inlining): Likewise.
7595 (compute_inline_parameters_for_current): Likewise.
7596 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7597 * ipa-pure-const.c (local_pure_const): Likewise.
7598 * ipa-split.c (split_function): Likewise.
7599 (execute_split_functions): Likewise.
7600 * cgraphbuild.c (build_cgraph_edges): Likewise.
7601 (rebuild_cgraph_edges): Likewise.
7602 (cgraph_rebuild_references): Likewise.
7603 (remove_cgraph_callee_edges): Likewise.
7604 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7605 (verify_cgraph_node): Likewise.
7606 (cgraph_analyze_functions): Likewise.
7607 (cgraph_preserve_function_body_p): Likewise.
7608 (save_inline_function_body): Likewise.
7609 (save_inline_function_body): Likewise.
7610 * tree-inline.c (copy_bb): Likewise.
7611 (optimize_inline_calls): Likewise.
7613 2011-04-11 Martin Jambor <mjambor@suse.cz>
7615 PR tree-optimization/48195
7616 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7617 ipa_check_create_edge_args.
7618 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7619 ipa_check_create_edge_args.
7620 * ipa-inline.c (inline_generate_summary): Do not call
7621 ipa_check_create_node_params and ipa_check_create_edge_args.
7622 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7623 ipa_check_create_edge_args.
7625 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7627 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7629 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7630 * function.c (record_hard_reg_sets): Likewise.
7631 * ira.c (compute_regs_asm_clobbered): Likewise.
7632 * sched-deps.c (sched_analyze_1): Likewise.
7633 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7635 2011-04-09 Xinliang David Li <davidxl@google.com>
7637 PR tree-optimization/PR48484
7638 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7639 has_valid_pred lazily
7641 2011-04-09 Duncan Sands <baldrick@free.fr>
7643 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7645 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7647 * combine.c (combine_validate_cost): Adjust comments. Set registered
7648 cost of I0 to zero at the end, if any.
7650 2011-04-08 Xinliang David Li <davidxl@google.com>
7652 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7653 to insane profile data.
7655 2011-04-08 Xinliang David Li <davidxl@google.com>
7657 * ipa-cp.c (ipcp_update_profiling): Correct
7658 negative scale factor due to insane profile data.
7660 2011-04-08 Xinliang David Li <davidxl@google.com>
7662 * final.c (dump_basic_block_info): New function.
7663 (final): Dump basic block.
7664 (final_scan_insn): Remove old dump.
7666 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7669 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7672 2011-04-08 Michael Matz <matz@suse.de>
7675 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7677 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7678 * rtl.h (rebuild_jump_labels_chain): Declare.
7679 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7680 insns inserted on edges.
7682 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7684 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7685 * config/arm/arm-arches.def: New.
7686 * config/arm/arm-opts.h: New.
7687 * config/arm/genopt.sh: New.
7688 * config/arm/arm-tables.opt: New (generated).
7689 * config/arm/arm.c (arm_handle_option, arm_target_help,
7690 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7691 (all_architectures): Get most table contents from arm-arches.def.
7692 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7693 arm_selected_tune here.
7694 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7695 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7696 (march=, mcpu=, mtune=): Use Enum and Var.
7697 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7698 (arm.o): Update dependencies.
7700 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7702 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7704 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7705 (write_typed_alloc_defns): Likewise.
7706 (main): Calls write_typed_alloc_defns with output_header.
7708 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7711 * ira-color.c (setup_profitable_hard_regs): Add comments.
7712 Don't take prohibited hard regs into account.
7713 (setup_conflict_profitable_regs): Rename to
7714 get_conflict_profitable_regs.
7715 (check_hard_reg_p): Check prohibited hard regs.
7717 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7719 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7720 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7721 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7723 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7726 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7727 move from floating point to shift amount register.
7728 (emit_move_sequence): Remove secondary reload support for floating
7729 point to shift amount amount register copies.
7730 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7731 amount register copies.
7732 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7733 register, return false if mode isn't a scalar integer mode.
7734 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7736 2011-04-08 Richard Guenther <rguenther@suse.de>
7738 * gimple.c (gimple_call_flags): Remove kludge.
7740 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7742 * sel-sched.c (sel_region_init): Move call to
7743 sel_setup_region_sched_flags after setup_current_loop_nest.
7745 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7747 PR rtl-optimization/48272
7748 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7749 init_insn_reg_pressure_info. Adjust a caller.
7750 * sched-int.h (init_insn_reg_pressure_info): Declare.
7751 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7752 when sched-pressure is enabled.
7754 2011-04-08 Richard Guenther <rguenther@suse.de>
7756 * gimple.c (gimple_set_modified): Do not queue calls to
7757 MODIFIED_NORETURN_CALLS here ...
7758 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7760 2011-04-08 Richard Guenther <rguenther@suse.de>
7763 * toplev.c (lang_dependent_init): Do not open asm_out_file
7764 in WPA mode, nor perform debug machinery initialization.
7765 (finalize): Do not unlink asm_out_file in WPA mode.
7767 2011-04-08 Richard Guenther <rguenther@suse.de>
7769 * gimple.h (gimple_call_fntype): New function.
7770 (gimple_call_return_type): Use it.
7771 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7772 * gimple-low.c (gimple_check_call_args): Likewise.
7773 * gimple.c (gimple_call_flags): Likewise.
7774 (gimple_call_arg_flags): Likewise.
7775 (gimple_call_return_flags): Likewise.
7776 * tree-cfg.c (verify_gimple_call): Likewise.
7777 (do_warn_unused_result): Likewise.
7778 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7779 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7781 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7783 PR rtl-optimization/48235
7784 * sel-sched.c (code_motion_process_successors): Recompute the last
7785 insn in basic block if control flow changed.
7786 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7787 Update condition for ilist_remove.
7789 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7791 PR rtl-optimization/48302
7792 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7793 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7794 it to record added preheader blocks.
7795 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7796 on to sel_add_loop_preheaders.
7797 (sel_region_init): Move call to setup_current_loop_nest after
7800 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7803 * cfgloop.h (loop_has_exit_edges): New helper.
7804 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7806 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7807 that have no exit edges.
7809 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7811 PR rtl-optimization/48442
7812 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7813 all callers. Adjust assert.
7815 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7817 PR tree-optimization/48377
7818 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7819 is_packed to true even for types with smaller TYPE_ALIGN than
7822 2011-04-08 Richard Guenther <rguenther@suse.de>
7825 * doc/tm.texi: Re-generate.
7827 2011-04-08 Wei Guozhi <carrot@google.com>
7830 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7831 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7832 * config/arm/arm.md (*push_multi): Change the length computation to
7835 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7837 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7838 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7839 * doc/tm.texi: Regenerate.
7840 * system.h (ASM_OUTPUT_BSS): Poison.
7841 * varasm.c (asm_output_bss): Remove function.
7842 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7844 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7845 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7846 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7847 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7849 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7851 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7853 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7855 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7857 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7860 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7862 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7863 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7864 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7866 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7867 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7868 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7869 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7870 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7871 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7872 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7873 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7874 options. Don't map other m68k options manually. Don't handle
7875 old-style options as canonical.
7876 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7877 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7879 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7881 * basic-block.h (force_nonfallthru): Move to...
7882 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7883 (force_nonfallthru): ...here.
7884 * cfghooks.c (force_nonfallthru): New function.
7885 * cfgrtl.c (force_nonfallthru): Rename into...
7886 (rtl_force_nonfallthru): ...this.
7887 (commit_one_edge_insertion): Do not set AUX field.
7888 (commit_edge_insertions): Do not discover new basic blocks.
7889 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7890 (cfg_layout_rtl_cfg_hooks): Likewise.
7891 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7892 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7893 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7895 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7897 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7900 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7902 * config/i386/sse.md: Update copyright year.
7903 (avxcvtvecmode): Remove.
7904 (sse_movhlps): Merge with *avx_movhlps.
7905 (sse_movlhps): Merge with *avx_movlhps.
7906 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7907 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7908 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7909 (sse_loadhps): Merge with *avx_loadhps.
7910 (sse_storelps): Merge with *avx_storelps.
7911 (sse_loadlps): Merge with *avx_loadlps.
7912 (sse_movss): Merge with *avx_movss.
7913 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7914 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7915 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7916 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7917 (vec_set<mode>_0): Ditto.
7918 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7919 (sse4_1_insertps): Merge with *avx_insertps.
7920 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7921 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7922 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7923 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7924 (sse2_storehpd): Merge with *avx_storehpd.
7925 (sse2_loadhpd): Merge with *avx_loadhpd.
7926 (sse2_loadlpd): Merge with *avx_loadlpd.
7927 (sse2_movsd): Merge with *avx_movsd.
7928 (*vec_concatv2df): Merge with *vec_concatv2df.
7930 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7933 * combine.c (combine_instructions): Add last_combined_insn,
7934 update it if insn is after it, pass it to all try_combine calls.
7935 (try_combine): Add last_combined_insn parameter, pass it instead of
7936 i3 to propagate_for_debug.
7938 2011-04-07 Nick Clifton <nickc@redhat.com>
7940 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7941 to handle MDR <-> data register transfers.
7942 (movhi_internal): Likewise.
7944 2011-04-07 Alan Modra <amodra@gmail.com>
7946 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7947 previous stack info.
7949 2011-04-07 Tom de Vries <tom@codesourcery.com>
7952 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7953 flow_find_cross_jump. Swap variables to implement backward replacement.
7954 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7956 2011-04-07 Tom de Vries <tom@codesourcery.com>
7959 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7960 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7962 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7963 src1 or src2. Redirect edges to the last basic block. Update
7964 frequency and count on multiple basic blocks in case of fallthru.
7966 2011-04-07 Tom de Vries <tom@codesourcery.com>
7969 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7971 (old_insns_match_p): Change return type. Replace return false/true
7972 with return dir_none/dir_both. Use can_replace_by.
7973 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7974 direction from dir_p. Register replacement direction in dir, last_dir
7975 and afterlast_dir. Handle new return type of old_insns_match_p using
7976 merge_dir. Return replacement direction in dir_p.
7977 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7978 return type of old_insns_match_p.
7979 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7980 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7981 flow_find_cross_jump.
7982 * basic-block.h (enum replace_direction): New type.
7983 (flow_find_cross_jump): Add parameter to declaration.
7985 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7987 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7988 (AVXMODEDCVTPS2DQ): Ditto.
7989 (VEC_FLOAT_MODE): Ditto.
7990 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7991 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7992 (<any_logic:code><mode>3): Use VF mode iterator.
7993 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7994 Use VF mode iterator.
7995 (copysign<mode>3): Use VF mode iterator.
7996 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7997 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7998 (*<any_logic:code><MODEF:mode>3): Merge with
7999 *avx_<any_logic:code><MODEF:mode>3.
8000 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8001 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8002 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8003 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8004 (sse2_cvtdq2ps): Use %v modifier.
8005 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8006 (avx_cvtps2dq<avxmodesuffix>): Remove.
8007 (sse2_cvtps2dq): Use %v modifier.
8008 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8009 (avx_cvttps2dq<avxmodesuffix>): Remove.
8010 (sse2_cvttps2dq): Use %v modifier.
8011 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8012 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8013 (sse2_cvtsd2siq): Fix insn template.
8014 (sse2_cvtsd2siq_2): Ditto.
8015 (sse2_cvttsd2siq): Ditto.
8016 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8017 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8019 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8021 * gcov-io.c: Use GCC Runtime Library Exception.
8023 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8026 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8027 as base_reg whatever register reg has been eliminated to, instead
8028 of hardcoding STACK_POINTER_REGNUM.
8030 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8032 * doc/tm.texi.in: Document C target hooks as separate from general
8034 * doc/tm.texi: Regenerate.
8035 * genhooks.c (struct hook_desc): Add docname field.
8036 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8038 (hook_array): Include c-target.def.
8039 (emit_documentation): Use docname field in output.
8040 (emit_init_macros): Take docname argument. Only emit definitions
8041 for hooks matching docname.
8042 (main): Expect additional arguments in all cases. Pass argument
8043 to emit_init_macros.
8044 * target.def: Move initial macro definitions and comments to
8045 target-hooks-macros.h.
8046 (gcc_targetcm): Move to c-family/c-target.def.
8047 * target.h (targetcm): Move declaration to c-family/c-target.h.
8048 * targhooks.c (default_handle_c_option): Move to
8050 * targhooks.h (default_handle_c_option): Move declaration to
8051 c-family/c-common.h.
8052 * target-hooks-macros.h: New file.
8053 * config.gcc (target_has_targetcm): Define and use to add to
8054 c_target_objs and cxx_target_objs.
8055 * config/default-c.c: New file.
8056 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8057 of target.h and target-def.h.
8058 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8059 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8060 darwin_check_cfstring_format_arg): Make static.
8061 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8062 TARGET_STRING_OBJECT_REF_TYPE_P,
8063 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8064 * config/darwin-protos.h (darwin_objc_construct_string,
8065 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8067 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8068 TARGET_STRING_OBJECT_REF_TYPE_P,
8069 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8070 * config/t-darwin (darwin-c.o): Update dependencies.
8071 * system.h (TARGET_HAS_TARGETCM): Poison.
8072 * Makefile.in (TARGET_H): Update.
8073 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8074 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8075 (default-c.o): New target.
8076 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8077 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8078 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8080 (build/genhooks.o): Update dependencies.
8082 2011-04-06 Richard Guenther <rguenther@suse.de>
8084 * ipa-inline.c (enum inlining_mode): Remove.
8085 (cgraph_flatten): Use some other token.
8086 (cgraph_edge_early_inlinable_p): New function, split out from ...
8087 (cgraph_perform_always_inlining): New function, split out from ...
8088 (cgraph_decide_inlining_incrementally): ... here.
8089 (cgraph_mark_inline_edge): Adjust.
8090 (cgraph_early_inlining): Re-structure.
8091 (pass_early_inline): Require SSA form.
8093 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8094 Julian Brown <julian@codesourcery.com>
8095 Mark Shinwell <shinwell@codesourcery.com>
8097 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8098 LO_REGS only for Thumb-1.
8099 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8100 be used in short instructions when optimising for size on Thumb-2.
8102 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8104 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8105 associated with user returns to be preserved.
8107 2011-04-06 Tristan Gingold <gingold@adacore.com>
8109 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8110 symbol_queue_size, DBXOUT_DECR_NESTING,
8111 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8112 if XCOFF_DEBUGGING_INFO.
8114 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8116 * config/i386/i386.md (attribute isa): New.
8117 (attribute enabled): New.
8118 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8119 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8120 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8121 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8122 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8123 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8124 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8125 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8127 * config/i386/sse.md (VF): New mode iterator.
8131 (SSEMODEF4): Remove.
8132 (attribute sse): Handle V8SF and V4DF modes.
8133 (<absneg:code><mode>2): Use VF mode iterator.
8134 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8136 (<plusminus_insn><mode>3): Use VF mode iterator.
8137 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8138 Use VF mode iterator.
8139 (<sse>_vm<plusminus_insn><mode>3): Merge with
8140 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8141 (mul<mode>3): Use VF mode iterator.
8142 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8143 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8145 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8146 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8147 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8148 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8150 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8151 Use VF1 mode iterator.
8152 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8153 (sqrt<VF2:mode>2): New expander.
8154 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8155 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8156 and sqrtv2df2. Use VF mode iterator.
8157 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8159 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8160 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8161 Use VF1 mode iterator.
8162 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8163 (<smaxmin:code><mode>3): Use VF mode iterator.
8164 (*<smaxmin:code><mode>3_finite): Merge with
8165 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8166 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8167 (<sse>_vm<smaxmin:code><mode>2): Merge with
8168 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8169 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8171 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8173 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8174 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8175 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8176 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8177 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8179 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8180 Use VF_128 mode iterator.
8181 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8183 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8184 VF_128 mode iterator.
8185 (vcond<mode>): Use VF mode iterator.
8186 * config/i386/predicates.md (sse_comparison_operator): Merge with
8187 avx_comparison_float_operator. Do not declare as special_predicate.
8188 * config/i386/i386.c (struct builtin_description): Update for renamed
8190 (ix86_expand_args_builtin): Ditto.
8191 (ix86_expand_sse_compare_mask): Ditto.
8193 2011-04-06 Richard Guenther <rguenther@suse.de>
8195 * tree-inline.c (estimate_num_insns): For calls simply account
8196 for all passed arguments and a used return value.
8198 2011-04-06 Richard Guenther <rguenther@suse.de>
8200 PR tree-optimization/47663
8201 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8202 call_stmt_time fields.
8203 (cgraph_edge_inlinable_p): Declare.
8204 (cgraph_edge_recursive_p): New inline function.
8205 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8206 (cgraph_clone_edge): Copy it.
8207 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8208 Account for call stmt time.
8209 (cgraph_estimate_time_after_inlining): Take edge argument.
8210 (cgraph_estimate_edge_growth): Account call stmt size.
8211 (cgraph_estimate_size_after_inlining): Take edge argument.
8212 (cgraph_mark_inline_edge): Adjust.
8213 (cgraph_check_inline_limits): Likewise.
8214 (cgraph_recursive_inlining_p): Remove.
8215 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8216 (cgraph_decide_recursive_inlining): Take edge argument and
8218 (cgraph_decide_inlining_of_small_functions): Do not avoid
8219 diags for recursive inlining here.
8220 (cgraph_flatten): Adjust.
8221 (cgraph_decide_inlining_incrementally): Likewise.
8222 (estimate_function_body_sizes): Remove call cost handling.
8223 (compute_inline_parameters): Initialize caller edge call costs.
8224 (cgraph_estimate_edge_growth): New function.
8225 (cgraph_estimate_growth): Use it.
8226 (cgraph_edge_badness): Likewise.
8227 (cgraph_check_inline_limits): Take an edge argument.
8228 (cgraph_decide_inlining_of_small_functions): Adjust.
8229 (cgraph_decide_inlining): Likewise.
8230 * tree-inline.c (estimate_num_insns): Only account for call
8231 return value if it is used.
8232 (expand_call_inline): Avoid diagnostics on recursive inline
8234 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8235 (input_edge): Input edge call costs.
8237 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8239 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8241 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8243 * doc/invoke.texi (Spec Files): Fix typo.
8245 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8247 * profile.c (branch_prob): Move declaration of local variable. Remove
8248 obsolete ??? comment. Expand the location explicitly instead of using
8249 the LOCATION_FILE and LOCATION_LINE macros.
8251 2011-04-06 Wei Guozhi <carrot@google.com>
8254 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8255 (arm_cond_branch): Likewise.
8256 (arm_cond_branch_reversed): Likewise.
8257 (arm_jump): Likewise.
8258 (push_multi): Likewise.
8259 * config/arm/constraints.md (Py): New constraint.
8261 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8264 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8266 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8267 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8268 #ifdef DBX_DEBUGGING_INFO.
8270 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8273 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8274 if old and new states differ.
8276 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8278 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8279 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8280 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8281 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8282 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8284 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8285 ColdFire options to -mcpu= options.
8287 2011-04-05 Jeff Law <law@redhat.com>
8289 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8290 check if BB is a successor of LOOP->header and return
8291 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8293 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8295 * cprop.c (struct reg_use): Remove.
8296 (reg_use_table): Make an array of RTX.
8297 (find_used_regs, constprop_register, local_cprop_pass,
8298 bypass_block): Simplify users of reg_use_table.
8299 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8300 on one of the uses found by find_used_regs.
8302 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8305 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8308 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8310 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8312 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8314 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8317 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8319 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8321 * combine.c: Include obstack.h.
8322 (struct insn_link): Define.
8323 (uid_log_links): Adjust type.
8324 (FOR_EACH_LOG_LINK): New macro.
8325 (insn_link_obstack): Declare.
8326 (alloc_insn_link): Define.
8327 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8328 type of link variables.
8329 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8330 (try_combine, record_promoted_values, distribute_notes): Likewise.
8331 (distribute_links): Likewise. Tweak prototype.
8332 (clear_log_links): Delete.
8333 (adjust_for_new_dest): Call alloc_insn_link.
8334 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8336 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8338 * gcse.c (modify_mem_list): Convert to an array of VECs.
8339 (canon_modify_mem_list, compute_transp): Tweak formatting.
8340 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8341 (load_killed_in_block_p): Likewise.
8342 (record_last_mem_set_info): Likewise.
8343 (clear_modify_mem_tables): Likewise.
8345 2011-04-05 Tom de Vries <tom@codesourcery.com>
8348 * function.c (emit_use_return_register_into_block): Only define if
8351 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8353 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8355 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8357 * config/rx/rx-opts.h: New.
8358 * config/rx/rx.c (rx_cpu_type): Remove.
8359 (rx_handle_option): Don't assert that global structures are in
8360 use. Access variables via opts pointer. Defer most handling of
8361 OPT_mint_register_. Use error_at.
8362 (rx_option_override): Handle deferred OPT_mint_register_ here.
8363 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8364 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8365 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8366 (rx_cpu_types): New Enum and EnumValue entries.
8367 (mint-register=): Use Defer and use Var accordingly.
8369 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8371 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8372 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8373 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8375 (debug_free_queue, debug_nesting, symbol_queue_index):
8377 * dbxout.c: ...to here. Make static.
8379 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8381 * gcse.c (modify_pair): Define. Define a VEC of it.
8382 (canon_modify_mem_list): Convert to an array of VECs.
8383 (free_insn_expr_list_list): Delete.
8384 (clear_modify_mem_tables): Call VEC_free instead.
8385 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8386 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8387 (canon_list_insert, compute_transp): Likewise.
8389 2011-04-05 Tom de Vries <tom@codesourcery.com>
8392 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8395 2011-04-05 Tom de Vries <tom@codesourcery.com>
8398 * function.c (emit_use_return_register_into_block): New function.
8399 (thread_prologue_and_epilogue_insns): Use
8400 emit_use_return_register_into_block.
8402 2011-04-05 Tom de Vries <tom@codesourcery.com>
8405 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8408 2011-04-05 Tom de Vries <tom@codesourcery.com>
8410 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8412 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8414 * config/arm/arm.md (define_constants for unspec): Replace with
8416 (define_constants for unspecv): Replace with define_c_enum.
8417 * config/arm/neon.md (define_constants for unspec): Replace with
8420 2011-04-04 Richard Henderson <rth@redhat.com>
8423 * dwarf2out.c (output_line_info): Always emit line info from
8424 at least one section.
8425 (dwarf2out_init): Create text_section_line_info here ...
8426 (set_cur_line_info_table): ... not here.
8428 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8431 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8434 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8436 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8438 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8439 (expr_equiv_p): Remove.
8440 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8441 (hash_scan_set): Update call to insert_set_in_table.
8442 (dump_hash_table): Dump <dest, src> pair.
8443 (lookup_set): Simplify. Lookup <dest, src> pair.
8444 (compute_transp): Remove, fold heavily simplified code into...
8445 (compute_local_properties): ...here. Expect COMP and TRANSP
8447 (find_avail_set): Take set directly from struct expr.
8448 (find_bypass-set): Likewise.
8449 (bypass_block): Likewise.
8450 (cprop_insn): Likewise. Remove redundant INSN_P test.
8452 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8453 checks on form of COND from find_implicit_sets to here.
8454 (find_implicit_sets): Cleanup control flow. Split critical edges
8455 if it exposes implicit sets. Allocate/resize implicit_sets as
8457 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8458 changed something. Run df_analyze after find_implicit_sets if any
8459 edges were split. Do not allocate implicit_sets here.
8461 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8462 (gcse_obstack): Renamed to cprop_obstack.
8463 (GNEW, GNEWVEC, GNEWVAR): Remove.
8465 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8466 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8467 (gcse_alloc): Likewise, and rename to cprop_alloc.
8468 (alloc_gcse_men, free_gcse_mem): Remove.
8469 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8470 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8471 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8473 * cprop.c (oprs_not_set_p): Remove.
8474 (mark_set, mark_clobber): Remove.
8475 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8476 (reg_not_set_p): New function.
8477 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8478 (cprop_insn): Likewise.
8479 (cprop_jump): Use FOR_EACH_EDGE.
8481 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8484 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8485 (rank_for_schedule): Use scheduled_insns vector instead of
8486 last_scheduled_insn.
8487 (ok_for_early_queue_removal): Likewise.
8488 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8490 (choose_ready): Likewise.
8491 (commit_schedule): Use VEC_iterate.
8492 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8493 a dbg_cnt, use it and ensure the first insn is in the ready list.
8494 (haifa_sched_init): Allocate scheduled_insns.
8495 (sched_extend_ready_list): Don't allocate it; reserve space.
8496 (haifa_sched_finish): Free it.
8498 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8500 * optc-gen.awk: Always remove type from Variable entry before
8501 recording in var_seen.
8503 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8505 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8506 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8507 call to tidy_fallthru_edges.
8509 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8511 * doc/options.texi (ToLower): Document.
8512 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8513 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8514 * opts.h (cl_option): Add cl_tolower field.
8515 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8516 arguments with lowercase strings.
8517 * config/rx/rx.opt (mcpu=): Add ToLower.
8518 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8521 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8523 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8525 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8527 * config/vax/vax.c: Include reload.h.
8529 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8531 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8532 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8533 (sparc_preferred_reload_class): New function.
8535 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8538 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8539 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8541 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8543 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8544 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8546 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8548 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8549 (ASM_OUTPUT_ALIGNED_BSS): Define.
8551 2011-04-03 Michael Matz <matz@suse.de>
8553 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8554 and next_slot members.
8555 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8556 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8557 (lto_streamer_cache_append): Declare.
8558 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8559 unsigned index, remove offset parameter, ensure that we append
8560 or update existing entries.
8561 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8562 parameter, update next_slot for append.
8563 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8565 (lto_streamer_cache_insert_at): Likewise.
8566 (lto_streamer_cache_append): New function.
8567 (lto_streamer_cache_lookup): Use unsigned index.
8568 (lto_streamer_cache_get): Likewise.
8569 (lto_record_common_node): Don't test tree_node_can_be_shared.
8570 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8571 (lto_streamer_cache_delete): Don't free offsets member.
8572 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8573 (lto_output_string_with_length): Use lto_output_data_stream.
8574 (lto_output_tree_header): Remove ix parameter, don't write it.
8575 (lto_output_builtin_tree): Likewise.
8576 (lto_write_tree): Adjust callers to above, don't track and write
8577 offset, write unsigned index.
8578 (output_unreferenced_globals): Don't emit all global vars.
8579 (write_global_references): Use unsigned indices.
8580 (lto_output_decl_state_refs): Likewise.
8581 (write_symbol): Likewise.
8582 * lto-streamer-in.c (lto_input_chain): Move earlier.
8583 (input_function): Use unsigned index.
8584 (input_alias_pairs): Don't read and then ignore all global vars.
8585 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8586 don't pass it back, use lto_streamer_cache_append.
8587 (lto_register_var_decl_in_symtab): Use unsigned index.
8588 (lto_register_function_decl_in_symtab): Likewise.
8589 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8591 (lto_get_builtin_tree): Don't read index, use
8592 lto_streamer_cache_append.
8593 (lto_read_tree): Adjust call to lto_materialize_tree.
8595 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8596 don't use function calls in arguments to MIN.
8598 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8601 * gimple.c (gimple_type_leader_entry): Mark deletable.
8603 2011-04-03 Alan Modra <amodra@gmail.com>
8605 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8607 2011-04-03 Michael Matz <matz@suse.de>
8609 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8611 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8613 2011-04-03 Michael Matz <matz@suse.de>
8615 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8616 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8617 without function context.
8618 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8619 current_function_decl and cfun.
8621 2011-04-03 Michael Matz <matz@suse.de>
8623 * tree.c (decl_init_priority_insert): Don't create entry for
8625 (decl_fini_priority_insert): Ditto.
8626 (fields_compatible_p, find_compatible_field): Remove.
8627 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8628 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8630 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8632 * combine.c (try_combine): Remove useless local variable.
8634 2011-04-03 Richard Guenther <rguenther@suse.de>
8635 Ira Rosen <ira.rosen@linaro.org>
8637 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8638 non-variable offsets and compare the remaining bases of the two
8639 accesses instead of looking for exact same data-ref.
8641 2011-04-02 Kai Tietz <ktietz@redhat.com>
8644 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8646 * i386.c (ix86_is_msabi_thiscall): New helper function.
8647 (ix86_is_type_thiscall): New helper function.
8648 (ix86_comp_type_attributes): Handle thiscall for method-functions
8650 (init_cumulative_args): Likewise.
8651 (find_drap_reg): Likewise.
8652 (ix86_static_chain): Likewise.
8653 (x86_this_parameter): Likewise.
8654 (x86_output_mi_thunk): Likewise.
8656 2011-04-01 Olivier Hainque <hainque@adacore.com>
8657 Nicolas Setton <setton@adacore.com>
8658 Eric Botcazou <ebotcazou@adacore.com>
8660 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8661 (add_gnat_descriptive_type_attribute): New function.
8662 (gen_array_type_die): Call it.
8663 (gen_enumeration_type_die): Likewise.
8664 (gen_struct_or_union_type_die): Likewise.
8665 (modified_type_die): Likewise.
8666 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8667 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8668 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8670 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8673 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8674 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8677 2011-03-17 Richard Guenther <rguenther@suse.de>
8680 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8681 origin for decls in other ltrans units.
8682 (input_varpool_node): Likewise.
8684 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8687 * expr.c (expand_assignment): Handle all possibilities
8688 if TO_RTX is CONCAT.
8689 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8690 (store_split_bit_field): If SUBREG_REG (op0) or
8691 op0 itself has smaller mode than word, return it
8692 for offset 0 and const0_rtx for out-of-bounds stores.
8693 If word is const0_rtx, skip it.
8695 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8697 * config/h8300/h8300.c (print_operand_address): Rename to...
8698 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8699 Call h8300_print_operand and h8300_print_operand_address instead of
8700 print_operand and print_operand_address. Declare.
8701 (print_operand): Renake to...
8702 (h8300_print_operand): ...this. Make static. Adjust comments.
8703 Call h8300_print_operand instead of print_operand. Declare.
8704 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8705 (h8300_register_move_cost): Likewise.
8706 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8707 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8708 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8709 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8710 * config/h8300/h8300-protos.h (print_operand): Delete.
8711 (print_operand_address): Delete.
8713 2011-04-01 Richard Henderson <rth@redhat.com>
8716 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8717 in strict mode before dwarf4. Re-order tests to early out
8718 before switching sections.
8720 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8722 * config/h8300/constraints.md: New file.
8723 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8724 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8725 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8726 * config/h8300/predicates.md (bit_operand): Likewise.
8727 (incdec_operand): Use satisfies_constraint_M and
8728 satisfies_constraint_O. Don't use C code block.
8729 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8730 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8731 (compute_mov_length): Use satisfies_constraint_G.
8732 (fix_bit_operand): Use satisfies_constraint_U.
8733 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8734 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8735 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8736 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8737 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8738 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8739 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8740 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8741 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8742 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8743 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8744 (EXTRA_MEMORY_CONSTRAINT): Delete.
8746 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8747 Michael Meissner <meissner@linux.vnet.ibm.com>
8750 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8751 operands, as per the specifications.
8753 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8754 (vec_extract_evenv4sf): Ditto.
8755 (vec_extract_evenv8hi): Ditto.
8756 (vec_extract_evenv16qi): Ditto.
8757 (vec_extract_oddv4si): Ditto.
8759 2011-03-31 Mark Wielaard <mjw@redhat.com>
8761 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8762 high_pc attribute if the CU has no associated code. Only output
8763 DW_AT_entry_pc for CU if not generating strict dwarf and
8766 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8768 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8769 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8771 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8772 * final.c (final_start_function): Call the new function rather
8773 than using a NULL argument for dwarf2out_frame_debug.
8775 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8776 that contains the prologue.
8778 * haifa-sched.c (queue_insn): New arg REASON. All callers
8779 changed. Print it in debugging output.
8781 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8783 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8784 Split most of the code into...
8785 (begin_move_insn): ... here. New function.
8786 (ebb_sched_info): Add a pointer to it.
8787 * haifa-sched.c (scheduled_insns): New static variable.
8788 (sched_extend_ready_list): Allocate it.
8789 (schedule_block): Use it to record the order of scheduled insns.
8790 Perform RTL changes to move insns only after all scheduling
8791 decisions have been made.
8792 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8793 begin_move_insn field.
8794 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8795 * sched-int.h (struct haifa_sched_info): Remove second argument
8796 from begin_schedule_ready hook. Add new member begin_move_insn.
8797 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8798 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8800 * haifa-sched.c (prune_ready_list): New function, broken out of
8802 (schedule_block): Use it.
8804 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8806 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8808 2011-04-01 Kai Tietz <ktietz@redhat.com>
8810 * config.gcc (*-*-mingw*): Allow as option the
8811 posix threading model.
8812 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8813 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8815 (CPP_SPEC): Add pthread/no-pthread handling.
8816 (LIB_SPEC): Likewise.
8817 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8818 (LIB_SPEC): Likewise.
8819 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8820 flag to pass -pthread option for shared libgcc build.
8821 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8822 for shared libgcc build.
8823 * config/i386/t-mingw-pthread: New file.
8824 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8825 New define to enable use of library pthread by default.
8826 * config/i386/mingw.opt (pthread): New driver option.
8827 (no-pthread): New driver option.
8828 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8829 * config/i386/mingw-w64.opt: Likewise.
8831 2011-04-01 Gary Funck <gary@intrepid.com>
8833 * c-decl.c (grokdeclarator): Fix formatting.
8835 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8837 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8838 instead of n_operands.
8839 (set_storage_via_setmem): Likewise.
8840 * optabs.c (maybe_gen_insn): Likewise.
8841 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8842 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8843 (mips_expand_builtin_direct): Likewise.
8844 * config/spu/spu.c (expand_builtin_args): Likewise.
8846 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8848 * recog.h (insn_data_d): Add n_generator_args.
8849 * genoutput.c (data): Likewise.
8850 (output_insn_data): Print it.
8851 (max_opno, num_dups): Delete.
8852 (scan_operands): Just fill in "d->operand[...]".
8853 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8855 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8857 * gensupport.h (pattern_stats): New structure.
8858 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8859 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8860 (max_operand_1, max_operand_vec): Delete.
8861 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8863 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8865 * emit-rtl.c (emit_pattern_after_setloc): New function.
8866 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8867 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8868 (emit_pattern_after): New function.
8869 (emit_insn_after, emit_jump_insn_after): Call it.
8870 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8871 (emit_pattern_before_setloc): New function.
8872 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8873 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8875 (emit_pattern_before): New function.
8876 (emit_insn_before, emit_jump_insn_before): Call it.
8877 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8879 2011-03-31 Richard Henderson <rth@redhat.com>
8881 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8882 (dw_separate_line_info_entry): Remove.
8883 (enum dw_line_info_opcode): New.
8884 (dw_line_info_entry): Use it.
8885 (dw_line_info_table, dw_line_info_table_p): New.
8886 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8887 (line_info_table, line_info_label_num): Remove.
8888 (line_info_table_in_use): Remove.
8889 (separate_line_info_table): Remove.
8890 (separate_line_info_table_allocated): Remove.
8891 (separate_line_info_table_in_use): Remove.
8892 (LINE_INFO_TABLE_INCREMENT): Remove.
8893 (line_info_label_num): New.
8894 (cur_line_info_table): New.
8895 (text_section_line_info, cold_text_section_line_info): New.
8896 (separate_line_info): New.
8897 (SEPARATE_LINE_CODE_LABEL): Remove.
8898 (print_dwarf_line_table): Remove.
8899 (debug_dwarf): Don't dump it.
8900 (output_one_line_info_table): New.
8901 (output_line_info): Use it.
8902 (new_line_info_table): New.
8903 (set_cur_line_info_table): New.
8904 (dwarf2out_switch_text_section): Use it.
8905 (dwarf2out_begin_function): Likewise.
8906 (push_dw_line_info_entry): New.
8907 (dwarf2out_source_line): Rewrite for new line info tables.
8908 (dwarf2out_init): Remove dead initailizations.
8910 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8912 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8914 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8915 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8916 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8917 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8918 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8919 * opt-functions.awk (flag_init, switch_bit_fields): New.
8920 (switch_flags): Don't handle flags moved to bit-fields. Don't
8921 generate CL_MISSING_OK or CL_SAVE.
8922 * optc-gen.awk: Update to generate bit-field output as well as
8924 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8925 bit-field instead of CL_REJECT_DRIVER flag.
8926 * opts-common.c (generate_canonical_option,
8927 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8928 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8929 instead of CL_REJECT_NEGATIVE flag.
8930 * toplev.c (print_switch_values): Use cl_report bit-field instead
8933 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8935 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8936 a zero minimum index only if it is redundant.
8938 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8940 PR rtl-optimization/48381
8941 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8942 instead of ira_class_hard_reg_index for calculating conflicting
8945 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8947 * cprop.c: Clean up hash table building.
8948 (reg_avail_info): Remove.
8949 (oprs_available_p): Remove.
8950 (record_last_reg_set_info): Remove.
8951 (record_last_set_info): Remove.
8952 (reg_available_p): New function.
8953 (gcse_constant_p): Do not treat unfolded conditions as constants.
8954 (make_set_regs_unavailable): New function.
8955 (hash_scan_set): Simplify with new reg_available_p.
8956 (compute_hash_table_work): Traverse insns stream only once.
8957 Do not compute reg_avail_info. Traverse insns in reverse order.
8958 Record implicit sets after recording explicit sets from the block.
8960 2011-03-31 Michael Matz <matz@suse.de>
8962 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8964 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8966 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8967 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8968 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8969 (h8300_mode_dependent_address_p): New function.
8970 (h8300_get_index): Make static.
8972 2011-03-31 Jeff Law <law@redhat.com>
8974 * reload1.c (elimination_effects): Fix typo in recent change.
8976 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8977 typo potentially leading to null pointer dereference.
8979 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8980 (setup_save_areas): Corresponding changes to avoid useless
8983 * jump.c (reversed_comparison_code_parts): Avoid successive return
8984 statements when REVERSE_CONDITION is defined.
8986 * expr.c (expand_assignment): Avoid useless assignments.
8987 (expand_expr_real_1): Likewise.
8988 (expand_expr_real_2): Avoid useless statements.
8990 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8992 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8994 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8997 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8999 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9002 * doc/tm.texi.in (TARGET_VERSION): Remove.
9003 * doc/tm.texi: Regenerate.
9004 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9005 * collect2.c (main): Don't use TARGET_VERSION.
9006 * mips-tdump.c (main): Don't use TARGET_VERSION.
9007 * mips-tfile.c (main): Don't use TARGET_VERSION.
9008 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9009 * config/rs6000/vxworksae.h: Remove.
9010 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9011 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9012 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9013 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9014 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9015 * config/arm/arm.h (TARGET_VERSION): Remove.
9016 * config/arm/coff.h (TARGET_VERSION): Remove.
9017 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9018 * config/arm/elf.h (TARGET_VERSION): Remove.
9019 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9020 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9021 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9022 * config/arm/pe.h (TARGET_VERSION): Remove.
9023 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9024 * config/arm/semi.h (TARGET_VERSION): Remove.
9025 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9026 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9027 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9028 * config/avr/avr.h (TARGET_VERSION): Remove.
9029 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9030 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9031 * config/frv/frv.h (TARGET_VERSION): Remove.
9032 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9033 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9034 * config/i386/darwin.h (TARGET_VERSION): Remove.
9035 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9036 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9037 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9038 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9039 * config/i386/gnu.h (TARGET_VERSION): Remove.
9040 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9041 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9042 * config/i386/linux.h (TARGET_VERSION): Remove.
9043 * config/i386/linux64.h (TARGET_VERSION): Remove.
9044 * config/i386/lynx.h (TARGET_VERSION): Remove.
9045 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9046 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9047 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9048 * config/i386/netware.h (TARGET_VERSION): Remove.
9049 * config/i386/nto.h (TARGET_VERSION): Remove.
9050 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9051 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9052 * config/ia64/elf.h (TARGET_VERSION): Remove.
9053 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9054 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9055 * config/ia64/linux.h (TARGET_VERSION): Remove.
9056 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9057 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9058 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9059 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9060 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9061 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9062 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9063 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9064 * config/m68k/linux.h (TARGET_VERSION): Remove.
9065 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9066 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9067 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9068 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9069 * config/mep/mep.h (TARGET_VERSION): Remove.
9070 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9071 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9072 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9073 * config/mips/linux.h (TARGET_VERSION): Remove.
9074 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9075 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9076 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9077 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9078 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9079 * config/pa/pa.h (TARGET_VERSION): Remove.
9080 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9081 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9082 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9083 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9084 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9085 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9086 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9087 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9088 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9089 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9090 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9091 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9092 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9093 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9094 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9095 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9096 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9097 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9098 * config/s390/linux.h (TARGET_VERSION): Remove.
9099 * config/s390/s390.h (TARGET_VERSION): Remove.
9100 * config/s390/tpf.h (TARGET_VERSION): Remove.
9101 * config/score/score.h (TARGET_VERSION): Remove.
9102 * config/sh/linux.h (TARGET_VERSION): Remove.
9103 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9104 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9105 * config/sh/sh.h (TARGET_VERSION): Remove.
9106 * config/sh/sh64.h (TARGET_VERSION): Remove.
9107 * config/sh/superh.h (TARGET_VERSION): Remove.
9108 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9109 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9110 * config/sparc/linux.h (TARGET_VERSION): Remove.
9111 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9112 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9113 TARGET_NAME32, TARGET_NAME): Remove.
9114 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9115 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9116 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9117 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9118 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9119 * config/spu/spu.h (TARGET_VERSION): Remove.
9120 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9121 * config/v850/v850.h (TARGET_VERSION): Remove.
9122 * config/vax/linux.h (TARGET_VERSION): Remove.
9123 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9124 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9125 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9127 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9130 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9131 frame-related from frame-unrelated adjustments to the stack pointer.
9133 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9135 * common.opt (fdebug-types-section): Move earlier.
9136 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9138 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9140 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9143 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9145 * tree.h (CASE_CHAIN): Define.
9146 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9147 (gimple_redirect_edge_and_branch): Likewise.
9149 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9152 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9155 2011-03-30 Jeff Law <law@redhat.com>
9157 * PR bootstrap/48371
9158 * reload1.c (reload): Fix botch in last change.
9160 * reload.h (struct reload): Fix typo introduced in last change.
9162 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9164 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9165 Undocumented. Remove help text.
9166 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9169 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9171 * doc/options.texi (NegativeAlias): Document.
9172 (Alias): Mention NegativeAlias.
9173 * opt-functions.awk: Handle NegativeAlias.
9174 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9175 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9176 * opts.h (CL_NEGATIVE_ALIAS): Define.
9177 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9178 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9180 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9182 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9183 mno-spe and mno-isel instead of mspe=no and -misel=no.
9185 2011-03-29 Mark Wielaard <mjw@redhat.com>
9187 * common.opt (fdebug-types-section): New flag.
9188 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9189 * dwarf2out.c (use_debug_types): New define.
9190 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9191 (print_die): Guard output of type unit signatures using
9193 (build_abbrev_table): Replace assert of dwarf_version >= 4
9194 with assert on use_debug_types.
9195 (size_of_die): Likewise.
9196 (unmark_dies): Likewise.
9197 (value_format): Decide AT_ref_external form on use_debug_types.
9198 (output_die): Replace dwarf_version version check guard with
9199 use_debug_types where appropriate.
9200 (modified_type_die): Likewise.
9201 (gen_reference_type_die): Likewise.
9202 (dwarf2out_start_source_file): Likewise.
9203 (dwarf2out_end_source_file): Likewise.
9204 (prune_unused_types_walk_attribs): Likewise.
9205 (dwarf2out_finish): Likewise.
9207 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9209 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9211 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9213 PR rtl-optimization/48332
9214 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9215 mode of input operand N and modeN to its actual mode.
9217 2011-03-30 Jeff Law <law@redhat.com>
9219 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9220 define accessor macro.
9221 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9222 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9223 (reg_equiv_init): Likewise.
9224 (reg_equivs_size): New variable.
9225 (reg_equiv_init_size): Remove.
9226 (allocate_initial_values): Move prototype to here from....
9227 * integrate.h (allocate_initial_values): Remove prototype.
9228 * integrate.c: Include reload.h.
9229 (allocate_initial_values): Corresponding changes.
9230 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9231 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9232 (update_equiv_regs): Corresponding changes.
9233 (ira): Corresponding changes.
9234 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9235 (push_secondary_reload): Corresponding changes.
9236 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9237 (make_memloc, find_reloads_address): Corresponding changes.
9238 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9239 (find_reloads_address_1): Corresponding changes.
9240 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9241 (refers_to_regno_for_reload_p): Corresponding changes.
9242 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9243 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9244 * reload1.c: Include ggc.h.
9245 (grow_reg_equivs): New function.
9246 (replace_pseudos_in, reload): Corresponding changes.
9247 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9248 (eliminate_regs_1, elimination_effects): Corresponding changes.
9249 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9250 (delete_output_reload): Likewise.
9251 * caller-save.c (mark_referenced_regs): Corresponding changes.
9252 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9253 * frv/predicates.md (frv_load_operand): Corresponding changes.
9254 * microblaze/microblaze.c (double_memory_operand): Corresponding
9256 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9257 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9258 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9259 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9260 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9262 * pa/pa.c (emit_move_sequence): Corresponding changes.
9263 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9265 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9268 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9269 structure modes. Don't check neon_vector_mem_operand for
9270 vector or structure modes.
9272 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9273 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9276 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9277 operand 1 and reshuffle the operands to match.
9278 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9280 2011-03-30 Christian Schüler <cschueler@gmx.de>
9283 * config/c.opt (F): Added 'Driver' to -F option.
9286 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9288 * config/darwin.opt: Added '-arch' option.
9290 2011-03-30 Nick Clifton <nickc@redhat.com>
9292 * config/rx/rx.md: Add peepholes and patterns to combine
9293 extending loads and simple arithmetic instructions.
9294 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9295 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9296 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9297 modes to use pre-decrement and post-increment addressing.
9298 (rx_is_restricted_memory_address): Add range checking of REG+INT
9300 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9301 (rx_memory_move_cost): Adjust cost of stores.
9302 (rx_adjust_insn_length): New function.
9304 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9307 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9308 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9309 matching arg00/arg01 types.
9311 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9313 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9314 last_location to UNKNOWN_LOCATION.
9316 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9319 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9322 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9323 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9326 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9328 (sparc_cpu): Likewise.
9329 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9332 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9336 PR rtl-optimization/48345
9337 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9338 hard regs for given mode from profitable regs when doing secondary
9341 2011-03-29 Jeff Law <law@redhat.com>
9344 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9345 do_not_duplicate field.
9346 (lookup_redirection_data): Corresponding changes.
9347 (create_duplicates): Always create a template block.
9348 (redirect_edges): Remove code which reused the original block
9349 when it was going to become unreachable code.
9350 (thread_block): Don't set do_not_duplicate field.
9352 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9354 * lto-opts.c (register_user_option_p, lto_register_user_option):
9355 Make type argument unsigned.
9356 * lto-streamer.h (lto_register_user_option): Make type argument
9358 * opth-gen.awk: Make CL_* macros unsigned.
9359 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9360 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9361 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9362 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9363 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9364 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9365 (find_opt): Make lang_mask argument unsigned.
9367 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9369 PR rtl-optimization/48331
9370 PR rtl-optimization/48334
9371 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9372 for any used algorithm.
9374 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9376 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9379 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9381 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9382 (alpha_option_override): Don't set alpha_sr_alias_set.
9383 (emit_frame_store_1): Use gen_frame_mem rather than calling
9385 (alpha_expand_epilogue): Ditto.
9387 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9389 PR tree-optimization/48290
9390 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9391 vectorization, check that relevant phis in the basic block after
9392 the inner loop are really inner loop's exit phis.
9394 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9397 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9398 (cached_dw_loc_list_def): New structure.
9399 (cached_dw_loc_list): New typedef.
9400 (cached_dw_loc_list_table): New variable.
9401 (cached_dw_loc_list_table_hash): New function.
9402 (cached_dw_loc_list_table_eq): Likewise.
9403 (add_location_or_const_value_attribute): Take a bool cache_p.
9404 Cache the list when the parameter is true.
9405 (gen_formal_parameter_die): Update caller.
9406 (gen_variable_die): Likewise.
9407 (dwarf2out_finish): Likewise.
9408 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9409 while generating debug info for the decl.
9410 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9411 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9412 (resolve_addr): Cache the result of resolving a chain of
9415 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9417 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9418 conflict object hard regset nodes have intersecting hard reg sets.
9420 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9421 after regstat_init_n_sets_and_refs.
9423 * ira.c: Add more comments at the top.
9424 (setup_stack_reg_pressure_class, setup_pressure_classes):
9425 Add comments how we compute the register pressure classes.
9426 (setup_allocno_and_important_classes): Add more comments.
9427 (setup_class_translate_array, reorder_important_classes)
9428 (setup_reg_class_relations): Add comments.
9430 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9433 * ira-color.c: Add 2011 to the Copyright line.
9434 (assign_hard_reg): Add more comments.
9435 (improve_allocation): Ditto.
9437 * ira-costs.c: Add 2011 to the Copyright line.
9438 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9440 (setup_regno_cost_classes_by_mode): Ditto.
9442 Initial patches from ira-improv branch:
9444 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9446 * ira-build.c (ira_create_object): Remove initialization of
9447 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9448 (ira_create_allocno): Remove initialization of
9449 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9450 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9451 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9452 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9453 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9454 Initialize ALLOCNO_ADD_DATA.
9455 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9456 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9458 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9459 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9461 * ira.c (ira_reallocate): Remove.
9462 (setup_pressure_classes): Call
9463 ira_init_register_move_cost_if_necessary. Use
9464 ira_register_move_cost instead of ira_get_register_move_cost.
9465 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9466 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9468 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9469 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9470 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9471 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9472 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9473 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9475 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9476 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9477 (struct allocno_color_data): New.
9478 (allocno_color_data_t): New typedef.
9479 (allocno_color_data): New definition.
9480 (ALLOCNO_COLOR_DATA): New macro.
9481 (struct object_color_data): New.
9482 (object_color_data_t): New typedef.
9483 (object_color_data): New definition.
9484 (OBJECT_COLOR_DATA): New macro.
9485 (update_copy_costs, calculate_allocno_spill_cost): Call
9486 ira_init_register_move_cost_if_necessary. Use
9487 ira_register_move_cost instead of ira_get_register_move_cost.
9488 (move_spill_restore, update_curr_costs): Ditto.
9489 (allocno_spill_priority): Make it inline.
9490 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9491 (struct coalesce_data, coalesce_data_t): New.
9492 (allocno_coalesce_data): New definition.
9493 (ALLOCNO_COALESCE_DATA): New macro.
9494 (merge_allocnos, coalesced_allocno_conflict_p): Use
9495 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9496 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9497 (coalesce_allocnos): Ditto.
9498 (setup_coalesced_allocno_costs_and_nums): Ditto.
9499 (collect_spilled_coalesced_allocnos): Ditto.
9500 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9501 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9502 (coalesce_spill_slots): Ditto.
9503 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9504 free allocno_coalesce_data.
9506 * ira-conflicts.c: Fix formatting.
9507 (process_regs_for_copy): Call
9508 ira_init_register_move_cost_if_necessary. Use
9509 ira_register_move_cost instead of ira_get_register_move_cost.
9510 (build_object_conflicts): Optimize.
9512 * ira-costs.c (record_reg_classes): Optimize. Call
9513 ira_init_register_move_cost_if_necessary. Use
9514 ira_register_move_cost, ira_may_move_in_cost, and
9515 ira_may_move_out_cost instead of ira_get_register_move_cost and
9516 ira_get_may_move_cost.
9517 (record_address_regs): Ditto.
9518 (scan_one_insn): Optimize.
9519 (find_costs_and_classes): Optimize.
9520 (process_bb_node_for_hard_reg_moves): Call
9521 ira_init_register_move_cost_if_necessary. Use
9522 ira_register_move_cost instead of ira_get_register_move_cost.
9524 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9525 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9526 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9527 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9529 (ira_initiate_emit_data, ira_finish_emit_data)
9530 (create_new_allocno): New functions.
9531 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9532 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9533 Use ira_register_move_cost instead of ira_get_register_move_cost.
9535 * ira-int.h: Fix some comments.
9536 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9537 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9538 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9539 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9541 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9542 bitfield after mode. Make hard_regno a short int. Make
9543 hard_regno short. Remove first_coalesced_allocno and
9544 next_coalesced_allocno. Move mem_optimized_dest_p,
9545 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9546 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9547 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9548 temp, colorable_p. Add new member add_data.
9549 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9550 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9551 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9552 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9553 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9554 (ALLOCNO_ADD_DATA): New macro.
9555 (ira_emit_data_t): New typedef.
9556 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9557 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9558 from struct ira_allocno.
9559 (ALLOCNO_EMIT_DATA): New macro.
9560 (ira_allocno_emit_data, allocno_emit_reg): New.
9561 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9562 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9563 (OBJECT_ADD_DATA): New macro.
9564 (ira_reallocate): Remove.
9565 (ira_initiate_emit_data, ira_finish_emit_data): New.
9566 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9567 (ira_init_register_move_cost_if_necessary): New.
9568 (ira_object_conflict_iter_next): Merge into
9569 ira_object_conflict_iter_cond.
9570 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9572 * ira-live.c (process_single_reg_class_operands): Call
9573 ira_init_register_move_cost_if_necessary. Use
9574 ira_register_move_cost instead of ira_get_register_move_cost.
9576 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9578 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9580 * ira-costs.c: Fix formatting.
9581 (cost_classes, cost_classes_num): Remove.
9582 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9583 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9584 (cost_classes_del, cost_classes_htab): New.
9585 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9586 (initiate_regno_cost_classes, setup_cost_classes): New.
9587 (setup_regno_cost_classes_by_aclass): New.
9588 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9589 (record_reg_classes): Use regno_cost_classes instead of
9590 cost_classes. Move checking opposite operand up.
9591 (record_address_regs): Use regno_cost_classes
9592 instead of cost_classes.
9593 (scan_one_insn): Ditto. Use always general register.
9594 (print_allocno_costs): Use regno_cost_classes instead of
9596 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9597 (find_costs_and_classes): Set up cost classes for each registers.
9598 Use also their mode for this. Use regno_cost_classes instead of
9600 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9602 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9603 (ira_costs, ira_set_pseudo_classes): Call
9604 initiate_regno_cost_classes and finish_regno_cost_classes.
9606 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9608 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9610 * target.def (ira_cover_classes): Remove.
9612 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9614 * doc/tm.texi.in: Ditto.
9616 * ira-conflicts.c: Remove mentioning cover classes from the file.
9617 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9618 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9620 * targhooks.c (default_ira_cover_classes): Remove.
9622 * targhooks.h (default_ira_cover_classes): Ditto.
9624 * haifa-sched.c: Remove mentioning cover classes from the file.
9625 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9626 ira_pressure_classes and ira_pressure_classes_num instead of
9627 ira_reg_class_cover_size and ira_reg_class_cover. Use
9628 sched_regno_pressure_class instead of sched_regno_cover_class.
9629 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9630 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9632 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9633 classes from the file.
9634 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9635 (struct object_hard_regs, struct object_hard_regs_node): New.
9636 (struct ira_object): New members profitable_hard_regs,
9637 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9638 (struct ira_allocno): Rename cover_class to aclass. Rename
9639 cover_class_cost and updated_cover_class_cost to class_cost and
9640 updated_class_cost. Remove splay_removed_p and
9641 left_conflict_size. Add new members colorable_p.
9642 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9643 (ALLOCNO_COLORABLE_P): New macro.
9644 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9645 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9646 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9647 (OBJECT_...): Rename parameter C to O.
9648 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9649 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9650 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9651 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9652 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9653 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9654 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9655 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9656 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9657 x_ira_reg_class_subunion.
9658 (ira_max_memory_move_cost, ira_max_register_move_cost)
9659 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9660 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9661 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9662 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9663 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9664 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9665 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9666 (ira_tune_allocno_costs_and_cover_classes): Rename to
9667 ira_tune_allocno_costs.
9668 (ira_debug_hard_regs_forest): New.
9669 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9670 (ira_object_conflict_iter_next): Fix comments.
9671 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9672 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9673 cover_class to aclass.
9674 (ira_allocate_and_accumulate_costs): Ditto.
9675 (ira_allocate_and_set_or_copy_costs): Ditto.
9677 * opts.c (decode_options): Remove ira_cover_class check.
9679 * ira-color.c: Remove mentioning cover classes from the file. Use
9680 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9681 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9682 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9683 (splay-tree.h): Remove include.
9684 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9685 before copy_freq_compare_func.
9686 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9687 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9689 (hard_regs_roots, hard_regs_node_vec): Ditto.
9690 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9691 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9692 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9693 (create_new_object_hard_regs_node): Ditto.
9694 (add_new_object_hard_regs_node_to_forest): Ditto.
9695 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9696 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9698 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9699 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9700 (remove_unused_object_hard_regs_nodes): Ditto.
9701 (enumerate_object_hard_regs_nodes): Ditto.
9702 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9703 (object_hard_regs_subnode_t): Ditto.
9704 (struct object_hard_regs_subnode): Ditto.
9705 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9706 (setup_object_hard_regs_subnode_index): Ditto.
9707 (get_object_hard_regs_subnodes_num): Ditto.
9708 (form_object_hard_regs_nodes_forest): Ditto.
9709 (finish_object_hard_regs_nodes_tree): Ditto.
9710 (finish_object_hard_regs_nodes_forest): Ditto.
9711 (allocnos_have_intersected_live_ranges_p): Rename to
9712 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9713 (pseudos_have_intersected_live_ranges_p): Rename to
9714 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9715 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9716 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9717 (update_copy_costs): Remove assert. Skip cost update if the hard
9718 reg does not belong the class.
9719 (assign_hard_reg): Process only profitable hard regs.
9720 (uncolorable_allocnos_num): Make it scalar.
9721 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9722 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9723 and ira_reg_class_max_nregs.
9724 (bucket_allocno_compare_func): Check frequency first.
9725 (sort_bucket): Add compare function as a parameter.
9726 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9727 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9728 (push_allocno_to_stack): Rewrite for checking new allocno
9730 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9731 (push_only_colorable): Pass new parameter to sort_bucket.
9732 (push_allocno_to_spill): Remove.
9733 (allocno_spill_priority_compare): Make it inline and rewrite.
9734 (splay_tree_allocate, splay_tree_free): Remove.
9735 (allocno_spill_sort_compare): New function.
9736 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9737 build and use splay tree. Choose first allocno in uncolorable
9738 allocno bucket to spill. Remove setting spill cost.
9739 (all_conflicting_hard_regs): Remove.
9740 (setup_allocno_available_regs_num): Check only profitable hard
9741 regs. Print info about hard regs nodes.
9742 (setup_allocno_left_conflicts_size): Remove.
9743 (put_allocno_into_bucket): Don't call
9744 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9745 (improve_allocation): New.
9746 (color_allocnos): Call setup_profitable_hard_regs,
9747 form_object_hard_regs_nodes_forest, improve_allocation,
9748 finish_object_hard_regs_nodes_forest. Setup spill cost.
9749 (print_loop_title): Use pressure classes.
9750 (color_allocnso): Ditto.
9751 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9752 and allocnos_for_spilling.
9753 (ira_sort_regnos_for_alter_reg): Don't setup members
9754 {first,next}_coalesced_allocno.
9755 (color): Remove allocating and freeing removed_splay_allocno_vec.
9756 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9757 prohibited_class_mode_regs.
9759 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9761 (update_allocno_pressure_excess_length): Use pressure classes.
9762 (inc_register_pressure, dec_register_pressure): Check for pressure
9764 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9765 pressure class. Use ira_reg_class_nregs instead of
9766 ira_reg_class_max_nregs.
9767 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9768 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9769 (single_reg_class): Use ira_reg_class_nregs instead of
9770 ira_reg_class_max_nregs.
9771 (process_bb_node_lives): Use pressure classes.
9773 * ira-emit.c: Remove mentioning cover classes from the file. Use
9774 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9775 (change_loop): Use pressure classes.
9776 (modify_move_list): Call ira_set_allocno_class instead of
9777 ira_set_allocno_cover_class.
9779 * ira-build.c: Remove mentioning cover classes from the file. Use
9780 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9781 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9782 ALLOCNO_UPDATED_CLASS_COST instead of
9783 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9784 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9785 (ira_create_allocno): Remove initialization of
9786 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9787 ALLOCNO_COLORABLE_P.
9788 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9789 Update conflict regs for the objects.
9790 (create_cap_allocno): Remove assert. Don't propagate
9791 ALLOCNO_AVAILABLE_REGS_NUM.
9792 (ira_free_allocno_costs): New function.
9793 (finish_allocno): Change a part of code into call of
9794 ira_free_allocno_costs.
9795 (low_pressure_loop_node_p): Use pressure classes.
9796 (object_range_compare_func): Don't compare classes.
9797 (setup_min_max_conflict_allocno_ids): Ditto.
9799 * loop-invariant.c: Remove mentioning cover classes from the file.
9800 Use ira_pressure_classes and ira_pressure_classes_num instead of
9801 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9802 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9803 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9804 Use reg_allocno_class instead of reg_cover_class.
9805 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9806 STACK_REG_COVER_CLASS.
9807 (get_regno_cover_class): Rename to get_regno_pressure_class.
9808 (move_loop_invariants): Initialize and finalize regstat.
9810 * ira.c: Remove mentioning cover classes from the file. Add
9811 comments about coloring without cover classes. Use ALLOCNO_CLASS
9812 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9813 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9814 setup_class_subset_and_memory_move_costs.
9815 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9816 (setup_cover_and_important_classes): Rename to
9817 setup_allocno_and_important_classes.
9818 (setup_class_translate_array): New.
9819 (setup_class_translate): Call it for allocno and pressure classes.
9820 (cover_class_order): Rename to allocno_class_order.
9821 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9822 of ira_class_translate.
9823 (reorder_important_classes): Set up ira_important_class_nums.
9824 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9825 (print_class_cover): Rename to print_classes. Add parameter.
9826 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9827 Print pressure classes too.
9828 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9829 setup_reg_subclasses.
9830 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9831 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9832 (setup_prohibited_class_mode_regs): Use
9833 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9834 (clarify_prohibited_class_mode_regs): New function.
9835 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9836 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9837 (ira_init_once): Initialize them.
9838 (free_register_move_costs): Process them.
9839 (ira_init): Move calls of find_reg_classes and
9840 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9841 Call clarify_prohibited_class_mode_regs.
9842 (ira_no_alloc_reg): Remove.
9843 (too_high_register_pressure_p): Use pressure classes.
9845 * sched-deps.c: Remove mentioning cover classes from the file.
9846 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9847 ira_pressure_classes and ira_pressure_classes_num instead of
9848 ira_reg_class_cover_size and ira_reg_class_cover.
9849 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9850 sched_regno_pressure_class instead of sched_regno_cover_class.
9851 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9852 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9854 * ira.h: Add 2010 to Copyright.
9855 (ira_no_alloc_reg): Remove external.
9856 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9857 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9858 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9859 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9860 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9861 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9862 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9863 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9864 x_ira_no_alloc_regs.
9865 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9866 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9867 ira_allocno_classes_num and ira_allocno_classes.
9868 (ira_class_translate): Rename to ira_allocno_class_translate.
9869 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9870 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9871 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9872 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9873 (ira_no_alloc_regs): New.
9875 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9876 classes from the file. Use ALLOCNO_CLASS instead of
9877 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9878 ALLOCNO_COVER_CLASS_COST.
9879 (regno_cover_class): Rename to regno_aclass.
9880 (record_reg_classes): Use ira_reg_class_subunion instead of
9881 ira_reg_class_union.
9882 (record_address_regs): Check overflow.
9883 (scan_one_insn): Ditto.
9884 (print_allocno_costs): Print total mem cost fore regional allocation.
9885 (print_pseudo_costs): Use REG_N_REFS.
9886 (find_costs_and_classes): Use classes intersected with them on the
9887 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9888 ira_reg_class_union. Use ira_allocno_class_translate and
9889 regno_aclass instead of ira_class_translate and regno_cover_class.
9890 Modify code for finding regno_aclass. Setup preferred classes for
9892 (setup_allocno_cover_class_and_costs): Rename to
9893 setup_allocno_class_and_costs. Use regno_aclass instead of
9894 regno_cover_class. Use ira_set_allocno_class instead of
9895 ira_set_allocno_cover_class.
9896 (init_costs, finish_costs): Use regno_aclass instead of
9898 (ira_costs): Use setup_allocno_class_and_costs instead of
9899 setup_allocno_cover_class_and_costs.
9900 (ira_tune_allocno_costs_and_cover_classes): Rename to
9901 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9902 by processing objects. Use ira_reg_class_max_nregs instead of
9903 ira_reg_class_nregs.
9905 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9907 * sched-int.h: Remove mentioning cover classes from the file.
9908 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9910 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9911 classes from the file.
9912 (struct reg_pref): Rename coverclass into allocnoclass.
9913 (reg_cover_class): Rename to reg_allocno_class.
9915 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9917 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9919 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9921 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9923 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9925 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9927 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9929 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9931 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9933 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9935 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9936 (i386_ira_cover_classes): Ditto.
9938 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9940 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9942 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9944 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9946 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9948 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9950 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9951 (mips_ira_cover_classes): Ditto.
9953 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9955 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9957 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9959 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9961 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9963 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9964 (IRA_COVER_CLASSES_VSX): Ditto.
9966 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9967 (rs6000_ira_cover_classes): Ditto.
9969 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9971 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9973 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9975 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9977 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9979 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9981 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9983 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9985 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9987 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9989 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9992 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9993 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9994 dw_fde_unlikely_section_end_label, cold_in_std_section,
9995 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9996 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9998 (output_fde): Use dw_fde_second_{begin,end} if second is
9999 true, otherwise dw_fde_{begin,end}.
10000 (output_call_frame_info): Test dw_fde_second_begin != NULL
10001 instead of dw_fde_switched_sections.
10002 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10003 fields, initialize new fields. Initialize in_std_section
10004 unconditionally from the first partition.
10005 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10006 dw_fde_second_begin is non-NULL.
10007 (dwarf2out_switch_text_section): Stop initializing removed
10008 dw_fde_struct fields, initialize new fields, initialize
10009 also dw_fde_end here. Set dw_fde_switch_cfi even when
10010 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10011 (struct var_loc_list_def): Add last_before_switch field.
10012 (arange_table, arange_table_allocated, arange_table_in_use,
10013 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10014 (size_of_aranges): Count !in_std_section and !second_in_std_section
10015 hunks in fdes, instead of looking at arange_table_in_use.
10016 (output_aranges): Add aranges_length argument, don't call
10017 size_of_aranges here. Instead of using aranges_table*
10018 emit ranges for fdes when !in_std_section resp.
10019 !second_in_std_section.
10020 (dw_loc_list): Break ranges crossing section switch.
10021 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10022 use dw_fde_second_end instead of dw_fde_end as end of last range.
10023 (gen_subprogram_die): Don't call add_arange. Use
10024 dw_fde_{begin,end} for first partition and if switched
10025 section dw_fde_second_{begin,end} for the second.
10026 (var_location_switch_text_section_1,
10027 var_location_switch_text_section): New functions.
10028 (dwarf2out_begin_function): Initialize cold_text_section even
10029 when function_section () isn't text_section.
10030 (prune_unused_types): Don't walk arange_table.
10031 (dwarf2out_finish): Don't needlessly test
10032 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10033 If info_section_emitted, call size_of_aranges and if it indicates
10034 non-empty .debug_aranges, call output_aranges with the computed
10035 size. Stop using removed dw_fde_struct fields, use
10036 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10040 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10041 create ENTRY_VALUE if incoming or address of incoming's MEM
10043 * dwarf2out.c (mem_loc_descriptor): Don't emit
10044 DW_OP_GNU_entry_value of DW_OP_fbreg.
10045 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10046 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10047 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10048 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10050 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10051 is a REG_P or MEM_P with REG_P address, compute hash directly
10052 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10053 (preserve_only_constants): Don't clear VALUES forwaring
10054 ENTRY_VALUE to some other VALUE.
10056 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10058 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10059 instead of GEN_INT.
10061 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10063 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10064 block before expanding the statement.
10065 (expand_gimple_stmt_1): Likewise. Set them here...
10066 (expand_gimple_stmt): ...and not here. Tidy.
10067 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10070 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10072 * Makefile.in: New rule for cprop.o.
10073 * gcse.c: Move constant/copy propagation to cprop.c.
10074 (compute_local_properties): Only handle expression tables.
10075 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10076 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10077 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10078 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10079 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10080 compute_cprop_data, find_used_regs, try_replace_reg,
10081 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10082 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10083 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10084 find_bypass_set, reg_killed_on_edge, bypass_block,
10085 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10086 execute_rtl_cprop, pass_rtl_cprop): Move to...
10087 * cprop.c: ...here. New file, constant/copy propagation for RTL
10088 moved from gcse.c to here with minor cleanups in duplicated code.
10090 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10092 * config/i386/i386.c (flag_opts): Fix a typo in
10093 -mavx256-split-unaligned-store.
10095 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10097 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10098 LIBCALL_VALUE): Remove macros.
10099 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10100 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10101 (h8300_function_value, h8300_libcall_value,
10102 h8300_function_value_regno_p): New functions.
10104 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10106 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10108 2011-03-28 Jeff Law <law@redhat.com>
10110 * tree-ssa-threadupdate.c (redirect_edges): Call
10111 create_edge_and_update_destination_phis as needed.
10112 (create_edge_and_update_destination_phis): Accept new BB argument.
10113 All callers updated.
10114 (thread_block): Do not update the profile when threading around
10115 intermediate blocks.
10116 (thread_single_edge): Likewise.
10117 (determine_bb_domination_status): If BB is not a successor of the
10118 loop header, return NONDOMINATING.
10119 (register_jump_thread): Note when we register a jump thread around
10120 an intermediate block.
10121 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10122 (thread_across_edge): Use it.
10124 2011-03-28 Tristan Gingold <gingold@adacore.com>
10126 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10127 when for_return is 2.
10129 2011-03-28 Jeff Law <law@redhat.com>
10131 * var-tracking.c (canonicalize_values_mark): Delete unused
10133 (canonicalize_values_star, set_variable_part): Likewise.
10134 (clobber_variable_part, delete_variable_part): Likewise.
10136 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10138 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10140 2011-03-28 Martin Jambor <mjambor@suse.cz>
10142 * tree-inline.c (expand_call_inline): Do not check that destination
10144 (optimize_inline_calls): Assert that destination node is analyzed.
10145 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10146 not call tree_lowering_passes.
10147 * cgraph.h (cgraph_analyze_function): Declare.
10148 * cgraphunit.c (cgraph_analyze_function): Make public.
10150 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10152 * config/sparc/sparc-opts.h: New.
10153 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10154 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10155 (sparc_option_override): Store processor_type enumeration rather
10156 than string in cpu_default. Remove name and enumeration from
10157 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10158 without using sparc_select. Use target_flags_explicit instead of
10160 * config/sparc/sparc.h (enum processor_type): Move to
10162 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10163 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10164 HeaderInclude entry.
10165 (mcpu=, mtune=): Use Var and Enum.
10166 (sparc_processor_type): New Enum and EnumValue entries.
10168 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10169 Iain Sandoe <iains@gcc.gnu.org>
10172 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10174 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10176 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10177 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10178 Insert new statements at it in lieu of STMT.
10179 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10180 * tree-vect-stmts.c (vectorizable_store): Likewise.
10181 (vectorizable_load): Likewise.
10183 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10185 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10190 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10192 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10193 unaligned 256bit load/store.
10194 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10195 (*avx_movdqu<avxmodesuffix>): Likewise.
10197 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10200 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10201 * config/pa/pa.md (iordi3): Use new predicate in expander.
10202 (iorsi3): Likewise.
10204 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10206 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10207 FUNCTION_VALUE_REGNO_P): Remove macros.
10208 * config/mips/mips-protos.h (mips_function_value): Remove.
10209 * config/mips/mips.c (mips_function_value): Rename to...
10210 (mips_function_value_1): ... this. Make static. Handle receiving
10211 the function type in 'fn_decl_or_type' argument.
10212 (mips_function_value, mips_libcall_value,
10213 mips_function_value_regno_p): New function.
10214 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10215 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10217 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10219 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10220 and -mavx256-split-unaligned-store.
10221 (ix86_option_override_internal): Split 32-byte AVX unaligned
10222 load/store by default.
10223 (ix86_avx256_split_vector_move_misalign): New.
10224 (ix86_expand_vector_move_misalign): Use it.
10226 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10227 -mavx256-split-unaligned-store.
10229 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10230 256bit load/store. Generate unaligned store on misaligned memory
10232 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10234 (*avx_movdqu<avxmodesuffix>): Likewise.
10236 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10237 -mavx256-split-unaligned-store.
10239 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10242 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10245 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10247 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10248 opno arguments with an expand_operand. Use create_input_operand.
10249 (mips_prepare_builtin_target): Delete.
10250 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10252 (mips_expand_builtin_direct): Use create_output_operand and
10253 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10254 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10255 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10257 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10259 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10261 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10263 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10265 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10266 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10267 basic blocks and call commit_edge_insertions directly.
10268 (fixup_abnormal_edges): Move from here to...
10269 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10270 on the edges and return whether some have actually been inserted.
10271 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10274 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10276 PR rtl-optimization/48144
10277 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10278 (merge_expr_data): ... here.
10279 (av_set_intersect): Rename to av_set_code_motion_filter.
10280 Update all callers. Call merge_history_vect when an expression
10281 is found in both sets.
10282 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10284 2011-03-26 Alan Modra <amodra@gmail.com>
10286 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10287 cmodel medium addresses.
10288 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10289 64-bit gpr loads and stores.
10290 (rs6000_secondary_reload_ppc64): New function.
10291 * config/rs6000/rs6000-protos.h: Declare it.
10292 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10294 2011-03-26 Alan Modra <amodra@gmail.com>
10297 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10298 GNU Go in traceback table.
10300 2011-03-25 Richard Henderson <rth@redhat.com>
10302 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10303 if there are exactly 6 operands.
10304 (set_storage_via_setmem): Similarly.
10306 2011-03-25 Kai Tietz <ktietz@redhat.com>
10308 * collect2.c (write_c_file_stat): Handle backslash
10309 as right-hand directory separator.
10310 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10311 checking just for slash.
10312 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10313 instead of checking for trailing slash.
10314 * gcc.c (record_temp_file): Use filename_cmp instead
10316 (do_spec_1): Likewise.
10317 (replace_outfile_spec_function): Likewise.
10318 (is_directory): Use filename_ncmp instead of strncmp.
10319 (print_multilib_info): Likewise.
10320 * gcov.c (find_source): Use filename_cmp instead
10322 (make_gcov_file_name): Fix order of slash/backslash
10324 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10325 (add_standard_paths): Likewise.
10326 * mips-tfile.c (saber_stop): Handle backslash.
10327 * prefix.c (update_path): Use filename_ncmp instead of
10329 * profile.c (output_location): Use filename_cmp instead
10331 * read-md.c (handle_toplevel_file): Handle backslash.
10332 * tlink.c (frob_extension): Likewise.
10333 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10335 * tree-dump.c (dequeue_and_dump): Handle backslash.
10336 * tree.c (get_file_function_name): Likewise.
10337 * gengtype.c (read_input_list): Likewise.
10338 (get_file_realbasename): Likewise.
10339 (get_output_file_with_visibility): Use filename_cmp
10342 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10344 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10347 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10349 * fold-const.c (expr_location_or): New function.
10350 (fold_truth_not_expr): Call it.
10352 2011-03-25 Jeff Law <law@redhat.com>
10354 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10356 * c-family/c-common.c (def_fn_type): Likewise.
10357 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10358 * emit-rtl.c (gen_rtvec): Likewise.
10359 * lto/lto-lang.c (def_fn_type): Likewise.
10361 2011-03-25 Richard Guenther <rguenther@suse.de>
10363 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10364 also generate copies.
10365 (fini_copy_prop): Handle constant values properly.
10367 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10369 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10370 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10371 (hash_loc_operands, compare_loc_operands): Handle
10372 DW_OP_GNU_entry_value.
10374 2011-03-25 Kai Tietz <ktietz@redhat.com>
10376 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10377 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10378 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10379 comment and use macro TARGET_64BIT_MS_ABI instead.
10380 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10381 and change default behavior for 32-bit MS_ABI.
10382 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10383 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10385 (ix86_cfun_abi): Likewise.
10386 (ix86_maybe_switch_abi): Adjust comment.
10387 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10388 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10389 instead of checking for SYSV_ABI.
10390 (ix86_nsaved_sseregs): Likewise.
10391 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10393 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10394 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10395 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10396 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10397 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10399 2011-03-25 Richard Guenther <rguenther@suse.de>
10401 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10402 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10403 (verify_gimple): Remove.
10404 * tree-cfg.c (verify_gimple_call): Merge verification
10406 (verify_gimple_phi): Merge verification from verify_stmts.
10407 (verify_gimple_label): New function.
10408 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10409 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10410 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10411 (verify_stmts): Rename to verify_gimple_in_cfg.
10412 (verify_gimple_in_cfg): New function.
10413 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10414 * tree-ssa.c (verify_ssa): Likewise.
10415 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10417 2011-03-25 Richard Guenther <rguenther@suse.de>
10419 * passes.c (init_optimization_passes): Add FRE pass after
10422 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10423 Andrew Stubbs <ams@codesourcery.com>
10425 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10427 (arm_movdi_vfp_cortexa8): New pattern.
10428 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10429 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10430 instructions when tuning for Cortex-A8. Set attribute "arch".
10431 * config/arm/arm.md: Move include arm-tune.md up a bit.
10432 (define_attr "arch"): Add "onlya8" and "nota8" values.
10433 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10435 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10439 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10441 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10442 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10443 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10444 * passes.c (init_optimization_passes): Move
10445 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10447 2011-03-25 Kai Tietz <ktietz@redhat.com>
10449 * c-typeck.c (comptypes_internal): Replace target
10450 hook call of comp_type_attributes by version in tree.c file.
10451 * gimple.c (gimple_types_compatible_p_1): Likewise.
10452 * tree-ssa.c (useless_type_conversion_p): Likewise.
10453 * tree.c (build_type_attribute_qual_variant): Likewise.
10454 (attribute_value_equal): New static helper function.
10455 (comp_type_attributes): New function.
10456 (merge_attributes): Use attribute_value_equal for comparison.
10457 (attribute_list_contained): Likewise.
10458 * tree.h (comp_type_attributes): New prototype.
10460 2011-03-25 Richard Guenther <rguenther@suse.de>
10462 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10463 of complex types at -O0.
10464 (verify_gimple_assign_binary): Likewise.
10465 (verify_gimple_assign_ternary): Likewise.
10467 2011-03-24 Mark Wielaard <mjw@redhat.com>
10469 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10470 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10472 2011-03-24 Mark Wielaard <mjw@redhat.com>
10475 * dwarf2out.c (output_abbrev_section): Only write table when
10476 abbrev_die_table_in_use > 1.
10478 2011-02-24 Richard Henderson <rth@redhat.com>
10480 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10481 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10482 (alpha_expand_unaligned_load_words): Use extql.
10483 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10484 (emit_insxl): Handle all modes for consistency.
10486 2011-02-24 Richard Henderson <rth@redhat.com>
10488 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10489 (alpha_expand_unaligned_load): Likewise.
10490 (alpha_expand_unaligned_store): Likewise.
10491 (alpha_expand_unaligned_load_words): Likewise.
10492 (alpha_expand_unaligned_store_words): Likewise.
10493 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10494 (alpha_split_lock_test_and_set_12): Likewise.
10495 (print_operand, alpha_fold_builtin_extxx): Likewise.
10496 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10497 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10498 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10499 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10500 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10501 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10502 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10503 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10504 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10505 (extwl, extll, extql): Similarly.
10506 (inswh, inslh, insqh): Similarly.
10507 (mskbl, mskwl, mskll, mskql): Similarly.
10508 (mskwh, msklh, mskqh): Similarly.
10510 2011-02-24 Richard Henderson <rth@redhat.com>
10512 * config/alpha/alpha.md (attribute isa): Add er, ner.
10513 (attribute enabled): Handle them.
10514 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10516 2011-02-24 Richard Henderson <rth@redhat.com>
10518 * config/alpha/alpha.md (attribute isa): Add vms.
10519 (attribute enabled): Handle it.
10520 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10521 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10522 (*movtf): Rename from *movtf_internal for consistency.
10523 (*movsi): Merge with *movsi_nt_vms.
10524 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10525 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10526 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10527 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10529 2011-02-24 Richard Henderson <rth@redhat.com>
10531 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10532 (extendqisi2, extendhisi2): Likewise.
10533 (extendqidi2): Simplify BWX/non-BWX expansions.
10534 (extendhidi2): Similarly.
10536 2011-02-24 Richard Henderson <rth@redhat.com>
10538 * config/alpha/alpha.md (attribute isa): New.
10539 (attribute enabled): New.
10540 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10541 (zero_extendqisi2, zero_extendqidi2): Similarly.
10542 (zero_extendhisi2, zero_extendhidi2): Similarly.
10543 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10545 2011-02-24 Richard Henderson <rth@redhat.com>
10547 * config/alpha/predicates.md (input_operand): Revert last change;
10548 update comment to mention 32-bit VMS rather than Windows.
10550 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10552 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10553 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10554 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10555 * passes.c (init_optimization_passes): Move
10556 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10558 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10560 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10562 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10564 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10567 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10570 * simplify-rtx.c (simplify_const_unary_operation): Call
10571 real_convert when changing mode class with FLOAT_EXTEND.
10573 2011-03-24 Nick Clifton <nickc@redhat.com>
10575 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10576 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10577 * config/rx/rx.c (rx_option_override): Set align_jumps,
10578 align_loops and align_labels if not set by the user.
10579 (rx_align_for_label): New function.
10580 (rx_max_skip_for_label): New function.
10581 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10582 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10583 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10584 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10585 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10587 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10589 PR rtl-optimization/48263
10590 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10591 and original commutative_p handling. Use maybe_gen_insn.
10593 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10595 * reload.c (find_reloads_subreg_address): Add address_reloaded
10596 parameter and return true there if the full address has been
10598 (find_reloads_toplev): Pass address_reloaded flag.
10599 (find_reloads_address_1): Don't use address_reloaded parameter.
10601 2011-03-24 Jeff Law <law@redhat.com>
10603 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10604 unused variable "ann".
10605 (remove_unused_locals): Likewise.
10607 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10610 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10613 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10615 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10616 for invalid symbolic addresses.
10617 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10620 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10622 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10623 the argument in calls to fold_truth_not_expr.
10625 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10627 * tree.c (record_node_allocation_statistics): New function.
10628 (make_node_stat, copy_node_stat, build_string): Call it.
10629 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10630 (build1_stat, build_omp_clause): Likewise.
10632 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10634 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10637 2011-03-24 Richard Guenther <rguenther@suse.de>
10639 PR tree-optimization/48271
10640 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10641 blocks that still exist.
10643 2011-03-24 Richard Guenther <rguenther@suse.de>
10645 PR tree-optimization/48270
10646 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10647 not free datarefs before ddrs.
10649 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10651 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10652 from the address built for a reference with variable offset.
10654 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10657 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10658 alternatives that can be handled with movq or movabsq insn.
10659 (*movdf_internal): Disable for !TARGET_64BIT.
10660 (*movdf_internal_nointeger): Ditto.
10661 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10663 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10665 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10666 (FUNCTION_ARG_ADVANCE): Likewise.
10667 * tm.texi.in: Change references to them to hook references.
10668 * tm.texi: Regenerate.
10669 * targhooks.c (default_function_arg): Eliminate check for target macro.
10670 (default_function_incoming_arg): Likewise.
10671 (default_function_arg_advance): Likewise.
10672 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10673 (function_arg_advance): Likewise.
10674 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10676 2011-03-24 Richard Guenther <rguenther@suse.de>
10678 PR middle-end/48269
10679 * tree-object-size.c (addr_object_size): Do not double-account
10680 for MEM_REF offsets.
10682 2011-03-24 Diego Novillo <dnovillo@google.com>
10684 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10685 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10686 (lto_input_data_block): Move from lto-opts.c. Make extern.
10688 (lto_input_string): Rename from input_string. Make extern.
10690 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10691 output_string_with_length.
10692 Output 0 to indicate a non-NULL string. Update all callers to
10694 (lto_output_string): Rename from output_string. Make extern.
10696 (lto_output_decl_state_streams): Make extern.
10697 (lto_output_decl_state_refs): Make extern.
10698 * lto-streamer.h (lto_input_string): Declare.
10699 (lto_input_data_block): Declare.
10700 (lto_output_string): Declare.
10701 (lto_output_string_with_length): Declare.
10702 (lto_output_decl_state_streams): Declare.
10703 (lto_output_decl_state_refs): Declare.
10705 2011-03-24 Richard Guenther <rguenther@suse.de>
10707 PR tree-optimization/46562
10708 * tree.c (build_invariant_address): New function.
10709 * tree.h (build_invariant_address): Declare.
10710 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10711 a renamed function moved ...
10712 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10713 Take valueization callback parameter.
10714 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10715 * gimple-fold.h: New file.
10716 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10717 (ccp_fold, fold_const_aggregate_ref,
10718 fold_ctor_reference, fold_nonarray_ctor_reference,
10719 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10720 get_base_constructor): Move ...
10721 * gimple-fold.c: ... here.
10722 (gimple_fold_stmt_to_constant_1): New function
10723 split out from ccp_fold. Take a valueization callback parameter.
10724 Valueize all operands.
10725 (gimple_fold_stmt_to_constant): New wrapper function.
10726 (fold_const_aggregate_ref_1): New function split out from
10727 fold_const_aggregate_ref. Take a valueization callback parameter.
10728 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10729 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10730 invariant POINTER_PLUS_EXPRs to invariant form.
10731 (vn_valueize): New function.
10732 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10733 * tree-vrp.c (vrp_valueize): New function.
10734 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10735 to fold statements to constants.
10736 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10737 function declarations.
10738 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10739 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10741 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10743 * config/h8300/predicates.md (jump_address_operand): Fix register
10746 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10748 * doc/invoke.texi (max-stores-to-sink): Document.
10749 * params.h (MAX_STORES_TO_SINK): Define.
10750 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10751 if either vectorization or if-conversion is disabled.
10752 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10753 tree-vect-data-refs.c vect_equal_offsets.
10754 (dr_equal_offsets_p): New function.
10755 (find_data_references_in_bb): Remove static.
10756 * tree-data-ref.h (find_data_references_in_bb): Declare.
10757 (dr_equal_offsets_p): Likewise.
10758 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10759 (vect_drs_dependent_in_basic_block): Update calls to
10760 vect_equal_offsets.
10761 (vect_check_interleaving): Likewise.
10762 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10763 (cond_if_else_store_replacement): Rename to...
10764 (cond_if_else_store_replacement_1): ... this. Change arguments and
10766 (cond_if_else_store_replacement): New function.
10767 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10768 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10770 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10773 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10774 to subtract lower bound instead of GEN_INT().
10776 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10781 * doc/extend.texi (Alignment): Move section to match order in TOC.
10782 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10783 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10785 2011-03-23 Jeff Law <law@redhat.com>
10787 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10788 before removing the edge.
10790 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10791 it may have been freed by redirect_branch_edge or
10792 redirect_edge_succ_nodup.
10794 2011-03-23 Richard Guenther <rguenther@suse.de>
10796 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10797 (check_va_list_escapes): Likewise.
10798 (check_all_va_list_escapes): Likewise.
10800 2011-03-23 Richard Guenther <rguenther@suse.de>
10802 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10803 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10804 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10805 (alias.o): Likewise.
10806 (ipa-type-escape.o): Remove.
10807 (ipa-struct-reorg.o): Likewise.
10808 (GTFILES): Remove ipa-struct-reorg.c.
10809 * alias.c: Do not include ipa-type-escape.h.
10810 * tree-ssa-alias.c: Likewise.
10811 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10812 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10813 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10814 and ipa-type-escape passes.
10815 * tree-pass.h (pass_ipa_type_escape): Remove.
10816 (pass_ipa_struct_reorg): Likewise.
10817 * ipa-struct-reorg.h: Remove.
10818 * ipa-struct-reorg.c: Likewise.
10819 * ipa-type-escape.h: Likewise.
10820 * ipa-type-escape.c: Likewise.
10821 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10822 (--param struct-reorg-cold-struct-ratio): Likewise.
10823 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10824 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10825 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10827 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10829 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10830 cpu attribute value.
10831 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10832 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10833 * config/s390/s390.c (processor_flags_table): New constant array.
10834 (s390_handle_arch_option): Remove.
10835 (s390_handle_option): Remove s390_handle_arch_option invocations
10836 and OPT_mwarn_framesize_ handling.
10837 (s390_option_override): Remove s390_handle_arch_option invocation.
10838 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10840 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10841 * config/s390/s390.opt (s390_tune, s390_arch)
10842 (march=): Replace s390_arch_option enum and values with
10843 processor_type. Set variable name to s390_arch. Set
10844 initialization value.
10845 (mtune=): Replace s390_arch_option with processor_type. Set
10846 variable name to s390_tune. Set initialization value.
10848 2011-03-23 Julian Brown <julian@codesourcery.com>
10850 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10851 accesses which are not naturally aligned.
10853 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10856 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10858 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10860 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10861 parameter from "int" to "enum insn_code".
10862 (expand_operand_type): New enum.
10863 (expand_operand): New structure.
10864 (create_expand_operand): New function.
10865 (create_fixed_operand, create_output_operand): Likewise
10866 (create_input_operand, create_convert_operand_to): Likewise.
10867 (create_convert_operand_from, create_address_operand): Likewise.
10868 (create_integer_operand): Likewise.
10869 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10870 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10871 (expand_insn, expand_jump_insn): Likewise.
10872 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10873 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10874 (expand_movstr, expand_builtin___clear_cache): Likewise.
10875 (expand_builtin_lock_release): Likewise.
10876 * explow.c (allocate_dynamic_stack_space): Likewise.
10877 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10878 and use the default handling in that case.
10879 * expmed.c (check_predicate_volatile_ok): Delete.
10880 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10881 (emit_cstore): Likewise.
10882 * expr.c (emit_block_move_via_movmem): Likewise.
10883 (set_storage_via_setmem, expand_assignment): Likewise.
10884 (emit_storent_insn, try_casesi): Likewise.
10885 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10886 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10887 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10888 (expand_twoval_unop, expand_twoval_binop): Likewise.
10889 (expand_unop_direct, emit_indirect_jump): Likewise.
10890 (emit_conditional_move, vector_compare_rtx): Likewise.
10891 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10892 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10893 (expand_sync_lock_test_and_set): Likewise.
10894 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10895 (emit_unop_insn): Likewise.
10896 (expand_copysign_absneg): Change icode to an insn_code.
10897 (create_convert_operand_from_type): New function.
10898 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10899 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10900 (expand_insn, expand_jump_insn): Likewise.
10901 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10902 than const_int_operand for operand 2.
10904 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10906 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10909 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10911 * emit-rtl.c (emit_pattern_before_noloc): New function.
10912 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10913 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10914 (emit_pattern_after_noloc): New function.
10915 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10916 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10918 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10920 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10921 (__ffsDI2): Likewise.
10923 2011-03-22 Richard Henderson <rth@redhat.com>
10925 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10926 of !TARGET_ABI_OPEN_VMS.
10927 (alpha_trampoline_init, alpha_start_function): Likewise.
10928 (alpha_expand_epilogue, alpha_file_start): Likewise.
10929 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10930 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10931 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10932 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10933 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10935 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10937 * config/s390/s390-opts.h: New.
10938 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10939 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10940 s390_stack_guard): Remove.
10941 (s390_handle_arch_option): Return void. Take enum
10942 s390_arch_option value instead of string and searching array.
10943 (s390_handle_option): Don't assert that global structures are in
10944 use. Access variables via opts pointer. Use error_at. Don't use
10945 sscanf for -mstack-guard= or -mstack-size=. Update call to
10946 s390_handle_arch_option.
10947 (s390_option_override): Update call to s390_handle_arch_option.
10948 (s390_emit_prologue): Use %d format for s390_stack_size in
10949 diagnostic. Use %wd for HOST_WIDE_INT.
10950 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10951 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10952 * config/s390/s390.opt (config/s390/s390-opts.h): New
10953 HeaderInclude entry.
10954 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10955 s390_arch_flags, s390_warn_framesize): New Variable entries.
10956 (s390_arch_option): New Enum and EnumValue entries.
10957 (march=): Use Enum instead of Var.
10958 (mstack-guard=, mstack-size=): Use UInteger and Var.
10959 (mtune=): Use Enum.
10961 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10963 * config/score/score.c (score_handle_option): Don't assert that
10964 global structures are in use. Access target_flags via opts
10965 pointer. Use value of -march= option to determine target_flags
10967 * config/score/score.opt (march=): Use Enum.
10968 (score_arch): New Enum and EnumValue entries.
10970 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10972 * config/mep/mep.c (option_mtiny_specified): Remove.
10973 (mep_option_override): Move register handling for -mivc2 from
10974 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10975 instead of option_mtiny_specified.
10976 (mep_handle_option): Access target_flags via opts pointer. Don't
10977 assert that global structures are in use. Defer part of -mivc2
10978 handling and move it to mep_option_override.
10979 * config/mep/mep.opt (IVC2): New Mask entry.
10980 (mivc2): Use Var and Defer instead of Mask.
10982 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10984 * config/v850/v850-opts.h: New.
10985 * config/v850/v850.c (small_memory): Replace with
10986 small_memory_physical_max array. Make that array static const.
10987 (v850_handle_memory_option): Take integer value of argument. Take
10988 gcc_options pointer, option text and location. Return void.
10989 Update for changes to small memory structures.
10990 (v850_handle_option): Access target_flags via opts pointer. Don't
10991 assert that global structures are in use. Update calls to
10992 v850_handle_memory_option.
10993 (v850_encode_data_area): Update references to small memory settings.
10994 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10995 (enum small_memory_type): Move to v850-opts.h.
10996 * config/v850/v850.opt (config/v850/v850-opts.h): New
10997 HeaderInclude entry.
10998 (small_memory_max): New Variable entry.
10999 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11000 (mtda, mzda): Likewise.
11002 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11004 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11005 pointer. Don't assert that global structures are in use.
11007 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11009 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11010 via opts pointer. Don't assert that global structures are in use.
11012 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11014 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11015 (munix=93): Use Var.
11016 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11017 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11018 * config/pa/pa-opts.h: New.
11019 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11020 (pa_handle_option): Don't assert that global structures are in
11021 use. Access target_flags via opts pointer. Don't handle
11022 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11024 (pa_option_override): Handle deferred OPT_mfixed_range_.
11026 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11028 * config/mn10300/mn10300-opts.h: New.
11029 * config/mn10300/mn10300.c (mn10300_processor,
11030 mn10300_tune_string): Remove.
11031 (mn10300_handle_option): Don't assert that global structures are
11032 in use. Access mn10300_processor via opts pointer. Don't handle
11034 * config/mn10300/mn10300.h (enum processor_type): Move to
11036 (mn10300_processor): Remove.
11037 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11038 HeaderInclude entry.
11039 (mn10300_processor): New Variable entry.
11042 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11044 * config/microblaze/microblaze.c: Don't include opts.h.
11045 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11046 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11047 (mno-clearbss): Use Var and Warn.
11049 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11051 * config/m32r/m32r-opts.h: New.
11052 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11053 (m32r_handle_option): Don't assert that global structures are in
11054 use. Access target_flags and m32r_cache_flush_func via opts
11055 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11056 OPT_mno_flush_trap here.
11057 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11058 include of m32r-opts.h.
11059 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11060 HeaderInclude entry.
11061 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11062 (mmodel=): Use Enum and Var.
11063 (m32r_model): New Enum and EnumValue entries.
11064 (mno-flush-trap): Use Var.
11065 (msdata=): Use Enum and Var.
11066 (m32r_sdata): New Enum and EnumValue entries.
11068 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11070 * config/m32c/m32c.c: Don't include opts.h.
11071 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11072 m32c_handle_option): Remove.
11073 (m32c_option_override): Check global_options_set.x_target_memregs
11074 instead of target_memregs_set.
11075 * config/m32c/m32c.h (target_memregs): Remove.
11076 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11079 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11081 * config/iq2000/iq2000-opts.h: New.
11082 * config/iq2000/iq2000.c: Don't include opts.h.
11083 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11084 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11085 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11086 HeaderInclude entry.
11087 (iq2000_tune): New Variable entry.
11088 (march=): Add comment. Use Enum.
11089 (iq2000_arch): New Enum and EnumValue entries.
11090 (mcpu=): Use Enum and Var.
11091 (iq2000_tune): New Enum and EnumValue entries.
11093 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11095 * config/ia64/ia64-opts.h: New.
11096 * config/ia64/ia64.c (ia64_tune): Remove.
11097 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11098 here. Use error_at.
11099 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11100 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11101 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11102 HeaderInclude entry.
11103 (ia64_tune): New Variable entry.
11104 (mfixed-range=): Use Defer and Var.
11105 (mtune=): Use Enum and Var.
11106 (ia64_tune): New Enum and EnumValue entries.
11108 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11110 * config/frv/frv-opts.h: New.
11111 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11113 (frv_cpu_type): Remove.
11114 * config/frv/frv.c: Don't include opts.h.
11115 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11116 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11117 (frv_cpu_type): New Variable entry.
11118 (frv_cpu): New Enum and EnumValue entries.
11120 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11122 * config/cris/cris.c (cris_handle_option): Access target_flags via
11123 opts pointer. Don't assert that global structures are in use.
11124 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11125 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11127 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11129 * config/bfin/bfin-opts.h: New.
11130 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11131 bfin_si_revision, bfin_workarounds): Remove.
11132 (bfin_cpus): Make static const.
11133 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11134 not bfin_lib_id_given.
11135 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11136 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11137 pointer. Use error_at. Don't assert that global structures are in use.
11138 * config/bfin/bfin.h: Include bfin-opts.h.
11139 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11140 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11141 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11142 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11145 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11147 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11148 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11149 or -msoft-float here.
11150 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11151 -msoft-float and -mhard-float.
11152 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11153 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11155 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11157 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11158 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11160 (LIBGCC_SPEC): Don't handle -msoft-float.
11161 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11163 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11165 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11166 -mfloat-abi=*, not -msoft-float and -mhard-float.
11167 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11169 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11170 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11171 mhard-float and msoft-float.
11172 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11173 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11174 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11175 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11177 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11178 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11180 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11182 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11185 2011-03-22 Richard Henderson <rth@redhat.com>
11187 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11188 TARGET_ABI_WINDOWS_NT.
11189 (alpha_output_function_end_prologue): Likewise.
11190 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11191 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11192 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11193 (trap, *movsi_nt_vms): Likewise.
11194 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11195 (*tablejump_osf_nt_internal): Remove.
11196 * config/alpha/predicates.md (input_operand): Only test Pmode.
11198 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11200 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11201 via opts pointer. Use error_at. Don't assert that global
11202 structures are in use.
11204 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11206 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11207 (ix86_handle_option): Access ix86_isa_flags and
11208 ix86_isa_flags_explicit via opts pointer. Don't assert that
11209 global structures are in use.
11210 (ix86_function_specific_save, ix86_function_specific_restore):
11211 Update ix86_isa_flags_explicit field name.
11212 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11213 (ix86_isa_flags_explicit): Rename TargetSave entry to
11214 x_ix86_isa_flags_explicit.
11216 2011-03-22 Richard Henderson <rth@redhat.com>
11218 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11219 (alpha_option_override, direct_return): Likewise.
11220 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11221 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11222 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11223 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11224 (alpha_expand_epilogue, alpha_end_function): Likewise.
11225 (alpha_init_libfuncs): Likewise.
11226 (struct machine_function): Remove unicosmk members.
11227 (print_operand) ['t']: Remove.
11228 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11229 unicosmk_output_module_name, unicosmk_output_common,
11230 current_section_align, unicosmk_output_text_section_asm_op,
11231 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11232 unicosmk_section_type_flags, unicosmk_unique_section,
11233 unicosmk_asm_named_section, unicosmk_insert_attributes,
11234 unicosmk_output_align, unicosmk_defer_case_vector,
11235 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11236 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11237 unicosmk_output_ssib, unicosmk_add_call_info_word,
11238 unicosmk_extern_head, unicosmk_output_default_externs,
11239 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11240 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11241 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11242 * config/alpha/alpha-protos.h: Update.
11243 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11244 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11245 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11246 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11247 (*mulsi_se, mulvsi3): Likewise.
11248 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11249 (*divmodsi_internal, call, call_value, realign): Likewise.
11250 (moddi3, umoddi3): Likewise; remove duplicate expander.
11251 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11252 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11253 (*movdi_nofix): Remove r/U alternative.
11254 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11255 * config/alpha/constraints.md ("U"): Remove.
11256 * config/alpha/predicates.md (call_operand"): Don't test
11257 TARGET_ABI_UNICOSMK.
11259 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11261 * target.def (handle_option): Take gcc_options and
11262 cl_decoded_option pointers and location_t.
11263 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11264 * doc/tm.texi: Regenerate.
11265 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11266 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11267 * lto-opts.c (lto_reissue_options): Generate option structure for
11268 targetm.handle_option call.
11269 * opts.c (target_handle_option): Update call to
11270 targetm.handle_option. Remove assertions about values now passed
11272 * targhooks.c (default_target_handle_option): New.
11273 * targhooks.h (default_target_handle_option): Declare.
11274 * config/alpha/alpha.c: Include opts.h.
11275 (alpha_handle_option): Update to new hook interface.
11276 * config/arm/arm.c: Include opts.h.
11277 (arm_handle_option): Update to new hook interface.
11278 * config/arm/t-arm (arm.o): Update dependencies.
11279 * config/bfin/bfin.c: Include opts.h.
11280 (bfin_handle_option): Update to new hook interface.
11281 * config/cris/cris.c: Include opts.h.
11282 (cris_handle_option): Update to new hook interface.
11283 * config/frv/frv.c: Include opts.h.
11284 (frv_handle_option): Update to new hook interface.
11285 * config/i386/i386.c: Include opts.h.
11286 (ix86_handle_option): Update to new hook interface.
11287 (ix86_valid_target_attribute_inner_p): Generate option structure
11288 for call to ix86_handle_option.
11289 * config/i386/t-i386 (i386.o): Update dependencies.
11290 * config/ia64/ia64.c: Include opts.h.
11291 (ia64_handle_option): Update to new hook interface.
11292 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11293 * config/iq2000/iq2000.c: Include opts.h.
11294 (iq2000_handle_option): Update to new hook interface.
11295 * config/m32c/m32c.c: Include opts.h.
11296 (m32c_handle_option): Update to new hook interface.
11297 * config/m32r/m32r.c: Include opts.h.
11298 (m32r_handle_option): Update to new hook interface.
11299 * config/m68k/m68k.c: Include opts.h.
11300 (m68k_handle_option): Update to new hook interface.
11301 * config/mep/mep.c: Include opts.h.
11302 (mep_handle_option): Update to new hook interface.
11303 * config/microblaze/microblaze.c: Include opts.h.
11304 (microblaze_handle_option): Update to new hook interface.
11305 * config/mips/mips.c: Include opts.h.
11306 (mips_handle_option): Update to new hook interface.
11307 * config/mn10300/mn10300.c: Include opts.h.
11308 (mn10300_handle_option): Update to new hook interface.
11309 * config/pa/pa.c: Include opts.h.
11310 (pa_handle_option): Update to new hook interface.
11311 * config/pdp11/pdp11.c: Include opts.h.
11312 (pdp11_handle_option): Update to new hook interface.
11313 * config/rs6000/rs6000.c: Include opts.h.
11314 (rs6000_handle_option): Update to new hook interface.
11315 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11316 * config/rx/rx.c: Include opts.h.
11317 (rx_handle_option): Update to new hook interface.
11318 * config/s390/s390.c: Include opts.h.
11319 (s390_handle_option): Update to new hook interface.
11320 * config/score/score.c: Include opts.h.
11321 (score_handle_option): Update to new hook interface.
11322 * config/sh/sh.c: Include opts.h.
11323 (sh_handle_option): Update to new hook interface.
11324 * config/sparc/sparc.c: Include opts.h.
11325 (sparc_handle_option): Update to new hook interface.
11326 * config/v850/v850.c: Include opts.h.
11327 (v850_handle_option): Update to new hook interface.
11329 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11331 * gcc.c (driver_unknown_option_callback): Only permit and save
11332 unknown -Wno- options.
11333 (driver_wrong_lang_callback): Save options directly instead of via
11334 driver_unknown_option_callback.
11336 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11338 * combine.c (simplify_set): Try harder to find the best CC mode when
11339 simplifying a nested COMPARE on the RHS.
11341 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11343 * config/alpha/gnu.h: Remove.
11344 * config/arc: Remove directory.
11345 * config/arm/netbsd.h: Remove.
11346 * config/arm/t-pe: Remove.
11347 * config/crx: Remove directory.
11348 * config/i386/netbsd.h: Remove.
11349 * config/m68hc11: Remove directory.
11350 * config/m68k/uclinux-oldabi.h: Remove.
11351 * config/mcore/mcore-pe.h: Remove.
11352 * config/mcore/t-mcore-pe: Remove.
11353 * config/netbsd-aout.h: Remove.
11354 * config/rs6000/gnu.h: Remove.
11355 * config/sh/sh-symbian.h: Remove.
11356 * config/sh/symbian-base.c: Remove.
11357 * config/sh/symbian-c.c: Remove.
11358 * config/sh/symbian-cxx.c: Remove.
11359 * config/sh/symbian-post.h: Remove.
11360 * config/sh/symbian-pre.h: Remove.
11361 * config/sh/t-symbian: Remove.
11362 * config/svr3.h: Remove.
11363 * config/vax/netbsd.h: Remove.
11364 * config.build: Don't handle i[34567]86-*-pe.
11365 * config.gcc: Remove handling of deprecations for most deprecated
11367 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11368 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11369 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11370 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11371 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11372 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11374 * config.host: Don't handle i[34567]86-*-pe.
11375 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11376 (ASM_SPEC32): Don't handle -mcall-gnu.
11377 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11379 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11380 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11381 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11382 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11383 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11384 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11385 conditional on SYMBIAN.
11386 * configure.ac: Don't handle powerpc*-*-gnu*.
11387 * configure: Regenerate.
11388 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11389 * doc/install-old.texi (m6811, m6812): Don't mention.
11390 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11391 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11392 (m68k-uclinuxoldabi): Don't mention.
11393 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11395 (-mcall-gnu): Remove.
11396 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11397 families): Remove constraint documentation.
11399 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11401 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11402 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11403 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11405 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11408 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11409 vector when peeking at the next token for vector, don't expand the
11412 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11414 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11415 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11416 * config/avr/avr.c (init_cumulative_args)
11417 (avr_function_arg_advance): Use it.
11418 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11420 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11421 (avr_function_ok_for_sibcall): ...this new function.
11422 (avr_lookup_function_attribute1): New static Function.
11423 (avr_naked_function_p, interrupt_function_p)
11424 (signal_function_p, avr_OS_task_function_p)
11425 (avr_OS_main_function_p): Use it.
11426 * config/avr/avr.md ("sibcall", "sibcall_value")
11427 ("sibcall_epilogue"): New expander.
11428 ("*call_insn", "*call_value_insn"): New insn.
11429 ("call_insn", "call_value_insn"): Remove
11430 ("call", "call_value", "epilogue"): Change expander to handle
11433 2011-03-21 Nick Clifton <nickc@redhat.com>
11435 * doc/invoke.texi (Overall Options): Move closing brace to end of
11437 (Optimization Options): Add missing @gol.
11438 (Directory Options): Likewise.
11439 (i386 and x86-64 Options): Likewise.
11440 (RS6000 and PowerPC Options): Likewise.
11441 (i386 and x86-64 Windows Options): Likewise.
11442 (V850 Options): Add text missing from descriptions.
11444 2011-03-22 Richard Henderson <rth@redhat.com>
11446 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11447 (avr_incoming_return_addr_rtx): New.
11448 (emit_push_byte): New.
11449 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11450 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11451 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11452 (emit_pop_byte): New.
11453 (expand_epilogue): Use it. Pop frame pointer by bytes.
11454 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11455 (INCOMING_RETURN_ADDR_RTX): New.
11456 (INCOMING_FRAME_SP_OFFSET): New.
11457 (ARG_POINTER_CFA_OFFSET): New.
11458 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11459 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11462 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11464 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11466 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11467 (FUNCTION_ARG_ADVANCE): Likewise.
11468 * tm.texi.in: Change references to them to hook references.
11469 * tm.texi: Regenerate.
11470 * targhooks.c (default_function_arg): Eliminate check for target
11472 (default_function_incoming_arg): Likewise.
11473 (default_function_arg_advance): Likewise.
11474 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11475 (function_arg_advance): Likewise.
11476 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11478 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11480 * tree.c (build_call_1): New function.
11481 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11483 2011-03-22 Richard Guenther <rguenther@suse.de>
11485 PR tree-optimization/48228
11486 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11487 for single-arg PHIs.
11489 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11491 PR rtl-optimization/48143
11492 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11493 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11494 sse2_cvtps2pd): Likewise.
11496 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11498 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11500 2011-03-22 Richard Guenther <rguenther@suse.de>
11502 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11503 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11504 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11505 and REALIGN_LOAD_EXPR.
11506 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11507 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11508 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11509 DOT_PROD_EXPR case ...
11510 (expand_expr_real_2): ... here.
11511 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11512 and REALIGN_LOAD_EXPR.
11513 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11514 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11515 (vect_create_epilog_for_reduction): Likewise.
11516 (vectorizable_reduction): Likewise.
11517 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11518 * tree-vect-stmts.c (vectorizable_load): Likewise.
11520 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11522 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11524 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11526 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11527 handling for PLTOFF/GOTOFF.
11529 2011-03-22 Nick Clifton <nickc@redhat.com>
11531 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11532 trailing backslash from the end of the macro definition.
11534 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11536 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11539 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11541 * expr.h (prepare_operand): Move to...
11542 * optabs.h (prepare_operand): ...here and change the insn code
11543 parameter from "int" to "enum insn_code".
11544 (insn_operand_matches): Declare.
11545 * expr.c (init_expr_target): Use insn_operand_matches.
11546 (compress_float_constant): Likewise.
11547 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11548 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11549 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11550 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11552 (gen_cond_trap): Likewise.
11553 (prepare_operand): Likewise. Change icode to an insn_code.
11554 (insn_operand_matches): New function.
11555 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11556 * reload1.c (gen_reload): Likewise.
11557 * targhooks.c (default_secondary_reload): Likewise.
11559 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11561 * config/alpha/alpha.md (unspec): New define_c_enum.
11564 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11567 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11568 between a call and its CALL_ARG_LOCATION note.
11570 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11572 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11574 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11578 * c-common.c (shorten_compare): If primopN is first sign-extended
11579 to opN and then zero-extended to result type, set primopN to opN.
11581 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11583 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11584 for barrier handlers.
11586 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11588 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11589 UNSPEC constants to be in the unspec enumeration, and redefine
11590 all UNSPECV constants to be in the unspecv enumeration, so that
11591 dumps print which unspec/unspec_volatile this is.
11592 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11593 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11594 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11595 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11596 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11598 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11599 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11600 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11601 * config/rs6000/sync.md (isync, lwsync): Ditto.
11603 2011-03-21 Richard Guenther <rguenther@suse.de>
11605 * params.def (lto-min-partition): Fix typo.
11607 2011-03-21 Richard Guenther <rguenther@suse.de>
11610 * c-decl.c (grokdeclarator): Drop to the main variant only
11611 for array types. Drop flag_gen_aux_info check.
11613 2011-03-21 Richard Guenther <rguenther@suse.de>
11615 PR translation/47911
11616 * params.def (lto-partitions): Fix typo.
11617 (lto-min-partition): Fix wording.
11619 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11621 * config/rs6000/t-freebsd: Remove duplication from file.
11623 2011-03-21 Richard Guenther <rguenther@suse.de>
11625 PR middle-end/47661
11626 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11628 2011-03-21 Richard Guenther <rguenther@suse.de>
11631 * params.def (lto-partitions): Require at least 1 partition.
11633 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11635 * gthr-solaris.h: Remove.
11636 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11637 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11638 (LIB_SPEC): Likewise.
11639 * config/sol2.opt (threads): Remove.
11640 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11641 (sparc*-*-solaris2*): Likewise.
11642 * configure.ac (enable_threads): Enable solaris support.
11643 * configure: Regenerate.
11644 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11645 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11648 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11650 * config.gcc: Obsolete *-*-solaris2.8*.
11651 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11653 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11656 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11657 reference. Solaris 8 perl works.
11659 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11662 * doc/install.texi (Prerequisites): Move jar etc. up.
11663 Explain support library version requirements.
11665 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11668 * doc/install.texi (Prerequisites): Move Perl to build
11669 requirements. Always necessary on Solaris 2 with Sun ld.
11671 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11673 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11675 (Specific, i?86-*-solaris2.[89]): Likewise.
11676 (Specific, i?86-*-solaris2.10): Likewise.
11677 (Specific, mips-sgi-irix6): Likewise.
11678 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11679 Update for binutils 2.21.
11681 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11683 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11684 Allow -fuse-linker-plugin for non-default plugin linker.
11685 * configure: Regenerate.
11687 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11690 * gengtype.c (files_rules): Added rule for cp/parser.h.
11692 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11695 * config/s390/s390.c (s390_delegitimize_address): Don't call
11696 lowpart_subreg if orig_x has BLKmode.
11698 2011-03-21 Kai Tietz <ktietz@redhat.com>
11701 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11702 * tree.h (attribute_spec): Add new member affects_type_identity.
11703 * attribs.c (empty_attribute_table): Adjust attribute_spec
11705 * config/alpha/alpha.c: Likewise.
11706 * config/arc/arc.c: Likewise.
11707 * config/arm/arm.c: Likewise.
11708 * config/avr/avr.c: Likewise.
11709 * config/bfin/bfin.c: Likewise.
11710 * config/crx/crx.c: Likewise.
11711 * config/darwin.h: Likewise.
11712 * config/h8300/h8300.c: Likewise.
11713 * config/i386/cygming.h: Likewise.
11714 * config/i386/i386.c: Likewise.
11715 * config/ia64/ia64.c: Likewise.
11716 * config/m32c/m32c.c: Likewise.
11717 * config/m32r/m32r.c: Likewise.
11718 * config/m68hc11/m68hc11.c: Likewise.
11719 * config/m68k/m68k.c: Likewise.
11720 * config/mcore/mcore.c: Likewise.
11721 * config/mep/mep.c: Likewise.
11722 * config/microblaze/microblaze.c: Likewise.
11723 * config/mips/mips.c: Likewise.
11724 * config/rs6000/rs6000.c: Likewise.
11725 * config/rx/rx.c: Likewise.
11726 * config/sh/sh.c: Likewise.
11727 * config/sol2.h: Likewise.
11728 * config/sparc/sparc.c: Likewise.
11729 * config/spu/spu.c: Likewise.
11730 * config/stormy16/stormy16.c: Likewise.
11731 * config/v850/v850.c: Likewise.
11733 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11735 * simplify-rtx.c (simplify_binary_operation_1): Handle
11736 (xor (and A B) C) case when B and C are both constants.
11738 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11740 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11742 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11745 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11747 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11749 PR rtl-optimization/48156
11750 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11751 assume df and df_lr are not NULL.
11753 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11756 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11757 between a call and its CALL_ARG_LOCATION note.
11759 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11762 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11763 between a call and its corresponding CALL_ARG_LOCATION note.
11765 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11767 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11768 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11769 * haifa-sched.c (setup_ref_regs): Ditto.
11770 * caller-save.c (add_used_regs_1): Ditto.
11771 * dse.c (look_for_hardregs): Ditto.
11772 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11773 * sched-rgn.c (check_live_1): Ditto.
11775 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11777 * c-decl.c (diagnose_mismatched_decls): Give an error for
11778 redefining a typedef with variably modified type.
11780 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11782 * c-decl.c (grokfield): Don't allow typedefs for structures or
11783 unions with no tag by default.
11784 * doc/extend.texi (Unnamed Fields): Update.
11786 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11788 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11789 Rewrite using indirect functions.
11790 (lwp_slwpcb): Ditto.
11791 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11792 (avx_vinsertf128<mode>): Ditto.
11794 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11796 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11799 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11801 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11802 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11804 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11806 PR rtl-optimization/48170
11807 * gcse.c (hoist_code): Remove bogus asserts.
11809 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11811 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11812 computation for prologue/epilogue.
11814 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11816 * Makefile.in (check-consistency): Remove.
11818 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11821 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11822 arange_table_in_use is 0, but either text_section_used or
11823 cold_text_section_used is true. Don't call it if
11824 !info_section_emitted.
11826 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11828 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11829 FUNCTION_VALUE_REGNO_P): Remove.
11830 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11832 * config/avr/avr.c (avr_ret_register): Make static inline.
11833 (avr_function_value_regno_p): New function.
11834 (avr_libcall_value): Make static. Add 'func' argument.
11835 (avr_function_value): Make static. Rename 'func' argument to
11836 'fn_decl_or_type', forward it to avr_libcall_value. Call
11837 avr_ret_register function instead of RET_REGISTER macro.
11838 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11840 2011-03-18 Jason Merrill <jason@redhat.com>
11843 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11845 2011-03-18 Richard Guenther <rguenther@suse.de>
11847 * doc/install.texi (--enable-gold): Remove.
11848 (--with-plugin-ld): Document.
11849 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11851 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11853 PR middle-end/47790
11854 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11855 again after expansion changes.
11857 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11859 * combine.c (try_combine): Do simplification only call of
11860 subst() on i2 even when i1 is present. Update comments.
11862 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11864 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11865 and UNSPEC_PCREL_SYMOFF.
11867 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11869 * config/s390/s390.md: Use define_c_enum for the unspec constant
11872 2011-03-18 Richard Henderson <rth@redhat.com>
11873 Jakub Jelinek <jakub@redhat.com>
11876 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11877 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11879 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11881 PR middle-end/47725
11882 * combine.c (cant_combine_insn_p): Don't check zero/sign
11883 extended hard registers.
11885 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11887 PR middle-end/47725
11888 * combine.c (cant_combine_insn_p): Check zero/sign extended
11891 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11893 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11894 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11895 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11896 Change return type to bool.
11897 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11899 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11902 * var-tracking.c (prepare_call_arguments): If CALL target
11903 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11904 pc instead of looking it up using cselib_lookup and use
11905 Pmode for it if x has VOIDmode.
11906 * dwarf2out.c (gen_subprogram_die): If also both first and
11907 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11910 * function.c (assign_parms): For data.passed_pointer parms
11911 use MEM of data.entry_parm instead of data.entry_parm itself
11912 as DECL_INCOMING_RTL.
11913 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11914 also when passed and declared mode is the same, DECL_RTL
11915 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11918 2011-03-16 Jeff Law <law@redhat.com>
11920 PR rtl-optimization/37273
11921 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11922 handle them like argument loads from stack slots. Do not double
11923 count memory for memory constants and argument loads from stack slots.
11925 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11928 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11930 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11933 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11935 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11938 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11940 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11941 Clear call_arg_locations and call_arg_loc_last always.
11943 PR middle-end/48152
11944 * var-tracking.c (prepare_call_arguments): If argument needs to be
11945 passed by reference, adjust argtype and mode.
11947 2011-03-17 Richard Guenther <rguenther@suse.de>
11949 PR middle-end/48134
11950 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11951 a value make sure to fold the statement.
11953 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11956 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11957 return condition with !cfun->calls_alloca.
11959 2011-03-17 Richard Guenther <rguenther@suse.de>
11962 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11963 origin for decls in other ltrans units.
11964 (input_varpool_node): Likewise.
11966 2011-03-17 Richard Guenther <rguenther@suse.de>
11968 PR middle-end/48165
11969 * tree-object-size.c (compute_object_offset): Properly return
11970 the offset operand of MEM_REFs as sizetype.
11972 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11974 PR rtl-optimization/48141
11975 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11976 * dse.c: Include params.h.
11977 (active_local_stores_len): New variable.
11978 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11980 (record_store, check_mem_read_rtx): Decrease it when removing
11982 (scan_insn): Likewise. Increase it when adding to chain, if it
11983 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11984 set active_local_stores to NULL before the addition.
11985 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11987 PR rtl-optimization/48141
11988 * dse.c (record_store): If no positions are needed in an insn
11989 that cannot be deleted, at least unchain it from active_local_stores.
11991 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11994 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11995 (lookup_type_die_strip_naming_typedef): ... here.
11996 (get_context_die): Use it.
11997 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11998 the anonymous struct named by the naming typedef.
12000 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12003 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12004 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12006 2011-03-16 Jeff Law <law@redhat.com>
12008 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12009 check for operands of conditional. Allow type to be a pointer.
12011 2011-03-16 Richard Guenther <rguenther@suse.de>
12013 PR tree-optimization/48149
12014 * fold-const.c (fold_binary_loc): Fold
12015 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12017 2011-03-16 Richard Guenther <rguenther@suse.de>
12019 PR tree-optimization/26134
12020 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12021 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12022 (non_rewritable_mem_ref_base): Handle complex type component
12023 accesses, constrain offsets for vector and complex extracts
12026 2011-03-16 Richard Guenther <rguenther@suse.de>
12028 PR tree-optimization/48146
12029 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12030 operands avoiding the need for renaming.
12032 2011-03-16 Richard Guenther <rguenther@suse.de>
12034 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12035 constant folding. Move MEM_REF canonicalization first.
12036 Rely on fold_const_aggregate_ref for initializer folding.
12037 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12039 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12041 PR middle-end/48136
12042 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12043 arg0/arg1 or their arguments are always fold converted to matching
12046 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12049 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12052 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12053 Handle in-tree gold.
12054 (ld_vers): Extract binutils version for gold.
12055 (gcc_cv_ld_hidden): Handle gold here.
12056 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12057 * configure: Regenerate.
12058 * config.in: Regenerate.
12059 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12060 -fuse-linker-plugin otherwise.
12061 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12062 (LINK_COMMAND_SPEC): Use it.
12063 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12065 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12067 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12068 * calls.c: Remove debug.h include.
12069 (emit_call_1): Don't call virtual_call_token debug hook.
12070 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12071 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12072 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12073 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12074 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12075 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12076 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12077 dwarf2out_virtual_call): Remove.
12078 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12079 copy_call_info and virtual_call hooks.
12080 (dwarf2out_init): Don't initialize vcall_insn_table,
12081 debug_dcall_section and debug_vcall_section.
12082 (prune_unused_types): Don't mark nodes from dcall_table.
12083 (dwarf2out_finish): Don't output dcall or vcall tables.
12084 * final.c (final_scan_insn): Don't call direct_call or
12085 virtual_call debug hooks.
12086 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12087 virtual_call_token, copy_call_info and virtual_call hooks.
12088 (debug_nothing_uid): Remove prototype.
12089 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12090 copy_call_info and virtual_call hooks.
12091 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12092 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12093 * debug.c (do_nothing_debug_hooks): Likewise.
12094 (debug_nothing_uid): Remove.
12095 * doc/invoke.texi (-fenable-icf-debug): Remove.
12096 * common.opt (-fenable-icf-debug): Likewise.
12098 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12099 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12100 call's MEM. Handle functions returning aggregate through a hidden
12101 first pointer. For virtual calls add clobbered pc to call arguments
12103 * dwarf2out.c (gen_subprogram_die): Emit
12104 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12108 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12109 * rtl.h (ENTRY_VALUE_EXP): Define.
12110 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12111 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12112 * print-rtl.c (print_rtx): Likewise.
12113 * gengtype.c (adjust_field_rtx_def): Likewise.
12114 * var-tracking.c (vt_add_function_parameter): Adjust
12115 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12116 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12117 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12118 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12119 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12121 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12122 Call var_location debug hook even on CALL_INSNs.
12123 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12124 * rtl.def (ENTRY_VALUE): New.
12125 * dwarf2out.c: Include cfglayout.h.
12126 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12127 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12128 (struct call_arg_loc_node): New type.
12129 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12130 tail_call_site_count): New variables.
12131 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12132 DW_TAG_GNU_call_site_parameter.
12133 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12134 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12135 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12136 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12137 and DW_AT_GNU_all_source_call_sites.
12138 (mem_loc_descriptor): Handle ENTRY_VALUE.
12139 (add_src_coords_attributes): Don't add enything if
12140 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12141 (dwarf2out_abstract_function): Save and clear call_arg_location,
12142 call_site_count and tail_call_site_count around dwarf2out_decl call.
12143 (gen_call_site_die): New function.
12144 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12145 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12146 (dwarf2out_function_decl): Clear call_arg_locations,
12147 call_arg_loc_last, set call_site_count and tail_call_site_count
12148 to -1 and free block_map.
12149 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12150 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12151 followed by any real instructions.
12152 (dwarf2out_begin_function): Set call_site_count and
12153 tail_call_site_count to 0.
12154 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12155 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12156 attempt to force a DIE for it and worst case remove the attribute.
12157 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12158 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12160 * var-tracking.c: Include tm_p.h.
12161 (vt_stack_adjustments): For calls call note_register_arguments.
12162 (argument_reg_set): New variable.
12163 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12164 ensure the VALUE is resolved.
12165 (call_arguments): New variable.
12166 (prepare_call_arguments): New function.
12167 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12168 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12169 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12170 always use the best expression.
12171 (vt_expand_loc): Add ignore_cur_loc argument.
12172 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12173 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12174 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12175 note for all calls.
12176 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12177 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12178 argument. Don't call cselib_preserve_only_values and
12179 cselib_reset_table.
12180 (note_register_arguments): New function.
12181 (vt_initialize): Compute argument_reg_set. Call
12182 vt_add_function_parameters before processing basic blocks instead of
12183 afterwards. For calls call prepare_call_arguments before calling
12184 cselib_process_insn.
12185 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12186 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12187 (var-tracking.o): Depend on $(TM_P_H).
12188 * cfglayout.h (insn_scope): New prototype.
12189 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12190 * cfglayout.c (insn_scope): No longer static.
12191 * insn-notes.def (CALL_ARG_LOCATION): New.
12192 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12193 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12194 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12195 nothing for DECL_EXTERNAL BLOCK_VARS.
12197 2011-03-16 Alan Modra <amodra@gmail.com>
12200 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12201 create invalid offset address for vsx splat insn.
12202 * config/rs6000/predicates.md (splat_input_operand): New.
12203 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12205 2011-03-15 Xinliang David Li <davidxl@google.com>
12208 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12209 (normalize_preds): New function.
12210 (is_use_properly_guarded): Normalize def predicates.
12212 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12215 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12216 in the output template.
12218 2011-03-15 Richard Guenther <rguenther@suse.de>
12220 PR middle-end/47650
12221 * tree-pretty-print.c (dump_function_declaration): Properly
12222 dump unprototyped and varargs function types.
12224 2011-03-15 Richard Guenther <rguenther@suse.de>
12226 PR tree-optimization/13954
12227 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12230 2011-03-15 Richard Guenther <rguenther@suse.de>
12232 PR tree-optimization/48037
12233 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12234 selects into BIT_FIELD_REFs.
12235 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12238 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12240 PR tree-optimization/48129
12241 * builtins.c (fold_builtin_snprintf): Convert to type of
12242 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12243 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12245 2011-03-15 Richard Guenther <rguenther@suse.de>
12247 PR tree-optimization/41490
12248 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12249 value but with VUSE.
12250 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12252 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12253 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12254 * tree-tailcall.c (find_tail_calls): Ignore returns.
12256 2011-03-15 Richard Guenther <rguenther@suse.de>
12258 PR middle-end/48031
12259 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12260 or variable-indexed array accesses when in gimple form.
12262 2011-03-15 Richard Guenther <rguenther@suse.de>
12264 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12266 2011-03-15 Alan Modra <amodra@gmail.com>
12269 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12270 presume symbol_refs without a symbol_ref_decl are suitably
12271 aligned, nor other trees we may see here. Handle anchor symbols.
12272 (legitimate_constant_pool_address_p): Comment. Add mode param.
12273 Check cmodel=medium addresses. Adjust all calls.
12274 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12275 creating cmodel=medium optimized access to locals.
12276 * config/rs6000/constraints.md (R): Pass QImode to
12277 legitimate_constant_pool_address_p.
12278 * config/rs6000/predicates.md (input_operand): Pass mode to
12279 legitimate_constant_pool_address_p.
12280 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12283 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12286 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12287 64-bit constants being loaded into registers other than GPRs such
12288 as loading 0 into a VSX register.
12290 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12292 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12294 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12296 PR middle-end/47917
12297 * builtins.c (fold_builtin_snprintf): New function.
12298 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12299 (fold_builtin_4): Likewise.
12301 PR middle-end/38878
12302 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12303 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12304 and C - X == X also strip nops from +/-/p+ operand.
12305 When optimizing -X == C, fold C to arg0's type.
12308 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12309 emit it as add_AT_int instead of add_AT_unsigned.
12311 2011-03-14 Tom Tromey <tromey@redhat.com>
12313 * unwind-dw2.c: Include sys/sdt.h if it exists.
12314 (_Unwind_DebugHook): Use STAP_PROBE2.
12315 * config.in, configure: Rebuild.
12316 * configure.ac: Check for sys/sdt.h.
12318 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12320 * config/i386/i386.md (ROUND_FLOOR): New constant.
12321 (ROUND_CEIL): Ditto.
12322 (ROUND_TRUNC): Ditto.
12323 (ROUND_MXCSR): Ditto.
12324 (ROUND_NO_EXC): Ditto.
12325 (rint<mode>2): Use new defines instead of numerical constants.
12326 (floor<mode>2): Ditto.
12327 (ceil<mode>2): Ditto.
12328 (btrunc<mode>2): Ditto.
12329 * config/i386/i386-builtin-types.def: Define ROUND function type
12331 * config/i386/i386.c (enum ix86_builtins): Add
12332 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12333 (struct builtin_description): Add
12334 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12335 (ix86_expand_sse_round): New static function.
12336 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12338 (ix86_builtin_vectorized_function): Handle
12339 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12341 2011-03-14 Tom Tromey <tromey@redhat.com>
12343 * c-parser.c (c_parser_asm_string_literal): Clear
12344 warn_overlength_strings.
12346 2011-03-14 Tom Tromey <tromey@redhat.com>
12348 * c-parser.c (disable_extension_diagnostics): Save
12349 warn_overlength_strings.
12350 (restore_extension_diagnostics): Restore warn_overlength_strings.
12352 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12354 * BASE-VER: Change to 4.7.0.
12356 2011-03-14 Richard Guenther <rguenther@suse.de>
12358 PR middle-end/48098
12359 * tree.c (build_vector_from_val): Adjust assert to requirements
12362 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12365 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12367 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12369 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12370 terms of target_flags_explicit. Adjust copyright year.
12372 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12373 * config/rs6000/t-freebsd: New file. Add override for
12376 2011-03-13 Chris Demetriou <cgd@google.com>
12378 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12379 (-fno-diagnostics-show-option): this, to reflect current default.
12380 (-Werror=): Update text about -fno-diagnostics-show-option.
12382 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12385 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12386 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12387 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12388 mode is not V2DImode or V2DFmode.
12389 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12390 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12391 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12393 (movdi_internal64): Likewise.
12395 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12397 PR tree-optimization/47127
12398 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12400 (set_cloog_options): Same.
12401 (scop_to_clast): Same.
12402 (print_clast_stmt): Do not call cloog_state_malloc and
12404 (print_generated_program): Same.
12406 * graphite-clast-to-gimple.h (cloog_state): Declared.
12407 (scop_to_clast): Adjust declaration.
12408 * graphite.c (cloog_state): Defined here.
12409 (graphite_initialize): Call cloog_state_malloc.
12410 (graphite_finalize): Call cloog_state_free.
12412 2011-03-11 Jason Merrill <jason@redhat.com>
12414 * attribs.c (lookup_attribute_spec): Take const_tree.
12417 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12419 * config/sparc/sparc.c (sparc_option_override): Use
12420 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12422 2011-03-11 Richard Guenther <rguenther@suse.de>
12424 PR tree-optimization/48067
12425 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12426 multiplication result will be only used once on the target
12429 2011-03-11 Richard Guenther <rguenther@suse.de>
12431 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12433 2011-03-11 Richard Guenther <rguenther@suse.de>
12436 * tree.c (find_decls_types_r): Do not walk types only reachable
12437 from IDENTIFIER_NODEs.
12439 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12441 PR middle-end/48044
12442 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12443 all vnode->force_output nodes as needed.
12445 2011-03-11 Jason Merrill <jason@redhat.com>
12448 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12449 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12451 2011-03-11 Martin Jambor <mjambor@suse.cz>
12453 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12456 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12458 PR tree-optimization/48063
12459 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12460 inline functions called once if !tree_can_inline_p (node->callers).
12462 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12464 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12466 * config/score/score3.c: Delete.
12467 * config/score/score3.h: Delete.
12468 * config/score/mul-div.S: Delete.
12469 * config/score/sfp-machine.h: Add new file.
12470 * config/score/constraints.md: Add new file.
12471 * config/score/t-score-softfp: Add new file.
12472 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12473 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12474 (score7_extra_constraint): Delete.
12475 (score7_option_override): Remove unused code.
12476 * config/score/score.c: Remove score3 and score5 define and code.
12477 * config/score/score.h: Remove score3 and score5 define and code.
12478 * config/score/score.md: Remove score3 template and unusual insn.
12479 * config/score/score.opt: Remove score3 and score5 options.
12481 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12483 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12484 when _HPUX_SOURCE is defined.
12485 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12487 2011-03-10 Jason Merrill <jason@redhat.com>
12490 * stor-layout.c (layout_type): Don't set structural equality
12491 on arrays of incomplete type.
12492 * tree.c (type_hash_eq): Handle comparing them properly.
12494 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12497 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12498 result mode matches original rtl mode.
12500 2011-03-10 Nick Clifton <nickc@redhat.com>
12502 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12503 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12505 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12507 PR rtl-optimization/47866
12508 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12509 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12510 if target wasn't scalar.
12511 * function.c (assign_stack_temp_for_type): Assert that neither
12512 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12513 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12515 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12517 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12519 * config/s390/s390-protos.h (s390_label_align): New prototype.
12520 * config/s390/s390.c (s390_label_align): New function.
12521 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12523 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12526 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12527 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12528 (output_vec_const_move): Ditto.
12530 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12532 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12533 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12534 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12535 Change 'rclass' argument and result type to reg_class_t.
12536 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12538 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12540 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12541 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12542 (TARGET_MEMORY_MOVE_COST): Define.
12543 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12545 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12548 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12551 PR tree-optimization/48022
12552 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12555 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12558 * var-tracking.c (find_use_val): Return NULL for
12559 cui->sets && cui->store_p BLKmode MEMs.
12561 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12563 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12565 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12566 xstormy16_print_operand_address): Remove.
12567 * config/stormy16/stormy16.c (xstormy16_print_operand,
12568 xstormy16_print_operand_address): Make static.
12569 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12571 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12574 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12575 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12578 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12581 * cfgloopmanip.c (fix_bb_placements): Return immediately
12582 if FROM is BASE_LOOP's header.
12584 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12586 * gimplify.c (gimplify_function_tree): Fix building calls
12587 to __builtin_return_address.
12589 2011-03-07 Alan Modra <amodra@gmail.com>
12591 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12592 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12593 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12594 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12596 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12597 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12598 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12599 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12600 * config/rs6000/rs6000.c
12601 (rs6000_elf_end_indicate_exec_stack): Rename to..
12602 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12603 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12604 (rs6000_file_start): ..here.
12605 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12606 file scope variables.
12607 (call_ABI_of_interest): New function.
12608 (init_cumulative_args): Set above vars when function return value
12609 is a float, vector, or small struct.
12610 (rs6000_function_arg_advance_1): Likewise for function args.
12611 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12612 references float args.
12614 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12616 * doc/cfg.texi: Remove "See" before @ref.
12617 * doc/invoke.texi: Likewise.
12619 2011-03-05 Jason Merrill <jason@redhat.com>
12621 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12623 2011-03-05 Anthony Green <green@moxielogic.com>
12625 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12627 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12629 PR rtl-optimization/47899
12630 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12631 to flow_loop_nested_p when moving the loop upward.
12633 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12636 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12638 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12640 PR tree-optimization/47967
12641 * ipa-cp.c (build_const_val): Return NULL instead of creating
12642 VIEW_CONVERT_EXPR for mismatching sizes.
12643 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12644 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12645 give up on versioning.
12647 2011-03-05 Alan Modra <amodra@gmail.com>
12650 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12651 full cmodel medium/large lo_sum + high addresses.
12653 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12655 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12656 pool references in UNSPEC_LTREL_OFFSET.
12658 2011-03-04 Jan Hubicka <jh@suse.cz>
12661 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12662 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12663 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12665 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12666 cgraph_add_thunk): Add node pointers.
12667 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12668 associated to right node.
12669 (input_node): Update use of cgraph_same_body_alias
12670 and cgraph_add_thunk.
12672 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12674 * config/i386/i386.opt (mprefer-avx128): New flag.
12675 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12676 modes when the flag -mprefer-avx128 is on.
12678 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12680 * dwarf2out.c (compare_loc_operands): Fix address handling.
12682 2011-03-04 Alan Modra <amodra@gmail.com>
12684 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12686 2011-03-04 Richard Guenther <rguenther@suse.de>
12688 PR middle-end/47968
12689 * expmed.c (extract_bit_field_1): Prefer vector modes that
12690 vec_extract patterns can handle.
12692 2011-03-04 Richard Guenther <rguenther@suse.de>
12694 PR middle-end/47975
12695 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12697 2011-03-04 Richard Henderson <rth@redhat.com>
12699 * explow.c (emit_stack_save): Remove 'after' parameter.
12700 (emit_stack_restore): Likewise.
12701 * expr.h: Update to match.
12702 * builtins.c, calls.c, stmt.c: Likewise.
12703 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12704 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12705 * function.c (expand_function_end): Insert the emit_stack_save
12706 sequence before parm_birth_insn instead of after.
12708 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12710 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12711 (ssse3_pmaddubsw128): Ditto.
12712 (ssse3_pmaddubsw): Ditto.
12714 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12716 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12718 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12721 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12722 on TYPE_SIZE_UNIT if it is a DECL.
12725 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12726 first operand is not is_gimple_mem_ref_addr, try to fold it.
12727 If the operand still isn't is_gimple_mem_ref_addr, clear
12730 2011-03-03 Richard Guenther <rguenther@suse.de>
12732 PR middle-end/47283
12733 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12735 (refs_may_alias_p_1): For release branches return true if
12736 we are confused by our input.
12738 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12740 * config/s390/s390.c (s390_function_value): Rename to ...
12741 (s390_function_and_libcall_value): ... this.
12742 (s390_function_value): New function.
12743 (s390_libcall_value): New function.
12744 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12745 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12746 target macro definitions.
12747 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12749 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12751 * config/i386/freebsd64.h (CC1_SPEC): Define.
12752 * config/i386/linux64.h (CC1_SPEC): Define.
12753 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12755 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12757 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12759 * config/stormy16/stormy16.c: Include reload.h.
12760 (xstormy16_memory_move_cost): New function.
12761 (TARGET_MEMORY_MOVE_COST): Define.
12763 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12765 PR rtl-optimization/47925
12766 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12767 with side effects. Remove the more-specific check for volatile asms.
12769 2011-03-02 Alan Modra <amodra@gmail.com>
12772 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12773 toc relative addresses for valid offsets.
12775 2011-03-01 Richard Guenther <rguenther@suse.de>
12777 PR tree-optimization/47890
12778 * tree-vect-loop.c (get_initial_def_for_induction): Set
12779 related stmt properly.
12781 2011-03-01 Richard Guenther <rguenther@suse.de>
12784 * lto-streamer.c (lto_record_common_node): Also register
12785 the canonical type.
12787 2011-03-01 Richard Guenther <rguenther@suse.de>
12790 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12791 Do not stream DECL_ABSTRACT_ORIGIN.
12792 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12793 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12794 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12795 Do not stream DECL_ABSTRACT_ORIGIN.
12796 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12797 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12799 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12801 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12802 FUNCTION_VALUE_REGNO_P): Remove.
12803 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12804 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12805 Add 'outgoing' argument.
12806 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12808 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12809 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12811 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12814 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12815 (lookup_filename): Likewise.
12816 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12818 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12819 Jakub Jelinek <jakub@redhat.com>
12821 PR middle-end/47893
12822 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12823 (assign_stack_local_1): Change last argument type to int.
12824 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12825 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12826 don't record padding space into frame_space_list nor use those areas.
12827 (assign_stack_local): Adjust caller.
12828 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12829 of assign_stack_local, pass 0 as last argument.
12830 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12833 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12836 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12837 Use target address_mode and pointer_mode hooks instead of hardcoded
12838 Pmode and ptr_mode. Handle some simple cases of extending if
12839 POINTERS_EXTEND_UNSIGNED < 0.
12840 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12841 Call convert_debug_memory_address.
12842 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12843 convert_debug_memory_address.
12845 PR middle-end/46790
12846 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12847 * configure: Regenerated.
12848 * config.in: Regenerated.
12849 * varasm.c (default_function_section): Return NULL
12850 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12852 2011-02-28 Martin Jambor <mjambor@suse.cz>
12854 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12855 the description to match the printed values.
12857 2011-02-28 Richard Guenther <rguenther@suse.de>
12859 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12860 of the copied scope tree.
12862 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12864 * doc/extend.texi (Function Attributes): Avoid deeply (and
12865 wrongly) nested tables.
12867 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12869 PR middle-end/47903
12870 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12871 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12872 r isn't op0 nor op1.
12874 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12876 * config/avr/avr.md: Remove magic comment for emacs.
12878 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12881 * config/avr/avr.c (avr_option_override): Use error on bad options.
12882 (avr_help): New function.
12883 (TARGET_HELP): Define.
12885 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12888 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12889 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12891 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12893 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12894 (ARM Options): Ditto.
12895 (i386 and x86-64 Options): Ditto.
12896 (RX Options): Ditto.
12897 (SPARC Options): Ditto.
12899 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12901 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12902 FreeBSD 6 and later. Generally use cpu generic.
12904 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12906 * doc/cpp.texi: Update copyright years.
12908 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12911 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12913 2011-02-25 Jon Beniston <jon@beniston.com>
12916 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12917 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12918 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12919 (lm32_block_move_inline): Add type cast to remove warning.
12920 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12921 (gen_int_relational): Move declarations to start of function.
12923 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12925 PR tree-optimization/45470
12926 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12927 can throw internally only.
12928 * tree-vect-stmts.c (vectorizable_call): Likewise.
12930 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12932 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12933 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12934 * config/stormy16/stormy16-protos.h
12935 (xstormy16_preferred_reload_class): Remove.
12936 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12937 static. Change 'rclass' argument and return type to reg_class_t.
12938 (TARGET_PREFERRED_RELOAD_CLASS,
12939 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12941 2011-02-24 Richard Guenther <rguenther@suse.de>
12943 * lto-streamer-in.c (input_bb): Do not find referenced vars
12944 in debug statements.
12946 2011-02-23 Jason Merrill <jason@redhat.com>
12948 * common.opt (fabi-version): Document v5 and v6.
12950 2011-02-23 Richard Guenther <rguenther@suse.de>
12952 PR tree-optimization/47849
12953 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12955 2011-02-23 Jie Zhang <jie@codesourcery.com>
12957 * opts-common.c (decode_cmdline_option): Print empty string
12958 argument as "" in decoded->orig_option_with_args_text.
12959 * gcc.c (execute): Print empty string argument as ""
12960 in the verbose output.
12961 (do_spec_1): Keep empty string argument.
12963 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12965 * config.gcc: Declare score-* and crx-* obsolete.
12967 2011-02-23 Jie Zhang <jie@codesourcery.com>
12969 PR rtl-optimization/47763
12970 * web.c (web_main): Ignore naked clobber when replacing register.
12972 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12974 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12977 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12980 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12982 2011-02-22 Mike Stump <mikestump@comcast.net>
12984 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12986 * configure: Regenerate.
12988 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12990 PR rtl-optimization/46002
12991 * ira-color.c (update_copy_costs): Change class intersection
12992 test to reg_class_contents[] test of 'hard_regno'.
12994 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12996 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12997 than Driver option.
12998 * config/hpux11.opt (mt): Likewise.
12999 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13000 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13001 * config/vax/elf.opt (mno-asm-pic): Likewise.
13002 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13004 2011-02-21 Mike Stump <mikestump@comcast.net>
13007 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13008 tree so we can get save the type.
13009 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13010 for CFString instead of trying to use past the end of the builtins.
13011 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13012 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13013 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13014 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13015 Rename to darwin_builtin_cfstring.
13016 (darwin_init_cfstring_builtins): Return the built type.
13018 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13021 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13022 (_mm256_insert_epi64): Use _mm_insert_epi64.
13024 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13026 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13027 * config/stormy16/stormy16-protos.h
13028 (xstormy16_mode_dependent_address_p): Remove.
13029 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13030 Make static. Change return type to bool. Change argument type to
13031 const_rtx. Remove dead code.
13032 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13034 2011-02-21 Richard Guenther <rguenther@suse.de>
13037 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13038 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13039 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13041 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13042 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13044 2011-02-20 Richard Guenther <rguenther@suse.de>
13047 * tree.c (free_lang_data_in_decl): Clean builtins from
13048 the TU decl BLOCK_VARS.
13050 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13054 * haifa-sched.c (fix_tick_ready): Skip tick computation
13057 2011-02-19 Richard Guenther <rguenther@suse.de>
13060 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13061 Remove lazy BLOCK_VARS streaming.
13062 (lto_input_ts_block_tree_pointers): Likewise.
13063 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13065 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13067 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13069 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13071 * config/i386/biarch32.h, config/i386/mach.h,
13072 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13074 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13077 * config/i386/i386.md (peephole2 for shift and plus): Use
13078 operands[1] original mode in the first insn.
13080 2011-02-18 Mike Stump <mikestump@comcast.net>
13082 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13084 2011-02-18 Jan Hubicka <jh@suse.cz>
13086 PR middle-end/47788
13087 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13088 to zero when the function is not inlinable at all.
13090 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13092 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13093 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13094 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13095 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13096 * config/pa/t-pa64: Likewise.
13097 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13099 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13102 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13104 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13107 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13109 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13111 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13112 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13113 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13114 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13115 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13116 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13117 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13118 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13119 m32r_legitimate_address_p): New functions.
13120 * config/m32r/constraints.md (constraint "S"): Don't use
13121 STORE_PREINC_PREDEC_P.
13122 (constraint "U"): Don't use LOAD_POSTINC_P.
13124 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13126 PR rtl-optimization/46178
13127 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13128 compute ira_hard_regno_cover_class[].
13130 2011-02-18 Richard Guenther <rguenther@suse.de>
13133 * lto-streamer.h (lto_global_var_decls): Declare.
13134 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13135 statics for global var processing.
13137 2011-02-18 Richard Guenther <rguenther@suse.de>
13139 PR tree-optimization/47737
13140 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13141 edge dominance check.
13143 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13146 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13147 avoid invalid rtx sharing.
13149 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13151 * doc/cpp.texi (Obsolete Features): Add background on the
13152 origin of assertions.
13154 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13156 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13158 * config/darwin.c (output_objc_section_asm_op): Added support for
13160 (is_objc_metadata): New.
13161 (darwin_objc2_section): New.
13162 (darwin_objc1_section): New.
13163 (machopic_select_section): Added support for ABI v1 and v2.
13164 (darwin_emit_objc_zeroed): New.
13165 (darwin_output_aligned_bss): Detect objc metadata and treat it
13167 (darwin_asm_output_aligned_decl_common): Same.
13168 (darwin_asm_output_aligned_decl_local): Same.
13169 * config/darwin-sections.def: Updated for ABI v1 and v2.
13170 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13171 compiling Objective-C code for the NeXT runtime, default to using
13172 ABI version 0 for 32-bit, and version 2 for 64-bit.
13174 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13176 * common.opt (optimize_fast): New Variable.
13177 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13178 instead of local variable ofast.
13180 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13182 * doc/invoke.texi (fobjc-abi-version): Documented.
13183 (fobjc-nilcheck): Documented.
13184 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13187 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13190 * common.opt (export-dynamic): New Driver option.
13191 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13193 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13195 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13197 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13198 Jan Hubicka <jh@suse.cz>
13202 * cfgexpand.c (account_used_vars_for_block): Remove.
13203 (estimated_stack_frame_size): Use referenced vars.
13204 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13205 that were referenced in the original function. Test src_fn
13206 rather than cfun. Drop redundant get_var_ann.
13207 (setup_one_parameter): Drop redundant get_var_ann.
13208 (declare_return_variable): Likewise.
13209 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13210 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13211 * ipa-inline.c (compute_inline_parameters): Do not compute
13212 disregard_inline_limits here.
13213 (compute_inlinable_for_current, pass_inlinable): New.
13214 (pass_inline_parameters): Require PROP_referenced_vars.
13215 * cgraphunit.c (cgraph_process_new_functions): Don't run
13216 compute_inline_parameters explicitly unless function is in SSA form.
13217 (cgraph_analyze_function): Set .disregard_inline_limits.
13218 * tree-sra.c (convert_callers): Compute inliner parameters
13219 only for functions already in SSA form.
13221 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13223 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13224 -mlittle-endian-data.
13226 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13228 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13229 -mno-fpu, not -fpu and -no-fpu.
13230 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13231 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13233 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13236 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13237 input reload with PLUS RTX.
13239 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13241 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13242 of InverseVar(MDMX).
13244 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13246 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13249 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13251 * config/mn10300/mn10300.opt (mno-crt0): New.
13253 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13255 * config/m68k/uclinux.opt (static-libc): New Driver option.
13257 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13259 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13261 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13263 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13264 %{muser-extend-enabled}.
13266 2011-02-16 Richard Guenther <rguenther@suse.de>
13268 PR tree-optimization/47738
13269 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13270 the TODO from tree_predictive_commoning.
13272 2011-02-15 Jeff Law <law@redhat.com>
13275 2011-01-25 Jeff Law <law@redhat.com>
13277 PR rtl-optimization/37273
13278 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13279 handle them like argument loads from stack slots. Do not double
13280 count memory for memory constants and argument loads from stack slots.
13282 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13284 PR middle-end/47725
13285 * combine.c (cant_combine_insn_p): Revert the last change.
13287 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13290 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13291 mode for vector constants. Remove code that checks for TImode.
13293 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13297 * cgraph.h (compute_inline_parameters): Return void.
13298 * ipa-inline.c (compute_inline_parameters): Adjust.
13300 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13304 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13306 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13307 * ipa-inline.c (compute_inline_parameters): Adjust.
13309 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13313 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13314 Adjust all users. Pass FN to...
13315 * tree-flow-inline.h (first_referenced_var): ... this. Add
13317 * ipa-struct-reorg.c: Adjust.
13318 * tree-dfa.c: Adjust.
13319 * tree-into-ssa.c: Adjust.
13320 * tree-sra.c: Adjust.
13321 * tree-ssa-alias.c: Adjust.
13322 * tree-ssa-live.c: Adjust.
13323 * tree-ssa.c: Adjust.
13324 * tree-ssanames.c: Adjust.
13325 * tree-tailcall.c: Adjust.
13327 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13331 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13332 Adjust all callers.
13333 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13334 * tree-flow-inline.h: Adjust.
13335 * gimple-pretty-print.c: Adjust.
13336 * tree-into-ssa.c: Adjust.
13337 * tree-ssa.c: Adjust.
13338 * cfgexpand.c: Adjust.
13340 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13342 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13343 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13344 (EXTRA_CONSTRAINT): Delete.
13345 * config/iq2000/constraints.md: New file.
13346 * config/iq2000/iq2000.md: Include it.
13347 (define_insn ""): Delete.
13348 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13349 unsupported constraint letters from patterns.
13350 (call_value, call_value_internal1): Likewise.
13351 (call_value_multiple_internal1): Likewise.
13353 2011-02-15 Nick Clifton <nickc@redhat.com>
13355 * config/mn10300/mn10300.c: Include tm-constrs.h.
13356 (struct liw_data): New data structure describing an LIW candidate
13358 (extract_bundle): Use struct liw_data. Allow small integer
13359 operands for some instructions.
13360 (check_liw_constraints): Use struct liw_data. Remove swapped
13361 parameter. Add comments describing the checks. Fix bug when
13362 assigning the source of liw1 to the source of liw2.
13363 (liw_candidate): Delete. Code moved into extract_bundle.
13364 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13366 * config/mn10300/predicates.md (liw_operand): New predicate.
13367 Allows registers and small integer constants.
13368 * config/mn10300/constraints.md (O): New constraint. Accetps
13369 integers in the range -8 to +7 inclusive.
13370 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13371 for moving a small integer into a register. Give this alternative
13373 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13374 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13375 using the J,K,L and M constraints,
13376 (liw): Remove SI mode on second operands to allow for HI and QI
13378 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13381 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13383 PR middle-end/47725
13384 * combine.c (cant_combine_insn_p): Check zero/sign extended
13387 2011-02-15 Richard Guenther <rguenther@suse.de>
13389 PR tree-optimization/47743
13390 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13391 for a non-type-compatible VN lookup bail out.
13393 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13395 * config/fr30/constraints.md: New file.
13396 * config/fr30/fr30.md: Include it.
13397 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13398 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13399 (EXTRA_CONSTRAINT): Delete.
13401 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13403 * config/frv/constraints.md: New file.
13404 * config/frv/predicates.md: Include it.
13405 * config/frv/frv.c (reg_class_from_letter): Delete.
13406 (frv_option_override): Don't initialize it.
13407 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13408 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13409 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13410 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13411 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13412 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13413 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13414 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13415 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13416 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13417 (REG_CLASS_FROM_CONSTRAINT): Delete.
13419 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13421 PR middle-end/47581
13422 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13423 if frame size is 0 in a leaf function.
13425 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13428 * config/alpha/host-osf.c: New file.
13429 * config/alpha/x-osf: New file.
13430 * config.host (alpha*-dec-osf*): Use it.
13432 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13434 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13435 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13436 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13437 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13439 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13441 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13443 * config/stormy16/constraints.md: New file.
13444 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13445 Use satisfies_constraint_Q and satisfies_constraint_R.
13446 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13448 (xstormy16_legitiamte_address_p): Declare.
13449 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13450 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13451 (EXTRA_CONSTRAINT): Delete.
13452 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13454 (xstormy16_extra_constraint_p): Delete.
13456 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13458 PR tree-optimization/46494
13459 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13460 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13461 (pass_rtl_loop_done): Add TODO_verify_flow.
13462 * fwprop.c (pass_rtl_fwprop): Likewise.
13463 * modulo-sched.c (pass_sms): Likewise.
13464 * tree-ssa-dom.c (pass_dominator): Likewise.
13465 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13466 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13467 (pass_tree_loop_done): Likewise.
13468 * tree-ssa-pre.c (execute_pre): Likewise.
13469 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13470 * tree-ssa-sink.c (pass_sink_code): Likewise.
13471 * tree-vrp.c (pass_vrp): Likewise.
13473 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13475 * config/v850/constraints.md: New file.
13476 * config/v850/v850.md: Include it.
13477 * config/v850/predicates.md (reg_or_0_operand): Use
13478 satisfies_constraint_G.
13479 (special_symbolref_operand): Use satisfies_constraint_K.
13480 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13481 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13482 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13483 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13484 (EXTRA_CONSTRAINT): Delete.
13485 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13486 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13487 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13489 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13492 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13495 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13497 * config/mcore/constraints.md: New file.
13498 * config/mcore/mcore.md: Include it.
13499 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13500 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13501 (REG_CLASS_FROM_LETTER): Delete.
13502 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13503 insn_const_int_ok_for_constraint.
13504 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13505 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13506 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13507 (EXTRA_CONSTRAINT): Delete.
13509 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13512 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13513 (IS_SIGHANDLER): Define.
13514 (sparc64_is_sighandler): New function, split off from
13515 sparc64_fallback_frame_state.
13516 (sparc_is_sighandler): New function, split off from
13517 sparc_fallback_frame_state.
13518 (sparc64_fallback_frame_state): Merge with ...
13519 (sparc_fallback_frame_state): ... this into ...
13520 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13521 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13522 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13523 stack instead of hardcoded offsets.
13525 2011-02-14 Andriy Gapon <avg@freebsd.org>
13528 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13530 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13532 * configure: Regenerate.
13534 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13537 * gcc.c (asm_options): Correct spec matching --target-help.
13539 2011-02-12 Martin Jambor <mjambor@suse.cz>
13541 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13542 to gimple call error.
13544 2011-02-12 Mike Stump <mikestump@comcast.net>
13546 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13547 comments in backslash regions.
13549 2011-02-12 Mike Stump <mikestump@comcast.net>
13550 Jakub Jelinek <jakub@redhat.com>
13551 Iain Sandoe <iains@gcc.gnu.org>
13554 * dwarf2out.c (output_cfa_loc): When required, apply the
13555 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13556 (output_loc_sequence): Likewise.
13557 (output_loc_operands_raw): Likewise.
13558 (output_loc_sequence_raw): Likewise.
13559 (output_cfa_loc): Likewise.
13560 (output_loc_list): Suppress register number adjustment when
13561 calling output_loc_sequence()
13562 (output_die): Likewise.
13564 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13566 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13568 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13569 xtensa_memory_move_cost): New functions.
13570 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13572 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13575 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13576 in the current directory.
13577 * configure: Rebuilt.
13579 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13581 * config/darwin.c (darwin_override_options): Add a hunk missed
13582 from the commit of r168571. Trim comment line lengths and
13583 correct indents of the preceding block.
13585 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13587 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13590 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13592 * common.opt (nostartfiles): New Driver option.
13594 2011-02-11 Xinliang David Li <davidxl@google.com>
13596 PR tree-optimization/47707
13597 * tree-chrec.c (convert_affine_scev): Keep type precision.
13599 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13601 PR tree-optimization/47420
13602 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13604 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13606 PR rtl-optimization/47614
13607 * rtl.h (check_for_inc_dec): Declare.
13608 * dse.c (check_for_inc_dec): Externalize...
13609 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13610 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13612 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13615 * gcc.c (main): Do not compile inputs if there were errors in
13617 * opts-common.c (read_cmdline_option): Check for wrong language
13618 after other error checks.
13620 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13622 * cgraph.c: Fix comment typos.
13623 * cgraph.h: Likewise.
13624 * cgraphunit.c: Likewise.
13625 * ipa-cp.c: Likewise.
13626 * ipa-inline.c: Likewise.
13627 * ipa-prop.c: Likewise.
13628 * ipa-pure-const.c: Likewise.
13629 * ipa-ref.c: Likewise.
13630 * ipa-reference.c: Likewise.
13632 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13635 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13637 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13640 * doc/sourcebuild.texi (Require Support): Document
13641 dg-require-ascii-locale.
13643 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13645 * doc/lto.texi (Write summary): Fix missing parentheses.
13647 2011-02-10 DJ Delorie <dj@redhat.com>
13649 * config/m32c/m32c.c (m32c_option_override): Disable
13650 -fcombine-stack-adjustments until flag value tracking and compare
13651 optimization can be rewritten.
13653 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13655 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13657 (PROCESSOR_DEFAULT64): Likewise.
13659 2011-02-10 Richard Henderson <rth@redhat.com>
13661 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13662 change from 2011-02-03.
13663 * config/rx/rx.c (flags_from_code): Likewise.
13664 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13665 is valid, n/pz otherwise.
13666 (rx_select_cc_mode): Return CCmode if Y is not zero.
13668 2011-02-10 Richard Guenther <rguenther@suse.de>
13670 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13672 2011-02-10 Richard Guenther <rguenther@suse.de>
13674 PR tree-optimization/47677
13675 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13677 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13680 * combine.c (make_compound_operation): Only change shifts into
13681 multiplication for SCALAR_INT_MODE_P.
13683 2011-02-10 Jie Zhang <jie@codesourcery.com>
13687 2011-02-05 Jie Zhang <jie@codesourcery.com>
13689 * web.c (entry_register): Don't clobber the number of the
13690 first uninitialized reference in used[].
13692 2011-02-09 Richard Guenther <rguenther@suse.de>
13694 PR tree-optimization/47664
13695 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13698 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13702 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13704 (PROCESSOR_DEFAULT64): Same.
13705 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13707 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13709 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13711 2011-02-09 Martin Jambor <mjambor@suse.cz>
13713 PR middle-end/45505
13714 * tree-sra.c (struct access): New flags grp_scalar_read and
13715 grp_scalar_write. Changed description of assignment read and write
13717 (dump_access): Dump new flags, reorder all of them.
13718 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13719 to detect multiple scalar reads.
13720 (analyze_access_subtree): Use the new scalar read write flags instead
13721 of the old flags. Adjusted comments.
13723 2011-02-08 DJ Delorie <dj@redhat.com>
13726 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13729 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13731 * config/m68k/uclinux.opt: New.
13732 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13734 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13736 * config/cris/elf.opt (sim): New Driver option.
13738 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13740 * config/xtensa/elf.opt: New.
13741 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13743 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13745 * config/vax/elf.opt: New.
13746 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13748 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13750 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13752 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13754 * config/gnu-user.opt: New.
13755 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13756 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13757 *-*-uclinux*): Use gnu-user.opt.
13759 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13761 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13762 * config/i386/gnu.h (CPP_SPEC): Likewise.
13764 2011-02-08 Ian Lance Taylor <iant@google.com>
13766 * common.opt (fcx-limited-range): Add SetByCombined flag.
13767 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13768 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13769 (fassociative-math, freciprocal-math): Likewise.
13770 (funsafe-math-optimizations): Likewise.
13771 * opth-gen.awk: Handle SetByCombined.
13772 * optc-gen.awk: Likewise.
13773 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13774 (set_unsafe_math_optimizations_flags): Likewise.
13775 * doc/options.texi (Option properties): Document SetByCombined.
13777 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13779 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13780 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13781 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13782 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13783 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13785 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13787 PR tree-optimization/46834
13788 PR tree-optimization/46994
13789 PR tree-optimization/46995
13790 * graphite-sese-to-poly.c (used_outside_reduction): New.
13791 (detect_commutative_reduction): Call used_outside_reduction.
13792 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13793 translate_scalar_reduction_to_array only when at least one
13794 loop-phi/close-phi tuple has been detected.
13796 2011-02-08 Richard Guenther <rguenther@suse.de>
13798 PR middle-end/47639
13799 * tree-vect-generic.c (expand_vector_operations_1): Update
13801 (expand_vector_operations): ... not here. Cleanup EH info
13802 and the CFG if required.
13804 2011-02-08 Richard Guenther <rguenther@suse.de>
13806 PR tree-optimization/47641
13807 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13808 require type compatibility.
13810 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13812 * gimple-low.c (lower_function_body): Don't remove the location of
13813 the return statement here.
13814 (lower_gimple_return): Do it here instead but only if the return
13815 statement is actually used twice.
13817 2011-02-08 Richard Guenther <rguenther@suse.de>
13819 PR tree-optimization/47632
13820 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13821 unused up_to_stmt parameter, return whether cfg-cleanup is
13822 necessary, remove EH info properly.
13823 (forward_propagate_into_gimple_cond): Adjust caller.
13824 (forward_propagate_into_cond): Likewise.
13825 (forward_propagate_comparison): Likewise.
13826 (tree_ssa_forward_propagate_single_use_vars): Make
13827 forward_propagate_comparison case similar to the two others.
13829 2011-02-08 Nick Clifton <nickc@redhat.com>
13831 * config/mn10300/mn10300.opt (mliw): New command line option.
13832 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13833 (liw_bundling): New automaton.
13834 (liw): New attribute.
13835 (liw_op): New attribute.
13836 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13837 (movsi_internal): Add LIW attributes.
13838 (andsi3): Likewise.
13839 (iorsi3): Likewise.
13840 (xorsi3): Likewise.
13841 (addsi3): Separate register and immediate alternatives.
13842 Add LIW attributes.
13843 (subsi3): Likewise.
13845 (aslsi3): Likewise.
13846 (lshrsi3): Likewise.
13847 (ashrsi3): Likewise.
13848 (liw): New pattern.
13849 * config/mn10300/mn10300.c (liw_op_names): New
13850 (mn10300_print_operand): Handle 'W' operand descriptor.
13851 (extract_bundle): New function.
13852 (check_liw_constraints): New function.
13853 (liw_candidate): New function.
13854 (mn10300_bundle_liw): New function.
13855 (mn10300_reorg): New function.
13856 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13857 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13858 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13859 __LIW__ or __NO_LIW__.
13860 * doc/invoke.texi: Describe the -mliw command line option.
13862 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13864 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13865 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13866 pthread_mutex_unlock): Remove.
13867 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13868 * config/pa/t-pa64: Likewise.
13869 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13870 shared libc if not linking against libpthread.
13871 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13873 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13876 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13877 on 10.6 and later to ensure that we always use the unwinder from
13878 the system. Only add -no_compact_unwind when tarteting darwin
13881 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13884 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13885 (vec_interleave_lowv2sf): Ditto.
13886 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13887 (vec_extract_oddv2sf): Ditto.
13889 2011-02-07 Mike Stump <mikestump@comcast.net>
13892 Add __ieee_divdc3 entry point.
13893 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13895 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13896 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13897 * config/darwin.c (darwin_rename_builtins): Add.
13898 * config/darwin-protos.h (darwin_rename_builtins): Add.
13900 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13903 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13906 2011-02-07 Mike Stump <mikestump@comcast.net>
13908 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13910 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13913 * config/avr/libgcc.S (exit): Move .endfunc
13915 2011-02-07 Richard Guenther <rguenther@suse.de>
13917 PR tree-optimization/47615
13918 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13919 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13920 (run_scc_vn): Initialize it.
13921 (visit_reference_op_load): Use it.
13922 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13924 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13926 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13927 DImode trapping arithmetic libfuncs.
13929 2011-02-07 Richard Guenther <rguenther@suse.de>
13931 PR tree-optimization/47621
13932 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13934 (execute_update_addresses_taken): ... here. Make it more
13935 conservative in what we accept.
13937 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13939 * config/sparc/freebsd.h (ASM_SPEC): Define.
13940 * config/sparc/vxworks.h (ASM_SPEC): Define.
13942 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13944 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13946 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13948 * doc/invoke.texi: Remove reference to compiler internals from
13949 user documentation.
13951 * reg-notes.def: Remove REG_VALUE_PROFILE.
13952 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13954 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13956 PR middle-end/47610
13957 * varasm.c (default_section_type_flags): If decl is NULL,
13958 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13960 2011-02-05 Jie Zhang <jie@codesourcery.com>
13963 * web.c (entry_register): Don't clobber the number of the
13964 first uninitialized reference in used[].
13966 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13968 PR tree-optimization/46194
13969 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13970 (build_classic_dist_vector_1): Do not represent classic distance
13971 vectors when the access functions are variating in different loops.
13973 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13975 * config/mips/iris6.opt: New.
13976 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13978 2011-02-04 Richard Henderson <rth@redhat.com>
13979 Steve Ellcey <sje@cup.hp.com>
13982 * config/ia64/predicates.md (mux1_brcst_element): New.
13983 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13984 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13985 (ia64_unpack_sign): New.
13986 (ia64_expand_unpack): Rewrite using new routines.
13987 (ia64_expand_widen_sum): Ditto.
13988 (ia64_expand_dot_prod_v8qi): Ditto.
13989 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13990 routines, add endian check.
13991 (pmpy2_even): Rename from pmpy2_r, add endian check.
13992 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13993 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13994 (vec_widen_smult_hi_v4hi): Ditto.
13995 (vec_widen_umult_lo_v4hi): Ditto.
13996 (vec_widen_umult_hi_v4hi): Ditto.
13997 (mulv2si3): Change endian checks.
13998 (sdot_prodv4hi): Rewrite with new calls.
13999 (udot_prodv4hi): New.
14000 (vec_pack_ssat_v4hi): Add endian check.
14001 (vec_pack_usat_v4hi): Ditto.
14002 (vec_pack_ssat_v2si): Ditto.
14003 (max1_even): Rename from max1_r, add endian check.
14004 (max1_odd): Rename from max1_l, add endian check.
14005 (*mux1_rev): Format change.
14006 (*mux1_mix): Ditto.
14007 (*mux1_shuf): Ditto.
14008 (*mux1_alt): Ditto.
14009 (*mux1_brcst_v8qi): Use new predicate.
14010 (vec_extract_evenv8qi): Remove endian check.
14011 (vec_extract_oddv8qi): Ditto.
14012 (vec_interleave_lowv4hi): Format change.
14013 (vec_interleave_highv4hi): Ditto.
14014 (mix2_even): Rename from mix2_r, add endian check.
14015 (mix2_odd): Rename from mux2_l, add endian check.
14016 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14017 (vec_extract_evenodd_helper): Format change.
14018 (vec_extract_evenv4hi): Remove endian check.
14019 (vec_extract_oddv4hi): Remove endian check.
14020 (vec_interleave_lowv2si): Format change.
14021 (vec_interleave_highv2si): Format change.
14022 (vec_initv2si): Remove endian check.
14023 (vecinit_v2si): Add endian check.
14024 (reduc_splus_v2sf): Add endian check.
14025 (reduc_smax_v2sf): Ditto.
14026 (reduc_smin_v2sf): Ditto.
14027 (vec_initv2sf): Remove endian check.
14028 (fpack): Add endian check.
14029 (fswap): Add endian check.
14030 (vec_interleave_highv2sf): Add endian check.
14031 (vec_interleave_lowv2sf): Add endian check.
14032 (fmix_lr): Add endian check.
14033 (vec_setv2sf): Format change.
14034 (*vec_extractv2sf_0_be): Use shift to extract operand.
14035 (*vec_extractv2sf_1_be): New.
14036 (vec_pack_trunc_v4hi): Add endian check.
14037 (vec_pack_trunc_v2si): Format change.
14039 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14041 PR inline-asm/23200
14042 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14043 do bb, locus and block comparison and disallow loads if it is not set.
14044 (stmt_is_replaceable_p): New function.
14045 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14047 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14048 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14050 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14052 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14054 * config/rs6000/xilinx.opt: New.
14055 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14057 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14059 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14061 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14063 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14064 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14065 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14066 secondary_reload_info, xtensa_secondary_reload): Remove.
14067 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14068 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14069 (xtensa_preferred_reload_class): Make static. Change return and
14070 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14071 Use CONST_DOUBLE_P predicate.
14072 (xtensa_preferred_output_reload_class): New function.
14073 (xtensa_secondary_reload): Make static.
14075 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14077 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14078 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14079 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14081 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14083 PR middle-end/31490
14084 * output.h (SECTION_RELRO): Define.
14085 (SECTION_MACH_DEP): Adjust.
14086 (get_variable_section): New prototype.
14087 * varpool.c (varpool_finalize_named_section_flags): New function.
14088 (varpool_assemble_pending_decls): Call it.
14089 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14090 * cgraphunit.c (cgraph_output_in_order): Call
14091 varpool_finalize_named_section_flags.
14092 * varasm.c (get_section): Allow section flags conflicts between
14093 relro and read-only sections if the section hasn't been declared yet.
14094 Set SECTION_OVERRIDE after diagnosing section type conflict.
14095 (get_variable_section): No longer static.
14096 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14097 readonly sections that need relocations.
14098 (decl_readonly_section_1): New function.
14099 (decl_readonly_section): Use it.
14102 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14103 Steve Ellcey <sje@cup.hp.com>
14105 PR middle-end/31490
14106 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14107 if section attribute used.
14109 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14111 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14112 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14113 (darwin_init_sections): Remove assertion.
14115 2011-02-03 Nick Clifton <nickc@redhat.com>
14117 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14119 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14120 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14121 instead of "n" and "pz".
14122 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14125 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14128 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14129 fma, expand FMA_EXPR as fma{,f,l} call.
14132 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14133 copy them into a unsigned char variable and pass address of it to
14134 lto_output_data_stream.
14137 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14138 around backend_init_target and lang_dependent_init_target calls.
14139 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14140 (verify_cgraph_node): Don't call set_cfun here. Use
14141 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14142 Set error_found for incorrectly represented calls to thunks.
14144 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14147 PR rtl-optimization/43494
14148 * rtl.h (for_each_inc_dec_fn): New type.
14149 (for_each_inc_dec): Declare.
14150 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14151 (for_each_inc_dec_find_inc_dec): New fn.
14152 (for_each_inc_dec_find_mem): New fn.
14153 (for_each_inc_dec): New fn.
14154 * dse.c (struct insn_size): Remove.
14155 (replace_inc_dec, replace_inc_dec_mem): Remove.
14156 (emit_inc_dec_insn_before): New fn.
14157 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14158 (canon_address): Pass mem modes to cselib_lookup.
14159 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14160 (cselib_lookup_from_insn): Likewise.
14161 (cselib_subst_to_values): Likewise.
14162 * cselib.c (find_slot_memmode): New var.
14163 (cselib_find_slot): New fn. Use it instead of
14164 htab_find_slot_with_hash everywhere.
14165 (entry_and_rtx_equal_p): Use find_slot_memmode.
14166 (autoinc_split): New fn.
14167 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14168 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14169 Deal with autoinc. Special-case recursion into MEMs.
14170 (cselib_hash_rtx): Likewise.
14171 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14172 address and MEM modes.
14173 (cselib_subst_to_values): Add memmode, pass it on.
14175 (cselib_lookup): Add memmode argument, pass it on.
14176 (cselib_lookup_from_insn): Add memmode.
14177 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14178 (struct cselib_record_autoinc_data): New.
14179 (cselib_record_autoinc_cb): New fn.
14180 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14181 mode to cselib_lookup. Reset autoinced REGs here instead of...
14182 (cselib_process_insn): ... here.
14183 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14185 (add_uses): Likewise, also to cselib_subst_to_values.
14186 (add_stores): Likewise.
14187 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14188 cselib_subst_to_values.
14189 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14190 * gcse.c (do_local_cprop): Adjusted.
14191 * postreload.c (reload_cse_simplify_set): Adjusted.
14192 (reload_cse_simplify_operands): Adjusted.
14193 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14195 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14197 PR tree-optimization/45122
14198 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14199 unsafe assumptions when there's more than one loop exit.
14201 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14204 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14205 Document using vector double with the load/store builtins, and
14206 that the load/store builtins always use Altivec instructions.
14208 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14209 to use altivec memory instructions, even on VSX.
14210 (vector_altivec_store_<mode>): Ditto.
14212 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14215 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14216 V2DF, V2DI support to load/store overloaded builtins.
14218 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14219 altivec load/store builtins for V2DF/V2DI types.
14221 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14222 set avoid indexed addresses on power6 if -maltivec.
14223 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14224 vector_altivec_load/vector_altivec_store builtins.
14225 (altivec_expand_st_builtin): Ditto.
14226 (altivec_expand_builtin): Add VSX memory builtins.
14227 (rs6000_init_builtins): Add V2DI types to internal types.
14228 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14229 load/store builtins.
14230 (rs6000_address_for_altivec): Insure memory address is appropriate
14233 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14234 vec_vsx_ld and vec_vsx_st.
14235 (vsx_store_<mode>): Ditto.
14237 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14238 variables to hold long long types for VSX vector memory builtins.
14239 (RS6000_BTI_unsigned_long_long): Ditto.
14240 (long_long_integer_type_internal_node): Ditti.
14241 (long_long_unsigned_type_internal_node): Ditti.
14243 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14244 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14245 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14247 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14249 (vec_vsx_st): Ditto.
14251 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14253 * config/pa/pa-hpux10.opt: New.
14254 * config/hpux11.opt (pthread): New Driver option.
14255 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14256 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14258 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14260 * config/ia64/vms.opt: New.
14261 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14263 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14266 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14267 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14268 generator functions.
14269 (vsx_floatuns<VSi><mode>2): Ditto.
14270 (vsx_fix_trunc<mode><VSi>2): Ditto.
14271 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14273 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14275 * config/i386/djgpp.opt (posix): New Driver option.
14277 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14279 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14280 Move to the unsupported targets list.
14282 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14284 PR rtl-optimization/47525
14285 * df-scan.c: Update copyright years.
14286 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14287 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14289 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14291 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14292 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14293 (ASM_OUTPUT_ASCII): Remove.
14294 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14296 2011-02-02 Jeff Law <law@redhat.com>
14298 PR middle-end/47543
14299 * reload.c (find_reloads_address): Handle reg+d address where both
14300 components are invalid by reloading the entire address.
14302 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14303 Richard Guenther <rguenther@suse.de>
14305 PR tree-optimization/40979
14307 * passes.c (init_optimization_passes): After LIM call copy_prop
14308 and DCE to clean up.
14309 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14311 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14313 PR tree-optimization/47576
14314 PR tree-optimization/47555
14315 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14316 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14317 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14318 * tree-scalar-evolution.c (follow_ssa_edge): Use
14319 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14321 2011-02-02 Richard Guenther <rguenther@suse.de>
14323 PR tree-optimization/47566
14324 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14326 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14330 * tree-inline.c (declare_return_variable): Remove unused caller
14335 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14336 * cfgexpand.c (account_used_vars_for_block): Use them.
14337 * tree-nrv.c (tree_nrv): Likewise.
14338 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14339 (dump_scope_block): Likewise.
14340 (remove_unused_locals): Likewise.
14344 * tree-inline.c (declare_return_variable): Add result decl to
14345 local decls only once.
14346 * gimple-low.c (record_vars_into): Mark newly-created variables
14349 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14355 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14357 (no_real_insns_p, schedule_block, set_priorities): Drop special
14358 treatment of boundary debug insns.
14359 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14360 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14361 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14362 (BOUNDARY_DEBUG_INSN_P): Likewise.
14363 (SCHEDULE_DEBUG_INSN_P): Likewise.
14364 * sched-rgn.c (init_ready_list): Drop special treatment of
14365 boundary debug insns.
14366 * final.c (rest_of_clean_state): Clear notes' BB.
14368 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14370 * config/openbsd.opt (assert=): New Driver option.
14372 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14374 * config/i386/nto.opt: New.
14375 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14377 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14379 * config/i386/netware.opt: New.
14380 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14382 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14384 * config/interix.opt (posix): New Driver option.
14386 2011-02-01 DJ Delorie <dj@redhat.com>
14388 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14390 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14393 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14395 PR tree-optimization/47561
14396 * toplev.c (process_options): Print the Graphite flags. Add
14397 flag_loop_flatten to the list of options requiring Graphite.
14399 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14401 * config/i386/cygming.opt (posix): New Driver option.
14403 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14405 * config/arm/vxworks.opt: New.
14406 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14408 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14410 * config/alpha/elf.opt: New.
14411 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14412 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14414 2011-02-01 Richard Guenther <rguenther@suse.de>
14416 PR tree-optimization/47559
14417 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14418 store-motion on references that can throw.
14420 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14422 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14423 * tree-pass.h (TDF_CSELIB): New macro.
14424 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14425 cselib_lookup): Check for it rather than for TDF_DETAILS.
14427 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14430 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14431 is HOST_BIT_BUCKET.
14433 * opts.c (finish_options): Don't add x_aux_base_name if it is
14436 2011-02-01 Richard Guenther <rguenther@suse.de>
14438 PR tree-optimization/47555
14440 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14442 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14444 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14447 * config/lm32/t-lm32: Add multilib for all CPU options.
14449 2011-02-01 Richard Guenther <rguenther@suse.de>
14451 PR tree-optimization/47541
14452 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14453 sure to have a field at offset zero.
14455 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14457 * config/arc/arc.opt (EB, EL): New Driver options.
14459 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14461 * config/alpha/osf5.opt: New.
14462 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14464 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14466 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14468 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14470 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14471 -floop-interchange.
14472 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14473 is an alias of -floop-interchange and that it requires the
14474 Graphite infrastructure.
14475 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14476 flag_loop_interchange based on the value of flag_tree_loop_linear.
14478 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14479 Richard Guenther <rguenther@suse.de>
14481 PR tree-optimization/47538
14482 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14483 type instead of r1type, except for comparisons. For right
14484 shifts and comparisons punt if there are mismatches in
14485 sizetype vs. non-sizetype types.
14487 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14489 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14492 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14494 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14496 * configure: Regenerate.
14498 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14500 * configure.ac (gcc_cv_ld_static_option): Define.
14501 (gcc_cv_ld_dynamic_option): Define.
14502 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14504 (HAVE_LD_STATIC_DYNAMIC): Update message.
14505 (LD_STATIC_OPTION): Define.
14506 (LD_DYNAMIC_OPTION): Define.
14507 * configure: Regenerate.
14508 * config.in: Regenerate.
14509 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14510 HAVE_LD_STATIC_DYNAMIC]: Use them.
14512 2011-01-31 Nick Clifton <nickc@redhat.com>
14514 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14515 registers inside interrupt handlers if the handler is not a leaf
14518 2011-01-31 Nick Clifton <nickc@redhat.com>
14520 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14521 reg_renumber returning an INVALID_REGNUM.
14523 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14526 * doc/install.texi: Document host options discarded when cross
14527 configuring target libraries.
14529 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14532 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14535 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14537 (no_real_insns_p, schedule_block, set_priorities): Drop special
14538 treatment of boundary debug insns.
14539 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14540 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14541 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14542 (BOUNDARY_DEBUG_INSN_P): Likewise.
14543 (SCHEDULE_DEBUG_INSN_P): Likewise.
14544 * sched-rgn.c (init_ready_list): Drop special treatment of
14545 boundary debug insns.
14546 * final.c (rest_of_clean-state): Clear notes' BB.
14548 2011-01-31 Alan Modra <amodra@gmail.com>
14550 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14551 toc relative expressions as we do in print_operand_address.
14553 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14555 * doc/extend.texi: Follow spelling conventions.
14556 * doc/invoke.texi: Fix a typo.
14558 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14560 * config/hpux11.opt: New.
14561 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14562 ia64*-*-hpux*): Use hpux11.opt.
14564 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14566 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14569 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14571 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14574 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14576 * doc/install.texi (Binaries): Remove outdated reference for
14577 Motorola 68HC11/68HC12 downloads.
14579 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14581 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14584 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14587 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14590 2011-01-28 Ahmad Sharif <asharif@google.com>
14592 * value-prof.c (check_counter): Corrected error message.
14594 2011-01-29 Jie Zhang <jie@codesourcery.com>
14596 * config/arm/arm.c (arm_legitimize_reload_address): New.
14597 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14598 arm_legitimize_reload_address.
14599 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14601 2011-01-28 Ian Lance Taylor <iant@google.com>
14603 * godump.c (go_define): Ignore macros whose definitions include
14604 two adjacent operands.
14606 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14609 * varasm.c (force_const_mem): Store copy of x in desc->constant
14610 instead of x itself.
14611 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14612 itself into REG_EQUAL note.
14614 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14616 * config/freebsd.opt (posix, rdynamic): New Driver options.
14618 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14620 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14621 -Bstatic/-Bdynamic.
14622 * configure: Regenerate.
14624 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14626 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14627 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14629 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14631 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14632 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14633 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14634 (s390_preferred_reload_class): Make static. Change return and
14635 'rclass' argument type to reg_class_t.
14637 2011-01-27 Jan Hubicka <jh@suse.cz>
14639 PR middle-end/46949
14640 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14641 (process_function_and_variable_attributes): Check defined weakrefs.
14643 2011-01-27 Martin Jambor <mjambor@suse.cz>
14645 PR tree-optimization/47228
14646 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14647 build_ref_for_offset.
14649 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14651 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14653 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14655 PR rtl-optimization/46856
14656 * postreload.c (reload_combine_recognize_const_pattern): Do not
14657 separate cc0 setter and user on cc0 targets.
14659 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14662 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14663 passed a VOID_TYPE expression, immediately emit an error and
14664 return error_mark_node.
14666 2011-01-26 Jeff Law <law@redhat.com>
14668 PR rtl-optimization/47464
14669 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14670 rather than may_trap_p as needed.
14672 2011-01-26 DJ Delorie <dj@redhat.com>
14674 PR rtl-optimization/46878
14675 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14676 setter/user dependency as well.
14678 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14680 PR rtl-optimization/44469
14681 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14682 after removing trivially dead basic blocks.
14684 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14686 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14687 * config/frv/frv.h (LINK_SPEC): Likewise.
14688 * config/i386/netware.h (LINK_SPEC): Likewise.
14689 * config/m68k/linux.h (ASM_SPEC): Likewise.
14690 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14691 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14692 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14693 * config/sparc/linux.h (ASM_SPEC): Likewise.
14694 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14695 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14697 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14699 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14700 * config/frv/frv.h (ASM_SPEC): Likewise.
14701 * config/m68k/linux.h (ASM_SPEC): Likewise.
14702 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14703 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14704 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14705 * config/sparc/linux.h (ASM_SPEC): Likewise.
14706 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14707 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14709 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14711 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14712 * config/frv/frv.h (LINK_SPEC): Likewise.
14713 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14715 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14717 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14718 * config/frv/frv.h (ASM_SPEC): Likewise.
14719 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14720 * config/m68k/linux.h (ASM_SPEC): Likewise.
14721 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14722 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14723 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14724 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14725 * config/sparc/linux.h (ASM_SPEC): Likewise.
14726 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14727 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14728 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14730 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14733 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14735 (vec_extract_evenodd_help): Ditto.
14736 (vec_extract_evenv4hi): Ditto.
14737 (vec_extract_oddv4hi): Ditto.
14738 (vec_interleave_lowv2si): Ditto.
14739 (vec_interleave_highv2si): Ditto.
14740 (vec_extract_evenv2si): Ditto.
14741 (vec_extract_oddv2si: Ditto.
14742 (vec_pack_trunc_v2si): Ditto.
14744 2011-01-22 Jan Hubicka <jh@suse.cz>
14747 * cgraph.h (cgraph_local_info): New field can_change_signature.
14748 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14749 signature can change.
14750 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14752 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14753 (cgraph_function_versioning): We can not change signature of functions
14754 that don't allow that.
14755 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14756 (lto_input_node): Likewise.
14757 * ipa-inline.c (compute_inline_parameters): Compute
14758 local.can_change_signature.
14759 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14760 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14761 functions that can not change signature.
14762 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14763 init_cumulative_args): Do not use local calling conventions
14764 for functions that can not change signature.
14766 2011-01-22 Jan Hubicka <jh@suse.cz>
14768 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14770 2011-01-26 Richard Guenther <rguenther@suse.de>
14772 PR tree-optimization/47190
14773 * cgraphunit.c (process_common_attributes): New function.
14774 (process_function_and_variable_attributes): Use it.
14776 2011-01-26 Richard Guenther <rguenther@suse.de>
14779 * cgraphbuild.c (record_eh_tables): Record reference to personality
14782 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14785 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14786 non-debug insns from moving up.
14788 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14791 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14792 t-dlldir{,-x} fragment for build and add it to tmake_file.
14793 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14794 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14795 * config/i386/t-dlldir: New file.
14796 (SHLIB_DLLDIR): Define.
14797 * config/i386/t-dlldir-x: New file.
14798 (SHLIB_DLLDIR): Define.
14799 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14800 (SHLIB_INSTALL): Use it.
14802 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14805 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14806 lower bound of the allowed Thumb-2 coprocessor load/store
14807 index range to -256. Add explaining comment.
14809 2011-01-25 Ian Lance Taylor <iant@google.com>
14811 * godump.c (go_define): Improve lexing of macro expansion to only
14812 accept expressions which match Go spec.
14814 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14817 * tree.c (handle_dll_attribute): Handle it.
14818 * doc/extend.texi (@item dllexport): Mention it.
14819 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14821 2011-01-25 Ian Lance Taylor <iant@google.com>
14823 PR tree-optimization/26854
14824 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14825 (decl_jump_unsafe): Move higher in file, with no other change.
14826 (bind): Set has_jump_unsafe_decl if appropriate.
14827 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14828 (check_earlier_gotos): Likewise.
14829 (c_check_switch_jump_warnings): Likewise.
14831 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14833 * doc/invoke.texi (Warning Options): Add missing hyphen.
14834 (-fprofile-dir): Minor grammatical fixes.
14835 (-fbranch-probabilities): Likewise.
14837 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14841 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14843 (no_real_insns_p, schedule_block, set_priorities): Drop special
14844 treatment of boundary debug insns.
14845 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14846 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14847 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14848 (BOUNDARY_DEBUG_INSN_P): Likewise.
14849 (SCHEDULE_DEBUG_INSN_P): Likewise.
14850 * sched-rgn.c (init_ready_list): Drop special treatment of
14851 boundary debug insns.
14852 * final.c (rest_of_clean-state): Clear notes' BB.
14854 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14856 * Makefile.in (LAMBDA_H): Removed.
14857 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14858 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14859 lambda-trans.o, and tree-loop-linear.o.
14860 (lto-symtab.o): Remove dependence on LAMBDA_H.
14861 (tree-loop-linear.o): Remove rule.
14862 (lambda-mat.o): Same.
14863 (lambda-trans.o): Same.
14864 (lambda-code.o): Same.
14865 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14866 (tree-vect-slp.o): Same.
14867 * hwint.h (gcd): Moved here.
14868 (least_common_multiple): Same.
14869 * lambda-code.c: Removed.
14870 * lambda-mat.c: Removed.
14871 * lambda-trans.c: Removed.
14872 * lambda.h: Removed.
14873 * tree-loop-linear.c: Removed.
14874 * lto-symtab.c: Do not include lambda.h.
14875 * omega.c (gcd): Removed.
14876 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14877 * tree-data-ref.c (print_lambda_vector): Moved here.
14878 (lambda_vector_copy): Same.
14879 (lambda_matrix_copy): Same.
14880 (lambda_matrix_id): Same.
14881 (lambda_vector_first_nz): Same.
14882 (lambda_matrix_row_add): Same.
14883 (lambda_matrix_row_exchange): Same.
14884 (lambda_vector_mult_const): Same.
14885 (lambda_vector_negate): Same.
14886 (lambda_matrix_row_negate): Same.
14887 (lambda_vector_equal): Same.
14888 (lambda_matrix_right_hermite): Same.
14889 * tree-data-ref.h: Do not include lambda.h.
14890 (lambda_vector): Moved here.
14891 (lambda_matrix): Same.
14892 (dependence_level): Same.
14893 (lambda_transform_legal_p): Removed declaration.
14894 (lambda_collect_parameters): Same.
14895 (lambda_compute_access_matrices): Same.
14896 (lambda_vector_gcd): Same.
14897 (lambda_vector_new): Same.
14898 (lambda_vector_clear): Same.
14899 (lambda_vector_lexico_pos): Same.
14900 (lambda_vector_zerop): Same.
14901 (lambda_matrix_new): Same.
14902 * tree-flow.h (least_common_multiple): Removed declaration.
14903 * tree-parloops.c (lambda_trans_matrix): Moved here.
14904 (LTM_MATRIX): Same.
14905 (LTM_ROWSIZE): Same.
14906 (LTM_COLSIZE): Same.
14907 (LTM_DENOMINATOR): Same.
14908 (lambda_trans_matrix_new): Same.
14909 (lambda_matrix_vector_mult): Same.
14910 (lambda_transform_legal_p): Same.
14911 * tree-pass.h (pass_linear_transform): Removed declaration.
14912 * tree-ssa-loop.c (tree_linear_transform): Removed.
14913 (gate_tree_linear_transform): Removed.
14914 (pass_linear_transform): Removed.
14915 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14916 flag_loop_interchange.
14918 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14920 PR tree-optimization/47265
14921 PR tree-optimization/47443
14922 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14923 if name still has some uses.
14925 2011-01-25 Martin Jambor <mjambor@suse.cz>
14927 PR tree-optimization/47382
14928 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14929 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14931 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14933 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14934 sjlj_except_unwind_info.
14936 2011-01-25 Richard Guenther <rguenther@suse.de>
14938 PR tree-optimization/47426
14939 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14940 visible functions results escape.
14942 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14945 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14946 (arm_get_frame_offsets): Use it.
14948 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14949 Jakub Jelinek <jakub@redhat.com>
14951 PR tree-optimization/47271
14952 * tree-if-conv.c (bb_postdominates_preds): New.
14953 (if_convertible_bb_p): Call bb_postdominates_preds.
14954 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14955 (predicate_scalar_phi): Call bb_postdominates_preds.
14957 2011-01-25 Nick Clifton <nickc@redhat.com>
14959 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14960 * config/rx/rx.c (rx_function_value): Likewise.
14961 (rx_promote_function_mode): Likewise.
14962 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14963 in order to make it legitimate.
14964 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14965 make sure that the first operand is the same as the result register.
14966 (addsi3_unspec): Delete.
14967 (subdi3): Do not accept immediate operands.
14968 (subdi3_internal): Likewise.
14970 2011-01-25 Jeff Law <law@redhat.com>
14972 PR rtl-optimization/37273
14973 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14974 handle them like argument loads from stack slots. Do not double
14975 count memory for memory constants and argument loads from stack slots.
14977 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14979 PR tree-optimization/47427
14980 PR tree-optimization/47428
14981 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14982 coalesce if the new root var would be TREE_READONLY.
14984 2011-01-25 Richard Guenther <rguenther@suse.de>
14986 PR middle-end/47414
14987 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14988 correct type for TBAA.
14990 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14992 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14993 (close_phi_written_to_memory): Call for_each_index with
14994 dr_indices_valid_in_loop.
14996 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14998 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14999 when it is initialized.
15001 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15003 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15004 call to graphite_find_data_references_in_stmt.
15005 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15006 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15007 call to graphite_find_data_references_in_stmt.
15008 (analyze_drs_in_stmts): Same.
15009 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15010 in which the scalar analysis of indices is performed.
15011 (create_data_ref): Same. Update call to dr_analyze_indices.
15012 (find_data_references_in_stmt): Update call to create_data_ref.
15013 (graphite_find_data_references_in_stmt): Same.
15014 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15016 (create_data_ref): Same.
15017 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15018 call to create_data_ref.
15020 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15022 * graphite-sese-to-poly.c (build_poly_scop): Move
15023 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15025 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15027 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15028 VAR_DECL, PARM_DECL, and RESULT_DECL.
15030 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15032 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15033 in a reduction PBB.
15034 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15035 that have already been marked as PBB_IS_REDUCTION.
15037 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15039 * graphite-scop-detection.c (same_close_phi_node): New.
15040 (remove_duplicate_close_phi): New.
15041 (make_close_phi_nodes_unique): New.
15042 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15044 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15046 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15047 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15048 of both data references to be the same.
15050 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15052 * graphite-dependences.c (build_lexicographical_constraint): Remove
15053 the gdim parameter.
15054 (build_lexicographical_constraint): Adjust call to
15055 ppl_powerset_is_empty.
15056 (dependence_polyhedron): Same.
15057 (graphite_legal_transform_dr): Same.
15058 (graphite_carried_dependence_level_k): Same.
15059 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15061 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15063 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15065 * graphite-sese-to-poly.c
15066 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15067 (close_phi_written_to_memory): New.
15068 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15071 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15073 * doc/install.texi: Update the expected version number of PPL to 0.11.
15074 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15075 #if PPL_VERSION_MINOR < 11.
15077 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15079 * graphite-dependences.c: Include graphite-cloog-util.h.
15080 (new_poly_ddr): Inlined into dependence_polyhedron.
15081 (free_poly_ddr): Moved close by new_poly_ddr.
15082 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15083 Early return NULL when ppl_powerset_is_empty returns true.
15084 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15085 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15086 (graphite_legal_transform_dr): Call new_poly_ddr.
15087 (graphite_carried_dependence_level_k): Same.
15088 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15089 (dot_transformed_deps_stmt_1): Removed.
15090 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15091 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15092 (dot_deps_1): Call dot_deps_2.
15093 * Makefile.in (graphite-dependences.o): Add missing dependence on
15094 graphite-cloog-util.h.
15096 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15098 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15099 (build_lexicographical_constraint): Same.
15100 (dependence_polyhedron_1): Same.
15101 (graphite_legal_transform_dr): Same.
15102 (graphite_carried_dependence_level_k): Same.
15103 * graphite-ppl.c (ppl_powerset_is_empty): New.
15104 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15105 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15107 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15109 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15110 the "a followed by b" relation and document it.
15112 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15114 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15115 iteration when the bag of constraints is empty.
15117 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15119 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15121 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15123 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15124 nest and two loop depths as parameters.
15125 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15126 lst_perfect_nestify.
15128 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15130 * graphite-dependences.c (print_pddr): Call
15131 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15133 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15135 * graphite-ppl.c (debug_gmp_value): New.
15136 * graphite-ppl.h (debug_gmp_value): Declared.
15138 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15140 * doc/install.texi: Document availability of cloog-0.16.
15142 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15144 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15145 invalid postdominance info.
15147 2011-01-24 Jan Hubicka <jh@suse.cz>
15150 * doc/extend.texi (weak pragma): Drop claim that it must
15151 appear before definition.
15152 * varasm.c (merge_weak, declare_weak): Only sanity check
15153 that DECL is not output at a time it is declared weak.
15155 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15157 * machmode.def: Fixed comments.
15159 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15161 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15163 2011-01-24 Paul Koning <ni1d@arrl.net>
15165 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15168 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15171 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15172 (block_info): Add scanned and prev.
15173 (move_or_delete_vzeroupper_2): Return if the basic block
15174 has been scanned and the upper 128bit state is unchanged
15175 from the last scan.
15176 (move_or_delete_vzeroupper_1): Return true if the exit
15178 (move_or_delete_vzeroupper): Visit basic blocks using the
15179 work-list based algorithm based on vt_find_locations in
15182 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15184 2011-01-24 Nick Clifton <nickc@redhat.com>
15186 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15187 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15188 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15189 then define __v850e1__.
15190 * doc/invoke.texi: Document -mv850es.
15192 2011-01-24 Richard Henderson <rth@redhat.com>
15194 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15195 compound unordered comparisons.
15196 * config/rx/rx.c (rx_split_fp_compare): Remove.
15197 * config/rx/rx-protos.h: Update.
15198 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15199 (cbranchsf4): Don't call rx_split_fp_compare.
15200 (*cbranchsf4): Use rx_split_cbranch.
15201 (*cmpsf): Don't accept "i" constraint.
15202 (*conditional_branch): Only valid after reload.
15203 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15205 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15208 * config/rs6000/altivec.md (vector constant splitters): Add
15209 support for creating vector single precision constants if -mvsx is
15210 used and we would create the constant using Altivec primitives.
15212 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15213 Richard Sandiford <rdsandiford@googlemail.com>
15215 PR rtl-optimization/47166
15216 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15217 mechanism for PRE_MODIFY and POST_MODIFY.
15218 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15221 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15223 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15225 2011-01-22 Jan Hubicka <jh@suse.cz>
15228 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15230 2011-01-22 Jan Hubicka <jh@suse.cz>
15232 PR tree-optimization/43884
15234 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15235 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15237 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15239 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15240 * config/s390/s390.c (s390_register_move_cost,
15241 s390_memory_move_cost): New.
15242 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15244 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15246 PR middle-end/47401
15247 * except.c (sjlj_assign_call_site_values): Move setting the
15248 crtl->uses_eh_lsda flag to ...
15249 (sjlj_mark_call_sites): ... here.
15250 (sjlj_emit_function_enter): Support NULL dispatch label.
15251 (sjlj_build_landing_pads): In a function with no landing pads
15252 that still has must-not-throw regions, generate code to register
15253 a personality function with empty LSDA.
15255 2011-01-21 Richard Henderson <rth@redhat.com>
15257 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15259 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15261 * compare-elim.c: New file.
15262 * Makefile.in (OBJS-common): Add it.
15263 (compare-elim.o): New.
15264 * common.opt (fcompare-elim): New.
15265 * opts.c (default_options_table): Add OPT_fcompare_elim.
15266 * tree-pass.h (pass_compare_elim_after_reload): New.
15267 * passes.c (init_optimization_passes): Add it.
15268 * recog.h: Protect against re-inclusion.
15269 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15270 * doc/invoke.texi (-fcompare-elim): Document it.
15271 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15272 * doc/tm.texi: Rebuild.
15274 2011-01-22 Nick Clifton <nickc@redhat.com>
15276 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15277 rx_split_fp_compare.
15279 2011-01-22 Nick Clifton <nickc@redhat.com>
15281 * config/rx/rx.md (UNSPEC_CONST): New.
15282 (deallocate_and_return): Wrap the amount popped off the stack in
15283 an UNSPEC_CONST in order to stop it being rejected by
15284 -mmax-constant-size.
15285 (pop_and_return): Add a "(return)" rtx.
15286 (call): Drop the immediate operand.
15287 (call_internal): Likewise.
15288 (call_value): Likewise.
15289 (call_value_internal): Likewise.
15290 (sibcall_internal): Likewise.
15291 (sibcall_value_internal): Likewise.
15292 (sibcall): Likewise. Generate an explicit call using
15294 (sibcall_value): Likewise.
15295 (mov<>): FAIL if a constant operand is not legitimate.
15296 (addsi3_unpsec): New pattern.
15298 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15299 (ok_for_max_constant): New function.
15300 (gen_safe_add): New function.
15301 (rx_expand_prologue): Use gen_safe_add.
15302 (rx_expand_epilogue): Likewise.
15303 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15306 2011-01-21 Jeff Law <law@redhat.com>
15308 PR tree-optimization/47053
15309 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15310 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15311 statements are deleted.
15312 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15313 is nonempty, then purge dead edges and cleanup the CFG.
15315 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15318 Temporarily revert:
15319 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15321 * tree-dfa.c (create_var_ann): Mark variable as used.
15323 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15325 PR middle-end/45566
15326 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15327 notes from other section in hot/cold partitioning even if
15328 last_action is -3. Increment call_site_base.
15330 PR rtl-optimization/47366
15331 * fwprop.c (forward_propagate_into): Return bool. If
15332 any changes are made, -fnon-call-exceptions is used and
15333 REG_EH_REGION note is present, call purge_dead_edges
15334 and return true if it purged anything.
15335 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15336 any EH edges were purged.
15338 2011-01-21 Jeff Law <law@redhat.com>
15340 PR rtl-optimization/41619
15341 * caller-save.c (setup_save_areas): Break out code to determine
15342 which hard regs are live across calls by examining the reload chains
15343 so that it is always used.
15344 Eliminate code which checked REG_N_CALLS_CROSSED.
15346 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15348 PR tree-optimization/47355
15349 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15350 NOP has non-debug uses beyond PHIs in new_bb.
15352 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15355 * cfgexpand.c (account_used_vars_for_block): Only account vars
15356 that are annotated as used.
15357 (estimated_stack_frame_size): Don't set TREE_USED.
15358 * tree-dfa.c (create_var_ann): Mark variable as used.
15360 2011-01-21 Richard Guenther <rguenther@suse.de>
15362 PR middle-end/47395
15363 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15365 2011-01-21 Richard Guenther <rguenther@suse.de>
15367 PR tree-optimization/47365
15368 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15369 (vn_reference_lookup_pieces): Adjust.
15370 (vn_reference_lookup): Likewise.
15371 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15372 (vn_reference_lookup_3): Only look through kills if in
15373 VN_WALKREWRITE mode.
15374 (vn_reference_lookup_pieces): Adjust.
15375 (vn_reference_lookup): Likewise.
15376 (visit_reference_op_load): Likewise.
15377 (visit_reference_op_store): Likewise.
15378 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15379 (compute_avail): Likewise.
15380 (eliminate): Likewise.
15382 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15384 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15385 DECL_IGNORED_P non-reg vars if they are used.
15387 PR tree-optimization/47391
15388 * varpool.c (const_value_known_p): Return false if
15391 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15394 * config/i386/i386.c (ix86_local_alignment): Handle
15395 case for va_list_type_node is nil.
15396 (ix86_canonical_va_list_type): Likewise.
15398 2011-01-21 Alan Modra <amodra@gmail.com>
15400 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15401 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15403 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15405 * config/arm/arm.md (define_attr type): Rename f_load
15406 and f_store to f_fpa_load and f_fpa_store. Update.
15407 (write_conflict): Deal with rename fallout.
15408 (*push_fp_multi): Likewise.
15409 * config/arm/fpa.md (f_load): Use f_fpa_load.
15410 (f_store): Use f_fpa_store.
15411 (*movsf_fpa): Likewise.
15412 (*movdf_fpa): Likewise.
15413 (*movxf_fpa): Likewise.
15414 (*thumb2_movsf_fpa): Likewise.
15415 (*thumb2_movdf_fpa): Likewise.
15416 (*thumb2_movxf_fpa): Likewise.
15417 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15418 f_loadd and f_stored.
15419 (*thumb2_movdi_vfp): Likewise.
15420 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15421 (*thumb2_movsi_vfp): Likewise.
15422 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15423 Use f_loads instead of f_load.
15424 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15426 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15428 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15429 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15430 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15431 (xtensa_mode_dependent_address_p): New function.
15432 (constantpool_address_p): Make static. Change return type to bool.
15433 Change argument type to const_rtx. Use CONST_INT_P predicate.
15435 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15438 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15440 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15443 * cfgexpand.c (expand_debug_expr): Instead of generating
15444 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15447 2011-01-20 Richard Guenther <rguenther@suse.de>
15449 PR middle-end/47370
15450 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15451 the pointer operand of MEM_REFs.
15453 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15455 PR tree-optimization/46130
15456 * ipa-split.c (consider_split): If return_bb contains non-virtual
15457 PHIs other than for retval or if split_function would not adjust it,
15460 2011-01-20 Richard Guenther <rguenther@suse.de>
15462 PR tree-optimization/47167
15463 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15464 Revert previous change, only avoid enumeral type changes.
15466 2011-01-19 Mike Stump <mikestump@comcast.net>
15468 * doc/tm.texi.in (BRANCH_COST): Englishify.
15469 * doc/tm.texi (BRANCH_COST): Likewise.
15471 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15474 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15475 (gen_scheduled_generic_parms_dies): New functions.
15476 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15477 generation for the end of CU compilation.
15478 (dwarf2out_finish): Generate template parameters DIEs here.
15480 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15483 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15484 debug bind stmt on merge edges.
15486 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15490 * function.c (instantiate_expr): Instantiate incoming rtl of
15491 implicit arguments, and recurse on VALUE_EXPRs.
15492 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15493 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15495 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15497 * c-parser.c (c_parser_for_statement): Initialize
15498 collection_expression.
15500 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15502 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15504 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15506 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15507 (LINK_SHLIB_SPEC): Don't use %(link_path).
15508 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15510 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15512 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15513 (NO_SHARED_LIB_SUPPORT): Remove.
15514 (LINK_SHLIB_SPEC): Remove one conditional definition.
15516 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15518 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15520 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15521 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15522 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15523 %{call_shared} and conditionals on these options not being passed.
15524 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15527 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15529 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15532 * ipa-split.c: Spelling fixes.
15534 2011-01-19 Richard Henderson <rth@redhat.com>
15536 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15537 (*mulsi3): Likewise.
15539 * longlong.h [__mn10300__] (count_leading_zeros): New.
15540 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15541 [__mn10300__] (add_ssaaaa, subddmmss): New.
15542 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15543 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15545 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15547 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15549 2011-01-19 Richard Henderson <rth@redhat.com>
15551 * config/mn10300/mn10300.md (addsi3_flags): New.
15552 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15553 (subsi3_flags, subc_internal, subdi3): New.
15554 (subdi3_internal, *subdi3_degenerate): New.
15555 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15557 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15558 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15559 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15560 * config/mn10300/mn10300-protos.h: Update.
15561 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15562 (return_ret): Likewise. Rename from return_internal_regs.
15563 (return_internal): Remove.
15565 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15566 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15567 (mn10300_legitimate_constant_p): Likewise.
15568 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15569 (mn10300_frame_size): New.
15570 (mn10300_expand_prologue): Use it.
15571 (mn10300_expand_epilogue): Likewise.
15572 (mn10300_initial_offset): Likewise.
15573 * config/mn10300/mn10300-protos.h: Update.
15574 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15575 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15576 (prologue, epilogue, return_internal): Tidy output code.
15577 (mn10300_store_multiple_operation, return): Likewise.
15578 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15579 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15580 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15581 (load_pic, am33_load_pic): New.
15582 (mn10300_load_pic0, mn10300_load_pic1): New.
15584 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15585 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15586 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15587 (cc_flags_for_mode, cc_flags_for_code): New.
15588 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15589 overflow flag is not valid. Validate that the flags we need
15590 for the comparison are valid.
15591 (mn10300_output_cmp): Remove.
15592 (mn10300_output_add): New.
15593 (mn10300_select_cc_mode): Use cc_flags_for_code.
15594 (mn10300_split_cbranch): New.
15595 (mn10300_match_ccmode): New.
15596 (mn10300_split_and_operand_count): New.
15597 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15599 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15600 (addsi3): ... here. Use mn10300_output_add.
15601 (*addsi3_flags): New.
15602 (*am33_subsi3, *mn10300_subsi3): Merge...
15603 (subsi3): ... here. Use attribute isa.
15604 (*subsi3_flags): New.
15605 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15607 (*am33_andsi3, *mn10300_andsi3): Merge...
15608 (andsi3): ... here.
15609 (*andsi3_flags): New.
15610 (andsi3 splitters): New.
15611 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15612 (iorsi3): ... here.
15613 (*iorsi3_flags): New.
15614 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15615 (xorsi3): ... here.
15616 (*xorsi3_flags): New.
15617 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15618 (one_cmplsi2): ... here.
15619 (*one_cmplsi2_flags): New.
15620 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15621 instead of "dax" in constraints. Use mn10300_split_cbranch.
15622 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15623 use matching constraints to eliminate a self-comparison.
15624 (*integer_conditional_branch): Rename from integer_conditional_branch.
15625 Use int_mode_flags to match CC_REG.
15626 (*cbranchsi4_btst, *btstsi): New.
15627 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15628 mn10300_split_cbranch.
15629 (*am33_cmpsf): Rename from am33_cmpsf.
15630 (*float_conditional_branch): Rename from float_conditional_branch.
15631 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15632 (zero_extendqisi2): ... here.
15633 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15634 (zero_extendhisi2): ... here.
15635 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15636 (extendqisi2): ... here.
15637 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15638 (extendhisi2): ... here.
15639 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15640 (ashlsi3): ... here.
15641 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15642 (lshrsi3): ... here.
15643 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15644 (ashrsi3): ... here.
15645 (consecutive add peephole): Remove.
15646 * config/mn10300/predicates.md (label_ref_operand): New.
15647 (int_mode_flags): New.
15648 (CCZN_comparison_operator): New.
15650 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15651 (throughput_42_latency_43): New reservation.
15652 (mulsidi3, umulsidi3): New expanders.
15653 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15654 the MDR register to allocation; separately allocate the low and
15655 high parts of the DImode result.
15656 (umulsidi3_internal): Similarly.
15657 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15658 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15659 (udivsi3, umodsi3): Remove.
15660 (udivmodsi4, divmodsi4): New expanders.
15661 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15662 (*divmodsi4): Simiarly.
15663 (ext_internal): New.
15665 * config/mn10300/constraints.md ("z"): New constraint.
15666 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15667 (FIXED_REGISTERS): Don't fix MDR.
15668 (CALL_USED_REGSITERS): Reformat nicely.
15669 (REG_ALLOC_ORDER): Add MDR.
15670 (enum regclass): Add MDR_REGS.
15671 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15672 (IRA_COVER_CLASSES): Add MDR_REGS.
15673 (REGNO_REG_CLASS): Handle MDR_REG.
15674 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15675 (mn10300_register_move_cost): Likewise.
15676 * config/mn10300/mn10300.md (MDR_REG): New.
15677 (*movsi_internal): Handle moves to/from MDR_REGS.
15679 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15681 (mn10300_secondary_reload): Tidy combination reload classes.
15682 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15683 addresses for AM33. Allow symbolic offsets for reg+imm.
15684 (mn10300_regno_in_class_p): New.
15685 (mn10300_legitimize_reload_address): New.
15686 * config/mn10300/mn10300.h (enum reg_class): Remove
15687 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15688 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15689 SP_OR_GENERAL_REGS.
15690 (REG_CLASS_NAMES): Update to match.
15691 (REG_CLASS_CONTENTS): Likewise.
15692 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15693 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15694 (REGNO_IN_RANGE_P): Remove.
15695 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15696 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15697 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15698 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15699 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15700 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15701 (REGNO_GENERAL_P): New.
15702 (HAVE_POST_MODIFY_DISP): New.
15703 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15704 (LEGITIMIZE_RELOAD_ADDRESS): New.
15705 * config/mn10300/mn10300-protos.h: Update.
15707 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15708 DATA_REGS for AM33 stack-pointer destination.
15709 (mn10300_preferred_output_reload_class): Likewise.
15710 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15711 into a form appropriate for ...
15712 (TARGET_SECONDARY_RELOAD): New.
15713 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15714 * config/mn10300/mn10300-protos.h: Update.
15715 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15716 reload_insi; use the "A" constraint for the scratch; handle AM33
15717 moves of sp to non-address registers.
15719 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15720 (*movqi_internal): ... here.
15721 (*am33_movhi, *mn10300_movhi): Merge into...
15722 (*movhi_internal): ... here.
15723 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15724 as the source/destination of moves from/to SP.
15725 (movsf): Only allow for AM33-2.
15726 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15727 any integer constant constraint. Only allow for AM33-2. Tidy
15728 all of the alternative outputs.
15729 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15730 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15732 (udivsi3, umodsi3): New patterns for MN103 only.
15734 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15736 * doc/tm.texi.in: Spell out that a lack of register class unions
15738 * doc/tm.texi: Regenerate.
15740 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15742 PR rtl-optimization/47337
15743 * dce.c (check_argument_store): New function.
15744 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15746 PR tree-optimization/47290
15747 * tree-eh.c (infinite_empty_loop_p): New function.
15748 (cleanup_empty_eh): Use it.
15750 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15753 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15754 (a64_expand_widen_sum): Ditto.
15755 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15756 (vec_extract_evenodd_help): Ditto.
15757 (vec_extract_evenv4hi): Ditto.
15758 (vec_extract_oddv4hi): Ditto.
15759 (vec_extract_evenv2si): Ditto.
15760 (vec_extract_oddv2si): Ditto.
15761 (vec_extract_evenv2sf): Ditto.
15762 (vec_extract_oddv2sf): Ditto.
15763 (vec_pack_trunc_v4hi: Ditto.
15764 (vec_pack_trunc_v2si): Ditto.
15765 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15766 (vec_interleave_highv8qi): Ditto.
15768 (vec_extract_oddv8qi): Ditto.
15769 (vec_interleave_lowv4hi): Ditto.
15770 (vec_interleave_highv4hi): Ditto.
15771 (vec_interleave_lowv2si): Ditto.
15772 (vec_interleave_highv2si): Ditto.
15774 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15776 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15777 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15778 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15779 (pa_c_mode_for_suffix): New.
15780 (TARGET_EXPAND_BUILTIN): Define.
15781 (TARGET_C_MODE_FOR_SUFFIX): Define.
15782 (pa_builtins): Define.
15783 (pa_init_builtins): Register __float128 type and init new support
15785 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15786 * config/pa/quadlib.c (_U_Qfcopysign): New.
15788 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15790 PR middle-end/46894
15791 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15792 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15795 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15797 PR tree-optimization/47179
15798 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15799 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15801 2011-01-18 Richard Guenther <rguenther@suse.de>
15803 PR rtl-optimization/47216
15804 * emit-rtl.c: Include tree-flow.h.
15805 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15806 of replicating it with different semantics.
15807 * Makefile.in (emit-rtl.o): Adjust.
15809 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15811 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15812 (cortex_a9_dp): Handle neon types correctly.
15814 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15816 PR rtl-optimization/47299
15817 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15818 subtarget. Use normal multiplication if both operands are constants.
15819 * expmed.c (expand_widening_mult): Don't try to optimize constant
15820 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15823 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15825 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15826 spacing after 'e.g.', typos, comma, hyphenation.
15828 2011-01-17 Richard Henderson <rth@redhat.com>
15830 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15831 (rx_restricted_mem_operand): New.
15832 (rx_shift_operand): Use register_operand.
15833 (rx_source_operand, rx_compare_operand): Likewise.
15834 * config/rx/rx.md (addsi3_flags): New expander.
15835 (adddi3): Rewrite as expander.
15836 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15837 (subsi3_flags): New expander.
15838 (subdi3): Rewrite as expander.
15839 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15841 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15842 (rx_init_builtins): Remove sat builtin.
15843 (rx_expand_builtin): Likewise.
15844 * config/rx/rx.md (ssaddsi3): New.
15845 (*sat): Rename from sat. Represent the CC_REG input.
15847 * config/rx/predicates.md (rshift_operator): New.
15848 * config/rx/rx.c (rx_expand_insv): Remove.
15849 * config/rx/rx-protos.h: Update.
15850 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15851 operand to the canonical position.
15852 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15853 (*bitclr, *bitclr_in_memory): Similarly.
15854 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15855 (insv): Retain the zero_extract in the expansion.
15857 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15858 (bswaphi2, bitinvert, revw): Likewise.
15860 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15861 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15862 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15863 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15864 (bitset, bitset_in_memory): Likewise.
15865 (bitinvert, bitinvert_in_memory): Likewise.
15866 (bitclr, bitclr_in_memory): Likewise.
15867 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15868 (rx_strend, rx_cmpstrn): Likewise.
15869 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15870 (bitop peep2 patterns): Remove.
15872 * config/rx/rx.c (rx_match_ccmode): New.
15873 * config/rx/rx-protos.h: Update.
15874 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15875 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15876 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15877 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15878 (fix_truncsfsi2, floatsisf2): Likewise.
15879 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15880 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15881 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15882 (*subsi3_flags, *xorsi3_flags): New.
15884 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15886 * config/rx/rx.c (rx_print_operand): Remove workaround for
15887 unsplit comparison operations.
15889 * config/rx/rx.md (movsicc): Split after reload.
15890 (*movsicc): Merge *movsieq and *movsine via match_operator.
15891 (*stcc): New pattern.
15893 * config/rx/rx.c (rx_float_compare_mode): Remove.
15894 * config/rx/rx.h (rx_float_compare_mode): Remove.
15895 * config/rx/rx.md (cstoresi4): Split after reload.
15896 (*sccc): New pattern.
15898 * config/rx/predicates.md (label_ref_operand): New.
15899 (rx_z_comparison_operator): New.
15900 (rx_zs_comparison_operator): New.
15901 (rx_fp_comparison_operator): New.
15902 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15903 Validate that the flags are set properly for the comparison.
15904 (rx_gen_cond_branch_template): Remove.
15905 (rx_cc_modes_compatible): Remove.
15906 (mode_from_flags): New.
15907 (flags_from_code): Rename from flags_needed_for_conditional.
15908 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15909 (rx_select_cc_mode): Likewise.
15910 (rx_split_fp_compare): New.
15911 (rx_split_cbranch): New.
15912 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15913 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15914 (*cbranchsf4): Similarly.
15915 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15916 match_operator and rx_split_cbranch.
15917 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15918 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15919 (*cmpsi): Rename from cmpsi.
15920 (*tstsi): Rename from tstsi.
15921 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15922 (*conditional_branch): Rename from conditional_branch.
15923 (*reveresed_conditional_branch): Remove.
15924 (b<code>): Remove expander.
15925 * config/rx/rx-protos.h: Update.
15927 * config/rx/rx.c (rx_compare_redundant): Remove.
15928 * config/rx/rx.md (cmpsi): Don't use it.
15929 * config/rx/rx-protos.h: Update.
15931 * config/rx/rx-modes.def (CC_F): New mode.
15932 * config/rx/rx.c (rx_select_cc_mode): New.
15933 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15934 * config/rx/rx-protos.h: Update.
15936 2011-01-17 Richard Henderson <rth@redhat.com>
15938 * except.c (dump_eh_tree): Fix stray ; after for statement.
15940 2011-01-17 Richard Guenther <rguenther@suse.de>
15942 PR tree-optimization/47313
15943 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15944 handling before copying the body. Properly deal with
15945 by-reference result in SSA form.
15947 2011-01-17 Ian Lance Taylor <iant@google.com>
15950 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15951 (struct_value_alias_set): Don't define.
15952 (sparc_option_override): Don't set sparc_sr_alias_set and
15953 struct_value_alias_set.
15954 (save_or_restore_regs): Use gen_frame_mem rather than calling
15956 (sparc_struct_value_rtx): Likewise.
15958 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15961 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15962 (_mm_maskstore_pd): Likewise.
15963 (_mm_maskload_ps): Likewise.
15964 (_mm_maskstore_ps): Likewise.
15965 (_mm256_maskload_pd): Change mask to __m256i.
15966 (_mm256_maskstore_pd): Likewise.
15967 (_mm256_maskload_ps): Likewise.
15968 (_mm256_maskstore_ps): Likewise.
15970 * config/i386/i386-builtin-types.def: Updated.
15971 (ix86_expand_special_args_builtin): Likewise.
15973 * config/i386/i386.c (bdesc_special_args): Update
15974 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15975 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15976 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15977 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15979 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15980 Use <avxpermvecmode> on mask register.
15981 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15983 2011-01-17 Olivier Hainque <hainque@adacore.com>
15984 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15985 Eric Botcazou <ebotcazou@adacore.com>
15988 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15989 if <= USHRT_MAX in 32-bit mode.
15991 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15993 * doc/install.texi (Configuration, Specific): Wrap long
15994 lines in examples. Allow line wrapping in long options
15995 and URLs where beneficial for PDF output.
15997 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15999 * config/mips/mips.c (mips_classify_symbol): Don't return
16000 SYMBOL_PC_RELATIVE for nonlocal labels.
16002 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16004 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16006 2011-01-15 Jan Hubicka <jh@suse.cz>
16008 PR tree-optimization/47276
16009 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16010 declarations as needed.
16012 2011-01-15 Martin Jambor <mjambor@suse.cz>
16014 * common.opt (fdevirtualize): New flag.
16015 * doc/invoke.texi (Option Summary): Document it.
16016 * opts.c (default_options_table): Add devirtualize flag.
16017 * ipa-prop.c (detect_type_change): Return immediately if
16018 devirtualize flag is not set.
16019 (detect_type_change_ssa): Likewise.
16020 (compute_known_type_jump_func): Likewise.
16021 (ipa_analyze_virtual_call_uses): Likewise.
16023 2011-01-14 Martin Jambor <mjambor@suse.cz>
16025 PR tree-optimization/45934
16026 PR tree-optimization/46302
16027 * ipa-prop.c (type_change_info): New type.
16028 (stmt_may_be_vtbl_ptr_store): New function.
16029 (check_stmt_for_type_change): Likewise.
16030 (detect_type_change): Likewise.
16031 (detect_type_change_ssa): Likewise.
16032 (compute_complex_assign_jump_func): Check for dynamic type change.
16033 (compute_complex_ancestor_jump_func): Likewise.
16034 (compute_known_type_jump_func): Likewise.
16035 (compute_scalar_jump_functions): Likewise.
16036 (ipa_analyze_virtual_call_uses): Likewise.
16037 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16039 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16041 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16042 * config/i386/i386.opt (msse5): New Alias.
16044 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16046 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16047 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16048 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16049 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16051 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16053 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16055 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16056 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16057 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16058 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16060 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16062 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16064 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16066 2011-01-14 Mike Stump <mikestump@comcast.net>
16068 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16069 * config/fr30/fr30.md: Likweise
16070 (movsi_push): Likewise.
16071 (movsi_pop): Likewise.
16072 (enter_func): Likewise.
16073 * config/moxie/moxie.md (movsi_push): Likewise.
16074 (movsi_pop): Likewise.
16076 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16078 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16079 %{no_archive} %{exact_version}.
16080 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16081 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16082 %{no_archive} %{exact_version}.
16083 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16084 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16085 * config/mips/vxworks.h: Likewise.
16087 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16089 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16091 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16093 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16094 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16096 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16098 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16101 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16103 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16105 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16106 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16108 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16109 Don't handle -shlib.
16111 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16113 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16114 (CC1_SPEC): Don't handle -profile.
16116 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16118 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16119 * config/mips/mips.h (CC1_SPEC): Likewise.
16121 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16123 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16124 * config/mips/mips.h (CC1_SPEC): Likewise.
16126 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16128 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16129 * config/m32r/linux.h (LINK_SPEC): Likewise.
16130 * config/mips/linux.h (LINK_SPEC): Likewise.
16131 * config/mips/linux64.h (LINK_SPEC): Likewise.
16132 * config/sparc/linux.h (LINK_SPEC): Likewise.
16133 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16134 LINK_SPEC): Likewise.
16135 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16137 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16139 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16141 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16143 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16145 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16146 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16148 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16150 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16152 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16154 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16155 supports -Bstatic/-Bdynamic.
16156 * configure: Regenerate.
16158 2011-01-14 Jan Hubicka <jh@suse.cz>
16159 Jack Howarth <howarth@bromo.med.uc.edu>
16162 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16163 when checking debug_info_level. Test write_symbols instead of
16164 debug_hooks->var_location when setting flag_var_tracking_uninit.
16166 2011-01-14 Richard Guenther <rguenther@suse.de>
16168 PR tree-optimization/47179
16169 * target.def (ref_may_alias_errno): New target hook.
16170 * targhooks.h (default_ref_may_alias_errno): Declare.
16171 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16172 (default_ref_may_alias_errno): New function.
16173 * target.h (struct ao_ref_s): Declare.
16174 * tree-ssa-alias.c: Include target.h.
16175 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16176 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16177 (targhooks.o): Likewise.
16178 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16179 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16181 2011-01-14 Richard Guenther <rguenther@suse.de>
16183 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16185 2011-01-14 Richard Guenther <rguenther@suse.de>
16187 PR tree-optimization/47280
16188 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16189 return CFG changes.
16190 (tree_ssa_forward_propagate_single_use_vars): Deal with
16191 CFG changes from associate_plusminus.
16193 2011-01-14 Richard Guenther <rguenther@suse.de>
16195 PR middle-end/47281
16197 2011-01-11 Richard Guenther <rguenther@suse.de>
16199 PR tree-optimization/46076
16200 * tree-ssa.c (useless_type_conversion_p): Conversions from
16201 unprototyped to empty argument list function types are useless.
16203 2011-01-14 Richard Guenther <rguenther@suse.de>
16205 PR tree-optimization/47286
16206 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16208 2011-01-14 Martin Jambor <mjambor@suse.cz>
16210 PR middle-end/46823
16211 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16213 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16215 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16216 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16217 * config/xtensa/xtensa.c (xtensa_libcall_value,
16218 xtensa_function_value_regno_p): New functions.
16219 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16221 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16224 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16226 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16227 New function prototype.
16228 * config/i386/winnt.c (i386_pe_assemble_visibility):
16229 Warn only if attribute was specified by user.
16231 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16234 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16236 (floatunsdidf2_fcfidu): Ditto.
16238 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16240 * config/s390/s390.c (print_operand_address): Replace 'error' with
16241 'output_operand_lossage'.
16242 (print_operand): Likewise.
16244 2011-01-13 Jeff Law <law@redhat.com>
16246 PR rtl-optimization/39077
16247 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16248 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16249 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16250 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16251 * gcse.c (prune_insertions_deletions): New function.
16252 (compute_pre_data): Use it.
16254 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16257 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16259 (prune_unused_types_mark): Use it.
16261 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16263 PR rtl-optimization/45352
16264 * sel-sched.c: Update copyright years.
16265 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16266 in the advancing loop when we have issued issue_rate insns.
16268 2011-01-12 Richard Henderson <rth@redhat.com>
16270 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16271 (TARGET_MD_ASM_CLOBBERS): New.
16273 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16274 (TARGET_DELEGITIMIZE_ADDRESS): New.
16276 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16277 (clzsi2, *bsch): New patterns.
16279 * config/mn10300/mn10300.md (INT): New mode iterator.
16280 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16282 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16283 flag_split_wide_types.
16285 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16286 (mn10300_trampoline_init): Rewrite without a template, an immediate
16287 load and a direct branch.
16288 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16290 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16292 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16293 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16294 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16295 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16297 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16300 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16303 2011-01-12 Jan Hubicka <jh@suse.cz>
16306 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16307 (PLUGIN_COND_CLOSE): New macro.
16308 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16310 2011-01-12 Richard Guenther <rguenther@suse.de>
16313 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16314 register variables in a MEM_REF.
16316 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16318 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16319 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16320 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16321 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16322 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16323 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16324 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16325 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16326 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16327 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16328 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16329 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16330 * config/gnu-user.h: New. Copied from linux.h.
16331 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16332 GNU_USER_TARGET_STARTFILE_SPEC.
16333 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16334 GNU_USER_TARGET_ENDFILE_SPEC.
16335 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16336 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16337 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16338 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16339 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16340 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16341 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16342 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16343 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16344 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16345 * config/arm/linux-eabi.h (CC1_SPEC): Use
16346 GNU_USER_TARGET_CC1_SPEC.
16347 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16348 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16349 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16350 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16351 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16352 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16353 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16354 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16356 2011-01-12 Richard Guenther <rguenther@suse.de>
16359 * doc/invoke.texi (ffast-math): Document it is turned on
16362 2011-01-12 Jan Hubicka <jh@suse.cz>
16364 PR tree-optimization/47233
16365 * opts.c (common_handle_option): Disable ipa-reference with profile
16368 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16370 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16373 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16375 * c-parser.c (c_lex_one_token): Updated and reindented some
16376 comments. No changes in code.
16378 2011-01-11 Ian Lance Taylor <iant@google.com>
16380 * godump.c (go_output_var): Don't output the variable if there is
16381 already a type with the same name.
16383 2011-01-11 Ian Lance Taylor <iant@google.com>
16385 * godump.c (go_format_type): Don't generate float80.
16387 2011-01-11 Richard Henderson <rth@redhat.com>
16389 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16390 declaration. Rewrite for both speed and size.
16391 (mn10300_address_cost_1): Remove.
16392 (mn10300_register_move_cost): New.
16393 (mn10300_memory_move_cost): New.
16394 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16395 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16396 extensions, shifts, BSWAP, CLZ.
16397 (mn10300_wide_const_load_uses_clr): Remove.
16398 (TARGET_REGISTER_MOVE_COST): New.
16399 (TARGET_MEMORY_MOVE_COST): New.
16400 * config/mn10300/mn10300-protos.h: Update.
16401 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16403 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16404 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16405 * config/mn10300/mn10300-protos.h: Update.
16406 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16407 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16408 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16409 (*test_int_bitfield, *test_byte_bitfield): Remove.
16410 (*bit_test, *subreg_bit_test): Remove.
16411 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16413 * config/mn10300/constraints.md ("c"): Rename from "A".
16414 ("A", "D"): New constraint letters.
16415 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16416 (fmssf4, fnmasf4, fnmssf4): Likewise.
16418 * config/mn10300/mn10300.md (isa): New attribute.
16419 (enabled): New attribute.
16421 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16422 (abssf2, negsf2): Define only for hardware fp.
16423 (sqrtsf2): Reformat.
16424 (addsf3, subsf3, mulsf3): Merge expander and insn.
16426 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16427 (DEBUGGER_AUTO_OFFSET): Remove.
16428 (DEBUGGER_ARG_OFFSET): Remove.
16430 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16431 Emit register stores with the same offsets as the hardware.
16432 (mn10300_store_multiple_operation): Don't check that the register
16433 save offsets are monotonic.
16434 * config/mn10300/mn10300-protos.h: Update.
16436 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16438 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16439 in terms of the value on the stack, not the MDR register.
16441 2011-01-11 Jan Hubicka <jh@suse.cz>
16445 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16446 (symbol_alias_set_destroy, symbol_alias_set_contains,
16447 propagate_aliases_backward): Declare.
16448 * lto-streamer-out.c (struct sets): New sturcture.
16449 (trivally_defined_alias): New function.
16450 (output_alias_pair_p): Rewrite.
16451 (output_unreferenced_globals): Fix output of alias pairs.
16452 (produce_symtab): Likewise.
16453 * ipa.c (function_and_variable_visibility): Set weak alias destination
16455 * varasm.c (symbol_alias_set_t): Remove.
16456 (symbol_alias_set_destroy): Export.
16457 (propagate_aliases_forward, propagate_aliases_backward): New functions
16459 (compute_visible_aliases): ... this one; remove.
16460 (trivially_visible_alias): New
16461 (trivially_defined_alias): New.
16462 (remove_unreachable_alias_pairs): Rewrite.
16463 (finish_aliases_1): Reorganize code checking if alias is defined.
16464 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16467 2011-01-11 Richard Guenther <rguenther@suse.de>
16469 PR tree-optimization/46076
16470 * tree-ssa.c (useless_type_conversion_p): Conversions from
16471 unprototyped to empty argument list function types are useless.
16473 2011-01-11 Richard Guenther <rguenther@suse.de>
16475 PR middle-end/45235
16476 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16477 volatile MEMs as MEM_READONLY_P.
16479 2011-01-11 Richard Guenther <rguenther@suse.de>
16481 PR tree-optimization/47239
16482 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16484 2011-01-11 Jeff Law <law@redhat.com>
16486 PR tree-optimization/47086
16487 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16488 IVs from statements that might throw.
16490 2011-01-10 Jan Hubicka <jh@suse.cz>
16493 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16495 2011-01-10 Jan Hubicka <jh@suse.cz>
16498 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16499 when correcting profile.
16501 2011-01-10 Jan Hubicka <jh@suse.cz>
16504 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16505 DECL_FINI_PRIORITY.
16506 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16507 Restore DECL_FINI_PRIORITY.
16509 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16511 * doc/gimple.texi: Fix quoting of multi-word return values in
16512 @deftypefn statements. Ensure presence of return value. Wrap
16513 overlong @deftypefn lines.
16514 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16515 descriptions of removed functions.
16516 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16517 of multi-word return value in @deftypefn statement.
16519 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16521 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16522 (Conditional Expressions, Logical Operators)
16523 (Statement and operand traversals): Do not indent smallexample
16524 code. Fix duplicate function argument in example.
16526 2011-01-10 Jeff Law <law@redhat.com>
16528 PR tree-optimization/47141
16529 * ipa-split.c (split_function): Handle case where we are
16530 returning a value and the return block has a virtual operand phi.
16532 2011-01-10 Jan Hubicka <jh@suse.cz>
16534 PR tree-optimization/47234
16535 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16536 (pass_feedback_split_functions): Declare.
16537 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16539 * ipa-split.c (gate_split_functions): Update comments; disable
16540 split-functions for profile_arc_flag and branch_probabilities.
16541 (gate_feedback_split_functions): New function.
16542 (execute_feedback_split_functions): New function.
16543 (pass_feedback_split_functions): New global var.
16545 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16548 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16549 calling gimple_call_set_cannot_inline.
16551 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16553 * config/darwin-sections.def: Remove unused section.
16555 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16558 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16560 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16563 * c-parser.c (c_parser_declaration_or_fndef): Improved
16566 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16568 * config/i386/winnt.c (i386_pe_start_function): Make sure
16569 to switch back to function's section.
16571 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16575 * plugin.c: Move include of dlfcn.h from here...
16576 * system.h: ... to here.
16578 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16580 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16582 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16583 two extra empty pages in PDF output.
16585 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16588 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16589 for error recovery purposes behave as if it was not specified so
16590 that the default type is usd.
16592 2011-01-07 Jan Hubicka <jh@suse.cz>
16594 PR tree-optmization/46469
16595 * ipa.c (function_and_variable_visibility): Clear needed flags on
16596 nodes with external decls; handle weakrefs merging correctly.
16598 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16600 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16603 2011-01-07 Jan Hubicka <jh@suse.cz>
16605 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16606 and no longer claim that gold is required for linker plugin.
16607 * configure: Regenerate.
16608 * gcc.c (PLUGIN_COND): New macro.
16609 (LINK_COMMAND_SPEC): Use it.
16610 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16611 * config.in (HAVE_LTO_PLUGIN): New.
16612 * configure.ac (--with-lto-plugin): New parameter; autodetect
16615 2011-01-07 Jan Hubicka <jh@suse.cz>
16617 PR tree-optimization/46367
16618 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16619 when we can update original.
16620 (cgraph_mark_inline_edge): Sanity check.
16621 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16623 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16625 * config/spu/spu.h (ASM_COMMENT_START): Define.
16627 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16630 * gcc.c (%>S): New.
16631 (SWITCH_KEEP_FOR_GCC): Likewise.
16632 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16633 (do_spec_1): Handle "%>".
16635 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16637 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16640 * config/i386/i386.c (ix86_delegitimize_address): If
16641 simplify_gen_subreg fails, return orig_x.
16644 * value-prof.c (gimple_stringop_fixed_value): Handle
16645 lhs of the call properly.
16647 2011-01-07 Jan Hubicka <jh@suse.cz>
16650 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16652 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16654 * target.def (function_switched_text_sections): New hook.
16655 * doc/tm.texi: Regenerated.
16656 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16657 * final.c (default_function_switched_text_sections): New.
16658 (final_scan_insn): Call function_switched_text_sections when a
16659 mid-function section change occurs.
16660 * output.h (default_function_switched_text_sections): Declare.
16661 * config/darwin-protos.h (darwin_function_switched_text_sections):
16663 * config/darwin.c (darwin_function_switched_text_sections): New.
16664 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16666 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16668 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16669 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16670 the secondary code fragment when outputting for DWARF == 2.
16672 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16674 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16675 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16677 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16678 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16680 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16683 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16684 when it is not empty.
16686 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16689 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16690 (case ${target}): Add btver1.
16691 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16692 -march=native recognize btver1 processors.
16693 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16694 btver1 def_and_undef
16695 * config/i386/i386.c (struct processor_costs btver1_cost): New
16697 (m_BTVER1): New definition.
16698 (m_AMD_MULTIPLE): Includes m_BTVER1.
16699 (initial_ix86_tune_features): Add btver1 tune.
16700 (processor_target_table): Add btver1 entry.
16701 (static const char *const cpu_names): Add btver1 entry.
16702 (software_prefetching_beneficial_p): Add btver1.
16703 (ix86_option_override_internal): Add btver1 instruction sets.
16704 (ix86_issue_rate): Add btver1.
16705 (ix86_adjust_cost): Add btver1.
16706 * config/i386/i386.h (TARGET_BTVER1): New definition.
16707 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16708 (enum processor_type): Add PROCESSOR_BTVER1.
16709 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16711 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16714 * config/i386/i386.c (legitimize_tls_address)
16715 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16716 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16717 (tls_initial_exec_64_sun): New pattern.
16719 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16721 * doc/invoke.texi (Overall Options): Improve wording and markup
16722 of the description of -wrapper.
16724 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16726 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16727 rdynamic, threads): New Driver options.
16729 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16732 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16733 if coming from .tdata.
16734 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16736 2011-01-06 Jan Hubicka <jh@suse.cz>
16739 * collect2.c (main): Do not enable LTOmode when plugin is active.
16741 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16744 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16745 --version output if supported.
16746 * configure: Regenerate.
16748 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16750 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16753 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16756 * c-convert.c (convert): When converting a complex expression
16757 other than COMPLEX_EXPR to a different complex type, ensure
16758 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16759 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16760 when converting COMPLEX_TYPE.
16762 2011-01-06 Ira Rosen <irar@il.ibm.com>
16764 PR tree-optimization/47139
16765 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16766 only the last reduction value is used outside the loop. Update
16769 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16771 * config/rtems.opt: New.
16772 * config.gcc (*-*-rtems*): Use rtems.opt.
16774 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16776 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16777 processors do not support 3DNow instructions.
16779 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16781 * config/spu/spu.c (spu_option_override): Set parameter
16782 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16784 2011-01-05 Jan Hubicka <jh@suse.cz>
16786 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16787 at the command line.
16789 2011-01-05 Martin Jambor <mjambor@suse.cz>
16792 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16793 deltas on streamed outgoing edges.
16794 (output_node_opt_summary): Output info for outgoing edges only when
16795 the node is in new parameter set.
16796 (output_cgraph_opt_summary): New parameter set, passed to the two
16797 aforementioned functions. Update its forward declaration and its
16800 2011-01-05 Tom Tromey <tromey@redhat.com>
16802 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16803 operator to c_finish_omp_atomic.
16804 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16805 (build_unary_op): Update.
16806 (build_modify_expr): Update.
16807 (build_asm_expr): Update.
16809 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16811 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16812 newly inserted insns.
16813 (pad_bb): Likewise.
16814 (spu_emit_branch_hint): Likewise.
16815 (insert_hbrp_for_ilb_runout): Likewise.
16816 (spu_machine_dependent_reorg): Call df_finish_pass after
16817 schedule_insns returns.
16819 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16821 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16823 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16825 PR tree-optimization/47005
16826 * tree-sra.c (struct access): Add 'non_addressable' bit.
16827 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16828 (decide_one_param_reduction): Return 0 if the parameter is passed by
16829 reference and one of the accesses in the group is non_addressable.
16831 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16833 PR tree-optimization/47056
16834 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16835 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16836 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16838 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16840 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16841 initializer. Skip view conversions from aggregate types.
16843 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16846 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16848 2011-01-04 Philipp Thomas <pth@suse.de>
16850 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16853 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16855 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16856 on empty epilogue sequences.
16858 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16860 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16861 non-static): New Driver options.
16863 2011-01-04 Jie Zhang <jie@codesourcery.com>
16866 * gcc.c (default_compilers[]): Set combinable field to 0
16867 for all assembly languages.
16869 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16871 * config/mips/loongson3a.md: New file.
16872 * config/mips/mips.md: Include loongson3a.md.
16873 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16876 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16878 PR middle-end/47017
16879 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16880 instead of convert_memory_address_addr_space on the base expression.
16882 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16884 * config/spu/spu.c (spu_option_override): Update error text
16885 for bad -march= / -mtune= values.
16887 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16889 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16890 if branch-hint optimization will be performed.
16892 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16894 PR tree-optimization/47148
16895 * ipa-split.c (split_function): Convert arguments to
16896 DECL_ARG_TYPE if possible.
16898 PR tree-optimization/47155
16899 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16900 when computing uns.
16902 PR rtl-optimization/47157
16903 * combine.c (try_combine): If undobuf.other_insn becomes
16904 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16905 and set *new_direct_jump_p too.
16907 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16909 PR tree-optimization/47021
16910 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16912 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16914 * gcc.c (process_command): Update copyright notice dates.
16915 * gcov.c (print_version): Likewise.
16916 * gcov-dump.c (print_version): Likewise.
16917 * mips-tfile.c (main): Likewise.
16918 * mips-tdump.c (main): Likewise.
16920 2011-01-03 Martin Jambor <mjambor@suse.cz>
16922 PR tree-optimization/46801
16923 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16924 aggregate fields start at byte boundary instead of the bit-field flag.
16926 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16929 * gcc.c (main): Revert revision 168407.
16931 2011-01-03 Martin Jambor <mjambor@suse.cz>
16933 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16935 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16937 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16938 vector optab to expand vector/scalar shift, update gimple to vector.
16940 2011-01-03 Martin Jambor <mjambor@suse.cz>
16942 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16945 2011-01-03 Martin Jambor <mjambor@suse.cz>
16947 PR tree-optimization/46984
16948 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16950 (cgraph_create_indirect_edge): Fixed line length.
16951 (cgraph_indirect_call_info): Declare.
16952 (cgraph_make_edge_direct) Update declaration.
16953 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16954 (cgraph_create_indirect_edge): Use it.
16955 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16957 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16958 the new thunk_delta representation.
16959 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16961 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16962 (ipa_read_indirect_edge_info): Likewise.
16963 * lto-cgraph.c (output_edge_opt_summary): New function.
16964 (output_node_opt_summary): Call it on all outgoing edges.
16965 (input_edge_opt_summary): New function.
16966 (input_node_opt_summary): Call it on all outgoing edges.
16968 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16971 * gcc.c (main): Don't check have_o when settting combine_inputs.
16973 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16975 * regrename.c: Add general comment describing the pass.
16976 (struct du_head): Remove 'length' field.
16977 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16978 (regrename_optimize): Do not sort chains. Rework comments, add others.
16979 Force renaming to the preferred class (if any) in the first pass and do
16980 not consider registers that belong to it in the second pass.
16981 (create_new_chain): Do not set 'length' field.
16982 (scan_rtx_reg): Likewise.
16984 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16986 PR tree-optimization/47140
16987 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16988 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16989 to bit_value_binop.
16991 PR rtl-optimization/47028
16992 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16993 parm_birth_insn instead of at the beginning of first bb.
16995 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16997 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16998 Remove the word "see" before "@pxref".
16999 * doc/rtl.texi: Remove the word "see" before "@pxref".
17001 2011-01-01 Jan Hubicka <jh@suse.cz>
17003 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17006 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17009 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17012 Copyright (C) 2011 Free Software Foundation, Inc.
17014 Copying and distribution of this file, with or without modification,
17015 are permitted in any medium without royalty provided the copyright
17016 notice and this notice are preserved.