1 2011-06-07 Nick Clifton <nickc@redhat.com>
3 * config.gcc: Unify V850 architecture options and add support for
4 newer V850 architectures.
5 * config/v850/t-v850e: Delete.
7 2011-06-07 Richard Guenther <rguenther@suse.de>
9 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
10 Call set_sizetype from here.
12 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
14 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
15 (*maddhisi4tb, *maddhisi4tt): New define_insns.
17 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
18 Andrew Stubbs <ams@codesourcery.com>
20 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
22 * doc/md.texi (Canonicalization of Instructions): Document widening
23 multiply canonicalization.
25 2011-06-07 Jakub Jelinek <jakub@redhat.com>
28 * value-prof.c (gimple_ic): Don't assume icall has
31 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
33 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
35 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
36 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
37 vect_recog_pow_pattern): Likewise.
38 (vect_pattern_recog_1): Remove declaration.
39 (widened_name_p): Remove declaration. Add new argument to specify
40 whether to check that both types are either signed or unsigned.
41 (vect_recog_widen_mult_pattern): Update documentation. Handle
42 unsigned patterns and multiplication by constants.
43 (vect_pattern_recog_1): Update vect_recog_func references. Use
44 statement information from the statement returned from pattern
46 (vect_pattern_recog): Update vect_recog_func reference.
47 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
48 multiplication by a constant use the type of the other operand.
50 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
52 PR rtl-optimization/49145
53 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
55 2011-06-06 Jakub Jelinek <jakub@redhat.com>
58 * dwarf2out.c (native_encode_initializer): Decrement count in each
62 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
66 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
67 if stmt folded into nothing.
68 * tree-inline.c (fold_marked_statements): If a builtin at the
69 end of a bb folded into nothing, just update cgraph edges
71 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
72 to be NULL. Don't compute count and frequency if new_call is NULL.
74 2011-06-04 Diego Novillo <dnovillo@google.com>
76 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
78 (cgraphunit.o): Likewise.
79 * cgraphunit.c: Include lto-streamer.h
80 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
82 * lto-streamer-in.c (unpack_value_fields): Call
83 streamer_hooks.unpack_value_fields if set.
84 (lto_materialize_tree): For unhandled nodes, first try to
85 call lto_streamer_hooks.alloc_tree, if it exists.
86 (lto_input_ts_decl_common_tree_pointers): Move reading of
87 DECL_INITIAL to lto_streamer_read_tree.
88 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
89 (lto_streamer_read_tree): New.
90 (lto_reader_init): Rename from lto_init_reader.
91 Move initialization code to lto/lto.c.
92 * lto-streamer-out.c (pack_value_fields): Call
93 streamer_hooks.pack_value_fields if set.
94 (lto_output_tree_ref): For tree nodes that are not
95 normally indexable, call streamer_hooks.indexable_with_decls_p
97 (lto_output_ts_decl_common_tree_pointers): Move handling
98 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
99 lto_streamer_write_tree.
100 (lto_output_tree_header): Call streamer_hooks.is_streamable
101 instead of lto_is_streamable.
102 Call lto_streamer_hooks.output_tree_header if set.
103 (lto_write_tree): Call lto_streamer_hooks.write_tree if
105 (lto_streamer_write_tree): New.
106 (lto_output): Call lto_streamer_init directly.
107 (lto_writer_init): Remove.
108 * lto-streamer.c (streamer_hooks): New.
109 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
110 instead of lto_preload_common_nodes.
111 (lto_is_streamable): Move from lto-streamer.h
112 (lto_streamer_hooks_init): New.
113 (streamer_hooks): New.
114 (streamer_hooks_init): New.
115 * lto-streamer.h (struct output_block): Forward declare.
116 (struct lto_input_block): Likewise.
117 (struct data_in): Likewise.
118 (struct bitpack_d): Likewise.
119 (struct streamer_hooks): Declare.
120 (streamer_hooks): Declare.
121 (lto_streamer_hooks_init): Declare.
122 (lto_streamer_write_tree): Declare.
123 (lto_streamer_read_tree): Declare.
124 (streamer_hooks_init): Declare.
125 (lto_is_streamable): Move to lto-streamer.c
127 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
129 * longlong.h (smul_ppmm): The resulting register pair contains the
130 higher order word first.
132 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
134 PR tree-optimization/46728
135 * builtins.c (powi_table): Remove.
136 (powi_lookup_cost): Remove.
138 (expand_powi_1): Remove.
139 (expand_powi): Remove.
140 (expand_builtin_pow_root): Remove.
141 (expand_builtin_pow): Remove.
142 (expand_builtin_powi): Eliminate handling of constant exponent.
143 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
145 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
147 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
149 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
151 * dce.c (reset_unmarked_insns_debug_uses): New.
152 (delete_unmarked_insns): Skip debug insns.
153 (prescan_insns_for_dce): Likewise.
154 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
155 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
156 active reg can be found.
157 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
158 (convert_regs_1): Use it.
160 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
162 * tree-pretty-print.c (dump_function_header): Add flags.
163 Don't dump decl_uid with nouid.
164 * tree-pretty-print.h (dump_function_header): Adjust.
165 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
166 * passes.c (pass_init_dump_file): Pass dump_flags on.
167 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
169 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
172 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
174 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
176 PR tree-optimization/49243
177 * calls.c (setjmp_call_p): Also check if fndecl has the
178 returns_twice attribute.
180 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
182 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
185 2011-06-06 Richard Henderson <rth@redhat.com>
186 Georg-Johann Lay <avr@gjlay.de>
189 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
191 * config/avr/avr.md ("insv"): New insn expander.
192 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
193 "*insv.not.io", "*insv.reg"): New insns.
195 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
198 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
199 predicate to nonimmediate_operand from memory_operand for the
200 operand that is to be forced to memory by the expander. Lose
203 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
205 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
206 EH return when delayed branches are disabled.
208 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
210 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
211 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
213 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
214 Simplify MODE_V1DF and MODE_V2SF handling.
215 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
216 Simplify MODE_SF handling.
218 2011-06-04 Jan Hubicka <jh@suse.cz>
220 PR tree-optimization/48893
221 PR tree-optimization/49091
222 PR tree-optimization/49179
223 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
226 2011-06-04 Jan Hubicka <jh@suse.cz>
229 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
231 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
233 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
235 2011-06-04 Jakub Jelinek <jakub@redhat.com>
238 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
239 to be strictly smaller than 1 << shiftcount.
241 2011-06-04 Jan Hubicka <jh@suse.cz>
243 PR tree-optimize/48929
244 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
247 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
250 * calls.c (emit_call_1): Prefer the __builtin declaration of
253 2011-06-03 Diego Novillo <dnovillo@google.com>
255 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
256 (lto_input_tree_pointers): Likewise.
257 * lto-streamer-out.c (pack_value_fields): Likewise.
258 (lto_output_tree_pointers): Likewise.
259 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
260 and OPTIMIZATION_NODE.
262 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
264 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
265 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
266 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
267 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
268 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
269 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
270 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
271 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
272 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
273 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
274 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
275 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
276 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
277 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
278 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
279 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
280 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
281 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
282 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
283 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
284 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
285 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
286 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
287 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
288 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
289 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
290 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
291 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
292 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
293 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
294 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
295 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
296 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
297 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
298 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
299 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
300 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
301 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
302 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
303 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
304 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
305 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
306 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
307 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
308 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
309 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
310 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
311 * system.h (MD_UNWIND_SUPPORT): Poison.
312 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
313 * doc/tm.texi: Regenerate.
314 * unwind-dw2.c: Include md-unwind-support.h instead of
316 * config/ia64/unwind-ia64.c: Likewise.
317 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
319 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
321 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
323 2011-06-03 Richard Henderson <rth@redhat.com>
324 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
327 (sigill_hdlr): Correct insn, insn size.
328 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
330 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
332 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
334 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
335 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
336 * config/mips/t-iris: Remove.
337 * config/mips/t-irix6: New file.
338 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
340 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
342 * Makefile.in (LIB2ADDEHDEP): Remove.
343 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
344 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
345 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
346 * config/t-darwin (LIB2ADDEHDEP): Remove.
347 * config/t-freebsd (LIB2ADDEHDEP): Remove.
348 * config/t-linux (LIB2ADDEHDEP): Remove.
350 2011-06-03 Diego Novillo <dnovillo@google.com>
352 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
353 (lto_register_var_decl_in_symtab): Likewise.
354 (lto_register_function_decl_in_symtab): Likewise.
355 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
356 logic to uniquify_nodes.
358 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
360 * config/alpha/t-osf5: Remove.
361 * config/alpha/t-osf-pthread: Remove.
362 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
363 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
365 2011-06-03 Julian Brown <julian@codesourcery.com>
367 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
368 (strongarm1110): Use strongarm tuning.
369 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
370 * config/arm/arm.c (arm_strongarm_tune): New.
371 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
372 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
373 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
374 setting, using previous defaults or 1 for Cortex-A5.
375 (arm_option_override): Set max_insns_skipped from current tuning.
377 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
379 * doc/install.texi (Options specification): Document --with-specs.
381 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
383 * config/arm/neon.md (orndi3_neon): Actually split it.
385 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
387 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
388 * var-tracking.c (reverse_op): Limite recurse depth to 5.
390 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
393 * target.def (delay_sched2, delay_vartrack): New.
394 * doc/tm.texi.in: Update.
395 * doc/tm.texi: Rebuild.
396 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
397 * var-tracking.c (gate_handle_var_tracking): Likewise.
398 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
399 (bfin_flag_var_tracking): Drop.
400 (output_file_start): Don't save and override flag_var_tracking.
401 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
402 (bfin_reorg): Test original variables.
403 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
404 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
405 (ia64_flag_var_tracking): Drop.
406 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
407 (ia64_file_start): Don't save and override flag_var_tracking.
408 (ia64_override_options_after_change): Ditto
409 flag_schedule_insns_after_reload.
410 (ia64_reorg): Test original variables.
411 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
412 (picochip_flag_var_tracking): Drop.
413 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
414 (picochip_option_override): Don't save and override
415 flag_schedule_insns_after_reload.
416 (picochip_asm_file_start): Ditto flag_var_tracking.
417 (picochip_reorg): Test original variables.
418 * config/spu/spu.c (spu_flag_var_tracking): Drop.
419 (TARGET_DELAY_VARTRACK): Define.
420 (spu_var_tracking): New.
421 (spu_machine_dependent_reorg): Call it.
422 (asm_file_start): Don't save and override flag_var_tracking.
424 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
427 * config/sh/predicates.md (general_movsrc_operand): Return 0
428 for memory and memory subreg of which address is an invalid
429 indexed address for QI and HImode.
430 (general_movdst_operand): Likewise.
432 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
434 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
435 edges only, when there is a non-local label in the function.
436 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
438 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
440 * config/i386/constraints.md (Y3): New register constraint.
441 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
442 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
443 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
444 *sse2_interleave_lowv2df.
446 2011-06-02 Julian Brown <julian@codesourcery.com>
448 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
449 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
450 (arm_cortex_a5_tune): New.
452 2011-06-02 Julian Brown <julian@codesourcery.com>
454 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
455 * config/arm/arm.c (arm_default_branch_cost): New.
456 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
457 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
458 (arm_fa726_tune): Set branch_cost field using
459 arm_default_branch_cost.
460 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
461 current_tune structure.
462 * dojump.c (tm_p.h): Include file.
464 2011-06-02 Julian Brown <julian@codesourcery.com>
466 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
468 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
469 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
470 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
472 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
473 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
474 (arm_fa726te_tune): Add prefer_constant_pool setting.
475 (arm_v6t2_tune, arm_cortex_tune): New.
476 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
477 prefer_constant_pool setting.
479 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
481 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
483 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
484 (*movdf_internal) <case 6,7,8>: Ditto.
486 * config/i386/constraints.md (Y4): New register constraint.
487 * config/i386/sse.md (vec_set<mode>_0): Merge with
488 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
489 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
490 *vec_extractv2di_1_sse.
491 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
492 and *vec_concatv2di_rex64_sse.
494 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
497 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
498 of cgraph_local_info for null before attempting to use it.
500 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
502 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
503 (current_function_dynamic_alloc_count): Delete.
504 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
505 (expand_builtin_nonlocal_goto): Remove obsolete comment.
506 (expand_builtin_update_setjmp_buf): Remove dead code.
507 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
508 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
510 * function.c (instantiate_virtual_regs): Likewise.
511 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
512 for a block with a single abnormal incoming edge.
513 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
514 (SETJMP_VIA_SAVE_AREA): Delete.
515 * config/sparc/sparc-protos.h (load_got_register): Declare.
516 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
517 (load_got_register): Make global.
518 (sparc_frame_pointer_required): Add 'static'.
519 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
520 (sparc_builtin_setjmp_frame_value): New function.
521 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
522 (save_stack_nonlocal): New expander.
523 (restore_stack_nonlocal): Likewise.
524 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
525 (nonlocal_goto_internal): New insn.
526 (goto_handler_and_restore): Delete.
527 (builtin_setjmp_setup): Likewise.
528 (do_builtin_setjmp_setup): Likewise.
530 (builtin_setjmp_receiver): New expander.
532 2011-06-01 David Li <davidxl@google.com>
535 * tree-pretty-print.c (dump_function_header): Format cleanup.
537 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
540 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
541 needed when original operands are used for msw_skip comparison.
543 2011-06-01 Jakub Jelinek <jakub@redhat.com>
546 * var-tracking.c (add_uses, add_stores): Don't call
547 cselib_subst_to_values on ENTRY_VALUE.
549 2011-06-01 Diego Novillo <dnovillo@google.com>
551 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
552 output_record_start with LTO_null instead of output_zero.
553 (lto_output_ts_binfo_tree_pointers): Likewise.
554 (lto_output_tree): Likewise.
555 (output_eh_try_list): Likewise.
556 (output_eh_region): Likewise.
557 (output_eh_lp): Likewise.
558 (output_eh_regions): Likewise.
559 (output_bb): Likewise.
560 (output_function): Likewise.
561 (output_unreferenced_globals): Likewise.
562 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
563 instead of NUM_TREE_CODES.
564 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
565 (lto_output_int_in_range): Change << to >> when shifting VAL.
567 2011-06-01 Diego Novillo <dnovillo@google.com>
569 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
570 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
572 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
575 * optabs.h (valid_multiword_target_p): Declare.
576 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
577 doing multi-word operations.
578 * optabs.c (expand_binop): Likewise.
579 (expand_doubleword_bswap): Likewise.
580 (expand_absneg_bit): Likewise.
581 (expand_unop): Likewise.
582 (expand_copysign_bit): Likewise.
583 (multiword_target_p): New function.
585 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
587 PR rtl-optimization/48830
588 PR rtl-optimization/48808
589 PR rtl-optimization/48792
590 * reload.c (push_reload): Check contains_reg_of_mode.
591 * reload1.c (strip_paradoxical_subreg): New function.
592 (gen_reload_chain_without_interm_reg_p): Use it to handle
594 (emit_output_reload_insns, gen_reload): Likewise.
596 2011-06-01 David Li <davidxl@google.com>
598 * predict.c : Change pass name
601 * tree-profile.c: Ditto.
604 2011-06-01 David Li <davidxl@google.com>
606 * tree-pretty-print.c (dump_function_header): New function.
607 * final.c (rest_of_clean_state): Use header dumper.
608 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
609 * passes.c (pass_init_dump_file): Use header dumper.
611 2011-06-01 Jakub Jelinek <jakub@redhat.com>
613 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
614 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
615 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
617 (mem_loc_descriptor): Use them.
619 * var-tracking.c (create_entry_value): New function.
620 (vt_add_function_parameter): Use it.
622 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
624 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
625 Include <signal.h>, <ucontext.h>.
626 (sigill_caught): Define.
627 (sigill_hdlr): New function.
628 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
629 insns can be executed.
630 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
631 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
633 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
635 * config/t-slibgcc-darwin: Move to ...
636 * config/t-slibgcc-dummy: ... this. Clarify comments.
637 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
638 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
639 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
640 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
641 Remove i386/t-crtstuff from tmake_file.
642 (i[34567]86-*-solaris2*): Remove t-svr4,
643 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
645 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
646 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
647 sparc/t-crtfm from tmake_file.
648 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
649 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
651 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
652 * config/i386/t-nwld (SHLIB_LINK): Remove.
653 * config/i386/t-rtems-i386: Rename to ...
654 * config/i386/t-rtems: ... this.
655 ($(T)crti.o, $(T)crtn.o): Remove.
656 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
657 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
658 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
659 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
660 EXTRA_MULTILIB_PARTS): Remove.
661 * config/sparc/t-sol2-64: Likewise.
662 * config/sparc/t-sol2: Remove.
663 * config/sparc/t-crtin: Remove.
664 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
665 * config/i386/gmon-sol2.c: Remove.
666 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
667 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
668 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
669 * config/i386/sol2-gc1.asm: Remove.
670 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
671 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
672 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
673 * config/t-slibgcc-sld: Remove.
675 2011-06-01 Jakub Jelinek <jakub@redhat.com>
677 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
678 base_type_for_mode with op_mode instead of mode.
680 2011-06-01 Paul Brook <paul@cpodesourcery.com>
682 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
684 * config/arm/arm-tune.md: Regenerate.
685 * config/arm/arm-tables.opt: Regenerate.
686 * config/arm/arm.c (FL_DIV): Rename...
687 (FL_THUMB_DIV): ... to this.
688 (FL_ARM_DIV): Define.
689 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
690 (arm_arch_hwdiv): Remove.
691 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
692 (arm_issue_rate): Add cortexr5.
693 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
694 __ARM_ARCH_EXT_IDIV__.
695 (TARGET_IDIV): Define.
696 (arm_arch_hwdiv): Remove.
697 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
698 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
699 (divsi3, udivsi3): New patterns.
700 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
701 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
703 2011-06-01 Martin Jambor <mjambor@suse.cz>
705 * ipa-utils.c (ipa_dfs_info): New field scc_no.
706 * ipa-utils.c (searchc): Set scc_no.
708 2011-06-01 Martin Jambor <mjambor@suse.cz>
710 * ipa-utils.c (searchc_env): New field allow_overwritable.
711 (searchc): do not ignore edges to overwritable nodes if indicated
712 by env->allow_overwritable.
713 (ipa_reduced_postorder): Set env.allow_overwritable.
715 2011-06-01 Richard Guenther <rguenther@suse.de>
717 * tree.c (free_lang_data): Do not reset boolean_type_node nor
719 * lto-streamer.c (lto_record_common_node): Take node pointer,
720 do not register types.
721 (lto_preload_common_nodes): Explicitly skip preloading nodes
722 that differ between frontends.
724 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
726 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
729 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
731 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
732 parameter value for dump. Dump cost on outermost call only.
733 (rs6000_memory_move_cost): Dump cost on outermost call only.
735 2011-05-31 Jakub Jelinek <jakub@redhat.com>
737 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
738 DW_OP_GNU_convert ops.
740 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
741 cselib_preserve_constants.
742 (cselib_lookup_1): If cselib_preserve_constants,
743 a new VALUE is being created for REG and there is a VALUE for the
744 same register in wider mode, add another loc with lowpart SUBREG of
746 (cselib_subst_to_values): Handle ENTRY_VALUE.
747 * var-tracking.c (replace_expr_with_values): Return NULL for
749 * dwarf2out.c (convert_descriptor_to_signed): New function.
750 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
751 instead of two shifts.
752 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
753 the right mode if needed.
754 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
755 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
756 convert_descriptor_to_signed.
757 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
758 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
761 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
763 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
765 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
766 of X87MODEI12 and SWI48x instead of SSEMODEI24.
767 (SWI248x): New mode iterator, rename from X87MODEI.
768 (X87MODEI): Remove mode iterator.
772 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
774 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
775 * doc/invoke.texi: Document max-vartrack-expr-depth.
776 * var-tracking.c (EXPR_DEPTH): New.
777 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
779 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
781 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
782 * config/i386/sse.md: Add n to negated FMA pattern names.
784 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
786 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
788 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
790 * gengtype-state.c (read_state_params_structs): Initialize previous.
792 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
794 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
795 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
797 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
799 * config/i386/i386.md (*movtf_internal): Avoid allocating general
800 registers. Penalize F*r->o alternative to prevent partial memory
801 stalls. Slightly penalize *roF->*r alternative. Generate SSE
802 CONST_DOUBLE immediates when optimizing function for size. Do not move
803 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
804 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
805 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
806 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
808 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
810 (fp_register_operand splitters): Use fp_register_operand
811 constraint. Do not use FP_REG_P in insn condition.
812 (any_fp_register_operand splitters): Use any_fp_register_operand
813 constraint. Do not use ANY_FP_REG_P in insn condition.
815 2011-05-31 Jan Hubicka <jh@suse.cz>
817 * cgraph.h (cgraph_inline_failed_t): Give enum a name
818 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
819 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
820 (lto_output_edge): Use output_enum and var_len_unsigned.
821 (lto_output_varpool_node): Likewise.
822 (input_overwrite_node): Do not take resolution parameter;
823 extract it from a bitpack.
824 (input_node): Do not read resolution; use input_enum and
826 (input_varpool_node): Likewise.
827 (input_edge): Likewise.
828 (input_cgraph_1): Likewise.
830 2011-05-31 Richard Guenther <rguenther@suse.de>
832 * gimple.c (gimple_register_canonical_type): Do not register
833 any types via gimple_register_type.
835 2011-05-31 Jan Hubicka <jh@suse.cz>
837 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
840 2011-05-31 Jakub Jelinek <jakub@redhat.com>
842 PR rtl-optimization/49235
843 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
844 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
846 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
848 PR tree-optimization/49093
849 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
852 2011-05-31 Dodji Seketeli <dodji@redhat.com>
855 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
856 for concrete functions containing the code of cloned functions.
858 2011-05-31 Richard Guenther <rguenther@suse.de>
860 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
862 (forward_propagate_into_comparison_1): ... this.
863 (forward_propagate_comparison): Rename to ...
864 (forward_propagate_into_comparison): ... this. Split out
865 real forward propagation code to ...
866 (forward_propagate_comparison): ... this.
867 (forward_propagate_into_gimple_cond): Remove looping.
868 (forward_propagate_into_cond): Likewise.
869 (simplify_not_neg_expr): Return whether we have done something.
870 (simplify_gimple_switch): Likewise.
871 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
872 (ssa_forward_propagate_and_combine): ... this. Re-structure
873 to do a forward forward-propagation walk on BBs and a backward
874 stmt combining walk on BBs. Consistently re-scan changed statements.
875 (pass_forwprop): Adjust.
877 2011-05-30 Ian Lance Taylor <iant@google.com>
879 * godump.c (go_format_type): Correct length of name added to
880 obstack for anonymous field.
882 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
885 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
886 part of the second operand is 0.
888 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
890 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
891 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
892 to memory for !TARGET_MEMORY_MISMATCH_STALL.
893 (*movdf_internal_rex64): Do not penalize F->r alternative.
894 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
895 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
896 when optimizing function for size. Do not move CONST_DOUBLEs
897 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
898 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
899 SUBREGs. Do not check for MEM_P operands in the insn condition,
900 check for ANY_FP_REGNO_P instead.
901 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
902 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
904 * config/i386/i386.c (ix86_option_override_internal): Do not
905 set TARGET_INTEGER_DFMODE_MOVES here.
907 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
910 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
912 2011-05-30 Jakub Jelinek <jakub@redhat.com>
914 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
915 DW_TAG_rvalue_reference_type even for
916 -gdwarf-4 -fno-debug-types-section.
918 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
920 PR tree-optimization/46728
921 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
922 (build_and_insert_binop): New.
923 (gimple_expand_builtin_pow): Reorder args for
924 build_and_insert_call; use build_and_insert_binop; add more
925 optimizations for fractional exponents.
927 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
932 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
934 * tree.h (struct tree_identifier): Inherit from tree_typed, not
936 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
937 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
938 TS_BASE instead of TS_COMMON.
939 * varasm.c (assemble_name): Remove assert.
941 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
943 * config.gcc: Keep obselete list sorted.
945 2011-05-30 Jakub Jelinek <jakub@redhat.com>
946 Eric Botcazou <ebotcazou@adacore.com>
948 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
949 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
950 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
951 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
952 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
954 2011-05-30 Richard Guenther <rguenther@suse.de>
956 * gimple.c (gimple_types_compatible_p_1): Compare record
957 and union type members properly.
959 2011-05-30 Richard Guenther <rguenther@suse.de>
961 PR tree-optimization/49210
962 * ipa-split.c (split_function): Care for the case where the call
963 result is not trivially convertible to the result holding variable.
965 2011-05-30 Richard Guenther <rguenther@suse.de>
967 PR tree-optimization/49218
968 * tree-vrp.c (adjust_range_with_scev): Properly check whether
971 2011-05-30 Richard Guenther <rguenther@suse.de>
973 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
974 New function split out from ...
975 (forward_propagate_into_gimple_cond): ... here. Adjust.
976 (forward_propagate_into_cond): Likewise.
977 (forward_propagate_comparison): Also propagate into
978 comparisons on assignment RHS. Change return value to
979 behave similar to forward_propagate_into_cond.
980 (tree_ssa_forward_propagate_single_use_vars): Handle
981 strict-overflow warnings properly for forward_propagate_comparison.
983 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
985 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
987 * configure: Regenerate.
989 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
991 PR tree-optimization/49199
992 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
993 non-reduction operands are either defined in the loop or by induction.
995 2011-05-29 Xinliang David Li <davidxl@google.com>
997 * opts-global.c (handle_common_deferred_options): Handle new options.
998 * passes.c (register_one_dump_file): Call register_pass_name.
999 (execute_one_pass): Check explicit enable/disable flag.
1000 (passr_hash): New function.
1002 (register_pass_name): Ditto.
1003 (get_pass_by_name): Ditto.
1006 (enable_pass): Ditto.
1007 (disable_pass): Ditto.
1008 (is_pass_explicitly_enabled_or_disabled): Ditto.
1010 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1012 * config/i386/i386.md (*movoi_internal_avx): Use
1013 standard_sse_constant_opcode for alternative 0.
1014 (*movti_internal_sse): Ditto.
1015 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1017 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1019 (*movsi_internal): Ditto.
1020 (*movdi_internal): Ditto. Add ssecvt type moves.
1022 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1025 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1027 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1029 PR rtl-optimization/49095
1030 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1031 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1033 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1036 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1037 recurse_p argument. Only follow register copies if it is set,
1038 and prevent mips_find_pic_call_symbol from recursing.
1039 (mips_find_pic_call_symbol): Add a recurse_p argument.
1040 Pass it to mips_pic_call_symbol_from_set.
1041 (mips_annotate_pic_calls): Update accordingly.
1043 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1045 * emit-rtl.c (try_split): Use a loop to search for
1046 NOTE_INSN_CALL_ARG_LOCATIONs.
1048 2011-05-29 Richard Guenther <rguenther@suse.de>
1050 PR tree-optimization/49217
1051 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1053 2011-05-28 Jan Hubicka <jh@suse.cz>
1055 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1057 (string_slot_free): Remove
1058 (create_output_block): Initialize obstack.
1059 (destroy_output_block): Free obstack.
1060 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1061 the string unless it needs to be added into the hash.
1062 (lto_output_string_with_length): Add persistent attribute;
1063 handle NULL strings.
1064 (lto_output_string): Add PERSISTENT parameter.
1065 (output_string_cst, output_identifier): Simplify.
1066 (lto_output_location_bitpack): Update.
1067 (lto_output_builtin_tree): Update.
1068 * lto-streamer.h (struct output_block): Add obstack.
1069 (lto_output_string, lto_output_string_with_length): Remove
1070 declarations; functions are static now.
1072 2011-05-28 Jan Hubicka <jh@suse.cz>
1074 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1075 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1076 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1077 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1078 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1079 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1080 unpack_ts_decl_with_vis_value_fields,
1081 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1082 lto_get_builtin_tree): Use enum and variable length i/o.
1083 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1084 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1086 (bp_pack_enum, bp_unpack_enum): New macros.
1088 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1090 * genrecog.c: Remove redundant forward declarations.
1092 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1094 * config.gcc: Deprecate mips*-*-openbsd*.
1096 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1099 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1102 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1105 * gengtype.c (vec_prefix_type): New function.
1106 (note_def_vec): Use vec_prefix_type and change the length
1107 attribute to be based on the prefix.
1108 * vec.c: Include coretypes.h before vec.h.
1109 (struct vec_prefix): Remove.
1110 (vec_gc_p_reserve): Change the offsetof to sizeof.
1111 (vec_gc_p_reserve_exact): Likewise.
1112 (vec_heap_p_reserve): Likewise.
1113 (vec_heap_p_reserve_exact): Likewise.
1114 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1115 (vec_stack_p_reserve): Change the offsetof to sizeof.
1116 (vec_stack_p_reserve_exact): Likewise.
1117 * vec.h (struct vec_prefix): New struct definition.
1118 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1119 (VEC_T_GTY(T,B)): Likewise.
1120 (DEF_VEC_FUNC_P(T)): Use prefix field.
1121 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1122 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1124 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1126 PR tree-optimization/46728
1127 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1128 (powi_as_mults): Add gimple_set_location.
1129 (build_and_insert_call): New.
1130 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1131 0.5, 0.25, 0.75, 1./3., or 1./6.
1133 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1135 * doc/contrib.texi: Update copyright years.
1136 (Contributors): Add Zdenek Sojka.
1138 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1140 * c-decl.c (c_push_function_context): Copy the current statement
1142 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1143 (finish_struct): Call building_stmt_list_p instead of checking
1145 * c-parser.c (c_parser_postfix_expression): Likewise.
1146 * c-typeck.c (c_end_compound_stmt): Likewise.
1147 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1148 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1149 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1150 (free_stmt_list): Likewise.
1151 * tree.h (struct tree_statement_list): Include typed_tree instead
1153 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1154 as TS_TYPED instead of TS_COMMON.
1156 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1157 Uros Bizjak <ubizjak@gmail.com>
1159 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1160 (HAVE_AS_IX86_TLSGDPTL): Define.
1161 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1162 (HAVE_AS_IX86_TLSLDMPLT): Define.
1163 * configure: Regenerate.
1164 * config.in: Regenerate.
1165 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1166 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1167 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1168 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1169 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1171 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1173 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1175 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1177 (INSN_COND, INSN_REVERSE_COND): New macros.
1178 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1180 (sched_get_condition_with_rev): Cache the results, and look them up
1182 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1183 are clobbered by the current insn.
1184 * target.def (exposed_pipline): New sched data hook.
1185 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1186 * doc/tm.texi: Regenerate.
1188 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1190 PR tree-optimization/49170
1191 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1194 2011-05-27 Richard Guenther <rguenther@suse.de>
1197 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1200 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1202 * haifa-sched.c (sched_scan_info): Remove.
1203 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1205 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1207 (sched_scan): Remove.
1208 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1209 static. All callers changed.
1210 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1211 static. All callers changed.
1212 (sched_init_luids): Remove all arguments except the first. All
1213 callers changed. Don't use sched_scan.
1214 (haifa_init_h_i_d): Likewise.
1215 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1216 manually rather than using sched_init_luids. Likewise with
1217 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1218 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1219 rather than sched_init_luids with NULL args.
1220 * sel-sched-ir.c (new_insns): Remove variable.
1221 (sched_scan): New static function, previously in haifa-sched.c. Remove
1222 all arguments but the first two; all callers changed.
1223 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1224 rather than sched_init_luids.
1225 (sel_init_bbs): Remove second argument. All callers changed.
1226 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1227 with NULL arguments.
1228 (create_insn_rtx_from_pattern): Likewise.
1229 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1230 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1231 (sched_init_insn_luid, sched_extend_luids): Declare.
1232 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1235 2011-05-27 Richard Guenther <rguenther@suse.de>
1238 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1239 A CMP B ? (T) true : (T) false for non-integral types T again.
1241 2011-05-27 Jan Hubicka <jh@suse.cz>
1243 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1244 so 0 means NULL string.
1245 (lto_output_string_with_length): ... here.
1246 (lto_output_string, output_string_cst, output_identifier): Update
1247 handling of NULL strings.
1248 (lto_output_location_bitpack): New function.
1249 (lto_output_location): Use it.
1250 (lto_output_tree_ref): Use output_record_start.
1251 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1253 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1255 (input_string_internal): ... here;
1256 (input_string_cst, input_identifier, lto_input_string): Update handling
1258 (lto_input_location_bitpack): New function
1259 (lto_input_location): Use it.
1260 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1262 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1263 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1264 (bp_pack_value): Sanity check the value range.
1265 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1267 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1270 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1272 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1273 call_arg_location instructions down the floor.
1275 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1277 PR rtl-optimization/49154
1278 * ira.c (setup_pressure_classes): Process class without sublcasses
1279 as a candidate for pressure classes.
1281 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1283 PR rtl-optimization/48575
1284 * genrecog.c (position_type): New enum.
1285 (position): New structure.
1286 (decision): Use position structure instead of a string.
1287 (root_pos, peep2_insn_pos_list): New variables.
1288 (next_position, compare_positions): New functions.
1289 (new_decision): Use position structures instead of strings.
1290 (maybe_both_true): Likewise.
1291 (change_state): Likewise.
1292 (write_tree): Likewise.
1293 (make_insn_sequence): Likewise.
1295 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1297 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1298 TS_BASE instead of TS_COMMON.
1299 (find_decls_types_r): Check for TS_TYPED structure before looking at
1301 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1303 (BLOCK_CHAIN): Use new chain field.
1305 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1307 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1308 moves expensive on Power7 also.
1310 2011-05-26 Richard Guenther <rguenther@suse.de>
1312 * fold-const.c (fold_unary_loc): Remove bogus code.
1314 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1316 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1318 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1319 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1320 TS_BASE instead of TS_COMMON.
1321 * varasm.c (assemble_name): Remove assert.
1323 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1325 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1327 * libgcc-std.ver: Delete file.
1329 2011-05-26 Richard Guenther <rguenther@suse.de>
1331 PR tree-optimization/48702
1332 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1333 only when we know the base address is within bounds.
1334 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1335 assume the base address of TARGET_MEM_REFs is in bounds.
1337 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1340 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1341 declaration in TARGET_SOLARIS.
1343 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1345 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1346 The instruction is then expanded explicitly.
1347 (supported_compare): Callable instruction.
1348 (compare): Likewise.
1350 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1353 * gimplify.c (shortcut_cond_r): Don't special case
1354 COND_EXPRs if they have void type on one of their arms.
1356 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1358 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1359 to reduce duplication, and to achieve a slightly more logical order
1362 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1364 PR tree-optimization/49161
1365 * tree-vrp.c (struct case_info): New type.
1366 (compare_case_labels): Sort case_info structs instead of
1367 trees, and not primarily by CASE_LABEL uids but by
1368 label_for_block indexes.
1369 (find_switch_asserts): Put case labels into struct case_info
1370 array instead of TREE_VEC, adjust sorting, compare label_for_block
1371 values instead of CASE_LABELs.
1373 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1375 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1376 ("orndi3_neon"): Likewise.
1377 ("bic<mode>3_neon"): Likewise.
1379 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1381 PR tree-optimization/49038
1382 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1383 Ensure at least one epilogue iteration if required by data
1385 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1386 to mark loops that require peeling for gaps.
1387 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1388 (vect_get_known_peeling_cost): Take peeling for gaps into
1390 (vect_transform_loop): Generate epilogue if required by data
1392 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1393 loop as requiring an epilogue if there are gaps in the end of
1396 2011-05-25 Ian Lance Taylor <iant@google.com>
1398 * godump.c (go_format_type): Output the first field with a usable
1401 2011-05-25 Ian Lance Taylor <iant@google.com>
1403 * godump.c (go_format_type): Check for invalid type names, pointer
1404 target types, and struct field types.
1406 2011-05-25 Jason Merrill <jason@redhat.com>
1408 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1410 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1412 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1414 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1416 * config/i386/i386.md (*movqi_extv_1)): Put back
1417 "register_operand" check in "type" calculation.
1418 (*movqi_extzv_2): Likewise.
1420 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1422 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1424 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1427 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1428 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1429 __divxc3, __divtc3): Wrap definitions in #ifndef.
1431 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1434 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1435 "register_operand" check and replace q_regs_operand with
1436 QIreg_operand in "type" calculation.
1437 (*movqi_extv_1): Likewise.
1438 (*movqi_extzv_2_rex64): Likewise.
1439 (*movqi_extzv_2): Likewise.
1441 * config/i386/predicates.md (QIreg_operand): New.
1443 2011-05-25 Richard Guenther <rguenther@suse.de>
1445 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1446 type-based offset disambiguation, streamline MEM_REF and
1447 TARGET_MEM_REF handling.
1449 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1451 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1452 (bdesc_special_args): Add pause intrinsic.
1454 * config/i386/i386.md (UNSPEC_PAUSE): New.
1457 * config/i386/ia32intrin.h (__pause): Likewise.
1459 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1462 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1464 PR tree-optimization/46728
1465 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1466 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1468 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1470 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1471 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1472 instead of TS_COMMON.
1474 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1476 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1477 LIBGCC2_GNU_PREFIX is defined.
1479 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1480 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1481 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1482 __clz_tab): Define using __N.
1483 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1484 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1485 * target.def (libfunc_gnu_prefix): New hook.
1486 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1487 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1488 * doc/tm.texi: Regenerate.
1489 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1490 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1492 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1493 (init_optabs): Likewise for the bswap libfuncs.
1494 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1496 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1497 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1498 * libgcc-std.ver: Remove.
1499 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1500 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1502 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1503 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1504 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1505 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1506 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1507 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1508 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1509 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1510 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1511 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1513 2011-05-25 Jan Hubicka <jh@suse.cz>
1515 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1516 (lto_output_tree): Use output_record_start.
1517 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1518 (lto_get_pickled_tree): Use input_record_start.
1519 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1520 (lto_value_range_error): New function.
1521 * lto-streamer.h (lto_value_range_error): Declare.
1522 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1523 (lto_output_enum, lto_input_enum): New macros.
1525 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1527 * common.opt (flag_stack_usage_info): New variable.
1528 (-Wstack-usage): New option.
1529 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1530 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1531 <OPT_fstack_usage>: Likewise.
1532 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1533 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1534 of flag_stack_usage.
1535 (emit_library_call_value_1): Likewise.
1536 * explow.c (allocate_dynamic_stack_space): Likewise.
1537 * function.c (instantiate_virtual_regs ): Likewise.
1538 (prepare_function_start): Likewise.
1539 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1540 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1541 * config/arm/arm.c (arm_expand_prologue): Likewise.
1542 (thumb1_expand_prologue): Likewise.
1543 * config/avr/avr.c (expand_prologue): Likewise.
1544 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1545 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1546 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1547 * config/mips/mips.c (mips_expand_prologue): Likewise.
1548 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1549 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1550 * config/s390/s390.c (s390_emit_prologue): Likewise.
1551 * config/sh/sh.c (sh_expand_prologue): Likewise.
1552 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1553 * config/spu/spu.c (spu_expand_prologue): Likewise.
1555 2011-05-25 Richard Guenther <rguenther@suse.de>
1557 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1558 (gimple_canonical_types_compatible_p): Likewise.
1560 2011-05-25 Jan Hubicka <jh@suse.cz>
1563 * ipa.c (function_and_variable_visibility): Only add to same
1564 comdat group list if DECL_ONE_ONLY.
1566 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1568 PR rtl-optimization/49014
1569 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1571 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1574 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1576 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1578 PR rtl-optimization/48757
1579 * ira-build.c (loop_with_eh_edge_p): Rename to
1580 loop_with_complex_edge_p, check edges on complexity, make function
1582 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1585 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1587 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1588 force flag_ira_share_save_slots to 0.
1590 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1592 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1593 (vt_initialize): Set PROLOGUE_BB unconditionally.
1594 Add block comment about CFA_BASE_RTX machinery.
1595 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1596 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1598 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1601 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1602 parsing of syntax error in ObjC instance variable lists. In
1603 particular, avoid an infinite loop if there is a stray ']'.
1604 Updated error message.
1606 2011-05-24 Ian Lance Taylor <iant@google.com>
1608 * godump.c (go_define): Don't accept a string immediately after
1611 2011-05-24 Ian Lance Taylor <iant@google.com>
1613 * godump.c (struct godump_container): Add invalid_hash field.
1614 (go_format_type): Return false if type is found in invalid_hash.
1615 (go_output_typedef): Add invalid type to invalid_hash.
1616 (go_finish): Create and delete invalid_hash.
1618 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1620 PR tree-optimization/46728
1621 * tree-ssa-math-opts.c (powi_table): New.
1622 (powi_lookup_cost): New.
1624 (powi_as_mults_1): New.
1625 (powi_as_mults): New.
1626 (gimple_expand_builtin_powi): New.
1627 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1628 (gate_cse_sincos): Remove sincos/cexp restriction.
1630 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1633 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1635 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1636 * mips-tdump.c: Likewise.
1638 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1641 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1642 add -mno-XXX. Handle FMA.
1644 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1646 PR rtl-optimization/48633
1647 * ira-build.c (loop_with_eh_edge_p): New function.
1648 (mark_loops_for_removal): Use it.
1650 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1652 PR rtl-optimization/48971
1653 * ira.c (setup_pressure_classes): Don't check register move cost
1654 for classes with one registers. Don't add pressure class if there
1655 is a pressure class with the same available hard registers.
1656 Check contains_reg_of_mode. Fix a typo in collecting
1657 temp_hard_regset. Ignore hard registers not belonging to a class.
1659 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1662 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1664 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1665 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1667 PR gcov-profile/48845
1668 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1670 2011-05-24 Richard Guenther <rguenther@suse.de>
1672 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1673 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1674 (gimple_types_compatible_p_1): Adjust.
1675 (iterative_hash_canonical_type): Do not bother about complete vs.
1677 (gimple_canonical_types_compatible_p): Likewise.
1679 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1681 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1683 2011-05-24 Richard Guenther <rguenther@suse.de>
1686 * gimple.c (gimple_register_canonical_type): Revert
1688 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1689 does not for a tree for the case where it matters. Cache
1690 pointer-type alias-sets.
1692 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1694 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1695 (OBJS): Remove options.o, opts-common.o and prefix.o.
1696 (OBJS-libcommon-target): New.
1697 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1698 (BACKEND): Include libcommon-target.a.
1699 (MOSTLYCLEANFILES): Include libcommon-target.a.
1700 (libcommon-target.a): New.
1701 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1704 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1706 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1707 parts of output shared with the driver.
1708 * optc-gen.awk: Don't generate parts of output not shared with the
1710 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1711 * doc/options.texi (SourcerInclude): Mention options-save.c.
1712 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1713 (OBJS): Add options-save.o.
1714 (options-save.c, options-save.o): New.
1715 (options.o): Update dependencies.
1716 (gcc-options.o): Remove.
1717 (mostlyclean): Remove options-save.c.
1719 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1722 * dbxout.c: Include cgraph.h.
1723 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1724 and without value expr, return NULL if no varpool node exists for
1725 it or if it is not needed.
1726 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1729 * c-decl.c (start_decl): Convert expr to void_type_node.
1731 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1733 PR rtl-optimization/48826
1734 * emit-rtl.c (try_split): When splitting a call that is followed
1735 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1737 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1739 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1740 parameters passed in memory prefer using DECL_INCOMING_RTL over
1741 the pseudos it will be copied into.
1743 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1746 * config/i386/i386.c (ix86_option_override_internal): Save the
1747 initial options after checking vzeroupper.
1749 2011-05-23 David Li <davidxl@google.com>
1751 PR tree-optimization/48988
1752 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1753 Initialize has_valid_pred for each pred chain.
1755 2011-05-23 Richard Guenther <rguenther@suse.de>
1757 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1758 (iterative_hash_gimple_type): Always hash type names.
1760 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1762 * c-typeck.c (build_function_call_vec): Tweak call to
1763 check_function_arguments.
1765 2011-05-23 Richard Guenther <rguenther@suse.de>
1767 PR tree-optimization/49115
1768 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1769 is not necessarily carried out, do not claim it kills the ref.
1770 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1772 2011-05-23 Richard Guenther <rguenther@suse.de>
1775 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1776 what pointer types we accept for folding.
1778 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1780 * gthr-gnat.c: Remove.
1781 * gthr-gnat.h: Remove.
1782 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1783 * config/t-freebsd (LIB2ADDEH): Likewise.
1784 * config/t-linux (LIB2ADDEH): Likewise.
1785 * config/t-sol2 (LIB2ADDEH): Likewise.
1786 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1787 * configure.ac (target_thread_file): Remove gnat handling.
1788 * configure: Regenerate.
1789 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1791 2011-05-23 Tristan Gingold <gingold@adacore.com>
1792 Eric Botcazou <ebotcazou@adacore.com>
1794 * gcov.c (create_file_names): If no object directory is specified,
1795 keep the directory of the file.
1797 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1799 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1800 * configure: Regenerate.
1802 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1805 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1806 failed and the comparison has a single bit signed type, use
1807 constm1_rtx instead of const1_rtx for true value.
1808 (do_store_flag): If ops->type is single bit signed type, disable
1809 signel bit test optimization and pass -1 instead of 1 as last
1810 parameter to emit_store_flag_force.
1812 2011-05-23 Tom de Vries <tom@codesourcery.com>
1815 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1817 (infer_loop_bounds_from_undefined): Use new function.
1819 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1821 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1822 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1823 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1825 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1827 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1829 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1830 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1833 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1835 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1837 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1839 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1840 UNSPEC_MOVE_PIC pattern.
1842 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1844 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1845 (sparc-*-rtems*): Likewise.
1846 (sparc64-*-elf*): Likewise.
1847 (sparc64-*-rtems*): Likewise.
1848 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1849 * config/sparc/t-crtin: New file.
1850 * config/sparc/t-sol2 (crti.o): Delete rule.
1852 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1853 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1854 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1855 (ENDFILE_SPEC): Add crtn.o.
1857 2011-05-22 Tom de Vries <tom@codesourcery.com>
1860 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1861 CODE_CONTAINS_STRUCT (TS_COMMON).
1863 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1866 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1867 only after deciding which mode to use.
1869 2011-05-22 Tom de Vries <tom@codesourcery.com>
1872 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1873 for call to get_shiftadd_cost.
1875 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1878 * config/i386/cpuid.h (bit_MMXEXT): New define.
1880 2011-05-22 Nick Clifton <nickc@redhat.com>
1882 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1883 initialisation of non-existant args[2] element. Use args[] array
1884 not arg[] array to pass arguments to build_function_type_list.
1886 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1888 PR tree-optimization/49087
1889 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1891 2011-05-21 Jason Merrill <jason@redhat.com>
1894 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1895 static storage duration.
1897 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1899 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1902 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1904 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1905 false if there are call-saved registers here...
1906 (sparc_can_use_return_insn_p): ...but here instead.
1907 (save_or_restore_regs): Fix thinko.
1908 (sparc_expand_prologue): Use current_function_is_leaf.
1909 (sparc_frame_pointer_required): Likewise.
1911 2011-05-21 Nick Clifton <nickc@redhat.com>
1914 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1916 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1918 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1919 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1921 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1923 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1924 * optc-gen.awk: Move common code to opt-read.awk.
1925 * opth-gen.awk: Likewise.
1926 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1928 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1930 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1932 2011-05-20 Tom de Vries <tom@codesourcery.com>
1935 * tree-ssa-loop-ivopts.c: Include expmed.h.
1936 (get_shiftadd_cost): New function.
1937 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1939 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1942 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1943 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1945 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1947 * Makefile.in: Update comment referring to $(OBJS-common).
1949 2011-05-20 Ian Lance Taylor <iant@google.com>
1951 * godump.c (go_output_typedef): Put enum constants in the macro
1952 hash table to avoid duplicate Go const definitions.
1954 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1956 * Makefile.in (LIBDEPS): Add libcommon.a.
1958 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1959 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1960 pretty-print.o and version.o.
1961 (OBJS-libcommon): New.
1962 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1963 (BACKEND): Add libcommon.a.
1964 (MOSTLYCLEANFILES): Likewise.
1966 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1967 (cpp$(exeext)): Likewise.
1968 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1969 pretty-print.o and input.o.
1970 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1971 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1973 (mips-tfile): Don't explicitly use version.o.
1974 (mips-tdump): Likewise.
1975 (gcov.o): Depend on $(DIAGNOSTIC_H).
1976 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1977 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1978 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1979 * gcov-dump.c: Include intl.h and diagnostic.h.
1980 (main): Initialize diagnostics.
1981 * gcov.c: Include diagnostic.h.
1983 (main): Initialize diagnostics.
1984 * lto-wrapper.c: Include diagnostic.h.
1985 (main): Initialize diagnostics.
1987 2011-05-20 Michael Matz <matz@suse.de>
1989 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1991 2011-05-20 Michael Matz <matz@suse.de>
1992 Richard Guenther <rguenther@suse.de>
1994 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1995 use lto_streamer_cache_append directly instead of returning a VEC.
1996 (preload_common_node): Remove.
1997 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1999 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2001 2011-05-20 Richard Guenther <rguenther@suse.de>
2003 PR tree-optimization/49079
2004 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2005 MEM_REFs correctly for the trailing array access detection.
2006 Special case constants the same way as decls for overall size
2009 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2011 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2014 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2016 PR tree-optimization/49073
2017 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2018 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2019 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2021 2011-05-20 Richard Guenther <rguenther@suse.de>
2024 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2025 of pointer types the same way the middle-end does.
2027 2011-05-20 Richard Guenther <rguenther@suse.de>
2029 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2030 or pointer-to chains. Delay all fixup to uniquify_nodes.
2032 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2034 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2035 (fma4_fmaddsub): Likewise
2037 2011-05-19 Jan Hubicka <jh@suse.cz>
2039 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2040 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2041 (type_pair_cache): New static var.
2042 (lookup_type_pair): Use fixed sized custom hash; make inline.
2043 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2044 calls of lookup_type_pair.
2045 (print_gimple_types_stats): Remove cache stats.
2046 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2049 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2051 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2052 when TARGET_RDRND is active.
2053 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2054 Generate dummy SImode target register when target is NULL.
2056 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2058 * config/arm/arm-fpus.def: New.
2059 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2061 * config/arm/arm-tables.opt: Regenerate.
2062 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2063 (arm_option_override): Don't decode FPU name to string here.
2064 * config/arm/arm.opt (mfpu=): Use Enum.
2065 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2066 Update dependencies.
2068 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2070 * collect2.c: Include diagnostic.h.
2071 (fatal_perror, fatal, error, fancy_abort): Remove.
2072 (main): Set progname. Call xmalloc_set_program_name and
2073 diagnostic_initialize.
2074 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2075 scan_libraries, resolve_lib_name): Call fatal_error instead of
2076 fatal and fatal_perror.
2077 * collect2.h (error, fatal, fatal_perror): Don't declare.
2078 * tlink.c: Include diagnostic-core.h.
2079 (recompile_files): Call fatal_error instead of fatal_perror.
2080 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2081 pretty-print.o and input.o.
2082 (collect2.o, tlink.o): Update dependencies.
2084 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2086 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2088 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2091 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2092 COMDAT group syntax, both SPARC and x86 variants.
2093 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2094 * configure: Regenerate.
2095 * config/sol2.h (TARGET_SOLARIS): Define.
2096 (PUSHSECTION_FORMAT): Remove.
2097 (SECTION_NAME_FORMAT): Define.
2098 * config/sol2.c: Include hashtab.h.
2099 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2100 expansion, using SECTION_NAME_FORMAT.
2101 (solaris_comdat_htab): New variable.
2102 (struct comdat_entry): Define.
2103 (comdat_hash): New function.
2104 (comdat_eq): New function.
2105 (solaris_elf_asm_comdat_section): New function.
2106 (solaris_define_comdat_signature): New function.
2107 (solaris_code_end): New function.
2108 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2109 (solaris_code_end): Declare.
2110 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2111 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2113 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2114 Remove ATTRIBUTE_UNUSED.
2115 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2116 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2117 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2118 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2119 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2120 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2121 (PUSHSECTION_FORMAT): Remove.
2122 (SECTION_NAME_FORMAT): Redefine.
2124 2011-05-19 Kai Tietz <ktietz@redhat.com>
2126 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2127 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2128 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2130 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2131 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2133 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2135 2011-05-19 Richard Guenther <rguenther@suse.de>
2138 * tree-object-size.c (addr_object_size): If the pointed-to
2139 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2141 2011-05-19 Richard Guenther <rguenther@suse.de>
2143 * gimple.c (gimple_types_compatible_p_1): Compare names of
2144 the types themselves.
2145 (iterative_hash_gimple_type): And hash them that way.
2146 (gimple_register_type_1): If we register a main variant properly
2147 initialize the leader to ourselves.
2149 2011-05-19 Tom de Vries <tom@codesourcery.com>
2152 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2153 get_loop_invariant_expr_id.
2154 (get_loop_invariant_expr_id): Use get_expr_id.
2155 (parm_decl_cost): New function.
2156 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2157 Improve bound cost estimation. Use different inv_expr_id for elim and
2160 2011-05-19 Tom de Vries <tom@codesourcery.com>
2163 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2164 cost_base.cost == 0.
2166 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2169 * config/i386/sse.md
2170 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2173 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2175 PR tree-optimization/49039
2176 * tree-vrp.c (extract_range_from_binary_expr): For
2177 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2178 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2180 2011-05-18 Tom de Vries <tom@codesourcery.com>
2183 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2185 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2187 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2188 (*tls_global_dynamic_64): Ditto.
2189 (*tls_local_dynamic_base_32_gnu): Ditto.
2190 (*tls_local_dynamic_base_64): Ditto.
2191 (tls_initial_exec_64_sun): Ditto.
2193 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2195 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2196 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2198 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2199 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2200 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2201 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2202 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2203 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2204 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2206 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2208 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2209 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2210 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2211 target_thread_pointer, arm_structure_size_boundary, struct
2212 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2213 struct abi_name, arm_all_abis): Remove.
2214 (arm_option_override) Don't process most enumerated option values here.
2215 Don't process target_fpe_name here. Work with integer not string for
2216 structure size boundary; use separate diagnostics for each case.
2217 * config/arm/arm.h (enum float_abi_type, enum
2218 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2220 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2221 arm_structure_size_boundary): Remove.
2222 * config/arm/arm.opt (mabi=): Use Enum and Init.
2223 (arm_abi_type): New Enum and EnumValue entries.
2224 (mfloat-abi=): Use Enum and Init.
2225 (float_abi_type): New Enum and EnumValue entries.
2226 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2227 (mfp16-format=): Use Enum and Init.
2228 (arm_fp16_format_type): New Enum and EnumValue entries.
2229 (mstructure-size-boundary=): Use UInteger and Init.
2230 (mtp=): Use Enum and Init.
2231 (arm_tp_type): New Enum and EnumValue entries.
2233 2011-05-18 Richard Guenther <rguenther@suse.de>
2235 PR tree-optimization/49018
2236 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2237 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2238 gimple_has_side_effects.
2240 2011-05-18 Richard Guenther <rguenther@suse.de>
2242 * gimple.c (gimple_register_type_1): New function, split out from ...
2243 (gimple_register_type): ... here. Avoid infinite recursion.
2245 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2247 PR tree-optimization/41881
2248 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2249 reduction_chains along with a macro for its access.
2250 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2251 (destroy_loop_vec_info): Free reduction chains.
2252 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2253 (vect_is_slp_reduction): New function.
2254 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2255 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2256 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2257 definition types for reduction chains.
2258 (vect_supported_load_permutation_p): Don't allow permutations for
2260 (vect_analyze_slp_instance): Support reduction chains.
2261 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2262 (vect_get_constant_vectors): Handle reduction chains.
2263 (vect_schedule_slp_instance): Mark the first statement of the
2264 reduction chain as reduction.
2266 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2268 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2269 names for group elements access.
2270 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2271 reduction chains as well. Remove data reference and interleaving
2272 related words from the fields names.
2273 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2275 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2276 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2277 vect_update_interleaving_chain, vect_same_range_drs,
2278 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2279 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2280 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2281 vect_analyze_group_access, vect_analyze_data_ref_access,
2282 vect_create_data_ref_ptr, vect_transform_strided_load,
2283 vect_record_strided_load_vectors): Likewise.
2284 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2285 vect_model_load_cost, vectorizable_store, vectorizable_load,
2286 vect_remove_stores, new_stmt_vec_info): Likewise.
2287 * tree-vect-slp.c (vect_build_slp_tree,
2288 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2290 2011-05-18 Richard Guenther <rguenther@suse.de>
2293 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2294 operand verification.
2295 (verify_gimple_assign_binary): Likewise.
2296 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2297 to non-1-precision BOOLEAN_TYPEs.
2299 2011-05-18 Tom de Vries <tom@codesourcery.com>
2302 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2304 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2306 PR tree-optimization/49000
2307 * tree-ssa.c (execute_update_addresses_taken): Call
2308 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2309 be rewritten and decl has been marked for renaming, reset
2312 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2314 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2315 enum_opts_set when testing if attributes have set -mfpmath=.
2317 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2319 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2321 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2323 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2325 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2326 id.transform_lang_insert_block with NULL.
2328 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2330 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2331 (output_fp_compare): Change args 3 and 4 to bool.
2332 (ix86_expand_call): Change arg 6 to bool.
2333 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2334 (ix86_attr_length_vex_default): Change arg 3 to bool.
2335 * config/i386/i386.md: Update all uses.
2336 * config/i386/i386.c: Ditto.
2337 (ix86_flags_dependent): Change return type to bool.
2339 2011-05-17 Richard Guenther <rguenther@suse.de>
2341 * gimple.c (type_hash_pair_compare): Fix comparison.
2343 2011-05-17 Richard Guenther <rguenther@suse.de>
2345 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2346 case some more, fix final hash value of the non-singleton case.
2348 2011-05-17 Richard Guenther <rguenther@suse.de>
2352 2011-05-16 Richard Guenther <rguenther@suse.de>
2354 * gimple.c (gimple_types_compatible_p_1): Use names of the
2355 type itself, not its main variant.
2356 (iterative_hash_gimple_type): Likewise.
2358 2011-05-17 Richard Guenther <rguenther@suse.de>
2360 * gimple.c (gimple_register_canonical_type): Use the main-variant
2361 leader for computing the canonical type.
2363 2011-05-17 Nick Clifton <nickc@redhat.com>
2365 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2368 * config/rx/rx.md: Add peephole to remove redundant extensions
2370 (bitset_in_memory): Use rx_restricted_mem_operand.
2371 (bitinvert_in_memory): Likewise.
2372 (bitclr_in_memory): Likewise.
2374 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2375 Nick Clifton <nickc@redhat.com>
2377 * config/rx/rx.md: Add peepholes to match a register move followed
2378 by a comparison of the moved register. Replace these with an
2379 addition of zero that does both actions in one instruction.
2381 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2384 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2385 predicate to allow CONST_INT.
2386 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2388 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2390 * opts-common.c (opt_enum_arg_to_value): New.
2391 * opts.h (opt_enum_arg_to_value): Declare.
2392 * config/i386/i386.opt (fpmath): Remove.
2393 (mfpmath=): Use Enum, Init and Save.
2394 (fpmath_unit): New Enum and EnumValue entries.
2395 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2396 name for function fpmath state.
2397 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2398 * config/i386/i386.c: Include diagnostic.h.
2399 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2400 (ix86_target_string): Take enum fpmath_unit value instead of string.
2401 (ix86_debug_options): Update call to ix86_target_string.
2402 (ix86_option_override_internal): Don't process fpmath strings here.
2403 (x86_function_specific_save, ix86_function_specific_restore):
2404 Don't handle fpmath state specially.
2405 (ix86_function_specific_print): Pass fpmath state to
2406 ix86_target_string instead of printing in this function.
2407 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2408 Handle enum attributes.
2409 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2410 (ix86_valid_target_attribute_tree): Update option_strings
2411 handling. Handle fpmath as enum option.
2412 (ix86_can_inline_p): Update field names for function fpmath state.
2413 (ix86_expand_builtin): Update call to ix86_target_string.
2414 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2415 (ix86_fpmath): Remove.
2416 * config/i386/t-i386 (i386.o): Update dependencies.
2418 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2420 PR preprocessor/48677
2421 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2422 from decoded_options[0], not from itself.
2424 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2426 * config/i386/constraints.md (z): New constraint.
2427 * config/i386/i386.c (c): New mode attribute.
2428 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2429 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2430 constraint for operand 0.
2431 (*call_vzeroupper): Ditto.
2432 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2433 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2434 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2435 Use "lzm" constraint for operand 0.
2436 (*call_pop_vzeroupper): Ditto.
2437 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2438 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2439 constraint for operand 0.
2440 (*sibcall_vzeroupper): Ditto.
2441 (*sibcall_rex64_ms_sysv): Ditto.
2442 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2443 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2444 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2445 (*sibcall_pop_vzeroupper): Ditto.
2446 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2447 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2448 mode iterator. Use "<c>zm" constraint for operand 1.
2449 (*call_value_vzeroupper): Ditto.
2450 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2452 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2453 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2454 *call_value_pop_1. Use "lzm" constraint for operand 1.
2455 (*call_value_pop_vzeroupper): Ditto.
2456 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2457 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2458 mode iterator. Use "Uz" constraint for operand 1.
2459 (*sibcall_value_vzeroupper): Ditto.
2460 (*sibcall_value_rex64_ms_sysv): Ditto.
2461 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2462 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2463 constraint for operand 1.
2464 (*sibcall_value_pop_vzeroupper): Ditto.
2465 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2466 and "z" constraint for operand 2.
2467 (*tls_global_dynamic_32_gnu): Ditto.
2468 (*tls_local_dynamic_base_32_gnu): Ditto.
2469 (*tls_local_dynamic_base_64): Ditto.
2470 (*tls_local_dynamic_32_once): Ditto.
2471 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2473 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2475 2011-05-16 Richard Guenther <rguenther@suse.de>
2477 * gimple.c (gimple_types_compatible_p_1): Use names of the
2478 type itself, not its main variant.
2479 (iterative_hash_gimple_type): Likewise.
2481 2011-05-16 Richard Guenther <rguenther@suse.de>
2483 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2484 always visit pointer target and function result and argument types.
2486 2011-05-16 Jason Merrill <jason@redhat.com>
2489 * tree-inline.c (copy_statement_list): Put back recursion.
2491 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2495 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2496 * config/avr/avr.md ("*ior<mode>qi.byte0",
2497 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2499 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2502 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2503 register is needed for a function argument.
2505 2011-05-16 Richard Guenther <rguenther@suse.de>
2507 * gimple.c (struct type_hash_pair): New type.
2508 (type_hash_pair_compare): New function.
2509 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2511 2011-05-16 Revital Eres <revital.eres@linaro.org>
2513 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2515 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2517 * config/i386/i386.md (floating point move splitters): Fix
2518 usage of standard_80387_constant_p.
2519 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2521 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2523 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2525 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2527 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2528 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2529 (tree_ssa_lim_finalize): Likewise.
2531 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2533 * config/i386/constraint.md (Yd, Yx): New register constraints.
2534 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2535 Yd conditional register constraint.
2536 (*movtf_internal): Use standard_sse_constant_opcode.
2537 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2538 Yx conditional register constraint.
2539 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2540 Yd conditional register constraint. Use standard_sse_constant_p to
2541 check for valid SSE constants and call standard_sse_constant_opcode to
2543 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2544 constants and call standard_sse_constant_opcode to output SSE insn.
2545 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2546 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2547 optimize_size is set.
2548 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2550 2011-05-14 Tobias Burnus <burnus@net-b.de>
2552 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2554 2011-05-13 Martin Jambor <mjambor@suse.cz>
2556 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2557 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2558 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2559 (evaluate_conditions_for_ipcp_clone): Removed.
2560 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2561 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2562 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2564 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2566 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2567 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2568 lieu of MAY_HAVE_DEBUG_STMTS.
2569 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2570 debug statements if !MAY_HAVE_DEBUG_STMTS.
2572 2011-05-13 Martin Thuresson <martint@google.com>
2574 PR gcov-profile/47793
2575 * libgcov.c (gcov_exit): Support relative profile paths.
2576 * doc/invoke.texi (-fprofile-dir): Update for above change.
2578 2011-05-13 Richard Guenther <rguenther@suse.de>
2580 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2581 type-pair caching, do not compare hashes.
2583 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2586 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2587 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2589 2011-05-13 Kai Tietz <ktietz@redhat.com>
2591 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2592 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2593 compatible type for TRUTH_NOT_EXPR.
2595 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2597 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2598 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2599 can_create_pseudo_p ().
2601 2011-05-13 Richard Guenther <rguenther@suse.de>
2604 * gimple.c (iterative_hash_gimple_type): Revert change in
2605 pointer target and function result and argument hashing.
2607 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2609 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2610 (*movxf_internal_nointeger): Ditto.
2611 (*movdf_internal_rex64): Ditto.
2612 (*movdf_internal): Ditto.
2613 (*movdf_internal_nointeger): Ditto.
2614 (*movsf_internal): Ditto.
2615 (sincos splitters): Use can_create_pseudo ().
2617 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2619 * config/i386/i386-opts.h: New.
2620 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2621 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2622 ix86_section_threshold): Remove.
2623 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2624 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2626 (ix86_option_override_internal): Don't decode strings for options
2627 other than -march=, -mtune= and -mfpmath=. Don't allow for
2628 __attribute__ uses in remaining diagnostics for options with
2629 string arguments. Don't check for integer arguments being negative.
2630 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2631 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2632 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2633 ix86_branch_cost, ix86_section_threshold): Remove.
2634 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2636 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2638 (masm=): Use Enum and Init.
2639 (asm_dialect): New Enum and EnumValue entries.
2640 (mbranch-cost=): Use UInteger.
2641 (mlarge-data-threshold=): Use UInteger and Init.
2642 (mcmodel=): Use Enum and Init.
2643 (cmodel): New Enum and EnumValue entries.
2644 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2645 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2646 mregparm=): Use UInteger.
2647 (mstringop-strategy=): Use Enum and Init.
2648 (stringop_alg): New Enum and EnumValue entries.
2649 (mtls-dialect=): Use Enum and Init.
2650 (tls_dialect): New Enum and EnumValue entries.
2651 (mabi=): Use Enum and Init.
2652 (calling_abi): New Enum and EnumValue entries.
2653 (mveclibabi=): Use Enum and Init.
2654 (ix86_veclibabi): New Enum and EnumValue entries.
2656 2011-05-13 Nick Clifton <nickc@redhat.com>
2658 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2659 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2661 2011-05-13 Kai Tietz <ktietz@redhat.com>
2664 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2665 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2666 (gimple_boolify): Check for cast for boolean_type_node instead for
2669 2011-05-13 Richard Guenther <rguenther@suse.de>
2671 PR tree-optimization/48172
2672 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2673 multiplying by number of iterations for equal step.
2674 (vect_create_cond_for_alias_checks): Likewise.
2676 2011-05-13 Andreas Schwab <schwab@redhat.com>
2678 * configure.ac: Use AS_HELP_STRING throughout.
2679 * configure: Regenerate.
2681 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2683 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2684 (ix86_emit_restore_regs_using_mov): Likewise.
2685 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2687 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2689 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2690 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2691 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2692 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2693 RTX_OK_FOR_OLO10_P): ...here.
2694 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2697 2011-05-12 Kai Tietz <ktietz@redhat.com>
2699 * gimplify.c (gimple_boolify): Re-boolify expression
2700 arguments even if expression type is of kind BOOLEAN_TYPE.
2701 (gimplify_boolean_expr): Removed.
2702 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2703 and XOR. Additional take care that we keep expression's type.
2704 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2705 of TRUTH_AND|OR|XOR_EXPR.
2707 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2709 PR tree-optimization/48975
2710 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2711 on all bbs here and free and clear ifc_bbs at the end.
2713 2011-05-12 Richard Guenther <rguenther@suse.de>
2715 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2716 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2717 until after simple checks.
2718 (gimple_types_compatible_p): Likewise.
2719 (iterative_hash_gimple_type): Always hash pointer targets
2720 and function return and argument types.
2721 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2722 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2723 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2724 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2725 completely in the simple compare section.
2726 (gimple_register_canonical_type): Query the cache again after
2729 2011-05-12 Richard Guenther <rguenther@suse.de>
2731 PR tree-optimization/48172
2732 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2733 the number of iterations from the segment size calculation.
2734 (vect_create_cond_for_alias_checks): Adjust.
2736 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2739 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2740 if validate_subreg fails.
2742 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2744 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2745 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2748 2011-05-12 DJ Delorie <dj@redhat.com>
2750 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2751 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2752 created builtin into rx_builtins array.
2753 (rx_builtin_decl): New function.
2754 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2756 2011-05-12 DJ Delorie <dj@redhat.com>
2757 Nick Clifton <nickc@redhat.com>
2759 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2760 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2761 (rx_is_legitimate_address): Add pre-decrement and post-increment
2762 addressing in HImode and QImode. Fix test for out of range
2764 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2765 (rx_align_for_label): Test label before extracting its usage count.
2766 (rx_adjust_insn_lengths): Fix selection of insn codes.
2767 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2769 2011-05-11 Jason Merrill <jason@redhat.com>
2771 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2773 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2775 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2776 reindent the subsequent block.
2778 2011-05-11 Satoru Takabayashi <satorux@google.com>
2779 Paul Pluzhnikov <ppluzhnikov@google.com>
2781 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2782 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2783 * config.in: Add LINKER_HASH_STYLE.
2784 * configure.ac: Add --with-linker-hash-style.
2785 * configure: Regenerate.
2787 2011-05-11 Richard Guenther <rguenther@suse.de>
2790 * gimple.c (iterative_hash_canonical_type): Fix typo.
2792 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2794 * config/i386/i386.c (legitimize_tls_address)
2795 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2796 expanders directly for TARGET_GNU2_TLS. Determine pic and
2797 __tls_get_addr symbol reference here. Update call to
2798 gen_tls_global_dynamic_{32,64} for added arguments.
2799 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2800 expanders directly for TARGET_GNU2_TLS. Determine
2801 __tls_get_addr symbol reference here. Update call to
2802 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2803 unique UNSPEC REG_EQUIV to libcall block.
2804 (ix86_tls_get_addr): Declare static.
2805 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2806 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2807 Do not determine pic and __tls_get_addr symbol reference here. Do not
2808 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2809 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2810 (tls_global_dynamic_64): Add operand 2. Do not determine
2811 __tls_get_addr symbol reference here. Do not call
2812 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2813 (tls_local_dynamic_base64): Ditto for operand 1.
2815 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2817 * function.c (expand_function_start): Initialize stack_check_probe_note
2818 only if the generic stack checking mechanism is used.
2820 2011-05-11 Richard Guenther <rguenther@suse.de>
2822 PR tree-optimization/15256
2823 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2824 (A & B) | C, combine (A op CST1) op CST2.
2825 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2826 visit assigns that have uses.
2828 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2830 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2831 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2832 (unpack_ts_type_common_value_fields): ...this. Update comment.
2833 (unpack_value_fields): Adjust for renaming.
2834 (lto_input_ts_type_tree_pointers): Split into...
2835 (lto_input_ts_type_common_tree_pointer): ...this and...
2836 (lto_input_ts_type_non_common_tree_pointers): ...this.
2837 (lto_input_tree_pointers): Adjust for above split.
2838 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2839 (pack_ts_type_common_value_fields): ...this. Update comment.
2840 (lto_output_ts_type_tree_pointers): Split into...
2841 (lto_output_ts_type_common_tree_pointers): ...this and...
2842 (lto_output_ts_type_non_common_tree_pointers): ...this.
2843 (lto_output_tree_pointers): Adjust for above split.
2844 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2845 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2846 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2847 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2849 (struct tree_type): Split into...
2850 (struct tree_type_common: ...this and...
2851 (struct tree_type_with_lang_specific): ...this and...
2852 (struct tree_type_non_common): ...this. Adjust accessor macros
2854 (TYPE_VALUES_RAW): Define.
2855 (union tree_node): Update for above changes.
2856 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2858 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2859 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2860 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2861 * treestructu.def (TS_TYPE): Remove.
2862 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2865 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2868 * tree-ssa.c (reset_debug_uses): New function.
2869 * tree-flow.h (reset_debug_uses): New prototype.
2870 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2871 * tree-loop-distribution.c (generate_loops_for_partition): Call
2872 reset_debug_uses on the stmts that will be removed. Keep around
2873 all debug stmts, don't count them as bits in partition bitmap.
2874 (generate_builtin): Don't count debug stmts or labels as bits in
2877 2011-05-11 Richard Guenther <rguenther@suse.de>
2879 * gimple.c (gimple_type_hash_1): Merge with ...
2880 (gimple_type_hash): ... this.
2881 (gtc_visit): Remove mode parameter and simplify accordingly.
2882 (gimple_types_compatible_p_1): Likewise.
2883 (gimple_types_compatible_p): Likewise.
2884 (iterative_hash_gimple_type): Likewise.
2886 (gimple_type_eq): Adjust.
2888 2011-05-11 Revital Eres <revital.eres@linaro.org>
2890 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2891 enters the branch create an anti edge in the opposite direction
2892 to prevent the creation of reg-moves.
2893 * modulo-sched.c: Adjust comment to reflect the fact we are
2894 scheduling closing branch.
2895 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2896 (stage_count): New field in struct partial_schedule.
2897 (calculate_stage_count): New function.
2898 (normalize_sched_times): Rename to reset_sched_times and handle
2899 incrementing the sched time of the nodes by a constant value
2900 passed as parameter.
2901 (duplicate_insns_of_cycles): Skip closing branch.
2902 (sms_schedule_by_order): Schedule closing branch.
2903 (ps_insn_find_column): Handle closing branch.
2904 (sms_schedule): Call reset_sched_times and adjust the code to
2905 support scheduling of the closing branch.
2906 (ps_insert_empty_row): Update calls to normalize_sched_times
2907 and rotate_partial_schedule functions.
2909 2011-05-11 Richard Guenther <rguenther@suse.de>
2912 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2914 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2916 * opts.c (finish_options): Move warning settings from process_options.
2917 * toplev.c (process_options): Move warning settings to finish_options.
2919 2011-05-11 Richard Guenther <rguenther@suse.de>
2921 PR tree-optimization/18041
2922 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2923 (simplify_bitwise_binary): ... this. Handle operand conversions
2924 by applying them to the result instead.
2925 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2927 2011-05-11 Richard Guenther <rguenther@suse.de>
2929 * gimple.c (gimple_canonical_types_compatible_p): Split out
2930 from gimple_types_compatible_p and friends. Do not recurse
2931 to pointed-to types.
2932 (gimple_canonical_type_eq): Use it.
2933 (iterative_hash_canonical_type): Split out from
2934 iterative_hash_gimple_type and friends. Do not recurse
2935 to pointed-to types.
2936 (gimple_canonical_type_hash): Use it, allocate the hash here.
2938 2011-05-11 Revital Eres <revital.eres@linaro.org>
2940 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2943 2011-05-11 Revital Eres <revital.eres@linaro.org>
2945 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2946 instead of PREV_INSN.
2948 2011-05-11 Revital Eres <revital.eres@linaro.org>
2950 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2951 * loop-doloop.c (doloop_condition_get): Likewise.
2952 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2954 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2956 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2958 * tree.def (CASE_LABEL_EXPR): Add an operand.
2959 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2961 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2963 * c-decl.c (c_override_global_bindings_to_false): Remove.
2964 (global_bindings_p): Don't check
2965 c_override_global_bindings_to_false.
2966 * c-tree.h (c_override_global_bindings_to_false): Remove.
2967 * c-typeck.c (composite_type): Don't set
2968 c_override_global_bindings_to_false.
2970 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2972 PR target/48857, 48495
2973 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2975 (VSX_MOVE_MODE): Ditto.
2976 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2977 VSX vector types. Add V2DImode.
2978 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2979 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2980 (MODES_TIEABLE_P): Ditto.
2982 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2983 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2985 (init_cumulative_args): Ditto.
2986 (rs6000_function_arg_boundary): Ditto.
2987 (rs6000_function_arg_advance_1): Ditto.
2988 (rs6000_function_arg): Ditto.
2989 (rs6000_function_ok_for_sibcall): Ditto.
2990 (emit_frame_save): Ditto.
2991 (rs6000_function_value): Ditto.
2992 (rs6000_libcall_value): Ditto.
2994 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2996 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2997 i386/darwin-lib.h to $libgcc_tm_file.
2998 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3000 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3002 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3004 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3006 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3007 * config/rs6000/rs6000-tables.opt: New file (generated).
3008 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3009 rs6000/rs6000-tables.opt to extra_options.
3010 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3011 * config/rs6000/rs6000.c (rs6000_select): Remove.
3012 (processor_target_table): Move contents to rs6000-cpus.def.
3013 (darwin_rs6000_override_options): Check
3014 global_options_set.x_rs6000_cpu_index instead of
3015 rs6000_select[1].string.
3016 (rs6000_option_override_internal): Likewise.
3017 (rs6000_handle_option): Don't assert that global structures are in
3018 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3019 (rs6000_default_cpu): New variable.
3020 (rs6000_file_start): Set it instead of local default_cpu. Check
3021 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3022 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3023 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3024 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3025 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3026 rs6000_select): Remove.
3027 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3029 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3030 * config/rs6000/t-rs6000
3031 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3032 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3033 global_options_set.x_rs6000_cpu_index instead of
3034 rs6000_select[1].string.
3035 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3036 global_options_set.x_rs6000_cpu_index instead of
3037 rs6000_select[1].string.
3039 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3041 * config.gcc (libgcc_tm_file): Define instead of including files
3042 from ../../libgcc/config/ in tm_file.
3043 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3044 * configure: Regenerate.
3045 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3046 libgcc_tm.h, cs-libgcc_tm.h): New.
3047 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3048 (clean): Remove libgcc_tm.h.
3049 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3050 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3051 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3053 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3056 * config/avr/avr.c (avr_ret_register): Return unsigned int
3058 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3059 it to avr_libcall_value.
3060 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3062 (avr_expand_binop_builtin): Ditto.
3063 (avr_expand_unop_builtin): Ditto.
3065 2011-05-10 DJ Delorie <dj@redhat.com>
3067 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3068 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3069 * config/rx/rx.c (rx_align_for_label): Add label and
3070 uses_threshold parameters. Do not align when the label is not
3072 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3074 2011-05-10 Richard Guenther <rguenther@suse.de>
3076 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3077 a series of conversions and apply foldings similar to what
3079 (tree_ssa_forward_propagate_single_use_vars): Call it.
3081 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3083 PR tree-optimization/48611
3084 PR tree-optimization/48794
3085 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3086 referenced from RESX or EH_DISPATCH arguments.
3089 * dfp.c (decimal_to_decnumber): Handle conversion from
3090 dconst{1,2,m1,half}.
3092 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3094 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3095 for !flag_prefer_avx128.
3096 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3098 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3100 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3101 (fold_ternary_loc): Use expr_location_or.
3103 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3106 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3107 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3108 Pmode and mem_mode is not VOIDmode.
3110 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3112 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3113 TYPE_QUAL_RESTRICT): Convert to enum.
3115 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3117 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3118 (const_pow2_1_to_8_operand): Ditto.
3119 (const_pow2_1_to_128_operand): Ditto.
3120 (const_pow2_1_to_32768_operand): Ditto.
3121 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3122 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3123 in insn constraint to check integer value of operand 3.
3124 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3126 (PINSR_MODE): New mode iterator.
3127 (sse2p4_1): New mode attribute.
3128 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3129 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3130 iterator. Use const_int_operand instead of
3131 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3132 exact_log2 in insn constraint to check integer value of operand 3.
3134 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3136 * config/i386/sse.md (blendbits): Remove mode attribute.
3137 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3138 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3139 Check integer value of operand 3 in insn constraint.
3141 2011-05-09 Richard Guenther <rguenther@suse.de>
3143 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3145 (lto_symtab_merge): Likewise. Do not register types here.
3146 (lto_symtab_merge_decls_2): Likewise.
3147 (lto_symtab_merge_decls_1): Likewise.
3148 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3149 * gimple.c (enum gtc_mode): Declare.
3150 (gimple_types_compatible_p): Make static.
3152 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3154 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3155 temporary register to match Pmode.
3157 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3159 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3160 and *vec_concatv4si_1_avx.
3162 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3164 PR rtl-optimization/48927
3165 * ira-conflicts.c (commutative_constraint_p): Use
3166 recog_data.alternative_enabled_p to disable alternatives where
3167 "enabled" attribute is false.
3168 (get_dup_num): Ditto.
3169 * ira-lives.c (single_reg_class): Ditto.
3170 (ira_implicitly_set_insn_hard_regs): Ditto.
3172 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3174 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3175 (dataflow_set_preserve_mem_locs): Likewise.
3177 2011-05-09 Philipp Thomas <pth@suse.de>
3179 * config/mep/mep.c (mep_validate_vliw): Syntax description
3180 should not be translated.
3182 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3184 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3185 * config/mips/mips-tables.opt: New file (generated).
3186 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3187 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3188 MIPS_ARCH_OPTION_NATIVE): Define.
3189 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3191 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3192 mips_parse_cpu): Remove.
3193 (mips_cpu_info_from_opt, mips_default_arch): New.
3194 (mips_handle_option): Don't assert that global structures are in
3195 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3196 (mips_option_override): Use new variables and functions to set
3197 state of these options. Use strcmp to check for individual CPU names.
3198 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3200 * config/mips/mips.opt (march=): Use ToLower and Enum.
3201 (mips): Use ToLower, Enum and Var.
3202 (mtune=): Use ToLower and Enum.
3203 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3205 2011-05-08 Jan Hubicka <jh@suse.cz>
3207 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3208 Arrange type pairs to be UID ordered.
3209 (gimple_lookup_type_leader): Make inline.
3211 2011-05-09 Nick Clifton <nickc@redhat.com>
3214 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3218 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3221 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3223 * combine.c (simplify_comparison): Abstract out parts into...
3224 (simplify_compare_const): ... new function.
3225 (try_combine): Generalize parallel arithmetic/compare combining
3226 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3228 2011-05-08 Jan Hubicka <jh@suse.cz>
3230 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3231 (cgraph_create_virtual_clone): Call hooks once virtual clone
3233 * cgraph.h (cgraph_clone_node): Update prototype.
3234 * ipa-cp.c (ipcp_estimate_growth): Use
3235 estimate_ipcp_clone_size_and_time.
3236 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3237 * lto-cgraph.c (input_node): Update.
3238 * ipa-inline.c (recursive_inlining): Update.
3239 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3240 (evaluate_conditions_for_known_args): Break out from ...
3241 (evaluate_conditions_for_edge): ... here.
3242 (evaluate_conditions_for_ipcp_clone): New function.
3243 (inline_node_duplication_hook): Update clone summary based
3245 (estimate_callee_size_and_time): Rename to ...
3246 (estimate_node_size_and_time): take NODE instead of EDGE;
3247 take POSSIBLE_TRUTHS as argument.
3248 (estimate_callee_size_and_time): Update.
3249 (estimate_ipcp_clone_size_and_time): New function.
3250 (do_estimate_edge_time): Update.
3252 2011-05-08 Richard Guenther <rguenther@suse.de>
3256 * expmed.c (expand_shift_1): Compute adjusted constant shift
3259 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3261 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3263 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3265 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3267 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3269 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3271 2011-05-07 Jan Hubicka <jh@suse.cz>
3273 * ipa-inline-transform.c (inline_call): Account when program size
3275 * ipa-inline.c (relative_time_benefit): New function.
3276 (edge_badness): Reorganize to be power 2 based; fix thinko when
3277 computing badness for negative growth; update comments to match
3278 reality; better dumps.
3280 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3282 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3283 type to bool and adjust comment.
3284 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3285 (fold_mathfn_compare): Remove calls to global_bindings_p.
3286 (fold_inf_compare): Likewise.
3287 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3288 * c-tree.h (global_bindings_p): Adjust prototype.
3289 * c-decl.c (global_bindings_p): Return bool and simplify.
3291 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3293 PR tree-optimization/48837
3294 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3295 when accumulator transformation is performed.
3297 2011-05-06 Jan Hubicka <jh@suse.cz>
3299 * i386.h (ix86_tune_indices): Add
3300 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3301 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3302 * i386.c (initial_ix86_tune_features): Add
3303 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3304 (software_prefetching_beneficial_p): Remove predicate.
3305 (ix86_option_override_internal): Use new macro.
3307 2011-05-06 Jan Hubicka <jh@suse.cz>
3309 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3311 2011-05-06 Jan Hubicka <jh@suse.cz>
3313 * cgraph.c (cgraph_add_thunk): Create real function node instead
3314 of alias node; finalize it and mark needed/reachale; arrange visibility
3315 to be right and add it into the corresponding same comdat group list.
3316 (dump_cgraph_node): Dump thunks.
3317 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3318 cgraph_function_with_gimple_body_p,
3319 cgraph_first_function_with_gimple_body,
3320 cgraph_next_function_with_gimple_body): New functions.
3321 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3323 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3324 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3325 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3326 devirtualization when optimizing.
3327 (verify_cgraph_node): Verify thunks.
3328 (cgraph_analyze_function): Analyze thunks.
3329 (cgraph_mark_functions_to_output): Output thunks only in combination
3330 with function they are assigned to.
3331 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3332 alias into normal node.
3333 (assemble_thunks): New functoin.
3334 (cgraph_expand_function): Use it.
3335 * lto-cgraph.c (lto_output_node): Stream thunks.
3336 (input_overwrite_node): Stream in thunks.
3337 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3338 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3339 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3340 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3341 (inline_analyze_function): Do not care about thunk jump functions.
3342 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3343 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3344 cgraph_function_with_gimple_body_p.
3345 * passes.c (do_per_function_toporder): Use
3346 cgraph_function_with_gimple_body_p.
3347 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3348 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3349 (function_called_by_processed_nodes_p): Likewise.
3351 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3353 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3354 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3356 (mabi=): Replace with separate entries for mabi=altivec,
3357 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3358 mabi=ieeelongdouble and mabi=ibmlongdouble.
3359 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3360 check for -mabi=spe without SPE ABI support here.
3361 (rs6000_handle_option): Replace OPT_mabi_ handling with
3362 OPT_mabi_altivec and OPT_mabi_spe handling.
3364 2011-05-06 Cary Coutant <ccoutant@google.com>
3366 * dwarf2out.c (contains_subprogram_definition): New function.
3367 (should_move_die_to_comdat): Call it.
3369 2011-05-06 Jeff Law <law@redhat.com>
3371 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3372 remove_ctrl_stmt_and_useless_edges.
3373 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3374 (fixup_template_block, thread_single_edge): Likewise.
3375 (mark_threaded_blocks): Use THREAD_TARGET.
3377 2011-05-06 Alan Modra <amodra@gmail.com>
3380 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3381 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3383 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3385 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3386 constraint modifier to "r".
3388 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3390 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3391 fall through for OPT_mcmodel_.
3393 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3395 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3397 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3399 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3402 * config/arm/arm.opt (marm): Document it.
3403 (mthumb): Reject negative variant.
3405 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3408 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3409 Fix typo in "ccvt" variable name.
3411 2011-05-06 Tristan Gingold <gingold@adacore.com>
3414 * config/vms/vms-ar.c (main): Remove cwd variable.
3416 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3419 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3421 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3423 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3424 * gimplify.c (gimplify_switch_expr): Likewise.
3425 * omp-low.c (expand_omp_sections): Likewise.
3426 * tree-eh.c (lower_try_finally_switch): Likewise.
3427 (lower_eh_dispatch): Likewise.
3428 * tree.h (build_case_label): Declare.
3429 * tree.c (build_case_label): Define.
3431 2011-05-05 Jason Merrill <jason@redhat.com>
3434 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3435 (copy_statement_list): Don't recurse.
3436 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3439 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3441 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3442 through from -mfpu= handling.
3443 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3445 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3447 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3450 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3452 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3454 (hppa[12]*-*-hpux11*): Ditto.
3455 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3456 * config/ia64/hpux-unix2003.h: New.
3457 * config/pa/pa-hpux1131.opt: New.
3458 * config/pa/pa-hpux1131.h: New.
3459 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3460 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3461 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3463 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3466 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3467 instead of mode as 3rd argument to recursive call.
3468 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3469 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3471 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3472 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3473 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3474 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3476 2011-05-05 Julian Brown <julian@codesourcery.com>
3478 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3479 parenthesis in D-register case.
3481 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3483 * opt-functions.awk (var_type_struct): Handle Enum options.
3484 * optc-gen.awk: Don't check range of variables of character type.
3485 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3486 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3487 rs6000_sdata_name, rs6000_explicit_options): Remove.
3488 (rs6000_option_override_internal): Check for -malign-power here.
3489 Use global_options_set instead of rs6000_explicit_options.
3490 (rs6000_parse_fpu_option): Remove.
3491 (rs6000_handle_option): Access variables via opts and opts_set
3492 pointers. Use error_at and warning_at. Add fall-through
3493 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3494 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3495 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3496 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3497 here. Don't use rs6000_parse_fpu_option.
3498 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3499 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3500 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3502 (mspe): Use Var and Save.
3503 (mtraceback=): Use Enum and Var.
3504 (rs6000_traceback_type): New Enum and EnumValue entries.
3505 (mfloat-gprs=): Use Enum, Var and Save.
3506 (rs6000_float_gprs): New Enum and EnumValue entries.
3507 (mlong-double-): use Var and Save.
3508 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3509 (malign-): Use Enum and Var.
3510 (rs6000_alignment_flags): New Enum and EnumValue entries.
3512 (fpu_type_t): New Enum and EnumValue entries.
3513 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3514 global_options_set instead of rs6000_explicit_options.
3515 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3516 global_options_set instead of rs6000_explicit_options.
3517 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3518 global_options_set instead of rs6000_explicit_options.
3519 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3520 global_options_set instead of rs6000_explicit_options.
3521 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3522 global_options_set instead of rs6000_explicit_options.
3523 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3524 global_options_set instead of rs6000_explicit_options.
3525 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3527 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3528 global_options_set instead of rs6000_explicit_options.
3529 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3530 (rs6000_cmodel): New Enum and EnumValue entries.
3531 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3532 global_options_set instead of rs6000_explicit_options.
3533 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3534 (mtls-size=): Use Enum and Var.
3535 (rs6000_tls_size): New Enum and EnumValue entries.
3537 2011-05-05 Michael Matz <matz@suse.de>
3539 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3540 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3541 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3542 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3543 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3544 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3545 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3546 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3547 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3548 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3549 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3550 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3551 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3552 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3553 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3554 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3556 2011-05-05 Richard Guenther <rguenther@suse.de>
3558 * expmed.c (expand_variable_shift): Rename to ...
3559 (expand_shift_1): ... this. Take an expanded shift amount.
3560 For rotates recurse directly not building trees for the shift amount.
3561 (expand_variable_shift): Wrap around expand_shift_1.
3562 (expand_shift): Adjust.
3564 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3566 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3568 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3570 * tree.h (get_pending_sizes): Remove prototype.
3571 (put_pending_size): Likewise.
3572 (put_pending_sizes): Likewise.
3573 * stor-layout.c (pending_sizes): Delete.
3574 (get_pending_sizes): Likewise.
3575 (put_pending_size): Likewise.
3576 (put_pending_sizes): Likewise.
3577 (variable_size): Do not call put_pending_size and tidy up.
3578 * function.h (struct function): Remove dont_save_pending_sizes_p.
3579 * lto-streamer-in.c (input_function): Do not stream it.
3580 * lto-streamer-out.c (output_function): Likewise.
3581 * tree-inline.c (initialize_cfun): Do not copy it.
3582 * c-decl.c (store_parm_decls): Do not set it.
3583 * omp-low.c (create_task_copyfn): Likewise.
3584 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3586 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3588 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3590 (*movdf_internal): Ditto.
3591 (*movdf_internal_nointeger): Ditto.
3592 (*movsf_internal): Ditto.
3594 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3596 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3597 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3598 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3599 (c_variable_size): Remove.
3600 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3601 call put_pending_sizes.
3602 (get_parm_info): Add parameter expr. Use it to set
3603 arg_info->pending_sizes.
3604 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3606 * c-parser.c (c_parser_parms_declarator): Update call to
3607 c_parser_parms_list_declarator.
3608 (c_parser_parms_list_declarator): Take parameter expr. Update
3609 call to push_parm_decl. Update recursive call. Don't call
3610 get_pending_sizes. Update calls to get_parm_info.
3611 (c_parser_objc_method_definition): Update calls to
3612 c_parser_objc_method_decl and objc_start_method_definition.
3613 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3614 (c_parser_objc_method_decl): Add parameter expr. Update call to
3616 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3617 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3618 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3620 2011-05-05 Michael Hope <michael.hope@linaro.org>
3623 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3626 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3628 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3629 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3630 (spu_output_mi_thunk): New function.
3632 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3634 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3635 targetm.asm_out.print_operand.
3636 * config/sol2.c: Include target.h.
3638 2011-05-04 Jan Hubicka <jh@suse.cz>
3640 * ipa-inline.c (reset_edge_caches): New function.
3641 (update_caller_keys): Add check_inlinablity_for; do not
3642 reset edge caches; remove now unnecesary loop.
3643 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3644 (update_all_callee_keys): Likewise.
3645 (inline_small_functions): Sanity check cache; update code
3648 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3650 PR rtl-optimization/47612
3651 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3652 as the last insn of the sequence to be moved.
3654 2011-05-04 Tobias Burnus <burnus@net-b.de>
3657 * doc/invoke.texi (Ofast): Document that it
3658 enables Fortran's -fno-protect-parens.
3660 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3662 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3664 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3666 * stor-layout.c (variable_size): Do not issue errors.
3668 2011-05-04 Richard Guenther <rguenther@suse.de>
3670 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3671 for array-ref indices.
3672 (tree_coverage_counter_addr): Likewise.
3673 (build_fn_info_type): Use size_int for index types.
3674 (build_gcov_info): Likewise.
3676 2011-05-04 Richard Guenther <rguenther@suse.de>
3678 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3680 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3681 for constructor indices.
3682 (push_init_level): Likewise.
3684 2011-05-04 Richard Guenther <rguenther@suse.de>
3686 * explow.c (promote_mode): Move variable declarations before code.
3688 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3690 * tree.h (build_function_type_array): Declare.
3691 (build_varargs_function_type_array): Declare.
3692 (build_function_type_vec, build_varargs_function_type_vec): Define.
3693 * tree.c (build_function_type_array_1): New function.
3694 (build_function_type_array): New function.
3695 (build_varargs_function_type_array): New function.
3697 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3699 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3700 before setting STMT_VINFO_TYPE.
3702 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3704 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3705 instead of spu_pass_by_reference.
3707 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3709 * calls.c (emit_library_call_value_1): Invoke
3710 promote_function_mode hook on libcall arguments.
3711 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3712 argument being NULL.
3713 * targhooks.c (default_promote_function_mode): Lisewise.
3714 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3715 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3717 * doc/tm.texi: Document that TYPE argument might be NULL.
3719 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3721 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3723 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3726 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3728 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3730 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3731 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3733 * mips-tfile.c: ... here.
3734 Don't include coretypes.h, tm.h, filenames.h.
3735 (saber_stop): Remove definition and all calls.
3736 [__SABER__]: Remove.
3737 (__LINE__): Remove default.
3738 (Size_t, Ptrdiff_t): Remove definitions.
3739 Replace by size_t, ptrdiff_t.
3740 [!MIPS_DEBUGGING_INFO]: Remove.
3741 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3742 (progname): Add const.
3744 Replace all uses by static.
3745 (ALIGN_SYMTABLE_OFFSET): Remove default.
3746 * mips-tdump.c: Don't include coretypes.h, tm.h.
3747 Remove !MIPS_IS_STAB guard.
3748 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3749 $(TM_H), filenames.h dependencies.
3750 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3752 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3755 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3756 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3758 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3761 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3762 account and save/restore RETS.
3763 (PROFILE_BEFORE_PROLOGUE): Define.
3764 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3765 the push insn to use predecrement.
3767 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3770 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3772 2011-05-04 Nick Clifton <nickc@redhat.com>
3774 * config/mn10300/mn10300.c: Include cfgloop.h.
3776 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3777 Lcc or a FLcc insn into the instruction stream.
3778 (mn10300_block_contains_call): New function. Returns true if the
3779 given basic block contains a CALL insn.
3780 (mn10300_loop_contains_call_insn): New function. Returns true if
3781 the given loop contains a CALL insn.
3782 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3783 to use the SETLB and Lcc or FLcc insns.
3784 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3785 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3786 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3787 disable the SETLB optimization.
3788 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3789 __SETLB__ or __NO_SETLB__.
3790 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3791 (movsf_internal): Handle MDR register.
3792 (cmpsi): Make visible.
3793 (setlb): New pattern.
3795 (FLcc): New pattern.
3797 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3800 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3801 for reg<->xmm moves.
3802 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3803 (vec_concatv2di_rex64_sse): Ditto.
3804 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3805 (*vec_extractv2di_1_rex64): Ditto.
3808 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3810 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3812 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3814 2011-05-04 Richard Guenther <rguenther@suse.de>
3816 * tree.h (int_const_binop): Remove notrunc argument.
3817 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3818 create integer constants that are properly truncated.
3819 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3820 (const_binop): Remove zero notrunc argument to int_const_binop.
3821 (size_binop_loc): Likewise.
3822 (fold_div_compare): Likewise.
3823 (maybe_canonicalize_comparison_1): Likewise.
3824 (fold_comparison): Likewise.
3825 (fold_binary_loc): Likewise.
3826 (multiple_of_p): Likewise.
3827 * expr.c (store_constructor): Likewise.
3828 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3829 (maybe_fold_stmt_addition): Likewise.
3830 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3831 * stor-layout.c (layout_type): Likewise.
3832 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3833 * tree-sra.c (build_ref_for_offset): Likewise.
3834 (build_user_friendly_ref_for_offset): Likewise.
3835 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3836 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3837 * tree-ssa-loop-niter.c (inverse): Likewise.
3838 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3839 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3840 * tree-switch-conversion.c (check_range): Likewise.
3841 (build_constructors): Likewise.
3842 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3843 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3844 (extract_range_from_assert): Likewise.
3845 (vrp_int_const_binop): Likewise.
3846 (extract_range_from_binary_expr): Likewise.
3847 (extract_range_from_unary_expr): Likewise.
3848 (check_array_ref): Likewise.
3849 (find_case_label_range): Likewise.
3850 (simplify_div_or_mod_using_ranges): Likewise.
3851 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3852 comparing case labels for merging.
3854 2011-05-03 Mark Wielaard <mjw@redhat.com>
3856 * dwarf2out.c (debug_str_hash_forced): Removed.
3857 (gen_label_for_indirect_string): Removed.
3858 (get_debug_string_label): Removed.
3859 (AT_string_form): Generate label directly.
3860 (output_indirect_string): Test indirect_string_node for
3861 DW_FORM_strp instead of checking label and refcount.
3862 (prune_indirect_string): Removed.
3863 (prune_unused_types): Don't check debug_str_hash_forced or
3864 call prune_indirect_string.
3866 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3869 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3871 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3875 * combine.c (try_combine): Skip debug insns at m_split tests.
3877 2011-04-26 Mark Wielaard <mjw@redhat.com>
3880 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3881 when info_section_emitted.
3883 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3885 * config/mips/mips-opts.h: New.
3886 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3888 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3889 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3890 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3892 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3894 (mips_abi, mips_code_readable): Don't declare.
3895 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3896 (mabi=): Use Enum and Var.
3897 (mips_abi): New Enum and EnumValue entries.
3898 (mcode-readable=): Use Enum and Var.
3899 (mips_code_readable_setting): New Enum and EnumValue entries.
3900 (mr10k-cache-barrier=): Use Enum and Var.
3901 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3903 2011-05-03 Jan Hubicka <jh@suse.cz>
3905 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3906 replace hash by pointer map.
3907 (cgraph_node_set_element_def, cgraph_node_set_element,
3908 const_cgraph_node_set_element, varpool_node_set_element_def,
3909 varpool_node_set_element, const_varpool_node_set_element): Remove.
3910 (free_cgraph_node_set, free_varpool_node_set): New function.
3911 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3912 * tree-emutls.c: Free varpool node set.
3913 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3914 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3915 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3916 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3917 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3918 Move here from ipa.c; implement using pointer_map
3919 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3920 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3921 debug_cgraph_node_set, varpool_node_set_new,
3922 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3923 dump_varpool_node_set, debug_varpool_node_set):
3924 Move to ipa-uitls.c.
3925 * passes.c (ipa_write_summaries): Update.
3927 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3929 From Mike Frysinger:
3930 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3931 bf542/bf544/bf547/bf548/bf549.
3933 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3935 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3937 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3940 * config/bfin/bfin.md (MOVCC): New mode_macro.
3941 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3942 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3943 comments from generated assembly.
3945 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3948 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3949 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3950 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3951 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3952 * config/bfin/lib1funcs.asm (___muldi3): New function.
3954 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3956 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3957 build_function_type_list instead of build_function_type.
3958 Rearrange initialization of `args' to do so.
3960 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3962 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3963 instead of build_function_type.
3965 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3967 * config/rs6000/rs6000.c (spe_init_builtins): Call
3968 build_function_type_list instead of build_function_type.
3969 (paired_init_builtins, altivec_init_builtins): Likewise.
3970 (builtin_function_type): Likewise.
3972 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3974 * config/sh/sh.c (sh_media_init_builtins): Call
3975 build_function_type_list instead of build_function_type.
3977 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3979 * config/sparc/sparc.c (sparc_file_end): Call
3980 build_function_type_list instead of build_function_type.
3982 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3984 * config/alpha/alpha.c (alpha_init_builtins): Call
3985 build_function_type_list instead of build_function_type.
3987 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3989 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3990 build_function_type_list instead of build_function_type.
3992 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3994 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3995 build_function_type_list instead of build_function_type.
3996 Delete `endlink' variable.
3998 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4000 * config/avr/avr.c (avr_init_builtins): Call
4001 build_function_type_list instead of build_function_type.
4003 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4005 * config/picochip/picochip.c (picochip_init_builtins): Call
4006 build_function_type_list instead of build_function_type.
4007 Delete `endlink' variable.
4009 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4011 * config/bfin/bfin.c (bfin_init_builtins): Call
4012 build_function_type_list instead of build_function_type.
4014 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4017 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4018 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4020 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4023 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4024 libbffastfp overrides libgcc when -mfast-fp.
4026 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4028 Originally from Bernd Schmidt
4029 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4030 * config/bfin/bfin.c (override_options): Test it and error if
4033 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4035 Originally From Bernd Schmidt
4036 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4039 2011-05-03 Jeff Law <law@redhat.com>
4041 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4042 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4043 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4044 than accessing AUX field directly. Free the AUX field before
4046 (thread_block, thread_through_loop_header): Likewise.
4047 (thread_single_edge, mark_threaded_blocks): Likewise.
4048 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4049 (register_jump_thread): Do not attempt to thread to a NULL edge.
4051 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4053 * function.c (init_function_start): Call decide_function_section.
4054 * varasm.c (decide_function_section): New function.
4055 (assemble_start_function): When not using
4056 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4057 or first_function_block_is_cold.
4058 * rtl.h (decide_function_section): Declare.
4060 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4061 Jakub Jelinek <jakub@redhat.com>
4064 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4065 only succeed if req_mode is the same as set_mode.
4067 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4069 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4070 * genemit.c (gen_exp): Handle RETURN.
4071 * emit-rtl.c (verify_rtx_sharing): Likewise.
4072 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4073 * rtl.c (copy_rtx): RETURN is shared.
4074 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4076 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4077 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4078 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4079 * config/cris/cris.c (cris_expand_return): Likewise.
4080 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4081 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4082 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4083 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4084 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4086 * config/v850/v850.c (expand_epilogue): Likewise.
4087 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4088 * config/arm/arm.md (epilogue): Likewise.
4089 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4090 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4091 variable to ret_reg.
4093 2011-05-03 Richard Guenther <rguenther@suse.de>
4096 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4097 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4098 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4100 2011-05-03 Richard Guenther <rguenther@suse.de>
4102 * c-decl.c (grokdeclarator): Instead of looking at
4103 TREE_OVERFLOW check if the constant fits in the index type.
4105 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4107 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4108 (vec_store_lanes<mode><mode>): Likewise.
4110 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4112 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4113 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4114 convert_optab_index values.
4115 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4116 * genopinit.c (optabs): Initialize the new optabs.
4117 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4118 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4119 (expand_STORE_LANES): New functions.
4120 * tree.h (build_array_type_nelts): Declare.
4121 * tree.c (build_array_type_nelts): New function.
4122 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4123 (vect_model_load_cost): Likewise.
4124 (vect_store_lanes_supported, vect_load_lanes_supported)
4125 (vect_record_strided_load_vectors): Declare.
4126 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4127 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4128 (vect_transform_strided_load): Split out statement recording into...
4129 (vect_record_strided_load_vectors): ...this new function.
4130 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4131 (write_vector_array, create_array_ref): New functions.
4132 (vect_model_store_cost): Add store_lanes_p argument.
4133 (vect_model_load_cost): Add load_lanes_p argument.
4134 (vectorizable_store): Try to use store-lanes functions for
4136 (vectorizable_load): Likewise load-lanes and loads.
4137 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4138 to vect_model_store_cost.
4139 (vect_build_slp_tree): Likewise vect_model_load_cost.
4141 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4143 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4144 * hooks.c (hook_bool_mode_uhwi_false): New function.
4145 * target.def (array_mode_supported_p): New hook.
4146 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4147 * doc/tm.texi: Regenerate.
4148 * stor-layout.c (mode_for_array): New function.
4149 (layout_type): Use it.
4150 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4151 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4153 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4156 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4157 for -fstack-check if the size to allocate is negative.
4159 2011-05-02 Lawrence Crowl <crowl@google.com>
4161 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4162 (timevar_cond_start): New for starting a timer only when it is not
4164 (timevar_cond_stop): New for stopping a timer when it was not already
4167 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4168 (timevar_cond_start): New as above.
4169 (timevar_cond_stop): New as above.
4171 * timevar.def: Add start/stop timers for compiler phases,
4172 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4173 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4174 and TV_PHASE_FINALIZE.
4175 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4176 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4177 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4178 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4179 Make unused TV_OVERLOAD into a start/stop timer.
4181 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4182 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4183 to indicate that they are start/stop timers.
4185 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4186 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4187 Move initialization to do_compile.
4188 (do_compile): Add initialization from above.
4189 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4191 * c-decl.c (c_write_global_declarations): Add start/stop of
4192 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4194 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4195 or TV_PARSE_INLINE, as appropriate.
4196 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4197 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4199 2011-05-02 Jason Merrill <jason@redhat.com>
4202 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4204 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4207 * c-decl.c (finish_decl): Only create a composite if the types are
4210 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4212 * config/fr30/fr30-protos.h (Mmode): Don't define.
4213 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4214 definition where used.
4215 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4216 define. Expand definitions where used.
4217 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4218 Expand definitions where used.
4219 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4220 rx_function_arg, rx_function_arg_advance,
4221 rx_function_arg_boundary): Expand definitions of those macros.
4222 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4223 definition where used.
4225 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4227 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4229 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4230 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4231 with *movv2sf_internal_rex64_avx.
4232 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4233 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4234 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4235 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4236 "vex" in "prefix" attribute calculation.
4237 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4239 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4242 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4243 inputs match the output.
4245 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4248 * config/m68k/m68k.c (m68k_expand_prologue): Set
4249 current_function_static_stack_size.
4251 2011-05-02 Jan Hubicka <jh@suse.cz>
4253 * lto-streamer.c (lto_streamer_cache_insert_1,
4254 lto_streamer_cache_lookup, lto_streamer_cache_create,
4255 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4256 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4258 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4260 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4261 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4262 config/m68k/t-opts: New files.
4263 * config/m68k/m68k-tables.opt: New file (generated).
4264 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4265 extra_options and m68k/t-opts to tmake_file.
4266 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4267 (all_isas): Initialize using m68k-isas.def.
4268 (all_microarchs): Initialize using m68k-microarchs.def.
4269 (m68k_find_selection): Remove.
4270 (m68k_handle_option): Don't assert that global structures are in
4271 use. Use error_at. Access variables via opts pointer. Don't
4272 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4273 directly for -m68020-40 and -m68020-60.
4274 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4275 m68k_tune_entry here.
4276 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4278 (m68k_library_id_string): Remove declaration.
4279 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4280 (m68k_library_id_string): New Variable.
4281 (march=, mcpu=, mtune=): Use Enum and Var.
4283 2011-05-02 Richard Guenther <rguenther@suse.de>
4285 * varasm.c (output_constructor_regular_field): Compute zero-based
4286 index with double-ints. Make sure to ICE instead of producing
4288 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4289 in asserts. Properly use a signed type.
4291 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4293 * config/i386/sse.md (V): New mode iterator.
4294 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4296 (V_256): Rename from AVX256MODE.
4297 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4298 condition to all users.
4300 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4301 condition to all users.
4302 (VF_128): Make V4SF mode unconditional.
4303 (VF_256): Rename from AVX256MODEF2P.
4304 (VI4F_128): Rename from SSEMODE4S.
4305 (VI8F_128): Rename from SSEMODE2D.
4306 (VI4F_256): Rename from AVX256MODE8P.
4307 (VI8F_256): Rename from AVX256MODE4P.
4308 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4309 (ssescalarmodesuffix): Remove SF and DF modes.
4310 (SSEMODE124): Remove.
4311 (SSEMODE1248): Ditto.
4312 (SSEMODEF2P): Ditto.
4313 (AVXMODEF2P): Ditto.
4314 (AVXMODEFDP): Ditto.
4315 (AVXMODEFSP): Ditto.
4316 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4318 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4320 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4321 xop_pcmov_<mode>256. Use V mode iterator.
4323 Adjust RTX patterns globally for renamed mode attributes.
4325 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4327 * haifa-sched.c (sched_emit_insn): Emit insn before first
4328 non-scheduled insn. Inform back-end about new insn. Add
4329 new insn to scheduled_insns list.
4331 2011-05-02 Richard Guenther <rguenther@suse.de>
4333 PR tree-optimization/48822
4334 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4335 (process_scc): Indicate which iteration we start.
4337 2011-05-02 Jan Hubicka <jh@suse.cz>
4339 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4340 (lto_section_overrun): New.
4341 * lto-section-out.c (append_block): Rename to ...
4342 (lto_append_block): ... this one; export.
4343 (lto_output_1_stream): Move lto lto-streamer.h
4344 (lto_output_data_stream): Update.
4345 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4346 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4349 2011-05-02 Richard Guenther <rguenther@suse.de>
4351 * tree.c (tree_code_counts): New global array.
4352 (record_node_allocation_statistics): Count individual tree codes.
4353 (dump_tree_statistics): Dump individual code stats.
4355 2011-05-01 Jan Hubicka <jh@suse.cz>
4357 * ipa-inline.c (caller_growth_limits): Fix thinko when
4358 looking for largest stack frame.
4359 * ipa-inline.h (dump_inline_summary): Declare.
4360 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4362 (dump_inline_summary): Export.
4363 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4365 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4367 * reginfo.c (memory_move_cost): Change rclass argument type form
4368 'enum reg_class' to reg_class_t.
4369 * reload.h (memory_move_cost): Update prototype.
4370 * postreload.c reload_cse_simplify_set): Change type dclass var to
4372 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4374 (ira_allocate_and_set_costs): Change aclass argument type form
4375 'enum reg_class' to reg_class_t.
4376 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4377 Change aclass argument type to reg_class_t.
4378 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4380 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4381 memory_move_cost call.
4383 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4384 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4385 Change type tmp var to reg_class_t.
4387 2011-04-30 Jan Hubicka <jh@suse.cz>
4389 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4390 inlining into function with flatten attribute.
4391 (want_inline_small_function_p): Be more realistic about inlining
4392 cold calls where callee size grows.
4394 2011-04-30 Jan Hubicka <jh@suse.cz>
4396 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4399 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4401 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4402 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4403 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4404 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4405 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4406 (print_operand): Rename to...
4407 (sparc_print_operand): ...this. Make static. Adjust
4408 sparc_print_operand function call.
4409 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4412 2011-04-30 Jan Hubicka <jh@suse.cz>
4415 * ipa-inline.c (early_inliner): Disable when doing late
4416 addition of function.
4418 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4420 * dwarf2out.c (get_address_mode): New inline.
4421 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4422 if not dwarf_strict emit
4423 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4424 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4425 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4426 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4427 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4428 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4429 mem_loc_descriptor callers.
4430 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4431 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4432 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4433 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4434 (base_types): New variable.
4435 (get_base_type_offset, calc_base_type_die_sizes,
4436 base_type_for_mode, mark_base_types, base_type_cmp,
4437 move_marked_base_types): New functions.
4438 (calc_die_sizes): Assert that die_offset is 0 or equal to
4440 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4441 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4442 callers. If not dwarf_strict, call mem_loc_descriptor even for
4443 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4444 (gen_subprogram_die): Don't give up on call site parameters
4445 with non-integral or large integral modes. Adjust
4446 mem_loc_descriptor callers.
4447 (prune_unused_types): Call prune_unused_types_mark on base_types
4449 (resolve_addr): Call mark_base_types.
4450 (dwarf2out_finish): Call move_marked_base_types.
4452 PR tree-optimization/48809
4453 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4455 (gen_inbound_check): Don't compute index_expr - range_min in utype
4456 again, instead reuse SSA_NAME initialized in build_arrays.
4457 Remove two useless gsi_for_stmt calls.
4459 2011-04-29 Jeff Law <law@redhat.com>
4461 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4463 2011-04-29 Martin Jambor <mjambor@suse.cz>
4465 * cgraph.h (cgraph_postorder): Remove declaration.
4466 * ipa-utils.h (ipa_free_postorder_info): Declare.
4467 (ipa_reverse_postorder): Likewise.
4468 * cgraphunit.c: Include ipa-utils.h.
4469 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4470 * ipa-inline.c: Include ipa-utils.h.
4471 (ipa_inline): Update call to ipa_reverse_postorder.
4472 * ipa-pure-const.c (propagate_pure_const): Update call to
4473 ipa_reduced_postorder and ipa_print_order. Call
4474 ipa_free_postorder_info to clean up.
4475 (propagate_nothrow): Likewise.
4476 * ipa-reference.c (propagate): Removed a useless call to
4477 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4478 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4479 * ipa.c: Include ipa-utils.h.
4480 (ipa_profile): Update call to ipa_reverse_postorder.
4481 (cgraph_postorder): Moved to...
4482 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4483 (ipa_utils_print_order): Renamed to ipa_print_order.
4484 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4486 (ipa_free_postorder_info): New function.
4487 * passes.c: Include ipa-utils.h.
4488 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4489 (ipa_write_summaries): Likewise.
4490 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4491 (cgraphunit.o): Likewise.
4493 (ipa-inline.o): Likewise.
4495 2011-04-29 Jan Hubicka <jh@suse.cz>
4497 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4498 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4499 * ipa-inline.h (clause_t): Turn into unsigned int.
4500 * ipa-inline-analysis.c (add_clause): Do more simplification.
4501 (and_predicates): Shortcut more cases.
4502 (predicates_equal_p): Move forward; check that clauses are properly
4504 (or_predicates): Shortcut more cases.
4505 (edge_execution_predicate): Rewrite as...
4506 (set_cond_stmt_execution_predicate): ... this function; handle
4507 __builtin_constant_p.
4508 (set_switch_stmt_execution_predicate): New .
4509 (compute_bb_predicates): New.
4510 (will_be_nonconstant_predicate): Update TODO.
4511 (estimate_function_body_sizes): Use compute_bb_predicates
4512 and free them later, always try to estimate if stmt is constant.
4513 (estimate_time_after_inlining, estimate_size_after_inlining):
4514 Gracefully handle optimized out edges.
4515 (read_predicate): Fix off by one error.
4517 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4519 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4521 2011-04-27 Xinliang David Li <davidxl@google.com>
4523 * tree-profile.c (init_ic_make_global_vars): Set
4524 tls attribute on ic vars.
4525 * coverage.c (coverage_end_function): Initialize
4526 function_list with zero.
4528 2011-04-29 Richard Guenther <rguenther@suse.de>
4530 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4531 for the type of the result.
4532 (fold_builtin_isascii): Likewise.
4533 (fold_builtin_toascii): Use integer_type_node where appropriate.
4534 (fold_builtin_logb): Likewise.
4535 (fold_builtin_frexp): Likewise.
4536 (fold_builtin_strstr): Likewise.
4537 (fold_builtin_strpbrk): Likewise.
4538 (fold_builtin_fputs): Likewise.
4539 (fold_builtin_sprintf): Likewise.
4540 (fold_builtin_snprintf): Likewise.
4541 (fold_builtin_printf): Likewise.
4542 (do_mpfr_remquo): Use a proper type for the assigned constant.
4543 (do_mpfr_lgamma_r): Likewise.
4544 * dwarf2out.c (resolve_one_addr): Use size_int.
4545 * except.c (init_eh): Likewise.
4546 (assign_filter_values): Use integer_type_node for filter values.
4547 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4549 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4550 for EH region numbers.
4551 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4552 for the shift amount.
4554 2011-04-29 Richard Guenther <rguenther@suse.de>
4556 * expr.h (expand_shift): Rename to ...
4557 (expand_variable_shift): ... this.
4558 (expand_shift): Take a constant shift amount.
4559 * expmed.c (expand_shift): Rename to ...
4560 (expand_variable_shift): ... this.
4561 (expand_shift): New wrapper around expand_variable_shift.
4562 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4563 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4564 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4565 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4566 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4567 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4568 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4569 emit_store_flag_1, emit_store_flag): Likewise.
4570 * builtins.c (expand_builtin_signbit): Likewise.
4571 * calls.c (load_register_parameters): Likewise.
4572 * function.c (assign_parm_setup_block): Likewise.
4573 * lower-subreg.c (resolve_shift_zext): Likewise.
4574 * optabs.c (widen_bswap, expand_abs_nojump,
4575 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4576 * spu/spu.c (spu_expand_extv): Likewise.
4577 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4579 2011-04-29 Richard Guenther <rguenther@suse.de>
4581 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4582 for the remapped region number.
4583 * predict.c (build_predict_expr): Use integer_type_node for the
4585 * fold-const.c (fold_binary_loc): Use integer_type_node for
4586 the shift amount. Use a proper type for the PLUS_EXPR operand.
4588 2011-04-29 Michael Matz <matz@suse.de>
4590 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4591 other trees that just builtins.
4592 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4594 2011-04-29 Richard Guenther <rguenther@suse.de>
4596 * tree-nested.c (get_trampoline_type): Use size_int.
4597 (get_nl_goto_field): Likewise.
4598 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4600 (lower_eh_constructs_2): Likewise.
4601 (lower_resx): Likewise.
4602 (lower_eh_dispatch): Likewise.
4603 * tree-mudflap.c (mf_build_string): Use size_int.
4604 (mudflap_register_call): Use integer_type_node for the flag.
4605 (mudflap_enqueue_constant): Use size_int.
4606 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4607 instead of rebuilding it.
4609 2011-04-29 Richard Guenther <rguenther@suse.de>
4611 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4612 Handle OBJ_TYPE_REF.
4613 (find_func_aliases_for_call): Use it more consistently.
4615 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4617 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4618 (rank_for_schedule): Use it.
4619 (schedule_block): Set it.
4621 2011-04-28 David Li <davidxl@google.com>
4623 * tree.c (crc32_string): Use crc32_byte.
4624 (crc32_byte): New function.
4625 * tree.h (crc32_byte): New function.
4626 * gcov.c (read_graph_file): Handle new cfg_cksum.
4627 (read_count_file): Ditto.
4628 * profile.c (instrument_values): Ditto.
4629 (get_exec_counts): Ditto.
4630 (read_profile_edge_counts): Ditto.
4631 (compute_branch_probabilities): Ditto.
4632 (compute_value_histograms): Ditto.
4633 (branch_prob): Ditto.
4634 (end_branch_prob): Ditto.
4635 * coverage.c (read_counts_file): Ditto.
4636 (get_coverage_counts): Ditto.
4637 (tree_coverage_counter_addr): Ditto.
4638 (coverage_checksum_string): Ditto.
4639 (coverage_begin_output): Ditto.
4640 (coverage_end_function): Ditto.
4641 (build_fn_info_type): Ditto.
4642 (build_fn_info_value): Ditto.
4643 * libgcov.c (gcov_exit): Ditto.
4644 * gcov-dump.c (tag_function): Ditto.
4645 (compute_checksum): Remove.
4647 2011-04-29 Alan Modra <amodra@gmail.com>
4649 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4650 unspec plus offset. Tidy macho code.
4652 2011-04-29 Martin Jambor <mjambor@suse.cz>
4654 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4655 node instead of a decl. Update all callers.
4656 * cgraph.h: Update declaration.
4658 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4660 PR tree-optimization/48765
4661 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4662 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4663 to indicate if loop aware SLP is being used. Scan the statements
4664 and update the vectorization factor according to the type of
4665 vectorization before statement analysis.
4666 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4667 pass it to vect_analyze_loop_operations.
4668 (vectorizable_reduction): Set number of copies to 1 in case of pure
4670 * tree-vect-stmts.c (vectorizable_conversion,
4671 vectorizable_assignment, vectorizable_shift,
4672 vectorizable_operation, vectorizable_type_demotion,
4673 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4675 (vectorizable_condition): Move the check that it is not SLP
4676 vectorization before the number of copies check.
4677 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4678 to vectorize the loop using SLP.
4680 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4683 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4686 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4688 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4689 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4690 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4691 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4692 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4694 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4695 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4696 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4697 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4698 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4699 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4701 * config/i386/linux.h (REG_NAME): Don't define.
4702 * config/i386/linux64.h (REG_NAME): Don't define.
4703 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4704 Undefine before defining.
4706 2011-04-28 Jan Hubicka <jh@suse.cz>
4708 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4709 nonconstant_names array.
4710 (estimate_function_body_sizes): Build nonconstant_names array; handle
4711 BUILT_IN_CONSTANT_P.
4713 2011-04-28 Richard Guenther <rguenther@suse.de>
4717 2011-04-28 Richard Guenther <rguenther@suse.de>
4719 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4720 as late as possible.
4722 2011-04-28 Richard Guenther <rguenther@suse.de>
4724 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4725 (debug_constraint): Do it here.
4726 (dump_constraints): And here.
4727 (rewrite_constraints): And here.
4728 (dump_constraint_edge): Remove.
4729 (dump_constraint_graph): Rewrite to produce DOT output.
4730 (solve_constraints): Build succ graph as late as possible.
4731 Dump constraint graphs before and after solving.
4733 2011-04-28 Richard Guenther <rguenther@suse.de>
4735 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4736 New function split out from ...
4737 (find_func_aliases): ... here. Call it.
4738 (find_func_aliases_for_call): Likewise.
4740 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4742 * internal-fn.h (internal_fn_name_array): Declare.
4743 (internal_fn_flags_array): Likewise.
4745 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4747 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4748 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4750 (ssemodefsuffix): Remove.
4751 (ssevecmodesuffix): New mode attribute.
4752 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4753 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4754 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4755 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4756 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4757 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4758 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4759 ssemodesuffix mode attribute.
4760 (float splitters): Use ssevecmodesuffix mode attribute.
4761 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4762 (sseinsmode): Rename from avxvecmode.
4763 (avxsizesuffix): Rename from avxmodesuffix.
4764 (sseintvecmode): Rename from avxpermvecmode.
4765 (ssedoublevecmode): Rename from ssedoublesizemode.
4766 (ssehalfvecmode): Rename from avxhalfvecmode.
4767 (ssescalarmode): Rename from avxscalarmode.
4768 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4769 templates for ssemodesuffix mode attribute.
4770 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4773 Adjust RTX patterns globally for renamed mode attributes.
4775 2011-04-27 Jan Hubcika <jh@suse.cz>
4777 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4778 * ipa-inline-analysis.c: Include alloc-pool.h.
4779 (edge_predicate_pool): New.
4780 (trye_predicate_p): New function
4781 (false_predicate_p): New function.
4782 (add_clause): Sanity check that false clauses are "optimized";
4783 never add clauses to predicate that is already known to be false.
4784 (and_predicate): Use flase_predicate_p.
4785 (evaulate_predicate): Rename to ...
4786 (evaluate_predicate): ... this one; update all callers; assert
4787 that false is not listed among possible truths.
4788 (dump_predicate): Use true_predicate_p.
4789 (account_size_time): Use false_predicate_p.
4790 (evaulate_conditions_for_edge): Rename to ...
4791 (evaluate_conditions_for_edge) ... this one.
4792 (edge_set_predicate): New function.
4793 (inline_edge_duplication_hook): Duplicate edge predicates.
4794 (inline_edge_removal_hook): Free edge predicates.
4795 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4796 (dump_inline_summary): Update.
4797 (estimate_function_body_sizes): Set edge predicates.
4798 (estimate_calls_size_and_time): Handle predicates.
4799 (estimate_callee_size_and_time): Update.
4800 (remap_predicate): Add toplev_predicate; update comment.
4801 (remap_edge_predicates): New function.
4802 (inline_merge_summary): Compute toplev predicate; update.
4803 (read_predicate): New function.
4804 (read_inline_edge_summary): Use it.
4805 (inline_read_section): Likewise.
4806 (write_predicate): New function.
4807 (write_inline_edge_summary): Use it.
4808 (inline_write_summary): Likewise.
4809 (inline_free_summary): Free alloc pool and edge summary vec.
4811 2011-04-27 Richard Guenther <rguenther@suse.de>
4813 * tree-ssa-structalias.c (changed_count): Remove.
4814 (changed): Use a bitmap.
4815 (unify_nodes): Adjust.
4816 (do_sd_constraint): Likewise.
4817 (do_ds_constraint): Likewise.
4818 (do_complex_constraint): Likewise.
4819 (solve_graph): Likewise.
4821 2011-04-27 Jan Hubicka <jh@suse.cz>
4823 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4825 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4827 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4828 (avx_vperm2f128_*_operand): Ditto.
4829 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4830 Use avx_vpermilp_parallel in insn condition.
4831 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4832 Use avx_vperm2f128_parallel in insn condition.
4834 2011-04-27 Richard Guenther <rguenther@suse.de>
4836 * Makefile.in (tree-ssa-structalias.o): Remove
4837 gt-tree-ssa-structalias.h dependency.
4838 (GTFILES): Remove tree-ssa-structalias.c.
4839 * tree.c (allocate_decl_uid): New function.
4840 (make_node_stat): Use it.
4841 (copy_node_stat): Likewise.
4842 * tree.h (allocate_decl_uid): Declare.
4843 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4844 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4845 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4846 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4847 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4848 (struct heapvar_map): Likewise.
4849 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4850 heapvar_insert): Likewise.
4851 (make_heapvar_for): Rename to ...
4852 (make_heapvar): ... this. Simplify.
4853 (fake_var_decl_obstack): New global var.
4854 (build_fake_var_decl): New function.
4855 (make_constraint_from_heapvar): Adjust.
4856 (handle_lhs_call): Likewise.
4857 (create_function_info_for): Likewise.
4858 (intra_create_variable_infos): Likewise.
4859 (init_alias_vars): Allocate fake_var_decl_obstack.
4860 (init_alias_heapvars, delete_alias_heapvars): Remove.
4861 (compute_points_to_sets): Do not call init_alias_heapvars.
4862 (ipa_pta_execute): Likewise.
4863 (delete_points_to_sets): Free fake_var_decl_obstack.
4865 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4867 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4868 (si_from_UTItype, si_to_UTItype): New functions.
4869 (__udivmodti4): Use them to implement type-punning.
4870 * config/spu/multi3.c (union qword_TItype): New data type.
4871 (si_from_TItype, si_to_TItype): New functions.
4872 (__multi3): Use them to implement type-punning.
4874 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4876 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4878 2011-04-27 Jan Hubicka <jh@suse.cz>
4880 * ipa-prop.c (function_insertion_hook_holder): New holder.
4881 (ipa_add_new_function): New function.
4882 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4883 Register/deregister holder.
4885 2011-04-27 Richard Guenther <rguenther@suse.de>
4887 PR tree-optimization/48772
4888 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4890 2011-04-27 Richard Guenther <rguenther@suse.de>
4892 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4893 TARGET_MEM_REF handling.
4895 2011-04-27 Nick Clifton <nickc@redhat.com>
4897 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4898 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4899 (REG_CLASS_NAMES): Likewise.
4900 (REG_CLASS_CONTENTS): Likewise.
4901 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4902 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4903 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4904 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4905 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4906 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4907 duplicate register classes.
4908 (frv_class_likely_spilled_p): Likewise.
4909 (frv_register_move_cost): Likewise.
4911 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4912 end of the regno_reg_class array.
4914 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4917 * c-typeck.c (build_binary_op): Don't wrap arguments if
4918 int_operands is true.
4920 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4923 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4924 targetm.calls.must_pass_in_stack for void type.
4926 2011-04-26 Jan Hubicka <jh@suse.cz>
4928 * cgraphbuild.c (build_cgraph_edges): Update call
4929 of cgraph_create_edge and cgraph_create_indirect_edge.
4930 * cgraph.c (cgraph_create_edge_including_clones,
4931 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4932 cgraph_update_edges_for_call_stmt_node): Do not take nest
4933 argument; do not initialize call_stmt_size/time.
4934 (dump_cgraph_node): Do not dump nest.
4935 (cgraph_clone_edge): Do not take loop_nest argument;
4936 do not propagate it; do not clone call_stmt_size/time.
4937 (cgraph_clone_node): Likewise.
4938 (cgraph_create_virtual_clone): Update.
4939 * cgraph.h (struct cgraph_edge): Remove
4940 call_stmt_size/call_stmt_time/loop_nest.
4941 (cgraph_create_edge, cgraph_create_indirect_edge,
4942 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4944 * tree-emutls.c (gen_emutls_addr): Update.
4945 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4946 loop_nest; handle indirect calls, too.
4947 (clone_inlined_nodes): Do not care about updating inline summaries.
4948 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4949 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4950 stream call_stmt_size/call_stmt_time/loop_nest.
4951 * ipa-inline.c (edge_badness): Update.
4952 (ipa_inline): dump summaries after inlining.
4953 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4955 (inline_edge_summary): New function.
4956 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4957 (inline_edge_removal_hook): Handle edge summaries.
4958 (inline_edge_duplication_hook): New hook.
4959 (inline_summary_alloc): Alloc hooks.
4960 (initialize_growth_caches): Do not register removal hooks.
4961 (free_growth_caches); Do not free removal hook.
4962 (dump_inline_edge_summary): New function.
4963 (dump_inline_summary): Use it.
4964 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4965 (inline_update_callee_summaries): New function.
4966 (inline_merge_summary): Use it.
4967 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4968 (read_inline_edge_summary): New function.
4969 (inline_read_section): Use it.
4970 (write_inline_edge_summary): New function.
4971 (inline_write_summary): Use it.
4972 (inline_free_summary): Free edge new holders.
4973 * tree-inline.c (copy_bb): Update.
4975 2011-04-26 Jason Merrill <jason@redhat.com>
4977 * tree-eh.c (lower_try_finally_switch): Create the label along with
4978 the CASE_LABEL_EXPR.
4980 2011-04-26 David S. Miller <davem@davemloft.net>
4981 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4983 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4984 * configure: Regenerate.
4986 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4989 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4991 (VEC_reduc): New code iterator and splitters for vector reduction.
4992 (VEC_reduc_name): Ditto.
4993 (VEC_reduc_rtx): Ditto.
4994 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4995 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4997 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4998 support for extracting SF on VSX.
5000 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5001 generating xscvspdp.
5002 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5003 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5004 double add, minimum, maximum vector reduction.
5005 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5006 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5007 optimize double vector reduction.
5008 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5010 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5012 * config/fr30/fr30.h (inhibit_libc): Don't define.
5013 * config/m32r/m32r-protos.h: Correct comment.
5014 * config/v850/v850.h (GHS_default_section_names,
5015 GHS_current_section_names): Use tree, not union tree_node *.
5017 2011-04-26 Xinliang David Li <davidxl@google.com>
5019 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5020 * c-family/c-opts.c (c_common_handle_option): Set
5021 warn_maybe_uninitialized.
5022 * opts.c (common_handle_option): Ditto.
5023 * common.opt: New option.
5024 * tree-ssa.c (warn_uninit): Add one more parameter.
5025 (warn_uninitialized_var): Pass warning code.
5026 * tree-flow.h: Interface change.
5028 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5030 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5031 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5032 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5034 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5036 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5037 * config/mips/mips.opt (mmips-tfile): Remove.
5039 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5040 mips-tdump reference to ...
5041 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5042 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5043 reference by Tru64 UNIX.
5045 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5048 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5049 is error_mark_node, set value to NULL.
5051 PR tree-optimization/48734
5052 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5053 if return value from maybe_fold_*_comparsions isn't something
5054 the code is prepared to handle.
5056 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5058 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5060 (ext_QIreg_nomode_operands): Remove.
5061 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5065 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5067 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5069 2011-04-26 Richard Guenther <rguenther@suse.de>
5071 * c-typeck.c (build_unary_op): Do not expand array-refs via
5072 pointer arithmetic. Only adjust qualifiers for function types.
5074 2011-04-26 Richard Guenther <rguenther@suse.de>
5077 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5078 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5079 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5080 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5082 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5084 * doc/extend.texi: Document __underlying_type.
5086 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5088 * config/rs6000/titan.md (automata_option "progress"): Remove.
5090 2011-04-25 Jeff Law <law@redhat.com>
5092 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5094 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5096 * system.h (ENUM_BITFIELD): Remove.
5098 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5099 Eric Botcazou <ebotcazou@adacore.com>
5101 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5102 for STORE_FLAG_VALUE==-1 case.
5104 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5107 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5108 LEGITIMATE_PIC_OPERAND_P.
5110 2011-04-24 Jan Hubicka <jh@suse.cz>
5112 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5114 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5115 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5116 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5117 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5118 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5119 Sanity check predicate length.
5120 (remap_predicate): Likewise; sanity check jump functions.
5121 (inline_read_section, inline_write_summary): Sanity check
5124 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5127 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5128 __is_literal_type, and __is_trivial; update throughout about
5129 possibly cv-qualified void types.
5131 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5133 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5134 testsuite and make it version agnostic.
5136 2011-04-22 Jan Hubicka <jh@suse.cz>
5138 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5140 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5143 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5144 to VOID_TYPE even around MODIFY_EXPR.
5146 2011-04-22 Mike Stump <mikestump@comcast.net>
5148 * gensupport.c (read_md_rtx): Fix typo in comment.
5149 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5152 2011-04-22 Jan Hubicka <jh@suse.cz>
5154 * gengtype.c (open_base_files): Add ipa-inline.h include.
5155 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5156 ipa-prop.c; update all uses.
5157 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5158 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5159 merge summary of inlined function into former caller.
5160 * ipa-inline.c (max_benefit): Remove.
5161 (edge_badness): Compensate for removal of benefits.
5162 (update_caller_keys): Use
5163 reset_node_growth_cache/reset_edge_growth_cache.
5164 (update_callee_keys): Likewise.
5165 (update_all_callee_keys): Likewise.
5166 (inline_small_functions): Do not collect max_benefit; do not reset
5167 estimated_growth; call free_growth_caches and initialize_growth_caches.
5168 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5169 struct size_time_entry): New structures.
5170 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5171 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5172 and estimated_growth.
5173 (edge_growth_cache_entry): New structure.
5174 (node_growth_cache, edge_growth_cache): New global vars.
5175 (estimate_growth): Turn into inline.
5176 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5177 initialize_growth_caches, free_growth_caches): Declare.
5178 (estimate_edge_growth): Rewrite.
5179 (estimate_edge_time): Implement as inline cache lookup.
5180 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5182 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5183 (NUM_CONDITIONS): New constant.
5184 (predicate_conditions): New enum.
5185 (IS_NOT_CONSTANT): New constant.
5186 (edge_removal_hook_holder): New var.
5187 (node_growth_cache, edge_growth_cache): New global vars.
5188 (true_predicate, single_cond_predicate, false_predicate,
5189 not_inlined_predicate, add_condition, add_clause, and_predicates,
5190 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5191 dump_clause, dump_predicate, account_size_time,
5192 evaulate_conditions_for_edge): New functions.
5193 (inline_summary_alloc): Move to heap.
5194 (inline_node_removal_hook): Clear condition and entry vectors.
5195 (inline_edge_removal_hook): New function.
5196 (initialize_growth_caches, free_growth_caches): New function.
5197 (dump_inline_summary): Update.
5198 (edge_execution_predicate): New function.
5199 (will_be_nonconstant_predicate): New function.
5200 (estimate_function_body_sizes): Compute BB and constantness predicates.
5201 (compute_inline_parameters): Do not clear estimated_growth.
5202 (estimate_edge_size_and_time): New function.
5203 (estimate_calls_size_and_time): New function.
5204 (estimate_callee_size_and_time): New function.
5205 (remap_predicate): New function.
5206 (inline_merge_summary): New function.
5207 (do_estimate_edge_time): New function based on...
5208 (estimate_edge_time): ... this one.
5209 (do_estimate_edge_growth): New function.
5210 (do_estimate_growth): New function based on....
5211 (estimate_growth): ... this one.
5212 (inline_analyze_function): Analyze after deciding on jump functions.
5213 (inline_read_section): New function.
5214 (inline_read_summary): Use it.
5215 (inline_write_summary): Write all the new data.
5216 * ipa-prop.c (ipa_get_param_decl_index): Export.
5217 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5218 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5220 (ipa_get_lattice): Move here from ipa-cp.c
5221 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5222 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5223 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5224 cgraph_edge_inlinable_p): Remove.
5225 * cgraphunit.c: Include ipainline.h
5226 (cgraph_process_new_functions): Update call of
5227 compute_inline_parameters.
5229 2011-04-22 Richard Guenther <rguenther@suse.de>
5231 * tree.c (build_int_cst): Properly create canonicalized integer
5233 (build_int_cst_type): Remove scary comments.
5235 2011-04-22 Xinliang David Li <davidxl@google.com>
5237 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5238 by default when -Wno-error is not specified.
5239 * opts-global.c (decode_options): Remove call to
5240 control_warning_options.
5242 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5244 PR tree-optimization/48717
5245 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5246 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5248 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5250 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5251 definition where used.
5253 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5256 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5257 TREE_STATIC variables declared inside of some OpenMP construct.
5259 2011-04-22 Martin Jambor <mjambor@suse.cz>
5262 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5264 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5267 * c-typeck.c (pop_init_level): Do not warn about initializing
5270 2011-04-22 Alan Modra <amodra@gmail.com>
5272 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5273 when returning call_cookie.
5274 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5275 pointers, to functions with no more vector args than the current
5276 function, and some non-local calls for ABI_V4.
5277 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5278 sibcall_nonlocal_aix64): Combine to ..
5279 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5280 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5281 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5282 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5283 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5285 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5286 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5287 sibcall_value_symbolic_64): Delete.
5289 2011-04-21 Xinliang David Li <davidxl@google.com>
5291 * cgraph.h: Remove pid.
5292 * cgraph.c: Remove pid.
5293 * value-prof.c (init_node_map): New function.
5294 (del_node_map): New function.
5295 (find_func_by_funcdef_no): New function.
5296 (gimple_ic_transform): Call new function.
5297 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5298 * function.c (get_last_funcdef_no): New function.
5299 * function.h (get_last_funcdef_no): New function.
5300 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5301 to libgcov function.
5302 (tree-profiling): Call node map init and delete function.
5304 2011-04-21 Ian Lance Taylor <iant@google.com>
5306 * godump.c (go_format_type): Use exported Go name for anonymous
5309 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5311 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5312 Call builtin_function_type_list instead of builtin_function_type.
5313 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5315 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5317 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5318 build_function_type_list instead of build_function_type.
5319 Delete variable `endlink'.
5321 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5323 * config/s390/s390.c (s390_init_builtins): Call
5324 build_function_type_list instead of build_function_type.
5326 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5328 * config/ia64/ia64.c (ia64_init_builtins): Call
5329 build_function_type_list instead of builtin_function_type.
5331 2011-04-21 Easwaran Raman <eraman@google.com>
5333 * cfgexpand.c (stack_var): Remove OFFSET...
5334 (add_stack_var): ...and its reference here...
5335 (expand_stack_vars): ...and here.
5336 (stack_var_cmp): Sort by descending order of size.
5337 (partition_stack_vars): Change heuristic.
5338 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5339 (dump_stack_var_partition): Add newline after each partition.
5341 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5342 Jeff Law <law@redhat.com>
5344 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5345 * gengtype.c (matching_file_name_substitute): Likewise.
5347 2011-04-21 Richard Guenther <rguenther@suse.de>
5350 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5352 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5354 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5356 2011-04-21 Richard Guenther <rguenther@suse.de>
5358 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5361 2011-04-21 Richard Guenther <rguenther@suse.de>
5363 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5364 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5365 Use DECL_P, not SSA_VAR_P.
5366 (ptr_derefs_may_alias_p): Likewise.
5367 (ptr_deref_may_alias_ref_p_1): Likewise.
5368 (decl_refs_may_alias_p): Likewise.
5369 (refs_may_alias_p_1): Likewise.
5370 (ref_maybe_used_by_call_p_1): Likewise.
5371 (call_may_clobber_ref_p_1): Likewise.
5372 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5373 are either MEM_REF or TARGET_MEM_REF.
5374 (indirect_refs_may_alias_p): Likewise.
5375 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5376 for MEM_EXPR of indirect calls.
5378 2011-04-21 Tristan Gingold <gingold@adacore.com>
5380 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5381 (dst_file_info_struct): Remove flen field.
5382 (lookup_filename): Remove code that set flen field.
5384 2011-04-21 Tristan Gingold <gingold@adacore.com>
5386 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5388 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5391 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5392 vec_extract and vec_concat for non-SSE4_1 targets.
5394 2011-04-21 Richard Guenther <rguenther@suse.de>
5396 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5399 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5401 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5403 (FILE): Don't undefine.
5405 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5407 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5409 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5411 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5412 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5413 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5415 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5416 definitions where used.
5417 * config/microblaze/microblaze.h (struct microblaze_args): Use
5418 rtx, not struct rtx_def *.
5419 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5421 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5422 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5423 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5424 not struct rtx_def *.
5425 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5427 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5429 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5431 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5433 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5434 operand_equal_p to compare DR_BASE_ADDRESSes.
5435 (vect_check_interleaving): Likewise.
5437 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5440 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5441 for all Neon struct constants.
5443 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5445 * target.def (legitimate_constant_p): New hook.
5446 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5447 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5448 * doc/tm.texi: Regenerate.
5449 * hooks.h (hook_bool_mode_rtx_true): Declare.
5450 * hooks.c (hook_bool_mode_rtx_true): Define.
5451 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5452 * calls.c (precompute_register_parameters): Replace uses of
5453 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5454 (emit_library_call_value_1): Likewise.
5455 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5456 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5457 * ira-costs.c (scan_one_insn): Likewise.
5458 * recog.c (general_operand, immediate_operand): Likewise.
5459 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5460 * reload1.c (init_eliminable_invariants): Likewise.
5462 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5464 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5465 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5467 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5468 * config/alpha/predicates.md (input_operand): Update call to
5469 alpha_legitimate_constant_p.
5471 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5472 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5473 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5474 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5475 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5476 (arm_legitimate_constant_p): New functions.
5477 (arm_cannot_force_const_mem): Make static.
5479 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5481 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5482 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5483 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5484 instead of bfin_legitimate_constant_p.
5485 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5486 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5488 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5490 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5492 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5493 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5494 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5495 (frv_legitimate_constant_p): Make static. Add a mode argument.
5497 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5498 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5499 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5501 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5502 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5503 * config/i386/i386.c (legitimate_constant_p): Rename to...
5504 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5506 (ix86_cannot_force_const_mem): Update accordingly.
5507 (ix86_legitimate_address_p): Likewise.
5508 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5509 * config/i386/i386.md: Update commentary.
5511 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5512 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5513 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5514 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5516 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5518 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5519 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5520 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5521 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5523 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5524 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5525 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5527 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5528 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5529 (m32r_legitimate_constant_p): New function.
5531 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5532 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5533 LEGITIMATE_CONSTANT_P.
5534 (LEGITIMATE_CONSTANT_P): Delete.
5535 * config/m68k/m68k.c (m68k_expand_prologue): Call
5536 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5537 (m68k_legitimate_constant_p): New function.
5538 * config/m68k/m68k.md: Update comments.
5540 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5541 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5542 (mcore_legitimate_constant_p): New function.
5544 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5545 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5546 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5547 Add a mode argument.
5548 (mep_legitimate_address): Update accordingly.
5549 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5551 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5553 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5554 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5555 static. Check OP's mode for VOIDmode.
5556 (microblaze_legitimate_constant_p): New function.
5557 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5559 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5560 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5561 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5562 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5563 * config/mips/predicates.md: Update comments.
5565 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5566 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5567 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5568 (mmix_legitimate_constant_p): Make static, return a bool, and take
5570 (mmix_print_operand_address): Update accordingly.
5572 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5574 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5575 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5576 static. Add a mode argument.
5577 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5579 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5581 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5582 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5583 (pa_legitimate_constant_p): New function.
5585 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5587 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5588 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5589 (pdp11_legitimate_constant_p): New function.
5591 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5592 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5593 (rs6000_legitimate_constant_p): New function.
5595 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5596 (rx_legitimate_constant_p): ...this.
5597 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5598 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5599 (rx_legitimate_constant_p): ...this.
5600 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5601 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5603 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5604 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5605 * config/s390/s390.c (legitimate_constant_p): Rename to...
5606 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5607 and add a mode argument.
5608 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5610 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5612 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5613 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5614 (sh_legitimate_constant_p): New function.
5616 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5617 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5618 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5619 (legitimate_constant_p): Rename to...
5620 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5622 (constant_address_p): Update accordingly.
5624 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5625 argument and return a bool.
5626 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5627 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5628 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5629 (spu_rtx_costs): Update accordingly.
5630 * config/spu/predicates.md (vec_imm_operand): Likewise.
5632 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5634 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5635 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5636 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5638 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5639 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5640 * config/vax/vax.c (legitimate_constant_p): Likewise.
5642 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5643 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5644 (xtensa_legitimate_constant_p): New function.
5646 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5648 * target.def (cannot_force_const_mem): Add a mode argument.
5649 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5650 * doc/tm.texi: Regenerate.
5651 * hooks.h (hook_bool_mode_rtx_false): Declare.
5652 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5653 (hook_bool_mode_const_rtx_true): Likewise.
5654 (hook_bool_mode_rtx_false): New function.
5655 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5656 to be non-VOID. Update call to cannot_force_const_mem.
5657 (find_reloads): Update accordingly.
5658 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5659 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5661 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5662 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5663 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5664 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5665 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5666 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5667 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5668 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5669 (m68k_cannot_force_const_mem): ...this new function.
5670 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5672 (mips_const_insns, mips_legitimize_const_move): Update calls.
5673 (mips_secondary_reload_class): Likewise.
5674 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5675 (pa_cannot_force_const_mem): ...this new function.
5676 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5677 (rs6000_cannot_force_const_mem): ...this new function.
5678 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5680 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5681 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5683 (xtensa_cannot_force_const_mem): ...this new function.
5685 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5687 * config/mips/mips.c (mips16_build_function_stub): Call
5688 build_function_type_list instead of build_function_type.
5689 (mips16_build_call_stub): Likewise.
5691 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5693 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5694 instead of build_function_type.
5696 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5698 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5699 instead of build_function_type.
5701 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5704 * config/i386/i386.md (insv): Change operand 0 constraint to
5705 "register_operand". Change operand 1 and 2 constraint to
5706 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5707 * config/i386/sse.md (sse4_1_pinsrb): Export.
5708 (sse2_pinsrw): Ditto.
5709 (sse4_1_pinsrd): Ditto.
5710 (sse4_1_pinsrq): Ditto.
5711 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5712 * config/i386/i386.c (ix86_expand_pinsr): New.
5714 2011-04-20 Easwaran Raman <eraman@google.com>
5716 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5717 containing union type only with -fstrict-aliasing.
5719 2011-04-20 Jim Meyering <meyering@redhat.com>
5721 Remove useless if-before-free tests.
5722 * calls.c (expand_call, save_area): Likewise.
5723 * cfgcleanup.c (try_forward_edges): Likewise.
5724 * collect2.c (collect_execute): Likewise.
5725 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5726 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5727 * coverage.c (coverage_checksum_string): Likewise.
5728 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5729 * cselib.c (cselib_init): Likewise.
5730 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5731 (df_set_clean_cfg): Likewise.
5732 * function.c (free_after_compilation): Likewise.
5733 * gcc.c (do_spec_1, main): Likewise.
5734 * gcov.c (create_file_names): Likewise.
5735 * gensupport.c (identify_predicable_attribute): Likewise.
5736 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5737 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5738 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5739 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5740 * ipa-pure-const.c (local_pure_const): Likewise.
5741 * ipa-reference.c (propagate): Likewise.
5742 * ira-costs.c (free_ira_costs): Likewise.
5743 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5744 * matrix-reorg.c (mat_free): Likewise.
5745 * prefix.c (get_key_value): Likewise.
5746 * profile.c (compute_value_histograms): Likewise.
5747 * reload1.c (free_reg_equiv): Likewise.
5748 * sched-deps.c (free_deps): Likewise.
5749 * sel-sched-ir.c (fence_clear): Likewise.
5750 * sese.c (set_rename, if_region_set_false_region): Likewise.
5751 * tree-data-ref.c (free_rdg): Likewise.
5752 * tree-eh.c (lower_try_finally): Likewise.
5753 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5754 * tree-ssa-live.c (delete_var_map): Likewise.
5755 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5756 * tree-ssa-pre.c (phi_trans_add): Likewise.
5758 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5760 PR tree-optimization/48611
5761 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5762 beyond ERT_MUST_NOT_THROW region.
5764 2011-04-20 Catherine Moore <clm@codesourcery.com>
5766 * config/mips/mips.opt (mfix-24k): New.
5767 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5768 * config/mips/mips.md (length): Increase by 4 for stores if
5770 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5771 all noreorder if fixing 24K errata.
5772 * doc/invoke.texi: Document mfix-24k.
5774 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5776 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5777 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5779 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5781 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5782 (const_ok_for_op): ... to here.
5784 2011-04-20 Kai Tietz <ktietz@redhat.com>
5786 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5787 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5789 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5791 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5793 2011-04-20 Richard Guenther <rguenther@suse.de>
5795 PR tree-optimization/47892
5796 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5799 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5801 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5803 2011-04-20 Tristan Gingold <gingold@adacore.com>
5805 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5807 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5811 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5812 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5813 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5814 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5815 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5817 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5820 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5821 (avr_asm_named_section, avr_asm_output_aligned_common,
5822 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5823 New functions to update...
5824 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5825 (avr_asm_init_sections): Overwrite section callbacks for
5826 data_section, bss_section.
5827 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5829 (avr_file_end): ...here.
5831 2011-04-20 Richard Guenther <rguenther@suse.de>
5834 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5835 objects and types here. Adjust for their offset before comparing.
5837 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5839 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5842 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5844 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5845 (GIMPLE_H): Include $(INTERNAL_FN_H).
5846 (OBJS-common): Add internal-fn.o.
5847 (internal-fn.o): New rule.
5848 * internal-fn.def: New file.
5849 * internal-fn.h: Likewise.
5850 * internal-fn.c: Likewise.
5851 * gimple.h: Include internal-fn.h.
5852 (GF_CALL_INTERNAL): New gf_mask.
5853 (gimple_statement_call): Put fntype into a union with a new
5855 (gimple_build_call_internal): Declare.
5856 (gimple_build_call_internal_vec): Likewise.
5857 (gimple_call_same_target_p): Likewise.
5858 (gimple_call_internal_p): New function.
5859 (gimple_call_internal_fn): Likewise.
5860 (gimple_call_fntype): Return null for internal calls.
5861 (gimple_call_set_fntype): Assert that the function is not internal.
5862 (gimple_call_set_fn): Likewise.
5863 (gimple_call_set_fndecl): Likewise.
5864 (gimple_call_set_internal_fn): New function.
5865 (gimple_call_addr_fndecl): Handle null functions.
5866 (gimple_call_return_type): Likewise null types.
5867 * gimple.c (gimple_build_call_internal_1): New function.
5868 (gimple_build_call_internal): Likewise.
5869 (gimple_build_call_internal_vec): Likewise.
5870 (gimple_call_same_target_p): Likewise.
5871 (gimple_call_flags): Handle calls to internal functions.
5872 (gimple_call_fnspec): New function.
5873 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5874 (gimple_has_side_effects): Handle null functions.
5875 (gimple_rhs_has_side_effects): Likewise.
5876 (gimple_call_copy_skip_args): Handle calls to internal functions.
5877 * cfgexpand.c (expand_call_stmt): Likewise.
5878 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5879 * gimple-fold.c (gimple_fold_call): Handle null functions.
5880 (gimple_fold_stmt_to_constant_1): Don't fold
5881 calls to internal functions.
5882 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5884 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5885 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5886 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5887 (do_warn_unused_result): Likewise.
5888 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5889 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5890 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5891 the target of a call.
5892 (initialize_hash_element): Update accordingly.
5893 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5894 (iterative_hash_hashable_expr): Handle calls to internal functions.
5895 (print_expr_hash_elt): Likewise.
5896 * tree-ssa-pre.c (can_value_number_call): Likewise.
5897 (eliminate): Handle null functions.
5898 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5899 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5900 (find_func_aliases): Likewise.
5901 * value-prof.c (gimple_ic_transform): Likewise.
5902 (gimple_indirect_call_to_profile): Likewise.
5903 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5904 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5906 2011-04-19 Jan Hubicka <jh@suse.cz>
5908 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5909 * ipa-inline.c (inline_small_functions): Compute summaries first,
5910 populate heap later.
5912 2011-04-19 Jan Hubicka <jh@suse.cz>
5914 * cgraph.h (save_inline_function_body): Remove.
5915 * ipa-inline-transform.c: New file, broke out of...
5916 * ipa-inline.c: ... this one; Update toplevel comment.
5917 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5919 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5920 (cgraph_mark_inline_edge): Rename to inline_call; move to
5921 ipa-inline-transform.c.
5922 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5923 move to ipa-inline-transform.c
5924 (recursive_inlining, inline_small_functions, flatten_function,
5925 ipa_inline, inline_always_inline_functions,
5926 early_inline_small_functions): Update.
5927 (inline_transform): Move to ipa-inline-transform.c.
5928 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5930 * Makefile.in (ipa-inline-transform.o): New file.
5931 * cgraphunit.c (save_inline_function_body): Move to
5932 ipa-inline-transform.c
5934 2011-04-19 DJ Delorie <dj@redhat.com>
5936 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5937 registers if we already know there aren't any.
5938 (m32c_emit_epilogue): Don't emit a barrier here.
5939 (m32c_emit_eh_epilogue): Likewise.
5940 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5941 operands at expand time.
5942 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5944 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5945 duplicates. Provide aliases instead.
5946 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5947 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5950 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5952 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5953 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5954 (general_or_i64_p, sparc_register_move_cost): New function.
5956 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5958 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5959 Add lynx, mipssde. Sort table.
5961 2011-04-19 Xinliang David Li <davidxl@google.com>
5963 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5966 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5969 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5970 is a SUBREG with non-MODE_INT mode inside of it.
5972 2011-04-19 Martin Jambor <mjambor@suse.cz>
5974 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5975 also according to actual contants.
5976 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5977 (gimple_fold_call): Use it.
5978 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5980 2011-04-19 Martin Jambor <mjambor@suse.cz>
5982 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5983 non-pointer assignments.
5985 2011-04-19 Martin Jambor <mjambor@suse.cz>
5987 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5988 account anc_offset and otr_type from the indirect edge info.
5989 * ipa-prop.c (get_ancestor_addr_info): New function.
5990 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5991 get_ancestor_addr_info, call it.
5992 (ipa_note_param_call): Do not initialize information about polymorphic
5993 calls, return the indirect call graph edge. Remove the last
5994 parameter, adjust all callers.
5995 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5996 parameters. Initialize polymorphic information in the indirect edge.
5998 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6001 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6002 the types if they have different enumeration identifiers.
6004 2011-04-19 Jan Hubicka <jh@suse.cz>
6006 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6007 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6008 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6009 (optimize_function_for_size_p) ... here.
6011 2011-04-19 Richard Guenther <rguenther@suse.de>
6014 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6017 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6019 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6020 if DECL_NO_INLINE_WARNING_P is set on the function.
6022 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6025 * reload1.c (inc_for_reload): Return void. All callers changed.
6026 (emit_input_reload_insns): Don't try to delete previous output
6027 reloads to a register, or record spill_reg_store for autoincs.
6029 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6031 * gengtype.h: Updated copyright year.
6032 (struct input_file_st): Add inpisplugin field.
6033 (type_fileloc): New function.
6035 (write_typed_struct_alloc_def): Add gcc_assert.
6036 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6037 (write_typed_alloc_defns): Don't output for plugin files.
6038 (input_file_by_name): Clear inpisplugin field.
6039 (main): Set inpisplugin field for plugin files.
6041 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6043 * gengtype-state.c (string_eq): New.
6044 (read_state): Use string_eq instead of strcmp when creating the
6047 2011-04-19 Wei Guozhi <carrot@google.com>
6050 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6051 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6053 * config/arm/constraints.md (Uu): New constraint.
6054 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6056 2011-04-19 Tristan Gingold <gingold@adacore.com>
6058 * config.gcc (-*-*-*vms): Added.
6059 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6061 * config/vms/vms-ld.c: New file.
6062 * config/vms/vms-ar.c: New file.
6063 * config/vms/t-vmsnative: New file.
6065 2011-04-18 Xinliang David Li <davidxl@google.com>
6067 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6069 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6072 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6073 if TREE_TYPE (v) is non-NULL.
6075 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6076 gimple_get_virt_mehtod_for_binfo.
6077 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6078 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6080 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6082 2011-04-18 Michael Matz <matz@suse.de>
6083 Steve Ellcey <sje@cup.hp.com>
6085 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6086 use its mode as source mode if it isn't VOIDmode.
6088 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6090 * doc/passes.texi: Fill crossref nodes.
6092 2011-04-18 Jim Meyering <meyering@redhat.com>
6094 Fix doubled-word typos in comments and strings
6095 * config/alpha/vms-unwind.h: s/for for/for/
6096 * config/arm/unwind-arm.h: Likewise.
6097 * config/microblaze/microblaze.c: Likewise.
6098 * config/sh/constraints.md: s/in in/in/
6099 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6101 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6103 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6104 (AVX_FLOAT_MODE_P): Ditto.
6105 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6106 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6107 (AVX_VEC_FLOAT_MODE_P): Ditto.
6108 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6109 (UNSPEC_MASKSTORE): Ditto.
6110 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6111 Merge from <sse>_movmsk<ssemodesuffix> and
6112 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6113 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6115 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6116 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6117 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6119 2011-04-18 Jan Hubicka <jh@suse.cz>
6121 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6123 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6124 (want_inline_function_called_once_p): Break out the logic from
6126 (edge_badness): Ensure that profile is not misupdated.
6127 (lookup_recursive_calls): Prioritize by call frequencies.
6128 (inline_small_functions): Move program size estimates here;
6129 actually process whole queue even when unit growth has been
6130 met. (to properly compute inline_failed reasons and for the
6131 case unit size decrease.) Revisit comments on recursive inlining.
6132 (ipa_inline): Remove unit summary code; first inline hot calls
6133 of functions called once, cold calls next.
6134 (order, nnodes): Remove unused variables.
6135 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6136 (GTFILES): Remove ipa-inline.c
6137 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6139 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6141 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6143 2011-04-18 Jie Zhang <jie@codesourcery.com>
6144 Richard Earnshaw <rearnsha@arm.com>
6146 * arm.c (neon_builtin_type_bits): Remove.
6147 (typedef enum neon_builtin_mode): New.
6148 (T_MAX): Don't define.
6149 (typedef enum neon_builtin_datum): Remove bits, codes[],
6150 num_vars and base_fcode. Add mode, code and fcode.
6151 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6152 VAR10): Change accordingly.
6153 (neon_builtin_data[]): Change accordingly
6154 (arm_init_neon_builtins): Change accordingly.
6155 (neon_builtin_compare): Remove.
6156 (locate_neon_builtin_icode): Remove.
6157 (arm_expand_neon_builtin): Change accordingly.
6159 * arm.h (enum arm_builtins): Move to ...
6160 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6162 * arm.c (arm_builtin_decl): Declare.
6163 (TARGET_BUILTIN_DECL): Define.
6164 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6165 (arm_builtin_decls[]): New.
6166 (arm_init_neon_builtins): Store builtin declarations in
6167 arm_builtin_decls[].
6168 (arm_init_tls_builtins): Likewise.
6169 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6170 (arm_builtin_decl): New.
6172 2011-04-18 Richard Guenther <rguenther@suse.de>
6174 * tree.c (upper_bound_in_type): Build properly canonicalized
6176 (lower_bound_in_type): Likewise.
6178 2011-04-18 Richard Guenther <rguenther@suse.de>
6180 * gimple.h (gimple_call_addr_fndecl): New function.
6181 (gimple_call_fndecl): Use it.
6182 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6184 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6185 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6187 2011-04-18 Richard Guenther <rguenther@suse.de>
6190 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6192 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6195 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6196 DECL_IN_CONSTANT_POOL without RTL.
6198 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6199 Ira Rosen <ira.rosen@linaro.org>
6202 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6203 to match neon_vzip/vuzp/vtrn_internal.
6204 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6205 outputs explicitly dependent on both inputs.
6206 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6208 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6210 PR tree-optimization/48616
6211 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6212 whether the shift is by scalar or vector based on whether all SLP
6213 scalar stmts have the same rhs.
6215 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6217 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6220 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6223 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6226 2011-04-17 Jan Hubicka <jh@suse.cz>
6228 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6229 * cgrpahunit.c (cgraph_finalize_function): Do not set
6230 finalized_by_frontend.
6231 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6232 finalized_by_frontend.
6234 2011-04-17 Jan Hubicka <jh@suse.cz>
6236 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6237 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6238 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6239 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6241 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6243 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6245 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6248 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6249 is non-null before accessing it.
6250 (input_cgraph): Remove trailing spaces.
6252 2011-04-17 Revital Eres <revital.eres@linaro.org>
6254 * params.def (sms-min-sc): New param flag.
6255 * modulo-sched.c (sms_schedule): Use it.
6256 * doc/invoke.texi (sms-min-sc): Document it.
6258 2011-04-17 Jan Hubicka <jh@suse.cz>
6260 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6261 present, also set gimple_call_set_cannot_inline.
6262 * ipa-inline.c: Update toplevel comment.
6264 (cgraph_clone_inlined_nodes): Fix linebreaks.
6265 (cgraph_check_inline_limits): Restructure to ...
6266 (caller_growth_limits): ... this one; be more tolerant
6267 on growth in nested inline chains; add explanatory comment;
6268 fix stack accounting thinko introduced by previous patch.
6269 (cgraph_default_inline_p): Remove.
6270 (report_inline_failed_reason): New function.
6271 (can_inline_edge_p): New function.
6272 (can_early_inline_edge_p): New function.
6273 (leaf_node_p): Move upwards in file.
6274 (want_early_inline_function_p): New function.
6275 (want_inline_small_function_p): New function.
6276 (want_inline_self_recursive_call_p): New function.
6277 (cgraph_edge_badness): Rename to ...
6278 (edge_badness) ... this one; fix linebreaks.
6279 (update_edge_key): Update call of edge_baddness; add
6280 detailed dump about queue updates.
6281 (update_caller_keys): Use can_inline_edge_p and
6282 want_inline_small_function_p.
6283 (cgraph_decide_recursive_inlining): Rename to...
6284 (recursive_inlining): Use can_inline_edge_p and
6285 want_inline_self_recursive_call_p; simplify and remove no longer
6287 (cgraph_set_inline_failed): Remove.
6288 (add_new_edges_to_heap): Use can_inline_edge_p and
6289 want_inline_small_function_p.
6290 (cgraph_decide_inlining_of_small_functions): Rename to ...
6291 (inline_small_functions): ... this one; cleanup; use
6292 can/want predicates; cleanup debug ouput; work edges till fibheap
6293 is exhausted and do not stop once unit growth is reached; remove
6294 later loop processing remaining edges.
6295 (cgraph_flatten): Rename to ...
6296 (flatten_function): ... this one; use can_inline_edge_p
6297 and can_early_inline_edge_p predicates.
6298 (cgraph_decide_inlining): Rename to ...
6299 (ipa_inline): ... this one; remove unreachable nodes before
6300 inlining functions called once; simplify the pass.
6301 (cgraph_perform_always_inlining): Rename to ...
6302 (inline_always_inline_functions): ... this one; use
6303 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6304 (cgraph_decide_inlining_incrementally): Rename to ...
6305 (early_inline_small_functions): ... this one; simplify
6306 using new predicates; cleanup; make dumps prettier.
6307 (cgraph_early_inlining): Rename to ...
6308 (early_inliner): newer inline regular functions into always-inlines;
6309 fix updating of call stmt summaries.
6310 (pass_early_inline): Update for new names.
6311 (inline_transform): Fix formating.
6312 (gate_cgraph_decide_inlining): Rename to ...
6313 (pass_ipa_inline): ... this one.
6314 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6315 * ipa-inline-analysis.c (dump_inline_summary): Update.
6316 (compute_inline_parameters): Do not compute disregard_inline_limits;
6317 look for mismatching arguments.
6318 (estimate_growth): Fix handlig of non-trivial self recursion.
6319 (inline_read_summary): Do not read info->disregard_inline_limits.
6320 (inline_write_summary): Do not write info->disregard_inline_limits.
6321 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6322 and move all checks into can_inline_edge_p predicate; re-enable code
6323 comparing optimization levels.
6324 (expand_call_inline): Do not test inline_forbidden_into_p.
6325 * Makefile.in (ipa-inline.o): Update arguments.
6327 2011-04-17 Revital Eres <revital.eres@linaro.org>
6329 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6331 2011-04-17 Revital Eres <revital.eres@linaro.org>
6333 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6335 2011-04-17 Michael Matz <matz@suse.de>
6337 PR tree-optimization/48622
6339 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6340 in same order as they're written.
6342 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6344 * config/pa/predicates.md: Reorganize and simplify predicates.
6345 Eliminate duplicate code checks.
6346 (arith_operand): Rename to arith14_operand
6347 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6348 * config/pa/pa.md: Use renamed operands.
6349 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6350 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6351 arith11_operand, adddi3_operand, indexed_memory_operand,
6352 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6353 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6354 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6355 move_dest_operand, move_src_operand, prefetch_cc_operand,
6356 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6357 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6358 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6359 div_operand, int5_operand, movb_comparison_operator,
6360 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6361 arith_double_operand, ireg_operand, lhs_lshift_operand,
6362 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6363 integer_store_memory_operand): Likewise.
6364 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6365 (integer_store_memory_operand, read_only_operand,
6366 function_label_operand, borx_reg_operand,
6367 non_hard_reg_operand): Likewise.
6368 (eq_neq_comparison_operator): Delete unused operator.
6369 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6370 function_label_operand.
6371 (emit_move_sequence): Likewise.
6373 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6375 * config/i386/sse.md (sseunpackmode): New mode attribute.
6376 (ssepackmode): Ditto.
6377 (vec_pack_trunc_<mode>): Macroize expander from
6378 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6379 (vec_unpacks_lo_<mode>): Macroize expander from
6380 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6381 (vec_unpacks_hi_<mode>): Macroize expander from
6382 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6383 (vec_unpacku_lo_<mode>): Macroize expander from
6384 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6385 (vec_unpacku_hi_<mode>): Macroize expander from
6386 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6387 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6388 ix86_expand_sse4_unpack.
6389 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6391 2011-04-16 Jan Hubicka <jh@suse.cz>
6393 * cgraphbuild.c: Include ipa-inline.h.
6394 (reset_inline_failed): Use initialize_inline_failed.
6395 * cgraph.c: Include ipa-inline.h.
6396 (cgraph_create_node_1): Do not initialize estimated_growth.
6397 (initialize_inline_failed): More to ipa-inline-analysis.c
6398 (dump_cgraph_node): Do not dump inline flags.
6399 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6400 and disregard_inline_limits flags.
6401 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6402 time, size, estimated_growth.
6403 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6405 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6406 DECL_DISREGARD_INLINE_LIMITS.
6407 (cgraph_analyze_function): Do not initialize
6408 node->local.disregard_inline_limits.
6409 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6410 inlinable, versionable and disregard_inline_limits.
6411 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6412 cgraph_check_inline_limits, cgraph_default_inline_p,
6413 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6414 add_new_edges_to_heap): Update.
6415 (cgraph_decide_inlining_of_small_function): Update; set
6416 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6417 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6418 cgraph_decide_inlining_incrementally): Update.
6419 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6420 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6421 time, size and estimated_growth parameters.
6422 (estimate_edge_growth): Update.
6423 (initialize_inline_failed): Declare.
6424 * ipa-split.c: Include ipa-inline.h
6425 (execute_split_functions): Update.
6426 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6427 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6428 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6429 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6430 estimated_growth to INT_MIN.
6431 (inline_node_duplication_hook): Likewise.
6432 (dump_inline_summary): Dump new fields.
6433 (compute_inline_parameters): Update.
6434 (estimate_edge_time, estimate_time_after_inlining,
6435 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6436 inline_write_summary):
6437 (initialize_inline_failed): Move here from cgraph.c.
6438 * tree-sra.c: Include ipa-inline.h.
6439 (ipa_sra_preliminary_function_checks): Update.
6440 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6443 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6445 * config/i386/sse.md (V16): New mode iterator.
6447 (AVXMODEQI, AVXMODEDI): Remove.
6448 (sse2, sse3): New mode attribute.
6449 (mov<mode>): Use V16 mode iterator.
6450 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6451 (push<mode>1): Use V16 mode iterator.
6452 (movmisalign<mode>): Ditto.
6453 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6454 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6455 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6456 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6457 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6458 avx_movdqu<avxmodesuffix>.
6459 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6460 *avx_movdqu<avxmodesuffix>.
6461 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6462 avx_lddqu<avxmodesuffix>.
6463 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6464 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6465 avx_movnt<AVXMODEDI:mode>.
6466 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6467 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6469 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6472 * haifa-sched.c (prune_ready_list, schedule_block): Use
6473 sched_pressure_p rather than flag_sched_pressure.
6475 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6477 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6478 cgraph_get_node instead of cgraph_get_create_node.
6480 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6482 * cfgexpand.c (expand_debug_expr): Use
6483 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6485 2011-04-15 Michael Matz <matz@suse.de>
6487 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6488 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6489 * function.c (gimplify_parameters): Ditto.
6490 * gimplify.c (gimplify_vla_decl): Ditto.
6492 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6493 (gimple_call_set_alloca_for_var): New inline function.
6494 (gimple_call_alloca_for_var_p): Ditto.
6495 * gimple.c (gimple_build_call_from_tree): Remember
6496 CALL_ALLOCA_FOR_VAR_P state.
6497 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6499 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6500 calls if they were for VLA objects.
6502 2011-04-15 Martin Jambor <mjambor@suse.cz>
6504 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6507 2011-04-15 Martin Jambor <mjambor@suse.cz>
6510 * tree-emutls.c (lower_emutls_function_body): Call
6511 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6514 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6516 * c-decl.c (detect_field_duplicates): Call
6517 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6519 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6521 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6522 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6523 * ipa-pure-const.c (check_stmt): Call it.
6524 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6526 2011-04-15 Richard Guenther <rguenther@suse.de>
6528 PR tree-optimization/48290
6529 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6530 Properly decide inhibiting propagation based on the valueized
6531 operand. Do loop-closed SSA form preserving here ...
6532 (init_copy_prop): ... not here.
6534 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6537 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6538 (*ieee_smax<mode>3): Likewise.
6540 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6542 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6543 Replace match_operand with match_dup for the third operand in
6546 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6548 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6549 to track processing of conditionals. Update all callers.
6550 (try_combine, simplify_if_then_else): Update.
6552 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6554 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6557 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6559 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6560 instead of match_operand for operand 3.
6562 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6564 * recog.h (insn_operand_data): Add an "allows_mem" field.
6565 * genoutput.c (output_operand_data): Initialize it.
6566 * optabs.c (maybe_legitimize_operand_same_code): New function.
6567 (maybe_legitimize_operand): Use it when matching the original
6570 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6572 * gimplify.c: Fix issues in comments throughout.
6573 (voidify_wrapper_expr): Fix long line.
6574 (build_stack_save_restore): Likewise.
6575 (gimplify_loop_expr): Likewise.
6576 (gimplify_compound_lval): Likewise.
6577 (gimplify_init_ctor_eval): Likewise.
6578 (gimplify_modify_expr_rhs): Likewise.
6579 (omp_notice_threadprivate_variable): Likewise.
6581 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6583 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6584 original one if this is not a builtin function.
6586 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6589 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6590 offset it as needed based on top 2 bits in operands[3], change
6591 MEM mode to SFmode and mask those 2 bits away from operands[3].
6593 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6595 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6596 change from objc_declare_protocols() to objc_declare_protocol().
6598 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6600 * config/i386/sse.md (sse4_1): New mode attribute.
6601 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6602 avx_blend<ssemodesuffix><avxmodesuffix> and
6603 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6604 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6605 avx_blendv<ssemodesuffix><avxmodesuffix> and
6606 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6607 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6608 avx_dp<ssemodesuffix><avxmodesuffix> and
6609 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6610 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6611 (sse4_1_packusdw): Merge with *avx_packusdw.
6612 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6613 (sse4_1_pblendw): Merge with *avx_pblendw.
6614 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6615 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6616 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6618 (sse4_1_round<ssescalarmodesuffix>): Merge with
6619 *avx_round<ssescalarmodesuffix>.
6620 (aesenc): Merge with *avx_aesenc.
6621 (aesenclast): Merge with *avx_aesenclast.
6622 (aesdec): Merge with *avx_aesdec.
6623 (aesdeclast): Merge with *avx_aesdeclast.
6624 (pclmulqdq): Merge with *pclmulqdq.
6625 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6627 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6629 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6632 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6633 (align_local_variable): This. Update DECL_ALIGN.
6634 (add_stack_var): Updated.
6635 (expand_one_stack_var): Likewise.
6637 2011-04-14 Richard Guenther <rguenther@suse.de>
6639 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6641 (dse_initialize_block_local_data, dse_leave_block,
6642 record_voperand_set, get_stmt_uid): Likewise.
6643 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6644 (dse_optimize_stmt): Remove voperand set handling code.
6645 Simplify and improve to handle any kind of killing stmt.
6646 (dse_record_phi): Remove.
6647 (dse_enter_block): Simplify.
6648 (tree_ssa_dse): Likewise.
6649 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6651 2011-04-14 Jan Hubicka <jh@suse.cz>
6653 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6654 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6655 (cgraph_local_info): Remove inline_summary.
6656 * ipa-cp.c: Include ipa-inline.h.
6657 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6658 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6660 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6661 (input_overwrite_node): Do not set inline summary.
6662 (input_node): Do not stream inline summary.
6663 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6664 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6665 growth; we do not have inline parameters computed for that anyway.
6666 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6667 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6668 (inline_summary_t): New type and VECtor.
6669 (debug_inline_summary, dump_inline_summaries): Declare.
6670 (inline_summary): Use VOCtor.
6671 (estimate_edge_growth): Kill hack computing call stmt size directly.
6672 * lto-section-in.c (lto_section_name): Add inline section.
6673 * ipa-inline-analysis.c: Include lto-streamer.h
6674 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6675 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6676 (inline_summary_vec): Define.
6677 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6678 dump_inline_summaries): New functions.
6679 (estimate_function_body_sizes): Properly compute size/time of outgoing
6681 (compute_inline_parameters): Alloc inline_summary; do not compute
6682 size/time of incomming calls.
6683 (estimate_edge_time): Avoid missing time summary hack.
6684 (inline_read_summary): Read inline summary info.
6685 (inline_write_summary): Write inline summary info.
6686 (inline_free_summary): Free all hooks and inline summary vector.
6687 * lto-streamer.h: Add LTO_section_inline_summary section.
6688 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6689 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6691 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6693 * tree-vectorizer.h (vect_strided_store_supported): Add a
6694 HOST_WIDE_INT argument.
6695 (vect_strided_load_supported): Likewise.
6696 (vect_permute_store_chain): Return void.
6697 (vect_transform_strided_load): Likewise.
6698 (vect_permute_load_chain): Delete.
6699 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6700 count argument. Check that the count is a power of two.
6701 (vect_strided_load_supported): Likewise.
6702 (vect_permute_store_chain): Return void. Update after above changes.
6703 Assert that the access is supported.
6704 (vect_permute_load_chain): Likewise.
6705 (vect_transform_strided_load): Return void.
6706 * tree-vect-stmts.c (vectorizable_store): Update calls after
6707 above interface changes.
6708 (vectorizable_load): Likewise.
6709 (vect_analyze_stmt): Don't check for strided powers of two here.
6711 2011-04-14 Richard Guenther <rguenther@suse.de>
6713 PR tree-optimization/48590
6714 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6715 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6716 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6717 BUILT_IN_STACK_SAVE.
6718 * tree-ssa-dce.c (propagate_necessity): Handle
6719 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6721 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6723 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6726 2011-04-14 Richard Guenther <rguenther@suse.de>
6728 * tree.h (get_object_alignment_1): Declare.
6729 * builtins.c (get_object_alignment_1): Split out worker from ...
6730 (get_object_alignment): ... here.
6731 * fold-const.c (get_pointer_modulus_and_residue): Use
6732 get_object_alignment_1.
6734 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6736 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6738 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6739 parameter. Generalise code to handle arrays as well as vectors.
6740 (vect_setup_realignment): Update accordingly.
6741 * tree-vect-stmts.c (vectorizable_store): Likewise.
6742 (vectorizable_load): Likewise.
6744 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6746 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6747 within the per-copy loop.
6749 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6751 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6754 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6756 * doc/options.texi (Negative): Explicitly mention that the
6757 Negative chain must be circular.
6759 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6761 * function.h (block_chainon): Declare.
6762 * function.c (block_chainon): Define.
6764 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6765 Eric Weddington <eric.weddington@atmel.com>
6766 Georg-Johann Lay <avr@gjlay.de>
6768 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6770 (avr_init_builtins, avr_expand_builtin,
6771 avr_expand_delay_cycles, avr_expand_unop_builtin,
6772 avr_expand_binop_builtin ): New functions.
6773 (avr_builtin_id): New enum
6774 (struct avr_builtin_description): New struct
6775 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6776 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6778 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6779 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6780 UNSPECV_DELAY_CYCLES): new enumeration values
6781 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6782 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6783 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6784 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6785 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6786 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6787 "fmulsu"): New insns
6789 * config/avr/avr-c.c: fix line endings
6790 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6791 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6792 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6793 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6794 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6796 * doc/extend.texi (AVR Built-in Functions): New node
6797 (Target Builtins): Add documentation of AVR
6800 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6803 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6804 alone. Error if non-const data has attribute progmem.
6806 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6808 * tree.h (struct tree_constructor): Include tree_typed instead of
6810 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6811 TS_TYPED instead of TS_COMMON.
6813 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6815 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6816 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6817 (sse2_psadbw): Merge with *avx_psadbw.
6818 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6819 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6820 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6821 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6822 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6823 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6824 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6825 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6826 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6827 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6828 (ssse3_palignrti): Merge with *avx_palignrti.
6830 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6832 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6833 * tree-ssanames.c (fini_ssanames): VEC_free it.
6834 (make_ssa_name_fn): Update for VECness of free_ssanames.
6835 (release_ssa_name, release_dead_ssa_names): Likewise.
6836 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6838 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6839 TS_TYPED instead of TS_COMMON.
6841 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6843 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6844 statistics_counter_event.
6845 * tree-ssa-copyrename.c (stats): Define.
6846 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6847 statistics_counter_event.
6848 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6849 (bswap_stats, widen_mul_stats): Define.
6850 (insert_reciprocals): Increment rdivs_inserted.
6851 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6852 rfuncs_inserted. Add calls to statistics_counter_event.
6853 (execute_cse_sincos_1): Increment inserted.
6854 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6855 statistics_counter_event.
6856 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6857 of bswap_stats. Add calls to statistics_counter_event.
6858 (convert_mult_to_widen): Increment widen_mults_inserted.
6859 (convert_plusminus_to_widen): Increment maccs_inserted.
6860 (convert_mult_to_fma): Increment fmas_inserted.
6861 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6862 calls to statistics_counter_event.
6864 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6866 PR rtl-optimization/48455
6867 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6868 `temp_costs->mem_cost'.
6870 2011-04-13 Jan Hubicka <jh@suse.cz>
6872 * ipa-inline.h: New file.
6873 * ipa-inline-analysis.c: New file. Broken out of ...
6874 * ipa-inline.c: ... this file; update toplevel comment;
6875 include ipa-inline.h
6876 (inline_summary): Move to ipa-inline.h
6877 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6878 ipa-inline-analysis.c.
6879 (cgraph_estimate_time_after_inlining): Rename to
6880 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6881 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6882 to estimate_edge_growth.
6883 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6884 rename to estimate_size_after_inlining.
6885 (cgraph_mark_inline_edge): Update for new naming convention.
6886 (cgraph_check_inline_limits): Likewise.
6887 (cgraph_edge_badness): Likewise.
6888 (cgraph_decide_recursive_inlining): Likewise.
6889 (cgraph_decide_inlining_of_small_functions): Likewise.
6890 (cgraph_decide_inlining_incrementally): Likewise.
6891 (cgraph_estimate_growth): Rename to estimate_growth; move to
6892 ipa-inline-analysis.c.
6893 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6894 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6895 (compute_inline_parameters): Likewise.
6896 (compute_inline_parameters_for_current): Likewise.
6897 (pass_inline_parameters): Likewise.
6898 (inline_indirect_intraprocedural_analysis): Likewise.
6899 (analyze_function): Rename to inline_analyze_function; likewise.
6900 (add_new_function): Move to ipa-inline-analysis.c.
6901 (inline_generate_summary): Likewise.
6902 (inline_read_summary): Likewise.
6903 (inline_write_summary): Likewise.
6904 * Makefile.in (ipa-inline-analysis.c): New file.
6906 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6908 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6909 * configure: Regenerate.
6911 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6913 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6914 instead of tree_common.
6915 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6917 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6918 TS_TYPED rather than TS_COMMON.
6919 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6921 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6924 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6925 r20 around calls of __tablejump_elpm__
6927 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6930 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6932 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6934 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6936 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6937 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6938 (cfi_vec): New typedef.
6939 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6940 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6941 (cie_cfi_vec): New static variable.
6942 (cie_cfi_head): Delete.
6943 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6944 declaration changed. Use vector rather than list operations.
6945 (new_cfi): Don't initialize the dw_cfi_next field.
6946 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6947 rather than list operations.
6948 (lookup_cfa): Use vector rather than list operations.
6949 (output_cfis): New argument upto. Accept a cfi_vec rather than
6950 a dw_cfi_ref list head as argument. All callers changed.
6951 Iterate over the vector using upto as a maximum index.
6952 (output_all_cfis): New static function.
6953 (output_fde): Use vector rather than list operations. Use the
6954 new upto argument for output_cfis rather than manipulating a
6956 (dwarf2out_begin_prologue): Change initializations to match
6958 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6959 from the vector length rather than searching for the end of a list.
6960 Use output_all_cfis.
6961 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6963 2011-04-13 Nick Clifton <nickc@redhat.com>
6965 * config/rx/rx.md (movmemsi): Do not use this pattern when
6966 volatile pointers are involved.
6968 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6970 * config/i386/sse.md (pinsrbits): Remove.
6971 (sse2_packsswb): Merge with *avx_packsswb.
6972 (sse2_packssdw): Merge with *avx_packssdw.
6973 (sse2_packuswb): Merge with *avx_packuswb.
6974 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6975 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6976 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6977 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6978 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6979 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6980 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6981 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6982 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6983 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6984 (sse2_loadld): Merge with *avx_loadld.
6985 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6986 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6987 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6988 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6989 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6991 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6993 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6995 * print-tree.c (print_node): Likewise.
6996 * tree-inline.c (copy_tree_r): Likewise.
6997 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6998 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6999 instead of TS_COMMON.
7000 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7001 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7002 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7003 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7004 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7006 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7008 (TREE_CHAIN): Check for a TS_COMMON structure.
7009 (TREE_TYPE): Check for a TS_TYPED structure.
7011 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7013 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7014 cgraph_get_create_node instead of cgraph_node.
7016 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7018 * c-parser.c (c_parser_initelt): Updated call to
7019 objc_build_message_expr.
7020 (c_parser_postfix_expression): Likewise.
7022 2011-04-12 Kai Tietz <ktietz@redhat.com>
7024 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7025 MASK_MS_BITFIELD_LAYOUT bit.
7027 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7029 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7030 assert it is always true.
7031 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7034 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7036 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7037 compiling Objective-C to be more efficient.
7039 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7041 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7044 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7046 * recog.h, genoutput.c, optabs.c: Revert last patch.
7048 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7051 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7053 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7055 * recog.h (insn_operand_data): Add an "allows_mem" field.
7056 * genoutput.c (output_operand_data): Initialize it.
7057 * optabs.c (maybe_legitimize_operand_same_code): New function.
7058 (maybe_legitimize_operand): Use it when matching the original
7061 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7063 * genpreds.c (process_define_predicate): Move most processing
7064 to gensupport.c. Continue to validate the expression.
7065 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7066 (process_define_predicate): Move processing to gensupport.c.
7067 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7068 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7069 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7071 (valid_predicate_name_p): New function, split out from old
7072 genpreds.c:process_define_predicate.
7073 (process_define_predicate): New function, combining code from
7074 old genpreds.c and genrecog.c functions.
7075 (process_rtx): Call it for DEFINE_PREDICATE and
7076 DEFINE_SPECIAL_PREDICATE.
7078 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7080 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7081 size of a '%A' memory reference.
7082 (T_DREG, T_QREG): New neon_builtin_type_bits.
7083 (arm_init_neon_builtins): Assert that the load and store operands
7084 are neon_struct_operands.
7085 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7086 (NEON_ARG_MEMORY): New builtin_arg.
7087 (neon_dereference_pointer): New function.
7088 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7089 Handle NEON_ARG_MEMORY.
7090 (arm_expand_neon_builtin): Update after above interface changes.
7091 Use NEON_ARG_MEMORY for loads and stores.
7092 * config/arm/predicates.md (neon_struct_operand): New predicate.
7093 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7094 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7095 (V_four_elem): Tweak formatting.
7096 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7097 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7098 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7099 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7100 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7101 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7102 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7103 Use %A in the output template.
7104 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7105 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7106 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7107 the width of the memory access. Remove post-increment.
7108 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7110 2011-04-12 Nick Clifton <nickc@redhat.com>
7112 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7113 instruction for interrupt handlers if the target is the basic V850
7115 (expand_epilogue): Likewise.
7117 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7119 PR rtl-optimization/48549
7120 * combine.c (propagate_for_debug): Also stop after BB_END of
7121 this_basic_block. Process LAST and just stop processing after it.
7122 (combine_instructions): If last_combined_insn has been deleted,
7123 set last_combined_insn to its PREV_INSN.
7125 2011-04-12 Richard Guenther <rguenther@suse.de>
7127 PR tree-optimization/46076
7128 * gimple.h (struct gimple_statement_call): Add fntype field.
7129 (gimple_call_fntype): Adjust.
7130 (gimple_call_set_fntype): New function.
7131 * gimple.c (gimple_build_call_1): Set the call function type.
7132 * gimplify.c (gimplify_call_expr): Preserve the function
7133 type the frontend used for the call.
7134 (gimplify_modify_expr): Likewise.
7135 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7137 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7139 * tree-ssa.c (useless_type_conversion_p): Function pointer
7140 conversions are useless.
7142 2011-04-12 Martin Jambor <mjambor@suse.cz>
7144 * cgraph.h (cgraph_node): Remove function declaration.
7145 (cgraph_create_node): Declare.
7146 (cgraph_get_create_node): Likewise.
7147 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7148 Updated all callers.
7149 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7150 the decl does not already exist. Call cgraph_get_create_node instead
7152 (cgraph_get_create_node): New function.
7153 (cgraph_same_body_alias): Update comment.
7154 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7155 assert it does not return NULL.
7156 (cgraph_update_edges_for_call_stmt): Likewise.
7157 (cgraph_clone_edge): Likewise.
7158 (cgraph_create_virtual_clone): Likewise.
7159 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7160 instead of cgraph_node.
7161 (cgraph_add_new_function): Call cgraph_create_node or
7162 cgraph_get_create_node instead of cgraph_node.
7163 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7164 instead of cgraph_node.
7165 (record_eh_tables): Likewise.
7166 (mark_address): Likewise.
7167 (mark_load): Likewise.
7168 (build_cgraph_edges): Call cgraph_get_create_node instead
7170 (rebuild_cgraph_edges): Likewise.
7171 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7172 instead of cgraph_node.
7173 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7175 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7176 cgraph_create_node instead of cgraph_node.
7177 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7179 * lto-cgraph.c (input_node): Likewise.
7180 * lto-streamer-in.c (input_function): Likewise.
7181 * varasm.c (mark_decl_referenced): Likewise.
7182 (assemble_alias): Likewise.
7184 2011-04-12 Martin Jambor <mjambor@suse.cz>
7186 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7187 instead of cgraph_node and assert it does not return NULL.
7188 * lto-streamer-in.c (lto_read_body): Likewise.
7189 * omp-low.c (new_omp_context): Likewise.
7190 (create_task_copyfn): Likewise.
7191 * tree-emutls.c (lower_emutls_function_body): Likewise.
7192 * matrix-reorg.c (transform_allocation_sites): Likewise.
7194 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7197 * c-typeck.c (build_asm_expr): Error out on attempts to use
7198 void type outputs or inputs for constraints that allow reg or
7201 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7202 Richard Earnshaw <rearnsha@arm.com>
7205 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7206 to use sign-magnitude offsets. Reject unsupported unaligned
7207 cases. Add detailed description in comments.
7208 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7209 condition from TARGET_32BIT to TARGET_ARM.
7211 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7213 * tree.h (struct typed_tree): New.
7214 (struct tree_common): Include it instead of tree_base.
7215 (TREE_TYPE): Update for new location of type field.
7216 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7217 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7218 (union tree_node): Add typed field.
7219 * treestruct.def (TS_TYPED): New.
7220 * lto-streamer.c (check_handled_ts_structures): Handle it.
7221 * tree.c (MARK_TS_TYPED): New macro.
7222 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7224 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7226 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7227 (force_nonfallthru): Do not alter the loop nest if no basic block
7230 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7232 * config/i386/sse.md (VI): New mode iterator.
7234 (AVX256MODEI): Ditto.
7235 (AVXMODEF4P): Ditto.
7236 (avxvecpsmode): Ditto.
7237 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7238 (sse2_andnot<mode>3): New expander.
7239 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7240 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7241 (<any_logic:code><mode>3): Use VI mode iterator.
7242 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7243 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7244 (*andnottf3): Handle AVX three-operand constraints.
7245 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7247 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7248 Robert Millan <rmh@gnu.org>
7250 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7251 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7252 GNU_USER_DYNAMIC_LINKER64): Define.
7253 (REG_NAME): Don't undefine.
7254 (MD_UNWIND_SUPPORT): Undefine.
7255 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7256 (REG_NAME): Don't undefine.
7257 (MD_UNWIND_SUPPORT): Undefine.
7258 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7260 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7262 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7263 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7265 2011-04-11 Xinliang David Li <davidxl@google.com>
7267 * value-profile.c (check_ic_target): New function.
7268 (gimple_ic_transform): Sanity check indirect call target.
7269 * gimple-low.c (gimple_check_call_args): Interface change.
7270 (gimple_check_call_matching_types): New function.
7271 * tree-inline.c (tree_can_inline_p): Call new function.
7273 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7275 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7276 tree-pretty-print.h & realmpfr.h.
7278 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7281 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7282 (setup_allocno_and_important_classes): Ditto.
7284 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7286 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7287 GNU_USER_DYNAMIC_LINKER.
7288 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7289 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7290 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7291 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7292 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7293 GNU_USER_TARGET_OS_CPP_BUILTINS.
7294 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7295 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7296 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7297 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7298 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7299 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7300 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7301 GNU_USER_TARGET_OS_CPP_BUILTINS.
7302 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7303 GNU_USER_DYNAMIC_LINKER.
7304 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7305 GNU_USER_TARGET_OS_CPP_BUILTINS.
7306 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7307 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7308 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7309 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7310 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7311 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7312 GNU_USER_DYNAMIC_LINKER64): Remove.
7313 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7314 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7315 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7316 GNU_USER_DYNAMIC_LINKER.
7317 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7318 GNU_USER_TARGET_OS_CPP_BUILTINS.
7319 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7320 GNU_USER_TARGET_OS_CPP_BUILTINS.
7321 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7322 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7323 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7324 GNU_USER_TARGET_OS_CPP_BUILTINS.
7325 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7326 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7327 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7328 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7329 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7330 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7331 GNU_USER_DYNAMIC_LINKER.
7332 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7333 GNU_USER_TARGET_OS_CPP_BUILTINS.
7334 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7335 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7336 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7337 GNU_USER_DYNAMIC_LINKER.
7338 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7339 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7340 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7341 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7342 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7343 GNU_USER_DYNAMIC_LINKER.
7344 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7345 GNU_USER_DYNAMIC_LINKERN32.
7346 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7347 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7348 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7349 GNU_USER_DYNAMIC_LINKER32.
7350 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7351 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7352 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7353 GNU_USER_DYNAMIC_LINKER.
7354 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7355 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7356 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7357 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7358 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7359 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7360 GNU_USER_DYNAMIC_LINKER32.
7361 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7362 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7363 GNU_USER_DYNAMIC_LINKER.
7364 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7365 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7366 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7367 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7368 GNU_USER_DYNAMIC_LINKER64.
7369 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7370 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7371 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7372 GNU_USER_DYNAMIC_LINKER.
7373 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7374 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7375 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7376 GNU_USER_DYNAMIC_LINKER.
7377 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7378 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7379 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7380 GNU_USER_DYNAMIC_LINKER32.
7381 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7382 GNU_USER_DYNAMIC_LINKER64.
7383 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7384 GNU_USER_DYNAMIC_LINKER64.
7385 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7386 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7387 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7388 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7389 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7391 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7393 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7394 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7395 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7396 GNU_USER_DYNAMIC_LINKER.
7397 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7398 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7399 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7400 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7401 GNU_USER_DYNAMIC_LINKER64.
7402 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7403 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7404 GNU_USER_LINK_EMULATION.
7405 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7406 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7407 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7408 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7409 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7410 CPP_SPEC, CC1_SPEC): Remove.
7411 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7412 (GNU_USER_DYNAMIC_LINKER): Define.
7413 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7414 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7415 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7416 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7417 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7418 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7419 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7420 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7421 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7422 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7423 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7424 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7425 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7426 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7427 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7428 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7429 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7430 GNU_USER_DYNAMIC_LINKER.
7431 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7432 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7433 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7434 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7435 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7436 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7437 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7438 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7439 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7440 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7442 2011-04-11 Kai Tietz <ktietz@redhat.com>
7446 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7447 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7449 (ix86_is_msabi_thiscall): Removed.
7450 (ix86_is_type_thiscall): Likewise.
7451 (ix86_get_callcvt): New function.
7452 (ix86_comp_type_attributes): Simplify check.
7453 (ix86_function_regparm): Use ix86_get_callcvt for calling
7454 convention attribute checks.
7455 (ix86_return_pops_args): Likewise.
7456 (ix86_static_chain): Likewise.
7457 (x86_this_parameter): Likewise.
7458 (x86_output_mi_thunk): Likewise.
7459 (ix86_function_type_abi): Optimize check for types without attributes.
7460 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7461 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7462 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7464 (IX86_BASE_CALLCVT): Helper macro.
7465 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7466 Use ix86_get_callcvt for calling convention attribute checks and avoid
7467 symbol-decoration for stdcall in TARGET_RTD case.
7468 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7470 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7473 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7475 * config/i386/sse.md (VI_128): New mode iterator.
7476 (VI12_128): Rename from SSEMODE12.
7477 (VI14_128): Rename from SSEMODE14.
7478 (VI124_128): New mode iterator.
7479 (VI24_128): Rename from SSEMODE248.
7480 (VI248_128): Rename from SSEMODE248.
7481 (SSEMODE124C8): Remove.
7482 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7483 (*sse2_<plusminus_insn><mode>3): Merge with
7484 *avx_<plusminus_insn><mode>3.
7485 (*mulv8hi3): Merge with *avx_mulv8hi3.
7486 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7487 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7488 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7489 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7490 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7491 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7492 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7493 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7494 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7495 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7496 (*<smaxmin:code>v8hi3): Ditto.
7497 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7498 (*<smaxmin:code>v16qi3): Ditto.
7499 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7500 (*sse2_eq<mode>3): Ditto.
7501 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7502 (*sse2_gt<mode>3): Ditto.
7503 (vcondv2di): Split out of vcond<mode>.
7504 (vconduv2di): Split out of vcondu<mode>.
7506 2011-04-11 Richard Guenther <rguenther@suse.de>
7508 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7509 before calling tree_low_cst.
7511 2011-04-11 Richard Guenther <rguenther@suse.de>
7513 * stor-layout.c (layout_type): Compute all array index size operations
7514 in the original type.
7515 (initialize_sizetypes): Add comment.
7516 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7518 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7520 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7522 2011-04-11 Martin Jambor <mjambor@suse.cz>
7524 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7525 of cgraph_node, handle NULL return value.
7526 (cgraph_global_info): Likewise.
7527 (cgraph_rtl_info): Likewise.
7528 * tree-inline.c (estimate_num_insns): Likewise.
7529 * gimplify.c (unshare_body): Likewise.
7530 (unvisit_body): Likewise.
7531 (gimplify_body): Likewise.
7532 * predict.c (optimize_function_for_size_p): Likewise.
7533 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7534 (call_may_clobber_ref_p_1): Likewise.
7535 * varasm.c (function_section_1): Likewise.
7536 (assemble_start_function): Likewise.
7538 2011-04-11 Martin Jambor <mjambor@suse.cz>
7540 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7542 * final.c (rest_of_clean_state): Likewise.
7543 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7544 * passes.c (pass_init_dump_file): Likewise.
7545 (execute_all_ipa_transforms): Likewise.
7546 (function_called_by_processed_nodes_p): Likewise.
7547 * predict.c (maybe_hot_frequency_p): Likewise.
7548 (probably_never_executed_bb_p): Likewise.
7549 (compute_function_frequency): Likewise.
7550 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7551 (unnest_nesting_tree_1): Likewise.
7552 (lower_nested_functions): Likewise.
7553 * tree-optimize.c (execute_fixup_cfg): Likewise.
7554 (tree_rest_of_compilation): Likewise.
7555 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7556 * tree-sra.c (ipa_early_sra): Likewise.
7557 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7558 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7559 * ipa.c (record_cdtor_fn): Likewise.
7560 * ipa-inline.c (cgraph_early_inlining): Likewise.
7561 (compute_inline_parameters_for_current): Likewise.
7562 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7563 * ipa-pure-const.c (local_pure_const): Likewise.
7564 * ipa-split.c (split_function): Likewise.
7565 (execute_split_functions): Likewise.
7566 * cgraphbuild.c (build_cgraph_edges): Likewise.
7567 (rebuild_cgraph_edges): Likewise.
7568 (cgraph_rebuild_references): Likewise.
7569 (remove_cgraph_callee_edges): Likewise.
7570 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7571 (verify_cgraph_node): Likewise.
7572 (cgraph_analyze_functions): Likewise.
7573 (cgraph_preserve_function_body_p): Likewise.
7574 (save_inline_function_body): Likewise.
7575 (save_inline_function_body): Likewise.
7576 * tree-inline.c (copy_bb): Likewise.
7577 (optimize_inline_calls): Likewise.
7579 2011-04-11 Martin Jambor <mjambor@suse.cz>
7581 PR tree-optimization/48195
7582 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7583 ipa_check_create_edge_args.
7584 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7585 ipa_check_create_edge_args.
7586 * ipa-inline.c (inline_generate_summary): Do not call
7587 ipa_check_create_node_params and ipa_check_create_edge_args.
7588 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7589 ipa_check_create_edge_args.
7591 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7593 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7595 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7596 * function.c (record_hard_reg_sets): Likewise.
7597 * ira.c (compute_regs_asm_clobbered): Likewise.
7598 * sched-deps.c (sched_analyze_1): Likewise.
7599 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7601 2011-04-09 Xinliang David Li <davidxl@google.com>
7603 PR tree-optimization/PR48484
7604 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7605 has_valid_pred lazily
7607 2011-04-09 Duncan Sands <baldrick@free.fr>
7609 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7611 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7613 * combine.c (combine_validate_cost): Adjust comments. Set registered
7614 cost of I0 to zero at the end, if any.
7616 2011-04-08 Xinliang David Li <davidxl@google.com>
7618 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7619 to insane profile data.
7621 2011-04-08 Xinliang David Li <davidxl@google.com>
7623 * ipa-cp.c (ipcp_update_profiling): Correct
7624 negative scale factor due to insane profile data.
7626 2011-04-08 Xinliang David Li <davidxl@google.com>
7628 * final.c (dump_basic_block_info): New function.
7629 (final): Dump basic block.
7630 (final_scan_insn): Remove old dump.
7632 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7635 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7638 2011-04-08 Michael Matz <matz@suse.de>
7641 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7643 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7644 * rtl.h (rebuild_jump_labels_chain): Declare.
7645 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7646 insns inserted on edges.
7648 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7650 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7651 * config/arm/arm-arches.def: New.
7652 * config/arm/arm-opts.h: New.
7653 * config/arm/genopt.sh: New.
7654 * config/arm/arm-tables.opt: New (generated).
7655 * config/arm/arm.c (arm_handle_option, arm_target_help,
7656 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7657 (all_architectures): Get most table contents from arm-arches.def.
7658 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7659 arm_selected_tune here.
7660 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7661 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7662 (march=, mcpu=, mtune=): Use Enum and Var.
7663 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7664 (arm.o): Update dependencies.
7666 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7668 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7670 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7671 (write_typed_alloc_defns): Likewise.
7672 (main): Calls write_typed_alloc_defns with output_header.
7674 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7677 * ira-color.c (setup_profitable_hard_regs): Add comments.
7678 Don't take prohibited hard regs into account.
7679 (setup_conflict_profitable_regs): Rename to
7680 get_conflict_profitable_regs.
7681 (check_hard_reg_p): Check prohibited hard regs.
7683 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7685 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7686 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7687 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7689 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7692 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7693 move from floating point to shift amount register.
7694 (emit_move_sequence): Remove secondary reload support for floating
7695 point to shift amount amount register copies.
7696 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7697 amount register copies.
7698 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7699 register, return false if mode isn't a scalar integer mode.
7700 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7702 2011-04-08 Richard Guenther <rguenther@suse.de>
7704 * gimple.c (gimple_call_flags): Remove kludge.
7706 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7708 * sel-sched.c (sel_region_init): Move call to
7709 sel_setup_region_sched_flags after setup_current_loop_nest.
7711 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7713 PR rtl-optimization/48272
7714 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7715 init_insn_reg_pressure_info. Adjust a caller.
7716 * sched-int.h (init_insn_reg_pressure_info): Declare.
7717 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7718 when sched-pressure is enabled.
7720 2011-04-08 Richard Guenther <rguenther@suse.de>
7722 * gimple.c (gimple_set_modified): Do not queue calls to
7723 MODIFIED_NORETURN_CALLS here ...
7724 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7726 2011-04-08 Richard Guenther <rguenther@suse.de>
7729 * toplev.c (lang_dependent_init): Do not open asm_out_file
7730 in WPA mode, nor perform debug machinery initialization.
7731 (finalize): Do not unlink asm_out_file in WPA mode.
7733 2011-04-08 Richard Guenther <rguenther@suse.de>
7735 * gimple.h (gimple_call_fntype): New function.
7736 (gimple_call_return_type): Use it.
7737 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7738 * gimple-low.c (gimple_check_call_args): Likewise.
7739 * gimple.c (gimple_call_flags): Likewise.
7740 (gimple_call_arg_flags): Likewise.
7741 (gimple_call_return_flags): Likewise.
7742 * tree-cfg.c (verify_gimple_call): Likewise.
7743 (do_warn_unused_result): Likewise.
7744 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7745 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7747 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7749 PR rtl-optimization/48235
7750 * sel-sched.c (code_motion_process_successors): Recompute the last
7751 insn in basic block if control flow changed.
7752 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7753 Update condition for ilist_remove.
7755 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7757 PR rtl-optimization/48302
7758 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7759 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7760 it to record added preheader blocks.
7761 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7762 on to sel_add_loop_preheaders.
7763 (sel_region_init): Move call to setup_current_loop_nest after
7766 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7769 * cfgloop.h (loop_has_exit_edges): New helper.
7770 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7772 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7773 that have no exit edges.
7775 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7777 PR rtl-optimization/48442
7778 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7779 all callers. Adjust assert.
7781 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7783 PR tree-optimization/48377
7784 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7785 is_packed to true even for types with smaller TYPE_ALIGN than
7788 2011-04-08 Richard Guenther <rguenther@suse.de>
7791 * doc/tm.texi: Re-generate.
7793 2011-04-08 Wei Guozhi <carrot@google.com>
7796 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7797 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7798 * config/arm/arm.md (*push_multi): Change the length computation to
7801 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7803 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7804 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7805 * doc/tm.texi: Regenerate.
7806 * system.h (ASM_OUTPUT_BSS): Poison.
7807 * varasm.c (asm_output_bss): Remove function.
7808 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7810 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7811 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7812 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7813 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7815 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7817 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7819 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7821 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7823 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7826 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7828 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7829 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7830 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7832 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7833 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7834 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7835 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7836 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7837 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7838 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7839 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7840 options. Don't map other m68k options manually. Don't handle
7841 old-style options as canonical.
7842 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7843 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7845 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7847 * basic-block.h (force_nonfallthru): Move to...
7848 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7849 (force_nonfallthru): ...here.
7850 * cfghooks.c (force_nonfallthru): New function.
7851 * cfgrtl.c (force_nonfallthru): Rename into...
7852 (rtl_force_nonfallthru): ...this.
7853 (commit_one_edge_insertion): Do not set AUX field.
7854 (commit_edge_insertions): Do not discover new basic blocks.
7855 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7856 (cfg_layout_rtl_cfg_hooks): Likewise.
7857 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7858 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7859 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7861 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7863 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7866 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7868 * config/i386/sse.md: Update copyright year.
7869 (avxcvtvecmode): Remove.
7870 (sse_movhlps): Merge with *avx_movhlps.
7871 (sse_movlhps): Merge with *avx_movlhps.
7872 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7873 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7874 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7875 (sse_loadhps): Merge with *avx_loadhps.
7876 (sse_storelps): Merge with *avx_storelps.
7877 (sse_loadlps): Merge with *avx_loadlps.
7878 (sse_movss): Merge with *avx_movss.
7879 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7880 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7881 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7882 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7883 (vec_set<mode>_0): Ditto.
7884 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7885 (sse4_1_insertps): Merge with *avx_insertps.
7886 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7887 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7888 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7889 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7890 (sse2_storehpd): Merge with *avx_storehpd.
7891 (sse2_loadhpd): Merge with *avx_loadhpd.
7892 (sse2_loadlpd): Merge with *avx_loadlpd.
7893 (sse2_movsd): Merge with *avx_movsd.
7894 (*vec_concatv2df): Merge with *vec_concatv2df.
7896 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7899 * combine.c (combine_instructions): Add last_combined_insn,
7900 update it if insn is after it, pass it to all try_combine calls.
7901 (try_combine): Add last_combined_insn parameter, pass it instead of
7902 i3 to propagate_for_debug.
7904 2011-04-07 Nick Clifton <nickc@redhat.com>
7906 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7907 to handle MDR <-> data register transfers.
7908 (movhi_internal): Likewise.
7910 2011-04-07 Alan Modra <amodra@gmail.com>
7912 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7913 previous stack info.
7915 2011-04-07 Tom de Vries <tom@codesourcery.com>
7918 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7919 flow_find_cross_jump. Swap variables to implement backward replacement.
7920 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7922 2011-04-07 Tom de Vries <tom@codesourcery.com>
7925 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7926 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7928 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7929 src1 or src2. Redirect edges to the last basic block. Update
7930 frequency and count on multiple basic blocks in case of fallthru.
7932 2011-04-07 Tom de Vries <tom@codesourcery.com>
7935 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7937 (old_insns_match_p): Change return type. Replace return false/true
7938 with return dir_none/dir_both. Use can_replace_by.
7939 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7940 direction from dir_p. Register replacement direction in dir, last_dir
7941 and afterlast_dir. Handle new return type of old_insns_match_p using
7942 merge_dir. Return replacement direction in dir_p.
7943 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7944 return type of old_insns_match_p.
7945 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7946 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7947 flow_find_cross_jump.
7948 * basic-block.h (enum replace_direction): New type.
7949 (flow_find_cross_jump): Add parameter to declaration.
7951 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7953 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7954 (AVXMODEDCVTPS2DQ): Ditto.
7955 (VEC_FLOAT_MODE): Ditto.
7956 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7957 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7958 (<any_logic:code><mode>3): Use VF mode iterator.
7959 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7960 Use VF mode iterator.
7961 (copysign<mode>3): Use VF mode iterator.
7962 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7963 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7964 (*<any_logic:code><MODEF:mode>3): Merge with
7965 *avx_<any_logic:code><MODEF:mode>3.
7966 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7967 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7968 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7969 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7970 (sse2_cvtdq2ps): Use %v modifier.
7971 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7972 (avx_cvtps2dq<avxmodesuffix>): Remove.
7973 (sse2_cvtps2dq): Use %v modifier.
7974 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7975 (avx_cvttps2dq<avxmodesuffix>): Remove.
7976 (sse2_cvttps2dq): Use %v modifier.
7977 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7978 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7979 (sse2_cvtsd2siq): Fix insn template.
7980 (sse2_cvtsd2siq_2): Ditto.
7981 (sse2_cvttsd2siq): Ditto.
7982 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7983 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7985 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7987 * gcov-io.c: Use GCC Runtime Library Exception.
7989 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7992 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7993 as base_reg whatever register reg has been eliminated to, instead
7994 of hardcoding STACK_POINTER_REGNUM.
7996 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7998 * doc/tm.texi.in: Document C target hooks as separate from general
8000 * doc/tm.texi: Regenerate.
8001 * genhooks.c (struct hook_desc): Add docname field.
8002 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8004 (hook_array): Include c-target.def.
8005 (emit_documentation): Use docname field in output.
8006 (emit_init_macros): Take docname argument. Only emit definitions
8007 for hooks matching docname.
8008 (main): Expect additional arguments in all cases. Pass argument
8009 to emit_init_macros.
8010 * target.def: Move initial macro definitions and comments to
8011 target-hooks-macros.h.
8012 (gcc_targetcm): Move to c-family/c-target.def.
8013 * target.h (targetcm): Move declaration to c-family/c-target.h.
8014 * targhooks.c (default_handle_c_option): Move to
8016 * targhooks.h (default_handle_c_option): Move declaration to
8017 c-family/c-common.h.
8018 * target-hooks-macros.h: New file.
8019 * config.gcc (target_has_targetcm): Define and use to add to
8020 c_target_objs and cxx_target_objs.
8021 * config/default-c.c: New file.
8022 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8023 of target.h and target-def.h.
8024 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8025 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8026 darwin_check_cfstring_format_arg): Make static.
8027 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8028 TARGET_STRING_OBJECT_REF_TYPE_P,
8029 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8030 * config/darwin-protos.h (darwin_objc_construct_string,
8031 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8033 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8034 TARGET_STRING_OBJECT_REF_TYPE_P,
8035 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8036 * config/t-darwin (darwin-c.o): Update dependencies.
8037 * system.h (TARGET_HAS_TARGETCM): Poison.
8038 * Makefile.in (TARGET_H): Update.
8039 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8040 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8041 (default-c.o): New target.
8042 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8043 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8044 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8046 (build/genhooks.o): Update dependencies.
8048 2011-04-06 Richard Guenther <rguenther@suse.de>
8050 * ipa-inline.c (enum inlining_mode): Remove.
8051 (cgraph_flatten): Use some other token.
8052 (cgraph_edge_early_inlinable_p): New function, split out from ...
8053 (cgraph_perform_always_inlining): New function, split out from ...
8054 (cgraph_decide_inlining_incrementally): ... here.
8055 (cgraph_mark_inline_edge): Adjust.
8056 (cgraph_early_inlining): Re-structure.
8057 (pass_early_inline): Require SSA form.
8059 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8060 Julian Brown <julian@codesourcery.com>
8061 Mark Shinwell <shinwell@codesourcery.com>
8063 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8064 LO_REGS only for Thumb-1.
8065 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8066 be used in short instructions when optimising for size on Thumb-2.
8068 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8070 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8071 associated with user returns to be preserved.
8073 2011-04-06 Tristan Gingold <gingold@adacore.com>
8075 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8076 symbol_queue_size, DBXOUT_DECR_NESTING,
8077 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8078 if XCOFF_DEBUGGING_INFO.
8080 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8082 * config/i386/i386.md (attribute isa): New.
8083 (attribute enabled): New.
8084 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8085 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8086 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8087 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8088 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8089 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8090 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8091 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8093 * config/i386/sse.md (VF): New mode iterator.
8097 (SSEMODEF4): Remove.
8098 (attribute sse): Handle V8SF and V4DF modes.
8099 (<absneg:code><mode>2): Use VF mode iterator.
8100 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8102 (<plusminus_insn><mode>3): Use VF mode iterator.
8103 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8104 Use VF mode iterator.
8105 (<sse>_vm<plusminus_insn><mode>3): Merge with
8106 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8107 (mul<mode>3): Use VF mode iterator.
8108 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8109 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8111 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8112 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8113 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8114 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8116 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8117 Use VF1 mode iterator.
8118 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8119 (sqrt<VF2:mode>2): New expander.
8120 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8121 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8122 and sqrtv2df2. Use VF mode iterator.
8123 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8125 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8126 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8127 Use VF1 mode iterator.
8128 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8129 (<smaxmin:code><mode>3): Use VF mode iterator.
8130 (*<smaxmin:code><mode>3_finite): Merge with
8131 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8132 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8133 (<sse>_vm<smaxmin:code><mode>2): Merge with
8134 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8135 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8137 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8139 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8140 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8141 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8142 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8143 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8145 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8146 Use VF_128 mode iterator.
8147 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8149 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8150 VF_128 mode iterator.
8151 (vcond<mode>): Use VF mode iterator.
8152 * config/i386/predicates.md (sse_comparison_operator): Merge with
8153 avx_comparison_float_operator. Do not declare as special_predicate.
8154 * config/i386/i386.c (struct builtin_description): Update for renamed
8156 (ix86_expand_args_builtin): Ditto.
8157 (ix86_expand_sse_compare_mask): Ditto.
8159 2011-04-06 Richard Guenther <rguenther@suse.de>
8161 * tree-inline.c (estimate_num_insns): For calls simply account
8162 for all passed arguments and a used return value.
8164 2011-04-06 Richard Guenther <rguenther@suse.de>
8166 PR tree-optimization/47663
8167 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8168 call_stmt_time fields.
8169 (cgraph_edge_inlinable_p): Declare.
8170 (cgraph_edge_recursive_p): New inline function.
8171 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8172 (cgraph_clone_edge): Copy it.
8173 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8174 Account for call stmt time.
8175 (cgraph_estimate_time_after_inlining): Take edge argument.
8176 (cgraph_estimate_edge_growth): Account call stmt size.
8177 (cgraph_estimate_size_after_inlining): Take edge argument.
8178 (cgraph_mark_inline_edge): Adjust.
8179 (cgraph_check_inline_limits): Likewise.
8180 (cgraph_recursive_inlining_p): Remove.
8181 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8182 (cgraph_decide_recursive_inlining): Take edge argument and
8184 (cgraph_decide_inlining_of_small_functions): Do not avoid
8185 diags for recursive inlining here.
8186 (cgraph_flatten): Adjust.
8187 (cgraph_decide_inlining_incrementally): Likewise.
8188 (estimate_function_body_sizes): Remove call cost handling.
8189 (compute_inline_parameters): Initialize caller edge call costs.
8190 (cgraph_estimate_edge_growth): New function.
8191 (cgraph_estimate_growth): Use it.
8192 (cgraph_edge_badness): Likewise.
8193 (cgraph_check_inline_limits): Take an edge argument.
8194 (cgraph_decide_inlining_of_small_functions): Adjust.
8195 (cgraph_decide_inlining): Likewise.
8196 * tree-inline.c (estimate_num_insns): Only account for call
8197 return value if it is used.
8198 (expand_call_inline): Avoid diagnostics on recursive inline
8200 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8201 (input_edge): Input edge call costs.
8203 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8205 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8207 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8209 * doc/invoke.texi (Spec Files): Fix typo.
8211 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8213 * profile.c (branch_prob): Move declaration of local variable. Remove
8214 obsolete ??? comment. Expand the location explicitly instead of using
8215 the LOCATION_FILE and LOCATION_LINE macros.
8217 2011-04-06 Wei Guozhi <carrot@google.com>
8220 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8221 (arm_cond_branch): Likewise.
8222 (arm_cond_branch_reversed): Likewise.
8223 (arm_jump): Likewise.
8224 (push_multi): Likewise.
8225 * config/arm/constraints.md (Py): New constraint.
8227 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8230 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8232 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8233 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8234 #ifdef DBX_DEBUGGING_INFO.
8236 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8239 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8240 if old and new states differ.
8242 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8244 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8245 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8246 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8247 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8248 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8250 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8251 ColdFire options to -mcpu= options.
8253 2011-04-05 Jeff Law <law@redhat.com>
8255 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8256 check if BB is a successor of LOOP->header and return
8257 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8259 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8261 * cprop.c (struct reg_use): Remove.
8262 (reg_use_table): Make an array of RTX.
8263 (find_used_regs, constprop_register, local_cprop_pass,
8264 bypass_block): Simplify users of reg_use_table.
8265 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8266 on one of the uses found by find_used_regs.
8268 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8271 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8274 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8276 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8278 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8280 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8283 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8285 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8287 * combine.c: Include obstack.h.
8288 (struct insn_link): Define.
8289 (uid_log_links): Adjust type.
8290 (FOR_EACH_LOG_LINK): New macro.
8291 (insn_link_obstack): Declare.
8292 (alloc_insn_link): Define.
8293 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8294 type of link variables.
8295 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8296 (try_combine, record_promoted_values, distribute_notes): Likewise.
8297 (distribute_links): Likewise. Tweak prototype.
8298 (clear_log_links): Delete.
8299 (adjust_for_new_dest): Call alloc_insn_link.
8300 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8302 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8304 * gcse.c (modify_mem_list): Convert to an array of VECs.
8305 (canon_modify_mem_list, compute_transp): Tweak formatting.
8306 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8307 (load_killed_in_block_p): Likewise.
8308 (record_last_mem_set_info): Likewise.
8309 (clear_modify_mem_tables): Likewise.
8311 2011-04-05 Tom de Vries <tom@codesourcery.com>
8314 * function.c (emit_use_return_register_into_block): Only define if
8317 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8319 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8321 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8323 * config/rx/rx-opts.h: New.
8324 * config/rx/rx.c (rx_cpu_type): Remove.
8325 (rx_handle_option): Don't assert that global structures are in
8326 use. Access variables via opts pointer. Defer most handling of
8327 OPT_mint_register_. Use error_at.
8328 (rx_option_override): Handle deferred OPT_mint_register_ here.
8329 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8330 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8331 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8332 (rx_cpu_types): New Enum and EnumValue entries.
8333 (mint-register=): Use Defer and use Var accordingly.
8335 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8337 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8338 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8339 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8341 (debug_free_queue, debug_nesting, symbol_queue_index):
8343 * dbxout.c: ...to here. Make static.
8345 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8347 * gcse.c (modify_pair): Define. Define a VEC of it.
8348 (canon_modify_mem_list): Convert to an array of VECs.
8349 (free_insn_expr_list_list): Delete.
8350 (clear_modify_mem_tables): Call VEC_free instead.
8351 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8352 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8353 (canon_list_insert, compute_transp): Likewise.
8355 2011-04-05 Tom de Vries <tom@codesourcery.com>
8358 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8361 2011-04-05 Tom de Vries <tom@codesourcery.com>
8364 * function.c (emit_use_return_register_into_block): New function.
8365 (thread_prologue_and_epilogue_insns): Use
8366 emit_use_return_register_into_block.
8368 2011-04-05 Tom de Vries <tom@codesourcery.com>
8371 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8374 2011-04-05 Tom de Vries <tom@codesourcery.com>
8376 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8378 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8380 * config/arm/arm.md (define_constants for unspec): Replace with
8382 (define_constants for unspecv): Replace with define_c_enum.
8383 * config/arm/neon.md (define_constants for unspec): Replace with
8386 2011-04-04 Richard Henderson <rth@redhat.com>
8389 * dwarf2out.c (output_line_info): Always emit line info from
8390 at least one section.
8391 (dwarf2out_init): Create text_section_line_info here ...
8392 (set_cur_line_info_table): ... not here.
8394 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8397 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8400 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8402 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8404 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8405 (expr_equiv_p): Remove.
8406 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8407 (hash_scan_set): Update call to insert_set_in_table.
8408 (dump_hash_table): Dump <dest, src> pair.
8409 (lookup_set): Simplify. Lookup <dest, src> pair.
8410 (compute_transp): Remove, fold heavily simplified code into...
8411 (compute_local_properties): ...here. Expect COMP and TRANSP
8413 (find_avail_set): Take set directly from struct expr.
8414 (find_bypass-set): Likewise.
8415 (bypass_block): Likewise.
8416 (cprop_insn): Likewise. Remove redundant INSN_P test.
8418 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8419 checks on form of COND from find_implicit_sets to here.
8420 (find_implicit_sets): Cleanup control flow. Split critical edges
8421 if it exposes implicit sets. Allocate/resize implicit_sets as
8423 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8424 changed something. Run df_analyze after find_implicit_sets if any
8425 edges were split. Do not allocate implicit_sets here.
8427 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8428 (gcse_obstack): Renamed to cprop_obstack.
8429 (GNEW, GNEWVEC, GNEWVAR): Remove.
8431 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8432 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8433 (gcse_alloc): Likewise, and rename to cprop_alloc.
8434 (alloc_gcse_men, free_gcse_mem): Remove.
8435 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8436 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8437 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8439 * cprop.c (oprs_not_set_p): Remove.
8440 (mark_set, mark_clobber): Remove.
8441 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8442 (reg_not_set_p): New function.
8443 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8444 (cprop_insn): Likewise.
8445 (cprop_jump): Use FOR_EACH_EDGE.
8447 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8450 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8451 (rank_for_schedule): Use scheduled_insns vector instead of
8452 last_scheduled_insn.
8453 (ok_for_early_queue_removal): Likewise.
8454 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8456 (choose_ready): Likewise.
8457 (commit_schedule): Use VEC_iterate.
8458 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8459 a dbg_cnt, use it and ensure the first insn is in the ready list.
8460 (haifa_sched_init): Allocate scheduled_insns.
8461 (sched_extend_ready_list): Don't allocate it; reserve space.
8462 (haifa_sched_finish): Free it.
8464 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8466 * optc-gen.awk: Always remove type from Variable entry before
8467 recording in var_seen.
8469 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8471 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8472 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8473 call to tidy_fallthru_edges.
8475 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8477 * doc/options.texi (ToLower): Document.
8478 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8479 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8480 * opts.h (cl_option): Add cl_tolower field.
8481 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8482 arguments with lowercase strings.
8483 * config/rx/rx.opt (mcpu=): Add ToLower.
8484 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8487 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8489 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8491 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8493 * config/vax/vax.c: Include reload.h.
8495 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8497 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8498 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8499 (sparc_preferred_reload_class): New function.
8501 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8504 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8505 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8507 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8509 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8510 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8512 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8514 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8515 (ASM_OUTPUT_ALIGNED_BSS): Define.
8517 2011-04-03 Michael Matz <matz@suse.de>
8519 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8520 and next_slot members.
8521 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8522 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8523 (lto_streamer_cache_append): Declare.
8524 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8525 unsigned index, remove offset parameter, ensure that we append
8526 or update existing entries.
8527 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8528 parameter, update next_slot for append.
8529 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8531 (lto_streamer_cache_insert_at): Likewise.
8532 (lto_streamer_cache_append): New function.
8533 (lto_streamer_cache_lookup): Use unsigned index.
8534 (lto_streamer_cache_get): Likewise.
8535 (lto_record_common_node): Don't test tree_node_can_be_shared.
8536 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8537 (lto_streamer_cache_delete): Don't free offsets member.
8538 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8539 (lto_output_string_with_length): Use lto_output_data_stream.
8540 (lto_output_tree_header): Remove ix parameter, don't write it.
8541 (lto_output_builtin_tree): Likewise.
8542 (lto_write_tree): Adjust callers to above, don't track and write
8543 offset, write unsigned index.
8544 (output_unreferenced_globals): Don't emit all global vars.
8545 (write_global_references): Use unsigned indices.
8546 (lto_output_decl_state_refs): Likewise.
8547 (write_symbol): Likewise.
8548 * lto-streamer-in.c (lto_input_chain): Move earlier.
8549 (input_function): Use unsigned index.
8550 (input_alias_pairs): Don't read and then ignore all global vars.
8551 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8552 don't pass it back, use lto_streamer_cache_append.
8553 (lto_register_var_decl_in_symtab): Use unsigned index.
8554 (lto_register_function_decl_in_symtab): Likewise.
8555 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8557 (lto_get_builtin_tree): Don't read index, use
8558 lto_streamer_cache_append.
8559 (lto_read_tree): Adjust call to lto_materialize_tree.
8561 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8562 don't use function calls in arguments to MIN.
8564 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8567 * gimple.c (gimple_type_leader_entry): Mark deletable.
8569 2011-04-03 Alan Modra <amodra@gmail.com>
8571 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8573 2011-04-03 Michael Matz <matz@suse.de>
8575 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8577 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8579 2011-04-03 Michael Matz <matz@suse.de>
8581 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8582 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8583 without function context.
8584 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8585 current_function_decl and cfun.
8587 2011-04-03 Michael Matz <matz@suse.de>
8589 * tree.c (decl_init_priority_insert): Don't create entry for
8591 (decl_fini_priority_insert): Ditto.
8592 (fields_compatible_p, find_compatible_field): Remove.
8593 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8594 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8596 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8598 * combine.c (try_combine): Remove useless local variable.
8600 2011-04-03 Richard Guenther <rguenther@suse.de>
8601 Ira Rosen <ira.rosen@linaro.org>
8603 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8604 non-variable offsets and compare the remaining bases of the two
8605 accesses instead of looking for exact same data-ref.
8607 2011-04-02 Kai Tietz <ktietz@redhat.com>
8610 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8612 * i386.c (ix86_is_msabi_thiscall): New helper function.
8613 (ix86_is_type_thiscall): New helper function.
8614 (ix86_comp_type_attributes): Handle thiscall for method-functions
8616 (init_cumulative_args): Likewise.
8617 (find_drap_reg): Likewise.
8618 (ix86_static_chain): Likewise.
8619 (x86_this_parameter): Likewise.
8620 (x86_output_mi_thunk): Likewise.
8622 2011-04-01 Olivier Hainque <hainque@adacore.com>
8623 Nicolas Setton <setton@adacore.com>
8624 Eric Botcazou <ebotcazou@adacore.com>
8626 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8627 (add_gnat_descriptive_type_attribute): New function.
8628 (gen_array_type_die): Call it.
8629 (gen_enumeration_type_die): Likewise.
8630 (gen_struct_or_union_type_die): Likewise.
8631 (modified_type_die): Likewise.
8632 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8633 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8634 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8636 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8639 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8640 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8643 2011-03-17 Richard Guenther <rguenther@suse.de>
8646 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8647 origin for decls in other ltrans units.
8648 (input_varpool_node): Likewise.
8650 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8653 * expr.c (expand_assignment): Handle all possibilities
8654 if TO_RTX is CONCAT.
8655 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8656 (store_split_bit_field): If SUBREG_REG (op0) or
8657 op0 itself has smaller mode than word, return it
8658 for offset 0 and const0_rtx for out-of-bounds stores.
8659 If word is const0_rtx, skip it.
8661 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8663 * config/h8300/h8300.c (print_operand_address): Rename to...
8664 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8665 Call h8300_print_operand and h8300_print_operand_address instead of
8666 print_operand and print_operand_address. Declare.
8667 (print_operand): Renake to...
8668 (h8300_print_operand): ...this. Make static. Adjust comments.
8669 Call h8300_print_operand instead of print_operand. Declare.
8670 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8671 (h8300_register_move_cost): Likewise.
8672 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8673 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8674 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8675 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8676 * config/h8300/h8300-protos.h (print_operand): Delete.
8677 (print_operand_address): Delete.
8679 2011-04-01 Richard Henderson <rth@redhat.com>
8682 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8683 in strict mode before dwarf4. Re-order tests to early out
8684 before switching sections.
8686 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8688 * config/h8300/constraints.md: New file.
8689 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8690 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8691 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8692 * config/h8300/predicates.md (bit_operand): Likewise.
8693 (incdec_operand): Use satisfies_constraint_M and
8694 satisfies_constraint_O. Don't use C code block.
8695 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8696 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8697 (compute_mov_length): Use satisfies_constraint_G.
8698 (fix_bit_operand): Use satisfies_constraint_U.
8699 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8700 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8701 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8702 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8703 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8704 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8705 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8706 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8707 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8708 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8709 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8710 (EXTRA_MEMORY_CONSTRAINT): Delete.
8712 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8713 Michael Meissner <meissner@linux.vnet.ibm.com>
8716 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8717 operands, as per the specifications.
8719 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8720 (vec_extract_evenv4sf): Ditto.
8721 (vec_extract_evenv8hi): Ditto.
8722 (vec_extract_evenv16qi): Ditto.
8723 (vec_extract_oddv4si): Ditto.
8725 2011-03-31 Mark Wielaard <mjw@redhat.com>
8727 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8728 high_pc attribute if the CU has no associated code. Only output
8729 DW_AT_entry_pc for CU if not generating strict dwarf and
8732 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8734 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8735 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8737 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8738 * final.c (final_start_function): Call the new function rather
8739 than using a NULL argument for dwarf2out_frame_debug.
8741 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8742 that contains the prologue.
8744 * haifa-sched.c (queue_insn): New arg REASON. All callers
8745 changed. Print it in debugging output.
8747 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8749 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8750 Split most of the code into...
8751 (begin_move_insn): ... here. New function.
8752 (ebb_sched_info): Add a pointer to it.
8753 * haifa-sched.c (scheduled_insns): New static variable.
8754 (sched_extend_ready_list): Allocate it.
8755 (schedule_block): Use it to record the order of scheduled insns.
8756 Perform RTL changes to move insns only after all scheduling
8757 decisions have been made.
8758 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8759 begin_move_insn field.
8760 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8761 * sched-int.h (struct haifa_sched_info): Remove second argument
8762 from begin_schedule_ready hook. Add new member begin_move_insn.
8763 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8764 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8766 * haifa-sched.c (prune_ready_list): New function, broken out of
8768 (schedule_block): Use it.
8770 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8772 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8774 2011-04-01 Kai Tietz <ktietz@redhat.com>
8776 * config.gcc (*-*-mingw*): Allow as option the
8777 posix threading model.
8778 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8779 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8781 (CPP_SPEC): Add pthread/no-pthread handling.
8782 (LIB_SPEC): Likewise.
8783 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8784 (LIB_SPEC): Likewise.
8785 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8786 flag to pass -pthread option for shared libgcc build.
8787 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8788 for shared libgcc build.
8789 * config/i386/t-mingw-pthread: New file.
8790 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8791 New define to enable use of library pthread by default.
8792 * config/i386/mingw.opt (pthread): New driver option.
8793 (no-pthread): New driver option.
8794 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8795 * config/i386/mingw-w64.opt: Likewise.
8797 2011-04-01 Gary Funck <gary@intrepid.com>
8799 * c-decl.c (grokdeclarator): Fix formatting.
8801 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8803 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8804 instead of n_operands.
8805 (set_storage_via_setmem): Likewise.
8806 * optabs.c (maybe_gen_insn): Likewise.
8807 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8808 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8809 (mips_expand_builtin_direct): Likewise.
8810 * config/spu/spu.c (expand_builtin_args): Likewise.
8812 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8814 * recog.h (insn_data_d): Add n_generator_args.
8815 * genoutput.c (data): Likewise.
8816 (output_insn_data): Print it.
8817 (max_opno, num_dups): Delete.
8818 (scan_operands): Just fill in "d->operand[...]".
8819 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8821 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8823 * gensupport.h (pattern_stats): New structure.
8824 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8825 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8826 (max_operand_1, max_operand_vec): Delete.
8827 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8829 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8831 * emit-rtl.c (emit_pattern_after_setloc): New function.
8832 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8833 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8834 (emit_pattern_after): New function.
8835 (emit_insn_after, emit_jump_insn_after): Call it.
8836 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8837 (emit_pattern_before_setloc): New function.
8838 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8839 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8841 (emit_pattern_before): New function.
8842 (emit_insn_before, emit_jump_insn_before): Call it.
8843 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8845 2011-03-31 Richard Henderson <rth@redhat.com>
8847 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8848 (dw_separate_line_info_entry): Remove.
8849 (enum dw_line_info_opcode): New.
8850 (dw_line_info_entry): Use it.
8851 (dw_line_info_table, dw_line_info_table_p): New.
8852 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8853 (line_info_table, line_info_label_num): Remove.
8854 (line_info_table_in_use): Remove.
8855 (separate_line_info_table): Remove.
8856 (separate_line_info_table_allocated): Remove.
8857 (separate_line_info_table_in_use): Remove.
8858 (LINE_INFO_TABLE_INCREMENT): Remove.
8859 (line_info_label_num): New.
8860 (cur_line_info_table): New.
8861 (text_section_line_info, cold_text_section_line_info): New.
8862 (separate_line_info): New.
8863 (SEPARATE_LINE_CODE_LABEL): Remove.
8864 (print_dwarf_line_table): Remove.
8865 (debug_dwarf): Don't dump it.
8866 (output_one_line_info_table): New.
8867 (output_line_info): Use it.
8868 (new_line_info_table): New.
8869 (set_cur_line_info_table): New.
8870 (dwarf2out_switch_text_section): Use it.
8871 (dwarf2out_begin_function): Likewise.
8872 (push_dw_line_info_entry): New.
8873 (dwarf2out_source_line): Rewrite for new line info tables.
8874 (dwarf2out_init): Remove dead initailizations.
8876 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8878 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8880 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8881 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8882 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8883 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8884 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8885 * opt-functions.awk (flag_init, switch_bit_fields): New.
8886 (switch_flags): Don't handle flags moved to bit-fields. Don't
8887 generate CL_MISSING_OK or CL_SAVE.
8888 * optc-gen.awk: Update to generate bit-field output as well as
8890 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8891 bit-field instead of CL_REJECT_DRIVER flag.
8892 * opts-common.c (generate_canonical_option,
8893 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8894 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8895 instead of CL_REJECT_NEGATIVE flag.
8896 * toplev.c (print_switch_values): Use cl_report bit-field instead
8899 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8901 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8902 a zero minimum index only if it is redundant.
8904 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8906 PR rtl-optimization/48381
8907 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8908 instead of ira_class_hard_reg_index for calculating conflicting
8911 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8913 * cprop.c: Clean up hash table building.
8914 (reg_avail_info): Remove.
8915 (oprs_available_p): Remove.
8916 (record_last_reg_set_info): Remove.
8917 (record_last_set_info): Remove.
8918 (reg_available_p): New function.
8919 (gcse_constant_p): Do not treat unfolded conditions as constants.
8920 (make_set_regs_unavailable): New function.
8921 (hash_scan_set): Simplify with new reg_available_p.
8922 (compute_hash_table_work): Traverse insns stream only once.
8923 Do not compute reg_avail_info. Traverse insns in reverse order.
8924 Record implicit sets after recording explicit sets from the block.
8926 2011-03-31 Michael Matz <matz@suse.de>
8928 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8930 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8932 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8933 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8934 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8935 (h8300_mode_dependent_address_p): New function.
8936 (h8300_get_index): Make static.
8938 2011-03-31 Jeff Law <law@redhat.com>
8940 * reload1.c (elimination_effects): Fix typo in recent change.
8942 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8943 typo potentially leading to null pointer dereference.
8945 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8946 (setup_save_areas): Corresponding changes to avoid useless
8949 * jump.c (reversed_comparison_code_parts): Avoid successive return
8950 statements when REVERSE_CONDITION is defined.
8952 * expr.c (expand_assignment): Avoid useless assignments.
8953 (expand_expr_real_1): Likewise.
8954 (expand_expr_real_2): Avoid useless statements.
8956 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8958 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8960 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8963 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8965 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8968 * doc/tm.texi.in (TARGET_VERSION): Remove.
8969 * doc/tm.texi: Regenerate.
8970 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8971 * collect2.c (main): Don't use TARGET_VERSION.
8972 * mips-tdump.c (main): Don't use TARGET_VERSION.
8973 * mips-tfile.c (main): Don't use TARGET_VERSION.
8974 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8975 * config/rs6000/vxworksae.h: Remove.
8976 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8977 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8978 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8979 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8980 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8981 * config/arm/arm.h (TARGET_VERSION): Remove.
8982 * config/arm/coff.h (TARGET_VERSION): Remove.
8983 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8984 * config/arm/elf.h (TARGET_VERSION): Remove.
8985 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8986 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8987 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8988 * config/arm/pe.h (TARGET_VERSION): Remove.
8989 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8990 * config/arm/semi.h (TARGET_VERSION): Remove.
8991 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8992 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8993 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8994 * config/avr/avr.h (TARGET_VERSION): Remove.
8995 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8996 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8997 * config/frv/frv.h (TARGET_VERSION): Remove.
8998 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8999 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9000 * config/i386/darwin.h (TARGET_VERSION): Remove.
9001 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9002 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9003 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9004 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9005 * config/i386/gnu.h (TARGET_VERSION): Remove.
9006 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9007 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9008 * config/i386/linux.h (TARGET_VERSION): Remove.
9009 * config/i386/linux64.h (TARGET_VERSION): Remove.
9010 * config/i386/lynx.h (TARGET_VERSION): Remove.
9011 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9012 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9013 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9014 * config/i386/netware.h (TARGET_VERSION): Remove.
9015 * config/i386/nto.h (TARGET_VERSION): Remove.
9016 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9017 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9018 * config/ia64/elf.h (TARGET_VERSION): Remove.
9019 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9020 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9021 * config/ia64/linux.h (TARGET_VERSION): Remove.
9022 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9023 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9024 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9025 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9026 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9027 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9028 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9029 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9030 * config/m68k/linux.h (TARGET_VERSION): Remove.
9031 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9032 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9033 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9034 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9035 * config/mep/mep.h (TARGET_VERSION): Remove.
9036 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9037 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9038 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9039 * config/mips/linux.h (TARGET_VERSION): Remove.
9040 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9041 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9042 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9043 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9044 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9045 * config/pa/pa.h (TARGET_VERSION): Remove.
9046 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9047 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9048 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9049 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9050 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9051 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9052 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9053 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9054 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9055 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9056 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9057 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9058 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9059 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9060 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9061 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9062 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9063 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9064 * config/s390/linux.h (TARGET_VERSION): Remove.
9065 * config/s390/s390.h (TARGET_VERSION): Remove.
9066 * config/s390/tpf.h (TARGET_VERSION): Remove.
9067 * config/score/score.h (TARGET_VERSION): Remove.
9068 * config/sh/linux.h (TARGET_VERSION): Remove.
9069 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9070 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9071 * config/sh/sh.h (TARGET_VERSION): Remove.
9072 * config/sh/sh64.h (TARGET_VERSION): Remove.
9073 * config/sh/superh.h (TARGET_VERSION): Remove.
9074 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9075 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9076 * config/sparc/linux.h (TARGET_VERSION): Remove.
9077 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9078 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9079 TARGET_NAME32, TARGET_NAME): Remove.
9080 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9081 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9082 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9083 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9084 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9085 * config/spu/spu.h (TARGET_VERSION): Remove.
9086 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9087 * config/v850/v850.h (TARGET_VERSION): Remove.
9088 * config/vax/linux.h (TARGET_VERSION): Remove.
9089 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9090 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9091 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9093 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9096 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9097 frame-related from frame-unrelated adjustments to the stack pointer.
9099 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9101 * common.opt (fdebug-types-section): Move earlier.
9102 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9104 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9106 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9109 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9111 * tree.h (CASE_CHAIN): Define.
9112 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9113 (gimple_redirect_edge_and_branch): Likewise.
9115 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9118 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9121 2011-03-30 Jeff Law <law@redhat.com>
9123 * PR bootstrap/48371
9124 * reload1.c (reload): Fix botch in last change.
9126 * reload.h (struct reload): Fix typo introduced in last change.
9128 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9130 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9131 Undocumented. Remove help text.
9132 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9135 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9137 * doc/options.texi (NegativeAlias): Document.
9138 (Alias): Mention NegativeAlias.
9139 * opt-functions.awk: Handle NegativeAlias.
9140 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9141 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9142 * opts.h (CL_NEGATIVE_ALIAS): Define.
9143 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9144 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9146 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9148 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9149 mno-spe and mno-isel instead of mspe=no and -misel=no.
9151 2011-03-29 Mark Wielaard <mjw@redhat.com>
9153 * common.opt (fdebug-types-section): New flag.
9154 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9155 * dwarf2out.c (use_debug_types): New define.
9156 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9157 (print_die): Guard output of type unit signatures using
9159 (build_abbrev_table): Replace assert of dwarf_version >= 4
9160 with assert on use_debug_types.
9161 (size_of_die): Likewise.
9162 (unmark_dies): Likewise.
9163 (value_format): Decide AT_ref_external form on use_debug_types.
9164 (output_die): Replace dwarf_version version check guard with
9165 use_debug_types where appropriate.
9166 (modified_type_die): Likewise.
9167 (gen_reference_type_die): Likewise.
9168 (dwarf2out_start_source_file): Likewise.
9169 (dwarf2out_end_source_file): Likewise.
9170 (prune_unused_types_walk_attribs): Likewise.
9171 (dwarf2out_finish): Likewise.
9173 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9175 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9177 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9179 PR rtl-optimization/48332
9180 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9181 mode of input operand N and modeN to its actual mode.
9183 2011-03-30 Jeff Law <law@redhat.com>
9185 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9186 define accessor macro.
9187 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9188 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9189 (reg_equiv_init): Likewise.
9190 (reg_equivs_size): New variable.
9191 (reg_equiv_init_size): Remove.
9192 (allocate_initial_values): Move prototype to here from....
9193 * integrate.h (allocate_initial_values): Remove prototype.
9194 * integrate.c: Include reload.h.
9195 (allocate_initial_values): Corresponding changes.
9196 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9197 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9198 (update_equiv_regs): Corresponding changes.
9199 (ira): Corresponding changes.
9200 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9201 (push_secondary_reload): Corresponding changes.
9202 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9203 (make_memloc, find_reloads_address): Corresponding changes.
9204 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9205 (find_reloads_address_1): Corresponding changes.
9206 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9207 (refers_to_regno_for_reload_p): Corresponding changes.
9208 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9209 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9210 * reload1.c: Include ggc.h.
9211 (grow_reg_equivs): New function.
9212 (replace_pseudos_in, reload): Corresponding changes.
9213 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9214 (eliminate_regs_1, elimination_effects): Corresponding changes.
9215 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9216 (delete_output_reload): Likewise.
9217 * caller-save.c (mark_referenced_regs): Corresponding changes.
9218 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9219 * frv/predicates.md (frv_load_operand): Corresponding changes.
9220 * microblaze/microblaze.c (double_memory_operand): Corresponding
9222 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9223 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9224 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9225 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9226 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9228 * pa/pa.c (emit_move_sequence): Corresponding changes.
9229 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9231 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9234 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9235 structure modes. Don't check neon_vector_mem_operand for
9236 vector or structure modes.
9238 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9239 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9242 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9243 operand 1 and reshuffle the operands to match.
9244 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9246 2011-03-30 Christian Schüler <cschueler@gmx.de>
9249 * config/c.opt (F): Added 'Driver' to -F option.
9252 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9254 * config/darwin.opt: Added '-arch' option.
9256 2011-03-30 Nick Clifton <nickc@redhat.com>
9258 * config/rx/rx.md: Add peepholes and patterns to combine
9259 extending loads and simple arithmetic instructions.
9260 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9261 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9262 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9263 modes to use pre-decrement and post-increment addressing.
9264 (rx_is_restricted_memory_address): Add range checking of REG+INT
9266 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9267 (rx_memory_move_cost): Adjust cost of stores.
9268 (rx_adjust_insn_length): New function.
9270 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9273 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9274 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9275 matching arg00/arg01 types.
9277 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9279 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9280 last_location to UNKNOWN_LOCATION.
9282 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9285 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9288 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9289 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9292 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9294 (sparc_cpu): Likewise.
9295 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9298 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9302 PR rtl-optimization/48345
9303 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9304 hard regs for given mode from profitable regs when doing secondary
9307 2011-03-29 Jeff Law <law@redhat.com>
9310 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9311 do_not_duplicate field.
9312 (lookup_redirection_data): Corresponding changes.
9313 (create_duplicates): Always create a template block.
9314 (redirect_edges): Remove code which reused the original block
9315 when it was going to become unreachable code.
9316 (thread_block): Don't set do_not_duplicate field.
9318 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9320 * lto-opts.c (register_user_option_p, lto_register_user_option):
9321 Make type argument unsigned.
9322 * lto-streamer.h (lto_register_user_option): Make type argument
9324 * opth-gen.awk: Make CL_* macros unsigned.
9325 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9326 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9327 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9328 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9329 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9330 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9331 (find_opt): Make lang_mask argument unsigned.
9333 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9335 PR rtl-optimization/48331
9336 PR rtl-optimization/48334
9337 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9338 for any used algorithm.
9340 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9342 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9345 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9347 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9348 (alpha_option_override): Don't set alpha_sr_alias_set.
9349 (emit_frame_store_1): Use gen_frame_mem rather than calling
9351 (alpha_expand_epilogue): Ditto.
9353 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9355 PR tree-optimization/48290
9356 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9357 vectorization, check that relevant phis in the basic block after
9358 the inner loop are really inner loop's exit phis.
9360 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9363 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9364 (cached_dw_loc_list_def): New structure.
9365 (cached_dw_loc_list): New typedef.
9366 (cached_dw_loc_list_table): New variable.
9367 (cached_dw_loc_list_table_hash): New function.
9368 (cached_dw_loc_list_table_eq): Likewise.
9369 (add_location_or_const_value_attribute): Take a bool cache_p.
9370 Cache the list when the parameter is true.
9371 (gen_formal_parameter_die): Update caller.
9372 (gen_variable_die): Likewise.
9373 (dwarf2out_finish): Likewise.
9374 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9375 while generating debug info for the decl.
9376 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9377 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9378 (resolve_addr): Cache the result of resolving a chain of
9381 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9383 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9384 conflict object hard regset nodes have intersecting hard reg sets.
9386 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9387 after regstat_init_n_sets_and_refs.
9389 * ira.c: Add more comments at the top.
9390 (setup_stack_reg_pressure_class, setup_pressure_classes):
9391 Add comments how we compute the register pressure classes.
9392 (setup_allocno_and_important_classes): Add more comments.
9393 (setup_class_translate_array, reorder_important_classes)
9394 (setup_reg_class_relations): Add comments.
9396 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9399 * ira-color.c: Add 2011 to the Copyright line.
9400 (assign_hard_reg): Add more comments.
9401 (improve_allocation): Ditto.
9403 * ira-costs.c: Add 2011 to the Copyright line.
9404 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9406 (setup_regno_cost_classes_by_mode): Ditto.
9408 Initial patches from ira-improv branch:
9410 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9412 * ira-build.c (ira_create_object): Remove initialization of
9413 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9414 (ira_create_allocno): Remove initialization of
9415 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9416 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9417 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9418 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9419 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9420 Initialize ALLOCNO_ADD_DATA.
9421 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9422 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9424 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9425 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9427 * ira.c (ira_reallocate): Remove.
9428 (setup_pressure_classes): Call
9429 ira_init_register_move_cost_if_necessary. Use
9430 ira_register_move_cost instead of ira_get_register_move_cost.
9431 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9432 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9434 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9435 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9436 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9437 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9438 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9439 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9441 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9442 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9443 (struct allocno_color_data): New.
9444 (allocno_color_data_t): New typedef.
9445 (allocno_color_data): New definition.
9446 (ALLOCNO_COLOR_DATA): New macro.
9447 (struct object_color_data): New.
9448 (object_color_data_t): New typedef.
9449 (object_color_data): New definition.
9450 (OBJECT_COLOR_DATA): New macro.
9451 (update_copy_costs, calculate_allocno_spill_cost): Call
9452 ira_init_register_move_cost_if_necessary. Use
9453 ira_register_move_cost instead of ira_get_register_move_cost.
9454 (move_spill_restore, update_curr_costs): Ditto.
9455 (allocno_spill_priority): Make it inline.
9456 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9457 (struct coalesce_data, coalesce_data_t): New.
9458 (allocno_coalesce_data): New definition.
9459 (ALLOCNO_COALESCE_DATA): New macro.
9460 (merge_allocnos, coalesced_allocno_conflict_p): Use
9461 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9462 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9463 (coalesce_allocnos): Ditto.
9464 (setup_coalesced_allocno_costs_and_nums): Ditto.
9465 (collect_spilled_coalesced_allocnos): Ditto.
9466 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9467 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9468 (coalesce_spill_slots): Ditto.
9469 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9470 free allocno_coalesce_data.
9472 * ira-conflicts.c: Fix formatting.
9473 (process_regs_for_copy): Call
9474 ira_init_register_move_cost_if_necessary. Use
9475 ira_register_move_cost instead of ira_get_register_move_cost.
9476 (build_object_conflicts): Optimize.
9478 * ira-costs.c (record_reg_classes): Optimize. Call
9479 ira_init_register_move_cost_if_necessary. Use
9480 ira_register_move_cost, ira_may_move_in_cost, and
9481 ira_may_move_out_cost instead of ira_get_register_move_cost and
9482 ira_get_may_move_cost.
9483 (record_address_regs): Ditto.
9484 (scan_one_insn): Optimize.
9485 (find_costs_and_classes): Optimize.
9486 (process_bb_node_for_hard_reg_moves): Call
9487 ira_init_register_move_cost_if_necessary. Use
9488 ira_register_move_cost instead of ira_get_register_move_cost.
9490 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9491 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9492 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9493 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9495 (ira_initiate_emit_data, ira_finish_emit_data)
9496 (create_new_allocno): New functions.
9497 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9498 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9499 Use ira_register_move_cost instead of ira_get_register_move_cost.
9501 * ira-int.h: Fix some comments.
9502 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9503 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9504 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9505 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9507 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9508 bitfield after mode. Make hard_regno a short int. Make
9509 hard_regno short. Remove first_coalesced_allocno and
9510 next_coalesced_allocno. Move mem_optimized_dest_p,
9511 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9512 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9513 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9514 temp, colorable_p. Add new member add_data.
9515 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9516 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9517 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9518 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9519 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9520 (ALLOCNO_ADD_DATA): New macro.
9521 (ira_emit_data_t): New typedef.
9522 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9523 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9524 from struct ira_allocno.
9525 (ALLOCNO_EMIT_DATA): New macro.
9526 (ira_allocno_emit_data, allocno_emit_reg): New.
9527 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9528 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9529 (OBJECT_ADD_DATA): New macro.
9530 (ira_reallocate): Remove.
9531 (ira_initiate_emit_data, ira_finish_emit_data): New.
9532 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9533 (ira_init_register_move_cost_if_necessary): New.
9534 (ira_object_conflict_iter_next): Merge into
9535 ira_object_conflict_iter_cond.
9536 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9538 * ira-live.c (process_single_reg_class_operands): Call
9539 ira_init_register_move_cost_if_necessary. Use
9540 ira_register_move_cost instead of ira_get_register_move_cost.
9542 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9544 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9546 * ira-costs.c: Fix formatting.
9547 (cost_classes, cost_classes_num): Remove.
9548 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9549 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9550 (cost_classes_del, cost_classes_htab): New.
9551 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9552 (initiate_regno_cost_classes, setup_cost_classes): New.
9553 (setup_regno_cost_classes_by_aclass): New.
9554 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9555 (record_reg_classes): Use regno_cost_classes instead of
9556 cost_classes. Move checking opposite operand up.
9557 (record_address_regs): Use regno_cost_classes
9558 instead of cost_classes.
9559 (scan_one_insn): Ditto. Use always general register.
9560 (print_allocno_costs): Use regno_cost_classes instead of
9562 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9563 (find_costs_and_classes): Set up cost classes for each registers.
9564 Use also their mode for this. Use regno_cost_classes instead of
9566 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9568 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9569 (ira_costs, ira_set_pseudo_classes): Call
9570 initiate_regno_cost_classes and finish_regno_cost_classes.
9572 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9574 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9576 * target.def (ira_cover_classes): Remove.
9578 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9580 * doc/tm.texi.in: Ditto.
9582 * ira-conflicts.c: Remove mentioning cover classes from the file.
9583 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9584 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9586 * targhooks.c (default_ira_cover_classes): Remove.
9588 * targhooks.h (default_ira_cover_classes): Ditto.
9590 * haifa-sched.c: Remove mentioning cover classes from the file.
9591 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9592 ira_pressure_classes and ira_pressure_classes_num instead of
9593 ira_reg_class_cover_size and ira_reg_class_cover. Use
9594 sched_regno_pressure_class instead of sched_regno_cover_class.
9595 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9596 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9598 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9599 classes from the file.
9600 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9601 (struct object_hard_regs, struct object_hard_regs_node): New.
9602 (struct ira_object): New members profitable_hard_regs,
9603 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9604 (struct ira_allocno): Rename cover_class to aclass. Rename
9605 cover_class_cost and updated_cover_class_cost to class_cost and
9606 updated_class_cost. Remove splay_removed_p and
9607 left_conflict_size. Add new members colorable_p.
9608 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9609 (ALLOCNO_COLORABLE_P): New macro.
9610 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9611 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9612 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9613 (OBJECT_...): Rename parameter C to O.
9614 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9615 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9616 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9617 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9618 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9619 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9620 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9621 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9622 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9623 x_ira_reg_class_subunion.
9624 (ira_max_memory_move_cost, ira_max_register_move_cost)
9625 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9626 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9627 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9628 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9629 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9630 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9631 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9632 (ira_tune_allocno_costs_and_cover_classes): Rename to
9633 ira_tune_allocno_costs.
9634 (ira_debug_hard_regs_forest): New.
9635 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9636 (ira_object_conflict_iter_next): Fix comments.
9637 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9638 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9639 cover_class to aclass.
9640 (ira_allocate_and_accumulate_costs): Ditto.
9641 (ira_allocate_and_set_or_copy_costs): Ditto.
9643 * opts.c (decode_options): Remove ira_cover_class check.
9645 * ira-color.c: Remove mentioning cover classes from the file. Use
9646 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9647 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9648 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9649 (splay-tree.h): Remove include.
9650 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9651 before copy_freq_compare_func.
9652 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9653 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9655 (hard_regs_roots, hard_regs_node_vec): Ditto.
9656 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9657 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9658 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9659 (create_new_object_hard_regs_node): Ditto.
9660 (add_new_object_hard_regs_node_to_forest): Ditto.
9661 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9662 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9664 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9665 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9666 (remove_unused_object_hard_regs_nodes): Ditto.
9667 (enumerate_object_hard_regs_nodes): Ditto.
9668 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9669 (object_hard_regs_subnode_t): Ditto.
9670 (struct object_hard_regs_subnode): Ditto.
9671 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9672 (setup_object_hard_regs_subnode_index): Ditto.
9673 (get_object_hard_regs_subnodes_num): Ditto.
9674 (form_object_hard_regs_nodes_forest): Ditto.
9675 (finish_object_hard_regs_nodes_tree): Ditto.
9676 (finish_object_hard_regs_nodes_forest): Ditto.
9677 (allocnos_have_intersected_live_ranges_p): Rename to
9678 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9679 (pseudos_have_intersected_live_ranges_p): Rename to
9680 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9681 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9682 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9683 (update_copy_costs): Remove assert. Skip cost update if the hard
9684 reg does not belong the class.
9685 (assign_hard_reg): Process only profitable hard regs.
9686 (uncolorable_allocnos_num): Make it scalar.
9687 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9688 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9689 and ira_reg_class_max_nregs.
9690 (bucket_allocno_compare_func): Check frequency first.
9691 (sort_bucket): Add compare function as a parameter.
9692 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9693 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9694 (push_allocno_to_stack): Rewrite for checking new allocno
9696 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9697 (push_only_colorable): Pass new parameter to sort_bucket.
9698 (push_allocno_to_spill): Remove.
9699 (allocno_spill_priority_compare): Make it inline and rewrite.
9700 (splay_tree_allocate, splay_tree_free): Remove.
9701 (allocno_spill_sort_compare): New function.
9702 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9703 build and use splay tree. Choose first allocno in uncolorable
9704 allocno bucket to spill. Remove setting spill cost.
9705 (all_conflicting_hard_regs): Remove.
9706 (setup_allocno_available_regs_num): Check only profitable hard
9707 regs. Print info about hard regs nodes.
9708 (setup_allocno_left_conflicts_size): Remove.
9709 (put_allocno_into_bucket): Don't call
9710 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9711 (improve_allocation): New.
9712 (color_allocnos): Call setup_profitable_hard_regs,
9713 form_object_hard_regs_nodes_forest, improve_allocation,
9714 finish_object_hard_regs_nodes_forest. Setup spill cost.
9715 (print_loop_title): Use pressure classes.
9716 (color_allocnso): Ditto.
9717 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9718 and allocnos_for_spilling.
9719 (ira_sort_regnos_for_alter_reg): Don't setup members
9720 {first,next}_coalesced_allocno.
9721 (color): Remove allocating and freeing removed_splay_allocno_vec.
9722 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9723 prohibited_class_mode_regs.
9725 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9727 (update_allocno_pressure_excess_length): Use pressure classes.
9728 (inc_register_pressure, dec_register_pressure): Check for pressure
9730 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9731 pressure class. Use ira_reg_class_nregs instead of
9732 ira_reg_class_max_nregs.
9733 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9734 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9735 (single_reg_class): Use ira_reg_class_nregs instead of
9736 ira_reg_class_max_nregs.
9737 (process_bb_node_lives): Use pressure classes.
9739 * ira-emit.c: Remove mentioning cover classes from the file. Use
9740 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9741 (change_loop): Use pressure classes.
9742 (modify_move_list): Call ira_set_allocno_class instead of
9743 ira_set_allocno_cover_class.
9745 * ira-build.c: Remove mentioning cover classes from the file. Use
9746 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9747 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9748 ALLOCNO_UPDATED_CLASS_COST instead of
9749 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9750 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9751 (ira_create_allocno): Remove initialization of
9752 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9753 ALLOCNO_COLORABLE_P.
9754 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9755 Update conflict regs for the objects.
9756 (create_cap_allocno): Remove assert. Don't propagate
9757 ALLOCNO_AVAILABLE_REGS_NUM.
9758 (ira_free_allocno_costs): New function.
9759 (finish_allocno): Change a part of code into call of
9760 ira_free_allocno_costs.
9761 (low_pressure_loop_node_p): Use pressure classes.
9762 (object_range_compare_func): Don't compare classes.
9763 (setup_min_max_conflict_allocno_ids): Ditto.
9765 * loop-invariant.c: Remove mentioning cover classes from the file.
9766 Use ira_pressure_classes and ira_pressure_classes_num instead of
9767 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9768 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9769 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9770 Use reg_allocno_class instead of reg_cover_class.
9771 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9772 STACK_REG_COVER_CLASS.
9773 (get_regno_cover_class): Rename to get_regno_pressure_class.
9774 (move_loop_invariants): Initialize and finalize regstat.
9776 * ira.c: Remove mentioning cover classes from the file. Add
9777 comments about coloring without cover classes. Use ALLOCNO_CLASS
9778 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9779 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9780 setup_class_subset_and_memory_move_costs.
9781 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9782 (setup_cover_and_important_classes): Rename to
9783 setup_allocno_and_important_classes.
9784 (setup_class_translate_array): New.
9785 (setup_class_translate): Call it for allocno and pressure classes.
9786 (cover_class_order): Rename to allocno_class_order.
9787 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9788 of ira_class_translate.
9789 (reorder_important_classes): Set up ira_important_class_nums.
9790 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9791 (print_class_cover): Rename to print_classes. Add parameter.
9792 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9793 Print pressure classes too.
9794 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9795 setup_reg_subclasses.
9796 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9797 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9798 (setup_prohibited_class_mode_regs): Use
9799 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9800 (clarify_prohibited_class_mode_regs): New function.
9801 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9802 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9803 (ira_init_once): Initialize them.
9804 (free_register_move_costs): Process them.
9805 (ira_init): Move calls of find_reg_classes and
9806 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9807 Call clarify_prohibited_class_mode_regs.
9808 (ira_no_alloc_reg): Remove.
9809 (too_high_register_pressure_p): Use pressure classes.
9811 * sched-deps.c: Remove mentioning cover classes from the file.
9812 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9813 ira_pressure_classes and ira_pressure_classes_num instead of
9814 ira_reg_class_cover_size and ira_reg_class_cover.
9815 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9816 sched_regno_pressure_class instead of sched_regno_cover_class.
9817 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9818 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9820 * ira.h: Add 2010 to Copyright.
9821 (ira_no_alloc_reg): Remove external.
9822 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9823 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9824 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9825 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9826 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9827 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9828 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9829 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9830 x_ira_no_alloc_regs.
9831 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9832 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9833 ira_allocno_classes_num and ira_allocno_classes.
9834 (ira_class_translate): Rename to ira_allocno_class_translate.
9835 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9836 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9837 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9838 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9839 (ira_no_alloc_regs): New.
9841 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9842 classes from the file. Use ALLOCNO_CLASS instead of
9843 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9844 ALLOCNO_COVER_CLASS_COST.
9845 (regno_cover_class): Rename to regno_aclass.
9846 (record_reg_classes): Use ira_reg_class_subunion instead of
9847 ira_reg_class_union.
9848 (record_address_regs): Check overflow.
9849 (scan_one_insn): Ditto.
9850 (print_allocno_costs): Print total mem cost fore regional allocation.
9851 (print_pseudo_costs): Use REG_N_REFS.
9852 (find_costs_and_classes): Use classes intersected with them on the
9853 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9854 ira_reg_class_union. Use ira_allocno_class_translate and
9855 regno_aclass instead of ira_class_translate and regno_cover_class.
9856 Modify code for finding regno_aclass. Setup preferred classes for
9858 (setup_allocno_cover_class_and_costs): Rename to
9859 setup_allocno_class_and_costs. Use regno_aclass instead of
9860 regno_cover_class. Use ira_set_allocno_class instead of
9861 ira_set_allocno_cover_class.
9862 (init_costs, finish_costs): Use regno_aclass instead of
9864 (ira_costs): Use setup_allocno_class_and_costs instead of
9865 setup_allocno_cover_class_and_costs.
9866 (ira_tune_allocno_costs_and_cover_classes): Rename to
9867 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9868 by processing objects. Use ira_reg_class_max_nregs instead of
9869 ira_reg_class_nregs.
9871 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9873 * sched-int.h: Remove mentioning cover classes from the file.
9874 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9876 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9877 classes from the file.
9878 (struct reg_pref): Rename coverclass into allocnoclass.
9879 (reg_cover_class): Rename to reg_allocno_class.
9881 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9883 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9885 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9887 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9889 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9891 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9893 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9895 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9897 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9899 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9901 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9902 (i386_ira_cover_classes): Ditto.
9904 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9906 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9908 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9910 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9912 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9914 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9916 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9917 (mips_ira_cover_classes): Ditto.
9919 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9921 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9923 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9925 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9927 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9929 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9930 (IRA_COVER_CLASSES_VSX): Ditto.
9932 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9933 (rs6000_ira_cover_classes): Ditto.
9935 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9937 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9939 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9941 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9943 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9945 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9947 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9949 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9951 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9953 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9955 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9958 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9959 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9960 dw_fde_unlikely_section_end_label, cold_in_std_section,
9961 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9962 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9964 (output_fde): Use dw_fde_second_{begin,end} if second is
9965 true, otherwise dw_fde_{begin,end}.
9966 (output_call_frame_info): Test dw_fde_second_begin != NULL
9967 instead of dw_fde_switched_sections.
9968 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9969 fields, initialize new fields. Initialize in_std_section
9970 unconditionally from the first partition.
9971 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9972 dw_fde_second_begin is non-NULL.
9973 (dwarf2out_switch_text_section): Stop initializing removed
9974 dw_fde_struct fields, initialize new fields, initialize
9975 also dw_fde_end here. Set dw_fde_switch_cfi even when
9976 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9977 (struct var_loc_list_def): Add last_before_switch field.
9978 (arange_table, arange_table_allocated, arange_table_in_use,
9979 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9980 (size_of_aranges): Count !in_std_section and !second_in_std_section
9981 hunks in fdes, instead of looking at arange_table_in_use.
9982 (output_aranges): Add aranges_length argument, don't call
9983 size_of_aranges here. Instead of using aranges_table*
9984 emit ranges for fdes when !in_std_section resp.
9985 !second_in_std_section.
9986 (dw_loc_list): Break ranges crossing section switch.
9987 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9988 use dw_fde_second_end instead of dw_fde_end as end of last range.
9989 (gen_subprogram_die): Don't call add_arange. Use
9990 dw_fde_{begin,end} for first partition and if switched
9991 section dw_fde_second_{begin,end} for the second.
9992 (var_location_switch_text_section_1,
9993 var_location_switch_text_section): New functions.
9994 (dwarf2out_begin_function): Initialize cold_text_section even
9995 when function_section () isn't text_section.
9996 (prune_unused_types): Don't walk arange_table.
9997 (dwarf2out_finish): Don't needlessly test
9998 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9999 If info_section_emitted, call size_of_aranges and if it indicates
10000 non-empty .debug_aranges, call output_aranges with the computed
10001 size. Stop using removed dw_fde_struct fields, use
10002 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10006 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10007 create ENTRY_VALUE if incoming or address of incoming's MEM
10009 * dwarf2out.c (mem_loc_descriptor): Don't emit
10010 DW_OP_GNU_entry_value of DW_OP_fbreg.
10011 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10012 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10013 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10014 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10016 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10017 is a REG_P or MEM_P with REG_P address, compute hash directly
10018 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10019 (preserve_only_constants): Don't clear VALUES forwaring
10020 ENTRY_VALUE to some other VALUE.
10022 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10024 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10025 instead of GEN_INT.
10027 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10029 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10030 block before expanding the statement.
10031 (expand_gimple_stmt_1): Likewise. Set them here...
10032 (expand_gimple_stmt): ...and not here. Tidy.
10033 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10036 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10038 * Makefile.in: New rule for cprop.o.
10039 * gcse.c: Move constant/copy propagation to cprop.c.
10040 (compute_local_properties): Only handle expression tables.
10041 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10042 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10043 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10044 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10045 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10046 compute_cprop_data, find_used_regs, try_replace_reg,
10047 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10048 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10049 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10050 find_bypass_set, reg_killed_on_edge, bypass_block,
10051 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10052 execute_rtl_cprop, pass_rtl_cprop): Move to...
10053 * cprop.c: ...here. New file, constant/copy propagation for RTL
10054 moved from gcse.c to here with minor cleanups in duplicated code.
10056 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10058 * config/i386/i386.c (flag_opts): Fix a typo in
10059 -mavx256-split-unaligned-store.
10061 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10063 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10064 LIBCALL_VALUE): Remove macros.
10065 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10066 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10067 (h8300_function_value, h8300_libcall_value,
10068 h8300_function_value_regno_p): New functions.
10070 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10072 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10074 2011-03-28 Jeff Law <law@redhat.com>
10076 * tree-ssa-threadupdate.c (redirect_edges): Call
10077 create_edge_and_update_destination_phis as needed.
10078 (create_edge_and_update_destination_phis): Accept new BB argument.
10079 All callers updated.
10080 (thread_block): Do not update the profile when threading around
10081 intermediate blocks.
10082 (thread_single_edge): Likewise.
10083 (determine_bb_domination_status): If BB is not a successor of the
10084 loop header, return NONDOMINATING.
10085 (register_jump_thread): Note when we register a jump thread around
10086 an intermediate block.
10087 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10088 (thread_across_edge): Use it.
10090 2011-03-28 Tristan Gingold <gingold@adacore.com>
10092 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10093 when for_return is 2.
10095 2011-03-28 Jeff Law <law@redhat.com>
10097 * var-tracking.c (canonicalize_values_mark): Delete unused
10099 (canonicalize_values_star, set_variable_part): Likewise.
10100 (clobber_variable_part, delete_variable_part): Likewise.
10102 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10104 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10106 2011-03-28 Martin Jambor <mjambor@suse.cz>
10108 * tree-inline.c (expand_call_inline): Do not check that destination
10110 (optimize_inline_calls): Assert that destination node is analyzed.
10111 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10112 not call tree_lowering_passes.
10113 * cgraph.h (cgraph_analyze_function): Declare.
10114 * cgraphunit.c (cgraph_analyze_function): Make public.
10116 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10118 * config/sparc/sparc-opts.h: New.
10119 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10120 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10121 (sparc_option_override): Store processor_type enumeration rather
10122 than string in cpu_default. Remove name and enumeration from
10123 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10124 without using sparc_select. Use target_flags_explicit instead of
10126 * config/sparc/sparc.h (enum processor_type): Move to
10128 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10129 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10130 HeaderInclude entry.
10131 (mcpu=, mtune=): Use Var and Enum.
10132 (sparc_processor_type): New Enum and EnumValue entries.
10134 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10135 Iain Sandoe <iains@gcc.gnu.org>
10138 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10140 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10142 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10143 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10144 Insert new statements at it in lieu of STMT.
10145 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10146 * tree-vect-stmts.c (vectorizable_store): Likewise.
10147 (vectorizable_load): Likewise.
10149 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10151 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10156 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10158 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10159 unaligned 256bit load/store.
10160 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10161 (*avx_movdqu<avxmodesuffix>): Likewise.
10163 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10166 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10167 * config/pa/pa.md (iordi3): Use new predicate in expander.
10168 (iorsi3): Likewise.
10170 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10172 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10173 FUNCTION_VALUE_REGNO_P): Remove macros.
10174 * config/mips/mips-protos.h (mips_function_value): Remove.
10175 * config/mips/mips.c (mips_function_value): Rename to...
10176 (mips_function_value_1): ... this. Make static. Handle receiving
10177 the function type in 'fn_decl_or_type' argument.
10178 (mips_function_value, mips_libcall_value,
10179 mips_function_value_regno_p): New function.
10180 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10181 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10183 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10185 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10186 and -mavx256-split-unaligned-store.
10187 (ix86_option_override_internal): Split 32-byte AVX unaligned
10188 load/store by default.
10189 (ix86_avx256_split_vector_move_misalign): New.
10190 (ix86_expand_vector_move_misalign): Use it.
10192 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10193 -mavx256-split-unaligned-store.
10195 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10196 256bit load/store. Generate unaligned store on misaligned memory
10198 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10200 (*avx_movdqu<avxmodesuffix>): Likewise.
10202 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10203 -mavx256-split-unaligned-store.
10205 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10208 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10211 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10213 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10214 opno arguments with an expand_operand. Use create_input_operand.
10215 (mips_prepare_builtin_target): Delete.
10216 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10218 (mips_expand_builtin_direct): Use create_output_operand and
10219 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10220 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10221 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10223 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10225 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10227 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10229 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10231 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10232 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10233 basic blocks and call commit_edge_insertions directly.
10234 (fixup_abnormal_edges): Move from here to...
10235 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10236 on the edges and return whether some have actually been inserted.
10237 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10240 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10242 PR rtl-optimization/48144
10243 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10244 (merge_expr_data): ... here.
10245 (av_set_intersect): Rename to av_set_code_motion_filter.
10246 Update all callers. Call merge_history_vect when an expression
10247 is found in both sets.
10248 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10250 2011-03-26 Alan Modra <amodra@gmail.com>
10252 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10253 cmodel medium addresses.
10254 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10255 64-bit gpr loads and stores.
10256 (rs6000_secondary_reload_ppc64): New function.
10257 * config/rs6000/rs6000-protos.h: Declare it.
10258 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10260 2011-03-26 Alan Modra <amodra@gmail.com>
10263 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10264 GNU Go in traceback table.
10266 2011-03-25 Richard Henderson <rth@redhat.com>
10268 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10269 if there are exactly 6 operands.
10270 (set_storage_via_setmem): Similarly.
10272 2011-03-25 Kai Tietz <ktietz@redhat.com>
10274 * collect2.c (write_c_file_stat): Handle backslash
10275 as right-hand directory separator.
10276 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10277 checking just for slash.
10278 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10279 instead of checking for trailing slash.
10280 * gcc.c (record_temp_file): Use filename_cmp instead
10282 (do_spec_1): Likewise.
10283 (replace_outfile_spec_function): Likewise.
10284 (is_directory): Use filename_ncmp instead of strncmp.
10285 (print_multilib_info): Likewise.
10286 * gcov.c (find_source): Use filename_cmp instead
10288 (make_gcov_file_name): Fix order of slash/backslash
10290 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10291 (add_standard_paths): Likewise.
10292 * mips-tfile.c (saber_stop): Handle backslash.
10293 * prefix.c (update_path): Use filename_ncmp instead of
10295 * profile.c (output_location): Use filename_cmp instead
10297 * read-md.c (handle_toplevel_file): Handle backslash.
10298 * tlink.c (frob_extension): Likewise.
10299 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10301 * tree-dump.c (dequeue_and_dump): Handle backslash.
10302 * tree.c (get_file_function_name): Likewise.
10303 * gengtype.c (read_input_list): Likewise.
10304 (get_file_realbasename): Likewise.
10305 (get_output_file_with_visibility): Use filename_cmp
10308 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10310 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10313 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10315 * fold-const.c (expr_location_or): New function.
10316 (fold_truth_not_expr): Call it.
10318 2011-03-25 Jeff Law <law@redhat.com>
10320 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10322 * c-family/c-common.c (def_fn_type): Likewise.
10323 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10324 * emit-rtl.c (gen_rtvec): Likewise.
10325 * lto/lto-lang.c (def_fn_type): Likewise.
10327 2011-03-25 Richard Guenther <rguenther@suse.de>
10329 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10330 also generate copies.
10331 (fini_copy_prop): Handle constant values properly.
10333 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10335 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10336 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10337 (hash_loc_operands, compare_loc_operands): Handle
10338 DW_OP_GNU_entry_value.
10340 2011-03-25 Kai Tietz <ktietz@redhat.com>
10342 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10343 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10344 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10345 comment and use macro TARGET_64BIT_MS_ABI instead.
10346 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10347 and change default behavior for 32-bit MS_ABI.
10348 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10349 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10351 (ix86_cfun_abi): Likewise.
10352 (ix86_maybe_switch_abi): Adjust comment.
10353 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10354 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10355 instead of checking for SYSV_ABI.
10356 (ix86_nsaved_sseregs): Likewise.
10357 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10359 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10360 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10361 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10362 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10363 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10365 2011-03-25 Richard Guenther <rguenther@suse.de>
10367 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10368 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10369 (verify_gimple): Remove.
10370 * tree-cfg.c (verify_gimple_call): Merge verification
10372 (verify_gimple_phi): Merge verification from verify_stmts.
10373 (verify_gimple_label): New function.
10374 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10375 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10376 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10377 (verify_stmts): Rename to verify_gimple_in_cfg.
10378 (verify_gimple_in_cfg): New function.
10379 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10380 * tree-ssa.c (verify_ssa): Likewise.
10381 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10383 2011-03-25 Richard Guenther <rguenther@suse.de>
10385 * passes.c (init_optimization_passes): Add FRE pass after
10388 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10389 Andrew Stubbs <ams@codesourcery.com>
10391 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10393 (arm_movdi_vfp_cortexa8): New pattern.
10394 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10395 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10396 instructions when tuning for Cortex-A8. Set attribute "arch".
10397 * config/arm/arm.md: Move include arm-tune.md up a bit.
10398 (define_attr "arch"): Add "onlya8" and "nota8" values.
10399 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10401 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10405 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10407 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10408 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10409 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10410 * passes.c (init_optimization_passes): Move
10411 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10413 2011-03-25 Kai Tietz <ktietz@redhat.com>
10415 * c-typeck.c (comptypes_internal): Replace target
10416 hook call of comp_type_attributes by version in tree.c file.
10417 * gimple.c (gimple_types_compatible_p_1): Likewise.
10418 * tree-ssa.c (useless_type_conversion_p): Likewise.
10419 * tree.c (build_type_attribute_qual_variant): Likewise.
10420 (attribute_value_equal): New static helper function.
10421 (comp_type_attributes): New function.
10422 (merge_attributes): Use attribute_value_equal for comparison.
10423 (attribute_list_contained): Likewise.
10424 * tree.h (comp_type_attributes): New prototype.
10426 2011-03-25 Richard Guenther <rguenther@suse.de>
10428 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10429 of complex types at -O0.
10430 (verify_gimple_assign_binary): Likewise.
10431 (verify_gimple_assign_ternary): Likewise.
10433 2011-03-24 Mark Wielaard <mjw@redhat.com>
10435 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10436 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10438 2011-03-24 Mark Wielaard <mjw@redhat.com>
10441 * dwarf2out.c (output_abbrev_section): Only write table when
10442 abbrev_die_table_in_use > 1.
10444 2011-02-24 Richard Henderson <rth@redhat.com>
10446 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10447 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10448 (alpha_expand_unaligned_load_words): Use extql.
10449 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10450 (emit_insxl): Handle all modes for consistency.
10452 2011-02-24 Richard Henderson <rth@redhat.com>
10454 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10455 (alpha_expand_unaligned_load): Likewise.
10456 (alpha_expand_unaligned_store): Likewise.
10457 (alpha_expand_unaligned_load_words): Likewise.
10458 (alpha_expand_unaligned_store_words): Likewise.
10459 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10460 (alpha_split_lock_test_and_set_12): Likewise.
10461 (print_operand, alpha_fold_builtin_extxx): Likewise.
10462 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10463 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10464 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10465 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10466 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10467 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10468 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10469 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10470 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10471 (extwl, extll, extql): Similarly.
10472 (inswh, inslh, insqh): Similarly.
10473 (mskbl, mskwl, mskll, mskql): Similarly.
10474 (mskwh, msklh, mskqh): Similarly.
10476 2011-02-24 Richard Henderson <rth@redhat.com>
10478 * config/alpha/alpha.md (attribute isa): Add er, ner.
10479 (attribute enabled): Handle them.
10480 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10482 2011-02-24 Richard Henderson <rth@redhat.com>
10484 * config/alpha/alpha.md (attribute isa): Add vms.
10485 (attribute enabled): Handle it.
10486 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10487 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10488 (*movtf): Rename from *movtf_internal for consistency.
10489 (*movsi): Merge with *movsi_nt_vms.
10490 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10491 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10492 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10493 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10495 2011-02-24 Richard Henderson <rth@redhat.com>
10497 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10498 (extendqisi2, extendhisi2): Likewise.
10499 (extendqidi2): Simplify BWX/non-BWX expansions.
10500 (extendhidi2): Similarly.
10502 2011-02-24 Richard Henderson <rth@redhat.com>
10504 * config/alpha/alpha.md (attribute isa): New.
10505 (attribute enabled): New.
10506 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10507 (zero_extendqisi2, zero_extendqidi2): Similarly.
10508 (zero_extendhisi2, zero_extendhidi2): Similarly.
10509 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10511 2011-02-24 Richard Henderson <rth@redhat.com>
10513 * config/alpha/predicates.md (input_operand): Revert last change;
10514 update comment to mention 32-bit VMS rather than Windows.
10516 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10518 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10519 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10520 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10521 * passes.c (init_optimization_passes): Move
10522 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10524 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10526 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10528 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10530 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10533 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10536 * simplify-rtx.c (simplify_const_unary_operation): Call
10537 real_convert when changing mode class with FLOAT_EXTEND.
10539 2011-03-24 Nick Clifton <nickc@redhat.com>
10541 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10542 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10543 * config/rx/rx.c (rx_option_override): Set align_jumps,
10544 align_loops and align_labels if not set by the user.
10545 (rx_align_for_label): New function.
10546 (rx_max_skip_for_label): New function.
10547 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10548 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10549 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10550 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10551 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10553 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10555 PR rtl-optimization/48263
10556 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10557 and original commutative_p handling. Use maybe_gen_insn.
10559 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10561 * reload.c (find_reloads_subreg_address): Add address_reloaded
10562 parameter and return true there if the full address has been
10564 (find_reloads_toplev): Pass address_reloaded flag.
10565 (find_reloads_address_1): Don't use address_reloaded parameter.
10567 2011-03-24 Jeff Law <law@redhat.com>
10569 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10570 unused variable "ann".
10571 (remove_unused_locals): Likewise.
10573 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10576 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10579 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10581 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10582 for invalid symbolic addresses.
10583 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10586 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10588 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10589 the argument in calls to fold_truth_not_expr.
10591 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10593 * tree.c (record_node_allocation_statistics): New function.
10594 (make_node_stat, copy_node_stat, build_string): Call it.
10595 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10596 (build1_stat, build_omp_clause): Likewise.
10598 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10600 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10603 2011-03-24 Richard Guenther <rguenther@suse.de>
10605 PR tree-optimization/48271
10606 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10607 blocks that still exist.
10609 2011-03-24 Richard Guenther <rguenther@suse.de>
10611 PR tree-optimization/48270
10612 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10613 not free datarefs before ddrs.
10615 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10617 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10618 from the address built for a reference with variable offset.
10620 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10623 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10624 alternatives that can be handled with movq or movabsq insn.
10625 (*movdf_internal): Disable for !TARGET_64BIT.
10626 (*movdf_internal_nointeger): Ditto.
10627 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10629 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10631 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10632 (FUNCTION_ARG_ADVANCE): Likewise.
10633 * tm.texi.in: Change references to them to hook references.
10634 * tm.texi: Regenerate.
10635 * targhooks.c (default_function_arg): Eliminate check for target macro.
10636 (default_function_incoming_arg): Likewise.
10637 (default_function_arg_advance): Likewise.
10638 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10639 (function_arg_advance): Likewise.
10640 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10642 2011-03-24 Richard Guenther <rguenther@suse.de>
10644 PR middle-end/48269
10645 * tree-object-size.c (addr_object_size): Do not double-account
10646 for MEM_REF offsets.
10648 2011-03-24 Diego Novillo <dnovillo@google.com>
10650 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10651 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10652 (lto_input_data_block): Move from lto-opts.c. Make extern.
10654 (lto_input_string): Rename from input_string. Make extern.
10656 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10657 output_string_with_length.
10658 Output 0 to indicate a non-NULL string. Update all callers to
10660 (lto_output_string): Rename from output_string. Make extern.
10662 (lto_output_decl_state_streams): Make extern.
10663 (lto_output_decl_state_refs): Make extern.
10664 * lto-streamer.h (lto_input_string): Declare.
10665 (lto_input_data_block): Declare.
10666 (lto_output_string): Declare.
10667 (lto_output_string_with_length): Declare.
10668 (lto_output_decl_state_streams): Declare.
10669 (lto_output_decl_state_refs): Declare.
10671 2011-03-24 Richard Guenther <rguenther@suse.de>
10673 PR tree-optimization/46562
10674 * tree.c (build_invariant_address): New function.
10675 * tree.h (build_invariant_address): Declare.
10676 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10677 a renamed function moved ...
10678 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10679 Take valueization callback parameter.
10680 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10681 * gimple-fold.h: New file.
10682 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10683 (ccp_fold, fold_const_aggregate_ref,
10684 fold_ctor_reference, fold_nonarray_ctor_reference,
10685 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10686 get_base_constructor): Move ...
10687 * gimple-fold.c: ... here.
10688 (gimple_fold_stmt_to_constant_1): New function
10689 split out from ccp_fold. Take a valueization callback parameter.
10690 Valueize all operands.
10691 (gimple_fold_stmt_to_constant): New wrapper function.
10692 (fold_const_aggregate_ref_1): New function split out from
10693 fold_const_aggregate_ref. Take a valueization callback parameter.
10694 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10695 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10696 invariant POINTER_PLUS_EXPRs to invariant form.
10697 (vn_valueize): New function.
10698 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10699 * tree-vrp.c (vrp_valueize): New function.
10700 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10701 to fold statements to constants.
10702 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10703 function declarations.
10704 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10705 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10707 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10709 * config/h8300/predicates.md (jump_address_operand): Fix register
10712 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10714 * doc/invoke.texi (max-stores-to-sink): Document.
10715 * params.h (MAX_STORES_TO_SINK): Define.
10716 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10717 if either vectorization or if-conversion is disabled.
10718 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10719 tree-vect-data-refs.c vect_equal_offsets.
10720 (dr_equal_offsets_p): New function.
10721 (find_data_references_in_bb): Remove static.
10722 * tree-data-ref.h (find_data_references_in_bb): Declare.
10723 (dr_equal_offsets_p): Likewise.
10724 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10725 (vect_drs_dependent_in_basic_block): Update calls to
10726 vect_equal_offsets.
10727 (vect_check_interleaving): Likewise.
10728 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10729 (cond_if_else_store_replacement): Rename to...
10730 (cond_if_else_store_replacement_1): ... this. Change arguments and
10732 (cond_if_else_store_replacement): New function.
10733 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10734 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10736 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10739 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10740 to subtract lower bound instead of GEN_INT().
10742 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10747 * doc/extend.texi (Alignment): Move section to match order in TOC.
10748 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10749 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10751 2011-03-23 Jeff Law <law@redhat.com>
10753 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10754 before removing the edge.
10756 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10757 it may have been freed by redirect_branch_edge or
10758 redirect_edge_succ_nodup.
10760 2011-03-23 Richard Guenther <rguenther@suse.de>
10762 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10763 (check_va_list_escapes): Likewise.
10764 (check_all_va_list_escapes): Likewise.
10766 2011-03-23 Richard Guenther <rguenther@suse.de>
10768 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10769 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10770 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10771 (alias.o): Likewise.
10772 (ipa-type-escape.o): Remove.
10773 (ipa-struct-reorg.o): Likewise.
10774 (GTFILES): Remove ipa-struct-reorg.c.
10775 * alias.c: Do not include ipa-type-escape.h.
10776 * tree-ssa-alias.c: Likewise.
10777 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10778 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10779 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10780 and ipa-type-escape passes.
10781 * tree-pass.h (pass_ipa_type_escape): Remove.
10782 (pass_ipa_struct_reorg): Likewise.
10783 * ipa-struct-reorg.h: Remove.
10784 * ipa-struct-reorg.c: Likewise.
10785 * ipa-type-escape.h: Likewise.
10786 * ipa-type-escape.c: Likewise.
10787 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10788 (--param struct-reorg-cold-struct-ratio): Likewise.
10789 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10790 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10791 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10793 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10795 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10796 cpu attribute value.
10797 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10798 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10799 * config/s390/s390.c (processor_flags_table): New constant array.
10800 (s390_handle_arch_option): Remove.
10801 (s390_handle_option): Remove s390_handle_arch_option invocations
10802 and OPT_mwarn_framesize_ handling.
10803 (s390_option_override): Remove s390_handle_arch_option invocation.
10804 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10806 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10807 * config/s390/s390.opt (s390_tune, s390_arch)
10808 (march=): Replace s390_arch_option enum and values with
10809 processor_type. Set variable name to s390_arch. Set
10810 initialization value.
10811 (mtune=): Replace s390_arch_option with processor_type. Set
10812 variable name to s390_tune. Set initialization value.
10814 2011-03-23 Julian Brown <julian@codesourcery.com>
10816 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10817 accesses which are not naturally aligned.
10819 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10822 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10824 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10826 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10827 parameter from "int" to "enum insn_code".
10828 (expand_operand_type): New enum.
10829 (expand_operand): New structure.
10830 (create_expand_operand): New function.
10831 (create_fixed_operand, create_output_operand): Likewise
10832 (create_input_operand, create_convert_operand_to): Likewise.
10833 (create_convert_operand_from, create_address_operand): Likewise.
10834 (create_integer_operand): Likewise.
10835 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10836 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10837 (expand_insn, expand_jump_insn): Likewise.
10838 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10839 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10840 (expand_movstr, expand_builtin___clear_cache): Likewise.
10841 (expand_builtin_lock_release): Likewise.
10842 * explow.c (allocate_dynamic_stack_space): Likewise.
10843 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10844 and use the default handling in that case.
10845 * expmed.c (check_predicate_volatile_ok): Delete.
10846 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10847 (emit_cstore): Likewise.
10848 * expr.c (emit_block_move_via_movmem): Likewise.
10849 (set_storage_via_setmem, expand_assignment): Likewise.
10850 (emit_storent_insn, try_casesi): Likewise.
10851 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10852 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10853 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10854 (expand_twoval_unop, expand_twoval_binop): Likewise.
10855 (expand_unop_direct, emit_indirect_jump): Likewise.
10856 (emit_conditional_move, vector_compare_rtx): Likewise.
10857 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10858 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10859 (expand_sync_lock_test_and_set): Likewise.
10860 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10861 (emit_unop_insn): Likewise.
10862 (expand_copysign_absneg): Change icode to an insn_code.
10863 (create_convert_operand_from_type): New function.
10864 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10865 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10866 (expand_insn, expand_jump_insn): Likewise.
10867 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10868 than const_int_operand for operand 2.
10870 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10872 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10875 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10877 * emit-rtl.c (emit_pattern_before_noloc): New function.
10878 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10879 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10880 (emit_pattern_after_noloc): New function.
10881 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10882 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10884 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10886 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10887 (__ffsDI2): Likewise.
10889 2011-03-22 Richard Henderson <rth@redhat.com>
10891 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10892 of !TARGET_ABI_OPEN_VMS.
10893 (alpha_trampoline_init, alpha_start_function): Likewise.
10894 (alpha_expand_epilogue, alpha_file_start): Likewise.
10895 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10896 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10897 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10898 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10899 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10901 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10903 * config/s390/s390-opts.h: New.
10904 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10905 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10906 s390_stack_guard): Remove.
10907 (s390_handle_arch_option): Return void. Take enum
10908 s390_arch_option value instead of string and searching array.
10909 (s390_handle_option): Don't assert that global structures are in
10910 use. Access variables via opts pointer. Use error_at. Don't use
10911 sscanf for -mstack-guard= or -mstack-size=. Update call to
10912 s390_handle_arch_option.
10913 (s390_option_override): Update call to s390_handle_arch_option.
10914 (s390_emit_prologue): Use %d format for s390_stack_size in
10915 diagnostic. Use %wd for HOST_WIDE_INT.
10916 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10917 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10918 * config/s390/s390.opt (config/s390/s390-opts.h): New
10919 HeaderInclude entry.
10920 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10921 s390_arch_flags, s390_warn_framesize): New Variable entries.
10922 (s390_arch_option): New Enum and EnumValue entries.
10923 (march=): Use Enum instead of Var.
10924 (mstack-guard=, mstack-size=): Use UInteger and Var.
10925 (mtune=): Use Enum.
10927 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10929 * config/score/score.c (score_handle_option): Don't assert that
10930 global structures are in use. Access target_flags via opts
10931 pointer. Use value of -march= option to determine target_flags
10933 * config/score/score.opt (march=): Use Enum.
10934 (score_arch): New Enum and EnumValue entries.
10936 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10938 * config/mep/mep.c (option_mtiny_specified): Remove.
10939 (mep_option_override): Move register handling for -mivc2 from
10940 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10941 instead of option_mtiny_specified.
10942 (mep_handle_option): Access target_flags via opts pointer. Don't
10943 assert that global structures are in use. Defer part of -mivc2
10944 handling and move it to mep_option_override.
10945 * config/mep/mep.opt (IVC2): New Mask entry.
10946 (mivc2): Use Var and Defer instead of Mask.
10948 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10950 * config/v850/v850-opts.h: New.
10951 * config/v850/v850.c (small_memory): Replace with
10952 small_memory_physical_max array. Make that array static const.
10953 (v850_handle_memory_option): Take integer value of argument. Take
10954 gcc_options pointer, option text and location. Return void.
10955 Update for changes to small memory structures.
10956 (v850_handle_option): Access target_flags via opts pointer. Don't
10957 assert that global structures are in use. Update calls to
10958 v850_handle_memory_option.
10959 (v850_encode_data_area): Update references to small memory settings.
10960 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10961 (enum small_memory_type): Move to v850-opts.h.
10962 * config/v850/v850.opt (config/v850/v850-opts.h): New
10963 HeaderInclude entry.
10964 (small_memory_max): New Variable entry.
10965 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10966 (mtda, mzda): Likewise.
10968 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10970 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10971 pointer. Don't assert that global structures are in use.
10973 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10975 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10976 via opts pointer. Don't assert that global structures are in use.
10978 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10980 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10981 (munix=93): Use Var.
10982 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10983 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10984 * config/pa/pa-opts.h: New.
10985 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10986 (pa_handle_option): Don't assert that global structures are in
10987 use. Access target_flags via opts pointer. Don't handle
10988 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10990 (pa_option_override): Handle deferred OPT_mfixed_range_.
10992 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10994 * config/mn10300/mn10300-opts.h: New.
10995 * config/mn10300/mn10300.c (mn10300_processor,
10996 mn10300_tune_string): Remove.
10997 (mn10300_handle_option): Don't assert that global structures are
10998 in use. Access mn10300_processor via opts pointer. Don't handle
11000 * config/mn10300/mn10300.h (enum processor_type): Move to
11002 (mn10300_processor): Remove.
11003 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11004 HeaderInclude entry.
11005 (mn10300_processor): New Variable entry.
11008 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11010 * config/microblaze/microblaze.c: Don't include opts.h.
11011 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11012 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11013 (mno-clearbss): Use Var and Warn.
11015 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11017 * config/m32r/m32r-opts.h: New.
11018 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11019 (m32r_handle_option): Don't assert that global structures are in
11020 use. Access target_flags and m32r_cache_flush_func via opts
11021 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11022 OPT_mno_flush_trap here.
11023 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11024 include of m32r-opts.h.
11025 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11026 HeaderInclude entry.
11027 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11028 (mmodel=): Use Enum and Var.
11029 (m32r_model): New Enum and EnumValue entries.
11030 (mno-flush-trap): Use Var.
11031 (msdata=): Use Enum and Var.
11032 (m32r_sdata): New Enum and EnumValue entries.
11034 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11036 * config/m32c/m32c.c: Don't include opts.h.
11037 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11038 m32c_handle_option): Remove.
11039 (m32c_option_override): Check global_options_set.x_target_memregs
11040 instead of target_memregs_set.
11041 * config/m32c/m32c.h (target_memregs): Remove.
11042 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11045 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11047 * config/iq2000/iq2000-opts.h: New.
11048 * config/iq2000/iq2000.c: Don't include opts.h.
11049 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11050 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11051 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11052 HeaderInclude entry.
11053 (iq2000_tune): New Variable entry.
11054 (march=): Add comment. Use Enum.
11055 (iq2000_arch): New Enum and EnumValue entries.
11056 (mcpu=): Use Enum and Var.
11057 (iq2000_tune): New Enum and EnumValue entries.
11059 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11061 * config/ia64/ia64-opts.h: New.
11062 * config/ia64/ia64.c (ia64_tune): Remove.
11063 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11064 here. Use error_at.
11065 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11066 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11067 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11068 HeaderInclude entry.
11069 (ia64_tune): New Variable entry.
11070 (mfixed-range=): Use Defer and Var.
11071 (mtune=): Use Enum and Var.
11072 (ia64_tune): New Enum and EnumValue entries.
11074 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11076 * config/frv/frv-opts.h: New.
11077 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11079 (frv_cpu_type): Remove.
11080 * config/frv/frv.c: Don't include opts.h.
11081 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11082 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11083 (frv_cpu_type): New Variable entry.
11084 (frv_cpu): New Enum and EnumValue entries.
11086 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11088 * config/cris/cris.c (cris_handle_option): Access target_flags via
11089 opts pointer. Don't assert that global structures are in use.
11090 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11091 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11093 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11095 * config/bfin/bfin-opts.h: New.
11096 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11097 bfin_si_revision, bfin_workarounds): Remove.
11098 (bfin_cpus): Make static const.
11099 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11100 not bfin_lib_id_given.
11101 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11102 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11103 pointer. Use error_at. Don't assert that global structures are in use.
11104 * config/bfin/bfin.h: Include bfin-opts.h.
11105 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11106 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11107 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11108 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11111 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11113 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11114 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11115 or -msoft-float here.
11116 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11117 -msoft-float and -mhard-float.
11118 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11119 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11121 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11123 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11124 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11126 (LIBGCC_SPEC): Don't handle -msoft-float.
11127 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11129 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11131 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11132 -mfloat-abi=*, not -msoft-float and -mhard-float.
11133 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11135 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11136 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11137 mhard-float and msoft-float.
11138 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11139 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11140 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11141 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11143 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11144 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11146 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11148 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11151 2011-03-22 Richard Henderson <rth@redhat.com>
11153 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11154 TARGET_ABI_WINDOWS_NT.
11155 (alpha_output_function_end_prologue): Likewise.
11156 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11157 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11158 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11159 (trap, *movsi_nt_vms): Likewise.
11160 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11161 (*tablejump_osf_nt_internal): Remove.
11162 * config/alpha/predicates.md (input_operand): Only test Pmode.
11164 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11166 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11167 via opts pointer. Use error_at. Don't assert that global
11168 structures are in use.
11170 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11172 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11173 (ix86_handle_option): Access ix86_isa_flags and
11174 ix86_isa_flags_explicit via opts pointer. Don't assert that
11175 global structures are in use.
11176 (ix86_function_specific_save, ix86_function_specific_restore):
11177 Update ix86_isa_flags_explicit field name.
11178 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11179 (ix86_isa_flags_explicit): Rename TargetSave entry to
11180 x_ix86_isa_flags_explicit.
11182 2011-03-22 Richard Henderson <rth@redhat.com>
11184 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11185 (alpha_option_override, direct_return): Likewise.
11186 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11187 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11188 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11189 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11190 (alpha_expand_epilogue, alpha_end_function): Likewise.
11191 (alpha_init_libfuncs): Likewise.
11192 (struct machine_function): Remove unicosmk members.
11193 (print_operand) ['t']: Remove.
11194 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11195 unicosmk_output_module_name, unicosmk_output_common,
11196 current_section_align, unicosmk_output_text_section_asm_op,
11197 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11198 unicosmk_section_type_flags, unicosmk_unique_section,
11199 unicosmk_asm_named_section, unicosmk_insert_attributes,
11200 unicosmk_output_align, unicosmk_defer_case_vector,
11201 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11202 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11203 unicosmk_output_ssib, unicosmk_add_call_info_word,
11204 unicosmk_extern_head, unicosmk_output_default_externs,
11205 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11206 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11207 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11208 * config/alpha/alpha-protos.h: Update.
11209 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11210 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11211 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11212 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11213 (*mulsi_se, mulvsi3): Likewise.
11214 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11215 (*divmodsi_internal, call, call_value, realign): Likewise.
11216 (moddi3, umoddi3): Likewise; remove duplicate expander.
11217 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11218 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11219 (*movdi_nofix): Remove r/U alternative.
11220 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11221 * config/alpha/constraints.md ("U"): Remove.
11222 * config/alpha/predicates.md (call_operand"): Don't test
11223 TARGET_ABI_UNICOSMK.
11225 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11227 * target.def (handle_option): Take gcc_options and
11228 cl_decoded_option pointers and location_t.
11229 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11230 * doc/tm.texi: Regenerate.
11231 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11232 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11233 * lto-opts.c (lto_reissue_options): Generate option structure for
11234 targetm.handle_option call.
11235 * opts.c (target_handle_option): Update call to
11236 targetm.handle_option. Remove assertions about values now passed
11238 * targhooks.c (default_target_handle_option): New.
11239 * targhooks.h (default_target_handle_option): Declare.
11240 * config/alpha/alpha.c: Include opts.h.
11241 (alpha_handle_option): Update to new hook interface.
11242 * config/arm/arm.c: Include opts.h.
11243 (arm_handle_option): Update to new hook interface.
11244 * config/arm/t-arm (arm.o): Update dependencies.
11245 * config/bfin/bfin.c: Include opts.h.
11246 (bfin_handle_option): Update to new hook interface.
11247 * config/cris/cris.c: Include opts.h.
11248 (cris_handle_option): Update to new hook interface.
11249 * config/frv/frv.c: Include opts.h.
11250 (frv_handle_option): Update to new hook interface.
11251 * config/i386/i386.c: Include opts.h.
11252 (ix86_handle_option): Update to new hook interface.
11253 (ix86_valid_target_attribute_inner_p): Generate option structure
11254 for call to ix86_handle_option.
11255 * config/i386/t-i386 (i386.o): Update dependencies.
11256 * config/ia64/ia64.c: Include opts.h.
11257 (ia64_handle_option): Update to new hook interface.
11258 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11259 * config/iq2000/iq2000.c: Include opts.h.
11260 (iq2000_handle_option): Update to new hook interface.
11261 * config/m32c/m32c.c: Include opts.h.
11262 (m32c_handle_option): Update to new hook interface.
11263 * config/m32r/m32r.c: Include opts.h.
11264 (m32r_handle_option): Update to new hook interface.
11265 * config/m68k/m68k.c: Include opts.h.
11266 (m68k_handle_option): Update to new hook interface.
11267 * config/mep/mep.c: Include opts.h.
11268 (mep_handle_option): Update to new hook interface.
11269 * config/microblaze/microblaze.c: Include opts.h.
11270 (microblaze_handle_option): Update to new hook interface.
11271 * config/mips/mips.c: Include opts.h.
11272 (mips_handle_option): Update to new hook interface.
11273 * config/mn10300/mn10300.c: Include opts.h.
11274 (mn10300_handle_option): Update to new hook interface.
11275 * config/pa/pa.c: Include opts.h.
11276 (pa_handle_option): Update to new hook interface.
11277 * config/pdp11/pdp11.c: Include opts.h.
11278 (pdp11_handle_option): Update to new hook interface.
11279 * config/rs6000/rs6000.c: Include opts.h.
11280 (rs6000_handle_option): Update to new hook interface.
11281 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11282 * config/rx/rx.c: Include opts.h.
11283 (rx_handle_option): Update to new hook interface.
11284 * config/s390/s390.c: Include opts.h.
11285 (s390_handle_option): Update to new hook interface.
11286 * config/score/score.c: Include opts.h.
11287 (score_handle_option): Update to new hook interface.
11288 * config/sh/sh.c: Include opts.h.
11289 (sh_handle_option): Update to new hook interface.
11290 * config/sparc/sparc.c: Include opts.h.
11291 (sparc_handle_option): Update to new hook interface.
11292 * config/v850/v850.c: Include opts.h.
11293 (v850_handle_option): Update to new hook interface.
11295 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11297 * gcc.c (driver_unknown_option_callback): Only permit and save
11298 unknown -Wno- options.
11299 (driver_wrong_lang_callback): Save options directly instead of via
11300 driver_unknown_option_callback.
11302 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11304 * combine.c (simplify_set): Try harder to find the best CC mode when
11305 simplifying a nested COMPARE on the RHS.
11307 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11309 * config/alpha/gnu.h: Remove.
11310 * config/arc: Remove directory.
11311 * config/arm/netbsd.h: Remove.
11312 * config/arm/t-pe: Remove.
11313 * config/crx: Remove directory.
11314 * config/i386/netbsd.h: Remove.
11315 * config/m68hc11: Remove directory.
11316 * config/m68k/uclinux-oldabi.h: Remove.
11317 * config/mcore/mcore-pe.h: Remove.
11318 * config/mcore/t-mcore-pe: Remove.
11319 * config/netbsd-aout.h: Remove.
11320 * config/rs6000/gnu.h: Remove.
11321 * config/sh/sh-symbian.h: Remove.
11322 * config/sh/symbian-base.c: Remove.
11323 * config/sh/symbian-c.c: Remove.
11324 * config/sh/symbian-cxx.c: Remove.
11325 * config/sh/symbian-post.h: Remove.
11326 * config/sh/symbian-pre.h: Remove.
11327 * config/sh/t-symbian: Remove.
11328 * config/svr3.h: Remove.
11329 * config/vax/netbsd.h: Remove.
11330 * config.build: Don't handle i[34567]86-*-pe.
11331 * config.gcc: Remove handling of deprecations for most deprecated
11333 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11334 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11335 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11336 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11337 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11338 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11340 * config.host: Don't handle i[34567]86-*-pe.
11341 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11342 (ASM_SPEC32): Don't handle -mcall-gnu.
11343 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11345 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11346 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11347 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11348 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11349 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11350 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11351 conditional on SYMBIAN.
11352 * configure.ac: Don't handle powerpc*-*-gnu*.
11353 * configure: Regenerate.
11354 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11355 * doc/install-old.texi (m6811, m6812): Don't mention.
11356 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11357 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11358 (m68k-uclinuxoldabi): Don't mention.
11359 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11361 (-mcall-gnu): Remove.
11362 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11363 families): Remove constraint documentation.
11365 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11367 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11368 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11369 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11371 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11374 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11375 vector when peeking at the next token for vector, don't expand the
11378 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11380 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11381 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11382 * config/avr/avr.c (init_cumulative_args)
11383 (avr_function_arg_advance): Use it.
11384 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11386 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11387 (avr_function_ok_for_sibcall): ...this new function.
11388 (avr_lookup_function_attribute1): New static Function.
11389 (avr_naked_function_p, interrupt_function_p)
11390 (signal_function_p, avr_OS_task_function_p)
11391 (avr_OS_main_function_p): Use it.
11392 * config/avr/avr.md ("sibcall", "sibcall_value")
11393 ("sibcall_epilogue"): New expander.
11394 ("*call_insn", "*call_value_insn"): New insn.
11395 ("call_insn", "call_value_insn"): Remove
11396 ("call", "call_value", "epilogue"): Change expander to handle
11399 2011-03-21 Nick Clifton <nickc@redhat.com>
11401 * doc/invoke.texi (Overall Options): Move closing brace to end of
11403 (Optimization Options): Add missing @gol.
11404 (Directory Options): Likewise.
11405 (i386 and x86-64 Options): Likewise.
11406 (RS6000 and PowerPC Options): Likewise.
11407 (i386 and x86-64 Windows Options): Likewise.
11408 (V850 Options): Add text missing from descriptions.
11410 2011-03-22 Richard Henderson <rth@redhat.com>
11412 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11413 (avr_incoming_return_addr_rtx): New.
11414 (emit_push_byte): New.
11415 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11416 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11417 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11418 (emit_pop_byte): New.
11419 (expand_epilogue): Use it. Pop frame pointer by bytes.
11420 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11421 (INCOMING_RETURN_ADDR_RTX): New.
11422 (INCOMING_FRAME_SP_OFFSET): New.
11423 (ARG_POINTER_CFA_OFFSET): New.
11424 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11425 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11428 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11430 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11432 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11433 (FUNCTION_ARG_ADVANCE): Likewise.
11434 * tm.texi.in: Change references to them to hook references.
11435 * tm.texi: Regenerate.
11436 * targhooks.c (default_function_arg): Eliminate check for target
11438 (default_function_incoming_arg): Likewise.
11439 (default_function_arg_advance): Likewise.
11440 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11441 (function_arg_advance): Likewise.
11442 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11444 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11446 * tree.c (build_call_1): New function.
11447 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11449 2011-03-22 Richard Guenther <rguenther@suse.de>
11451 PR tree-optimization/48228
11452 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11453 for single-arg PHIs.
11455 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11457 PR rtl-optimization/48143
11458 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11459 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11460 sse2_cvtps2pd): Likewise.
11462 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11464 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11466 2011-03-22 Richard Guenther <rguenther@suse.de>
11468 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11469 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11470 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11471 and REALIGN_LOAD_EXPR.
11472 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11473 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11474 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11475 DOT_PROD_EXPR case ...
11476 (expand_expr_real_2): ... here.
11477 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11478 and REALIGN_LOAD_EXPR.
11479 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11480 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11481 (vect_create_epilog_for_reduction): Likewise.
11482 (vectorizable_reduction): Likewise.
11483 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11484 * tree-vect-stmts.c (vectorizable_load): Likewise.
11486 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11488 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11490 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11492 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11493 handling for PLTOFF/GOTOFF.
11495 2011-03-22 Nick Clifton <nickc@redhat.com>
11497 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11498 trailing backslash from the end of the macro definition.
11500 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11502 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11505 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11507 * expr.h (prepare_operand): Move to...
11508 * optabs.h (prepare_operand): ...here and change the insn code
11509 parameter from "int" to "enum insn_code".
11510 (insn_operand_matches): Declare.
11511 * expr.c (init_expr_target): Use insn_operand_matches.
11512 (compress_float_constant): Likewise.
11513 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11514 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11515 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11516 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11518 (gen_cond_trap): Likewise.
11519 (prepare_operand): Likewise. Change icode to an insn_code.
11520 (insn_operand_matches): New function.
11521 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11522 * reload1.c (gen_reload): Likewise.
11523 * targhooks.c (default_secondary_reload): Likewise.
11525 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11527 * config/alpha/alpha.md (unspec): New define_c_enum.
11530 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11533 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11534 between a call and its CALL_ARG_LOCATION note.
11536 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11538 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11540 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11544 * c-common.c (shorten_compare): If primopN is first sign-extended
11545 to opN and then zero-extended to result type, set primopN to opN.
11547 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11549 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11550 for barrier handlers.
11552 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11554 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11555 UNSPEC constants to be in the unspec enumeration, and redefine
11556 all UNSPECV constants to be in the unspecv enumeration, so that
11557 dumps print which unspec/unspec_volatile this is.
11558 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11559 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11560 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11561 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11562 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11564 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11565 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11566 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11567 * config/rs6000/sync.md (isync, lwsync): Ditto.
11569 2011-03-21 Richard Guenther <rguenther@suse.de>
11571 * params.def (lto-min-partition): Fix typo.
11573 2011-03-21 Richard Guenther <rguenther@suse.de>
11576 * c-decl.c (grokdeclarator): Drop to the main variant only
11577 for array types. Drop flag_gen_aux_info check.
11579 2011-03-21 Richard Guenther <rguenther@suse.de>
11581 PR translation/47911
11582 * params.def (lto-partitions): Fix typo.
11583 (lto-min-partition): Fix wording.
11585 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11587 * config/rs6000/t-freebsd: Remove duplication from file.
11589 2011-03-21 Richard Guenther <rguenther@suse.de>
11591 PR middle-end/47661
11592 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11594 2011-03-21 Richard Guenther <rguenther@suse.de>
11597 * params.def (lto-partitions): Require at least 1 partition.
11599 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11601 * gthr-solaris.h: Remove.
11602 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11603 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11604 (LIB_SPEC): Likewise.
11605 * config/sol2.opt (threads): Remove.
11606 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11607 (sparc*-*-solaris2*): Likewise.
11608 * configure.ac (enable_threads): Enable solaris support.
11609 * configure: Regenerate.
11610 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11611 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11614 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11616 * config.gcc: Obsolete *-*-solaris2.8*.
11617 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11619 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11622 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11623 reference. Solaris 8 perl works.
11625 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11628 * doc/install.texi (Prerequisites): Move jar etc. up.
11629 Explain support library version requirements.
11631 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11634 * doc/install.texi (Prerequisites): Move Perl to build
11635 requirements. Always necessary on Solaris 2 with Sun ld.
11637 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11639 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11641 (Specific, i?86-*-solaris2.[89]): Likewise.
11642 (Specific, i?86-*-solaris2.10): Likewise.
11643 (Specific, mips-sgi-irix6): Likewise.
11644 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11645 Update for binutils 2.21.
11647 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11649 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11650 Allow -fuse-linker-plugin for non-default plugin linker.
11651 * configure: Regenerate.
11653 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11656 * gengtype.c (files_rules): Added rule for cp/parser.h.
11658 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11661 * config/s390/s390.c (s390_delegitimize_address): Don't call
11662 lowpart_subreg if orig_x has BLKmode.
11664 2011-03-21 Kai Tietz <ktietz@redhat.com>
11667 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11668 * tree.h (attribute_spec): Add new member affects_type_identity.
11669 * attribs.c (empty_attribute_table): Adjust attribute_spec
11671 * config/alpha/alpha.c: Likewise.
11672 * config/arc/arc.c: Likewise.
11673 * config/arm/arm.c: Likewise.
11674 * config/avr/avr.c: Likewise.
11675 * config/bfin/bfin.c: Likewise.
11676 * config/crx/crx.c: Likewise.
11677 * config/darwin.h: Likewise.
11678 * config/h8300/h8300.c: Likewise.
11679 * config/i386/cygming.h: Likewise.
11680 * config/i386/i386.c: Likewise.
11681 * config/ia64/ia64.c: Likewise.
11682 * config/m32c/m32c.c: Likewise.
11683 * config/m32r/m32r.c: Likewise.
11684 * config/m68hc11/m68hc11.c: Likewise.
11685 * config/m68k/m68k.c: Likewise.
11686 * config/mcore/mcore.c: Likewise.
11687 * config/mep/mep.c: Likewise.
11688 * config/microblaze/microblaze.c: Likewise.
11689 * config/mips/mips.c: Likewise.
11690 * config/rs6000/rs6000.c: Likewise.
11691 * config/rx/rx.c: Likewise.
11692 * config/sh/sh.c: Likewise.
11693 * config/sol2.h: Likewise.
11694 * config/sparc/sparc.c: Likewise.
11695 * config/spu/spu.c: Likewise.
11696 * config/stormy16/stormy16.c: Likewise.
11697 * config/v850/v850.c: Likewise.
11699 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11701 * simplify-rtx.c (simplify_binary_operation_1): Handle
11702 (xor (and A B) C) case when B and C are both constants.
11704 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11706 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11708 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11711 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11713 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11715 PR rtl-optimization/48156
11716 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11717 assume df and df_lr are not NULL.
11719 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11722 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11723 between a call and its CALL_ARG_LOCATION note.
11725 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11728 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11729 between a call and its corresponding CALL_ARG_LOCATION note.
11731 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11733 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11734 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11735 * haifa-sched.c (setup_ref_regs): Ditto.
11736 * caller-save.c (add_used_regs_1): Ditto.
11737 * dse.c (look_for_hardregs): Ditto.
11738 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11739 * sched-rgn.c (check_live_1): Ditto.
11741 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11743 * c-decl.c (diagnose_mismatched_decls): Give an error for
11744 redefining a typedef with variably modified type.
11746 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11748 * c-decl.c (grokfield): Don't allow typedefs for structures or
11749 unions with no tag by default.
11750 * doc/extend.texi (Unnamed Fields): Update.
11752 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11754 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11755 Rewrite using indirect functions.
11756 (lwp_slwpcb): Ditto.
11757 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11758 (avx_vinsertf128<mode>): Ditto.
11760 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11762 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11765 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11767 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11768 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11770 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11772 PR rtl-optimization/48170
11773 * gcse.c (hoist_code): Remove bogus asserts.
11775 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11777 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11778 computation for prologue/epilogue.
11780 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11782 * Makefile.in (check-consistency): Remove.
11784 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11787 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11788 arange_table_in_use is 0, but either text_section_used or
11789 cold_text_section_used is true. Don't call it if
11790 !info_section_emitted.
11792 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11794 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11795 FUNCTION_VALUE_REGNO_P): Remove.
11796 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11798 * config/avr/avr.c (avr_ret_register): Make static inline.
11799 (avr_function_value_regno_p): New function.
11800 (avr_libcall_value): Make static. Add 'func' argument.
11801 (avr_function_value): Make static. Rename 'func' argument to
11802 'fn_decl_or_type', forward it to avr_libcall_value. Call
11803 avr_ret_register function instead of RET_REGISTER macro.
11804 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11806 2011-03-18 Jason Merrill <jason@redhat.com>
11809 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11811 2011-03-18 Richard Guenther <rguenther@suse.de>
11813 * doc/install.texi (--enable-gold): Remove.
11814 (--with-plugin-ld): Document.
11815 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11817 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11819 PR middle-end/47790
11820 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11821 again after expansion changes.
11823 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11825 * combine.c (try_combine): Do simplification only call of
11826 subst() on i2 even when i1 is present. Update comments.
11828 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11830 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11831 and UNSPEC_PCREL_SYMOFF.
11833 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11835 * config/s390/s390.md: Use define_c_enum for the unspec constant
11838 2011-03-18 Richard Henderson <rth@redhat.com>
11839 Jakub Jelinek <jakub@redhat.com>
11842 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11843 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11845 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11847 PR middle-end/47725
11848 * combine.c (cant_combine_insn_p): Don't check zero/sign
11849 extended hard registers.
11851 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11853 PR middle-end/47725
11854 * combine.c (cant_combine_insn_p): Check zero/sign extended
11857 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11859 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11860 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11861 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11862 Change return type to bool.
11863 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11865 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11868 * var-tracking.c (prepare_call_arguments): If CALL target
11869 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11870 pc instead of looking it up using cselib_lookup and use
11871 Pmode for it if x has VOIDmode.
11872 * dwarf2out.c (gen_subprogram_die): If also both first and
11873 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11876 * function.c (assign_parms): For data.passed_pointer parms
11877 use MEM of data.entry_parm instead of data.entry_parm itself
11878 as DECL_INCOMING_RTL.
11879 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11880 also when passed and declared mode is the same, DECL_RTL
11881 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11884 2011-03-16 Jeff Law <law@redhat.com>
11886 PR rtl-optimization/37273
11887 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11888 handle them like argument loads from stack slots. Do not double
11889 count memory for memory constants and argument loads from stack slots.
11891 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11894 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11896 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11899 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11901 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11904 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11906 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11907 Clear call_arg_locations and call_arg_loc_last always.
11909 PR middle-end/48152
11910 * var-tracking.c (prepare_call_arguments): If argument needs to be
11911 passed by reference, adjust argtype and mode.
11913 2011-03-17 Richard Guenther <rguenther@suse.de>
11915 PR middle-end/48134
11916 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11917 a value make sure to fold the statement.
11919 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11922 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11923 return condition with !cfun->calls_alloca.
11925 2011-03-17 Richard Guenther <rguenther@suse.de>
11928 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11929 origin for decls in other ltrans units.
11930 (input_varpool_node): Likewise.
11932 2011-03-17 Richard Guenther <rguenther@suse.de>
11934 PR middle-end/48165
11935 * tree-object-size.c (compute_object_offset): Properly return
11936 the offset operand of MEM_REFs as sizetype.
11938 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11940 PR rtl-optimization/48141
11941 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11942 * dse.c: Include params.h.
11943 (active_local_stores_len): New variable.
11944 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11946 (record_store, check_mem_read_rtx): Decrease it when removing
11948 (scan_insn): Likewise. Increase it when adding to chain, if it
11949 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11950 set active_local_stores to NULL before the addition.
11951 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11953 PR rtl-optimization/48141
11954 * dse.c (record_store): If no positions are needed in an insn
11955 that cannot be deleted, at least unchain it from active_local_stores.
11957 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11960 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11961 (lookup_type_die_strip_naming_typedef): ... here.
11962 (get_context_die): Use it.
11963 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11964 the anonymous struct named by the naming typedef.
11966 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11969 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11970 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11972 2011-03-16 Jeff Law <law@redhat.com>
11974 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11975 check for operands of conditional. Allow type to be a pointer.
11977 2011-03-16 Richard Guenther <rguenther@suse.de>
11979 PR tree-optimization/48149
11980 * fold-const.c (fold_binary_loc): Fold
11981 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11983 2011-03-16 Richard Guenther <rguenther@suse.de>
11985 PR tree-optimization/26134
11986 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11987 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11988 (non_rewritable_mem_ref_base): Handle complex type component
11989 accesses, constrain offsets for vector and complex extracts
11992 2011-03-16 Richard Guenther <rguenther@suse.de>
11994 PR tree-optimization/48146
11995 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11996 operands avoiding the need for renaming.
11998 2011-03-16 Richard Guenther <rguenther@suse.de>
12000 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12001 constant folding. Move MEM_REF canonicalization first.
12002 Rely on fold_const_aggregate_ref for initializer folding.
12003 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12005 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12007 PR middle-end/48136
12008 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12009 arg0/arg1 or their arguments are always fold converted to matching
12012 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12015 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12018 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12019 Handle in-tree gold.
12020 (ld_vers): Extract binutils version for gold.
12021 (gcc_cv_ld_hidden): Handle gold here.
12022 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12023 * configure: Regenerate.
12024 * config.in: Regenerate.
12025 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12026 -fuse-linker-plugin otherwise.
12027 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12028 (LINK_COMMAND_SPEC): Use it.
12029 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12031 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12033 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12034 * calls.c: Remove debug.h include.
12035 (emit_call_1): Don't call virtual_call_token debug hook.
12036 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12037 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12038 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12039 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12040 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12041 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12042 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12043 dwarf2out_virtual_call): Remove.
12044 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12045 copy_call_info and virtual_call hooks.
12046 (dwarf2out_init): Don't initialize vcall_insn_table,
12047 debug_dcall_section and debug_vcall_section.
12048 (prune_unused_types): Don't mark nodes from dcall_table.
12049 (dwarf2out_finish): Don't output dcall or vcall tables.
12050 * final.c (final_scan_insn): Don't call direct_call or
12051 virtual_call debug hooks.
12052 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12053 virtual_call_token, copy_call_info and virtual_call hooks.
12054 (debug_nothing_uid): Remove prototype.
12055 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12056 copy_call_info and virtual_call hooks.
12057 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12058 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12059 * debug.c (do_nothing_debug_hooks): Likewise.
12060 (debug_nothing_uid): Remove.
12061 * doc/invoke.texi (-fenable-icf-debug): Remove.
12062 * common.opt (-fenable-icf-debug): Likewise.
12064 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12065 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12066 call's MEM. Handle functions returning aggregate through a hidden
12067 first pointer. For virtual calls add clobbered pc to call arguments
12069 * dwarf2out.c (gen_subprogram_die): Emit
12070 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12074 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12075 * rtl.h (ENTRY_VALUE_EXP): Define.
12076 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12077 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12078 * print-rtl.c (print_rtx): Likewise.
12079 * gengtype.c (adjust_field_rtx_def): Likewise.
12080 * var-tracking.c (vt_add_function_parameter): Adjust
12081 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12082 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12083 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12084 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12085 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12087 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12088 Call var_location debug hook even on CALL_INSNs.
12089 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12090 * rtl.def (ENTRY_VALUE): New.
12091 * dwarf2out.c: Include cfglayout.h.
12092 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12093 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12094 (struct call_arg_loc_node): New type.
12095 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12096 tail_call_site_count): New variables.
12097 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12098 DW_TAG_GNU_call_site_parameter.
12099 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12100 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12101 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12102 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12103 and DW_AT_GNU_all_source_call_sites.
12104 (mem_loc_descriptor): Handle ENTRY_VALUE.
12105 (add_src_coords_attributes): Don't add enything if
12106 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12107 (dwarf2out_abstract_function): Save and clear call_arg_location,
12108 call_site_count and tail_call_site_count around dwarf2out_decl call.
12109 (gen_call_site_die): New function.
12110 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12111 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12112 (dwarf2out_function_decl): Clear call_arg_locations,
12113 call_arg_loc_last, set call_site_count and tail_call_site_count
12114 to -1 and free block_map.
12115 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12116 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12117 followed by any real instructions.
12118 (dwarf2out_begin_function): Set call_site_count and
12119 tail_call_site_count to 0.
12120 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12121 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12122 attempt to force a DIE for it and worst case remove the attribute.
12123 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12124 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12126 * var-tracking.c: Include tm_p.h.
12127 (vt_stack_adjustments): For calls call note_register_arguments.
12128 (argument_reg_set): New variable.
12129 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12130 ensure the VALUE is resolved.
12131 (call_arguments): New variable.
12132 (prepare_call_arguments): New function.
12133 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12134 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12135 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12136 always use the best expression.
12137 (vt_expand_loc): Add ignore_cur_loc argument.
12138 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12139 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12140 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12141 note for all calls.
12142 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12143 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12144 argument. Don't call cselib_preserve_only_values and
12145 cselib_reset_table.
12146 (note_register_arguments): New function.
12147 (vt_initialize): Compute argument_reg_set. Call
12148 vt_add_function_parameters before processing basic blocks instead of
12149 afterwards. For calls call prepare_call_arguments before calling
12150 cselib_process_insn.
12151 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12152 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12153 (var-tracking.o): Depend on $(TM_P_H).
12154 * cfglayout.h (insn_scope): New prototype.
12155 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12156 * cfglayout.c (insn_scope): No longer static.
12157 * insn-notes.def (CALL_ARG_LOCATION): New.
12158 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12159 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12160 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12161 nothing for DECL_EXTERNAL BLOCK_VARS.
12163 2011-03-16 Alan Modra <amodra@gmail.com>
12166 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12167 create invalid offset address for vsx splat insn.
12168 * config/rs6000/predicates.md (splat_input_operand): New.
12169 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12171 2011-03-15 Xinliang David Li <davidxl@google.com>
12174 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12175 (normalize_preds): New function.
12176 (is_use_properly_guarded): Normalize def predicates.
12178 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12181 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12182 in the output template.
12184 2011-03-15 Richard Guenther <rguenther@suse.de>
12186 PR middle-end/47650
12187 * tree-pretty-print.c (dump_function_declaration): Properly
12188 dump unprototyped and varargs function types.
12190 2011-03-15 Richard Guenther <rguenther@suse.de>
12192 PR tree-optimization/13954
12193 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12196 2011-03-15 Richard Guenther <rguenther@suse.de>
12198 PR tree-optimization/48037
12199 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12200 selects into BIT_FIELD_REFs.
12201 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12204 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12206 PR tree-optimization/48129
12207 * builtins.c (fold_builtin_snprintf): Convert to type of
12208 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12209 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12211 2011-03-15 Richard Guenther <rguenther@suse.de>
12213 PR tree-optimization/41490
12214 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12215 value but with VUSE.
12216 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12218 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12219 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12220 * tree-tailcall.c (find_tail_calls): Ignore returns.
12222 2011-03-15 Richard Guenther <rguenther@suse.de>
12224 PR middle-end/48031
12225 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12226 or variable-indexed array accesses when in gimple form.
12228 2011-03-15 Richard Guenther <rguenther@suse.de>
12230 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12232 2011-03-15 Alan Modra <amodra@gmail.com>
12235 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12236 presume symbol_refs without a symbol_ref_decl are suitably
12237 aligned, nor other trees we may see here. Handle anchor symbols.
12238 (legitimate_constant_pool_address_p): Comment. Add mode param.
12239 Check cmodel=medium addresses. Adjust all calls.
12240 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12241 creating cmodel=medium optimized access to locals.
12242 * config/rs6000/constraints.md (R): Pass QImode to
12243 legitimate_constant_pool_address_p.
12244 * config/rs6000/predicates.md (input_operand): Pass mode to
12245 legitimate_constant_pool_address_p.
12246 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12249 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12252 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12253 64-bit constants being loaded into registers other than GPRs such
12254 as loading 0 into a VSX register.
12256 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12258 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12260 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12262 PR middle-end/47917
12263 * builtins.c (fold_builtin_snprintf): New function.
12264 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12265 (fold_builtin_4): Likewise.
12267 PR middle-end/38878
12268 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12269 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12270 and C - X == X also strip nops from +/-/p+ operand.
12271 When optimizing -X == C, fold C to arg0's type.
12274 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12275 emit it as add_AT_int instead of add_AT_unsigned.
12277 2011-03-14 Tom Tromey <tromey@redhat.com>
12279 * unwind-dw2.c: Include sys/sdt.h if it exists.
12280 (_Unwind_DebugHook): Use STAP_PROBE2.
12281 * config.in, configure: Rebuild.
12282 * configure.ac: Check for sys/sdt.h.
12284 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12286 * config/i386/i386.md (ROUND_FLOOR): New constant.
12287 (ROUND_CEIL): Ditto.
12288 (ROUND_TRUNC): Ditto.
12289 (ROUND_MXCSR): Ditto.
12290 (ROUND_NO_EXC): Ditto.
12291 (rint<mode>2): Use new defines instead of numerical constants.
12292 (floor<mode>2): Ditto.
12293 (ceil<mode>2): Ditto.
12294 (btrunc<mode>2): Ditto.
12295 * config/i386/i386-builtin-types.def: Define ROUND function type
12297 * config/i386/i386.c (enum ix86_builtins): Add
12298 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12299 (struct builtin_description): Add
12300 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12301 (ix86_expand_sse_round): New static function.
12302 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12304 (ix86_builtin_vectorized_function): Handle
12305 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12307 2011-03-14 Tom Tromey <tromey@redhat.com>
12309 * c-parser.c (c_parser_asm_string_literal): Clear
12310 warn_overlength_strings.
12312 2011-03-14 Tom Tromey <tromey@redhat.com>
12314 * c-parser.c (disable_extension_diagnostics): Save
12315 warn_overlength_strings.
12316 (restore_extension_diagnostics): Restore warn_overlength_strings.
12318 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12320 * BASE-VER: Change to 4.7.0.
12322 2011-03-14 Richard Guenther <rguenther@suse.de>
12324 PR middle-end/48098
12325 * tree.c (build_vector_from_val): Adjust assert to requirements
12328 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12331 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12333 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12335 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12336 terms of target_flags_explicit. Adjust copyright year.
12338 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12339 * config/rs6000/t-freebsd: New file. Add override for
12342 2011-03-13 Chris Demetriou <cgd@google.com>
12344 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12345 (-fno-diagnostics-show-option): this, to reflect current default.
12346 (-Werror=): Update text about -fno-diagnostics-show-option.
12348 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12351 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12352 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12353 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12354 mode is not V2DImode or V2DFmode.
12355 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12356 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12357 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12359 (movdi_internal64): Likewise.
12361 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12363 PR tree-optimization/47127
12364 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12366 (set_cloog_options): Same.
12367 (scop_to_clast): Same.
12368 (print_clast_stmt): Do not call cloog_state_malloc and
12370 (print_generated_program): Same.
12372 * graphite-clast-to-gimple.h (cloog_state): Declared.
12373 (scop_to_clast): Adjust declaration.
12374 * graphite.c (cloog_state): Defined here.
12375 (graphite_initialize): Call cloog_state_malloc.
12376 (graphite_finalize): Call cloog_state_free.
12378 2011-03-11 Jason Merrill <jason@redhat.com>
12380 * attribs.c (lookup_attribute_spec): Take const_tree.
12383 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12385 * config/sparc/sparc.c (sparc_option_override): Use
12386 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12388 2011-03-11 Richard Guenther <rguenther@suse.de>
12390 PR tree-optimization/48067
12391 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12392 multiplication result will be only used once on the target
12395 2011-03-11 Richard Guenther <rguenther@suse.de>
12397 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12399 2011-03-11 Richard Guenther <rguenther@suse.de>
12402 * tree.c (find_decls_types_r): Do not walk types only reachable
12403 from IDENTIFIER_NODEs.
12405 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12407 PR middle-end/48044
12408 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12409 all vnode->force_output nodes as needed.
12411 2011-03-11 Jason Merrill <jason@redhat.com>
12414 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12415 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12417 2011-03-11 Martin Jambor <mjambor@suse.cz>
12419 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12422 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12424 PR tree-optimization/48063
12425 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12426 inline functions called once if !tree_can_inline_p (node->callers).
12428 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12430 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12432 * config/score/score3.c: Delete.
12433 * config/score/score3.h: Delete.
12434 * config/score/mul-div.S: Delete.
12435 * config/score/sfp-machine.h: Add new file.
12436 * config/score/constraints.md: Add new file.
12437 * config/score/t-score-softfp: Add new file.
12438 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12439 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12440 (score7_extra_constraint): Delete.
12441 (score7_option_override): Remove unused code.
12442 * config/score/score.c: Remove score3 and score5 define and code.
12443 * config/score/score.h: Remove score3 and score5 define and code.
12444 * config/score/score.md: Remove score3 template and unusual insn.
12445 * config/score/score.opt: Remove score3 and score5 options.
12447 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12449 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12450 when _HPUX_SOURCE is defined.
12451 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12453 2011-03-10 Jason Merrill <jason@redhat.com>
12456 * stor-layout.c (layout_type): Don't set structural equality
12457 on arrays of incomplete type.
12458 * tree.c (type_hash_eq): Handle comparing them properly.
12460 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12463 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12464 result mode matches original rtl mode.
12466 2011-03-10 Nick Clifton <nickc@redhat.com>
12468 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12469 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12471 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12473 PR rtl-optimization/47866
12474 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12475 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12476 if target wasn't scalar.
12477 * function.c (assign_stack_temp_for_type): Assert that neither
12478 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12479 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12481 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12483 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12485 * config/s390/s390-protos.h (s390_label_align): New prototype.
12486 * config/s390/s390.c (s390_label_align): New function.
12487 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12489 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12492 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12493 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12494 (output_vec_const_move): Ditto.
12496 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12498 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12499 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12500 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12501 Change 'rclass' argument and result type to reg_class_t.
12502 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12504 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12506 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12507 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12508 (TARGET_MEMORY_MOVE_COST): Define.
12509 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12511 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12514 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12517 PR tree-optimization/48022
12518 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12521 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12524 * var-tracking.c (find_use_val): Return NULL for
12525 cui->sets && cui->store_p BLKmode MEMs.
12527 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12529 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12531 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12532 xstormy16_print_operand_address): Remove.
12533 * config/stormy16/stormy16.c (xstormy16_print_operand,
12534 xstormy16_print_operand_address): Make static.
12535 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12537 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12540 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12541 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12544 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12547 * cfgloopmanip.c (fix_bb_placements): Return immediately
12548 if FROM is BASE_LOOP's header.
12550 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12552 * gimplify.c (gimplify_function_tree): Fix building calls
12553 to __builtin_return_address.
12555 2011-03-07 Alan Modra <amodra@gmail.com>
12557 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12558 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12559 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12560 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12562 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12563 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12564 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12565 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12566 * config/rs6000/rs6000.c
12567 (rs6000_elf_end_indicate_exec_stack): Rename to..
12568 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12569 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12570 (rs6000_file_start): ..here.
12571 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12572 file scope variables.
12573 (call_ABI_of_interest): New function.
12574 (init_cumulative_args): Set above vars when function return value
12575 is a float, vector, or small struct.
12576 (rs6000_function_arg_advance_1): Likewise for function args.
12577 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12578 references float args.
12580 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12582 * doc/cfg.texi: Remove "See" before @ref.
12583 * doc/invoke.texi: Likewise.
12585 2011-03-05 Jason Merrill <jason@redhat.com>
12587 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12589 2011-03-05 Anthony Green <green@moxielogic.com>
12591 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12593 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12595 PR rtl-optimization/47899
12596 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12597 to flow_loop_nested_p when moving the loop upward.
12599 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12602 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12604 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12606 PR tree-optimization/47967
12607 * ipa-cp.c (build_const_val): Return NULL instead of creating
12608 VIEW_CONVERT_EXPR for mismatching sizes.
12609 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12610 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12611 give up on versioning.
12613 2011-03-05 Alan Modra <amodra@gmail.com>
12616 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12617 full cmodel medium/large lo_sum + high addresses.
12619 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12621 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12622 pool references in UNSPEC_LTREL_OFFSET.
12624 2011-03-04 Jan Hubicka <jh@suse.cz>
12627 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12628 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12629 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12631 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12632 cgraph_add_thunk): Add node pointers.
12633 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12634 associated to right node.
12635 (input_node): Update use of cgraph_same_body_alias
12636 and cgraph_add_thunk.
12638 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12640 * config/i386/i386.opt (mprefer-avx128): New flag.
12641 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12642 modes when the flag -mprefer-avx128 is on.
12644 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12646 * dwarf2out.c (compare_loc_operands): Fix address handling.
12648 2011-03-04 Alan Modra <amodra@gmail.com>
12650 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12652 2011-03-04 Richard Guenther <rguenther@suse.de>
12654 PR middle-end/47968
12655 * expmed.c (extract_bit_field_1): Prefer vector modes that
12656 vec_extract patterns can handle.
12658 2011-03-04 Richard Guenther <rguenther@suse.de>
12660 PR middle-end/47975
12661 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12663 2011-03-04 Richard Henderson <rth@redhat.com>
12665 * explow.c (emit_stack_save): Remove 'after' parameter.
12666 (emit_stack_restore): Likewise.
12667 * expr.h: Update to match.
12668 * builtins.c, calls.c, stmt.c: Likewise.
12669 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12670 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12671 * function.c (expand_function_end): Insert the emit_stack_save
12672 sequence before parm_birth_insn instead of after.
12674 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12676 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12677 (ssse3_pmaddubsw128): Ditto.
12678 (ssse3_pmaddubsw): Ditto.
12680 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12682 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12684 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12687 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12688 on TYPE_SIZE_UNIT if it is a DECL.
12691 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12692 first operand is not is_gimple_mem_ref_addr, try to fold it.
12693 If the operand still isn't is_gimple_mem_ref_addr, clear
12696 2011-03-03 Richard Guenther <rguenther@suse.de>
12698 PR middle-end/47283
12699 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12701 (refs_may_alias_p_1): For release branches return true if
12702 we are confused by our input.
12704 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12706 * config/s390/s390.c (s390_function_value): Rename to ...
12707 (s390_function_and_libcall_value): ... this.
12708 (s390_function_value): New function.
12709 (s390_libcall_value): New function.
12710 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12711 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12712 target macro definitions.
12713 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12715 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12717 * config/i386/freebsd64.h (CC1_SPEC): Define.
12718 * config/i386/linux64.h (CC1_SPEC): Define.
12719 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12721 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12723 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12725 * config/stormy16/stormy16.c: Include reload.h.
12726 (xstormy16_memory_move_cost): New function.
12727 (TARGET_MEMORY_MOVE_COST): Define.
12729 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12731 PR rtl-optimization/47925
12732 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12733 with side effects. Remove the more-specific check for volatile asms.
12735 2011-03-02 Alan Modra <amodra@gmail.com>
12738 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12739 toc relative addresses for valid offsets.
12741 2011-03-01 Richard Guenther <rguenther@suse.de>
12743 PR tree-optimization/47890
12744 * tree-vect-loop.c (get_initial_def_for_induction): Set
12745 related stmt properly.
12747 2011-03-01 Richard Guenther <rguenther@suse.de>
12750 * lto-streamer.c (lto_record_common_node): Also register
12751 the canonical type.
12753 2011-03-01 Richard Guenther <rguenther@suse.de>
12756 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12757 Do not stream DECL_ABSTRACT_ORIGIN.
12758 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12759 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12760 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12761 Do not stream DECL_ABSTRACT_ORIGIN.
12762 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12763 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12765 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12767 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12768 FUNCTION_VALUE_REGNO_P): Remove.
12769 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12770 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12771 Add 'outgoing' argument.
12772 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12774 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12775 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12777 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12780 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12781 (lookup_filename): Likewise.
12782 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12784 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12785 Jakub Jelinek <jakub@redhat.com>
12787 PR middle-end/47893
12788 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12789 (assign_stack_local_1): Change last argument type to int.
12790 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12791 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12792 don't record padding space into frame_space_list nor use those areas.
12793 (assign_stack_local): Adjust caller.
12794 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12795 of assign_stack_local, pass 0 as last argument.
12796 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12799 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12802 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12803 Use target address_mode and pointer_mode hooks instead of hardcoded
12804 Pmode and ptr_mode. Handle some simple cases of extending if
12805 POINTERS_EXTEND_UNSIGNED < 0.
12806 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12807 Call convert_debug_memory_address.
12808 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12809 convert_debug_memory_address.
12811 PR middle-end/46790
12812 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12813 * configure: Regenerated.
12814 * config.in: Regenerated.
12815 * varasm.c (default_function_section): Return NULL
12816 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12818 2011-02-28 Martin Jambor <mjambor@suse.cz>
12820 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12821 the description to match the printed values.
12823 2011-02-28 Richard Guenther <rguenther@suse.de>
12825 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12826 of the copied scope tree.
12828 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12830 * doc/extend.texi (Function Attributes): Avoid deeply (and
12831 wrongly) nested tables.
12833 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12835 PR middle-end/47903
12836 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12837 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12838 r isn't op0 nor op1.
12840 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12842 * config/avr/avr.md: Remove magic comment for emacs.
12844 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12847 * config/avr/avr.c (avr_option_override): Use error on bad options.
12848 (avr_help): New function.
12849 (TARGET_HELP): Define.
12851 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12854 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12855 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12857 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12859 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12860 (ARM Options): Ditto.
12861 (i386 and x86-64 Options): Ditto.
12862 (RX Options): Ditto.
12863 (SPARC Options): Ditto.
12865 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12867 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12868 FreeBSD 6 and later. Generally use cpu generic.
12870 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12872 * doc/cpp.texi: Update copyright years.
12874 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12877 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12879 2011-02-25 Jon Beniston <jon@beniston.com>
12882 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12883 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12884 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12885 (lm32_block_move_inline): Add type cast to remove warning.
12886 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12887 (gen_int_relational): Move declarations to start of function.
12889 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12891 PR tree-optimization/45470
12892 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12893 can throw internally only.
12894 * tree-vect-stmts.c (vectorizable_call): Likewise.
12896 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12898 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12899 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12900 * config/stormy16/stormy16-protos.h
12901 (xstormy16_preferred_reload_class): Remove.
12902 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12903 static. Change 'rclass' argument and return type to reg_class_t.
12904 (TARGET_PREFERRED_RELOAD_CLASS,
12905 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12907 2011-02-24 Richard Guenther <rguenther@suse.de>
12909 * lto-streamer-in.c (input_bb): Do not find referenced vars
12910 in debug statements.
12912 2011-02-23 Jason Merrill <jason@redhat.com>
12914 * common.opt (fabi-version): Document v5 and v6.
12916 2011-02-23 Richard Guenther <rguenther@suse.de>
12918 PR tree-optimization/47849
12919 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12921 2011-02-23 Jie Zhang <jie@codesourcery.com>
12923 * opts-common.c (decode_cmdline_option): Print empty string
12924 argument as "" in decoded->orig_option_with_args_text.
12925 * gcc.c (execute): Print empty string argument as ""
12926 in the verbose output.
12927 (do_spec_1): Keep empty string argument.
12929 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12931 * config.gcc: Declare score-* and crx-* obsolete.
12933 2011-02-23 Jie Zhang <jie@codesourcery.com>
12935 PR rtl-optimization/47763
12936 * web.c (web_main): Ignore naked clobber when replacing register.
12938 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12940 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12943 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12946 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12948 2011-02-22 Mike Stump <mikestump@comcast.net>
12950 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12952 * configure: Regenerate.
12954 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12956 PR rtl-optimization/46002
12957 * ira-color.c (update_copy_costs): Change class intersection
12958 test to reg_class_contents[] test of 'hard_regno'.
12960 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12962 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12963 than Driver option.
12964 * config/hpux11.opt (mt): Likewise.
12965 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12966 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12967 * config/vax/elf.opt (mno-asm-pic): Likewise.
12968 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12970 2011-02-21 Mike Stump <mikestump@comcast.net>
12973 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12974 tree so we can get save the type.
12975 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12976 for CFString instead of trying to use past the end of the builtins.
12977 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12978 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12979 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12980 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12981 Rename to darwin_builtin_cfstring.
12982 (darwin_init_cfstring_builtins): Return the built type.
12984 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12987 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12988 (_mm256_insert_epi64): Use _mm_insert_epi64.
12990 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12992 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12993 * config/stormy16/stormy16-protos.h
12994 (xstormy16_mode_dependent_address_p): Remove.
12995 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12996 Make static. Change return type to bool. Change argument type to
12997 const_rtx. Remove dead code.
12998 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13000 2011-02-21 Richard Guenther <rguenther@suse.de>
13003 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13004 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13005 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13007 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13008 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13010 2011-02-20 Richard Guenther <rguenther@suse.de>
13013 * tree.c (free_lang_data_in_decl): Clean builtins from
13014 the TU decl BLOCK_VARS.
13016 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13020 * haifa-sched.c (fix_tick_ready): Skip tick computation
13023 2011-02-19 Richard Guenther <rguenther@suse.de>
13026 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13027 Remove lazy BLOCK_VARS streaming.
13028 (lto_input_ts_block_tree_pointers): Likewise.
13029 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13031 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13033 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13035 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13037 * config/i386/biarch32.h, config/i386/mach.h,
13038 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13040 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13043 * config/i386/i386.md (peephole2 for shift and plus): Use
13044 operands[1] original mode in the first insn.
13046 2011-02-18 Mike Stump <mikestump@comcast.net>
13048 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13050 2011-02-18 Jan Hubicka <jh@suse.cz>
13052 PR middle-end/47788
13053 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13054 to zero when the function is not inlinable at all.
13056 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13058 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13059 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13060 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13061 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13062 * config/pa/t-pa64: Likewise.
13063 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13065 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13068 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13070 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13073 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13075 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13077 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13078 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13079 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13080 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13081 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13082 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13083 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13084 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13085 m32r_legitimate_address_p): New functions.
13086 * config/m32r/constraints.md (constraint "S"): Don't use
13087 STORE_PREINC_PREDEC_P.
13088 (constraint "U"): Don't use LOAD_POSTINC_P.
13090 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13092 PR rtl-optimization/46178
13093 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13094 compute ira_hard_regno_cover_class[].
13096 2011-02-18 Richard Guenther <rguenther@suse.de>
13099 * lto-streamer.h (lto_global_var_decls): Declare.
13100 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13101 statics for global var processing.
13103 2011-02-18 Richard Guenther <rguenther@suse.de>
13105 PR tree-optimization/47737
13106 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13107 edge dominance check.
13109 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13112 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13113 avoid invalid rtx sharing.
13115 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13117 * doc/cpp.texi (Obsolete Features): Add background on the
13118 origin of assertions.
13120 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13122 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13124 * config/darwin.c (output_objc_section_asm_op): Added support for
13126 (is_objc_metadata): New.
13127 (darwin_objc2_section): New.
13128 (darwin_objc1_section): New.
13129 (machopic_select_section): Added support for ABI v1 and v2.
13130 (darwin_emit_objc_zeroed): New.
13131 (darwin_output_aligned_bss): Detect objc metadata and treat it
13133 (darwin_asm_output_aligned_decl_common): Same.
13134 (darwin_asm_output_aligned_decl_local): Same.
13135 * config/darwin-sections.def: Updated for ABI v1 and v2.
13136 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13137 compiling Objective-C code for the NeXT runtime, default to using
13138 ABI version 0 for 32-bit, and version 2 for 64-bit.
13140 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13142 * common.opt (optimize_fast): New Variable.
13143 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13144 instead of local variable ofast.
13146 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13148 * doc/invoke.texi (fobjc-abi-version): Documented.
13149 (fobjc-nilcheck): Documented.
13150 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13153 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13156 * common.opt (export-dynamic): New Driver option.
13157 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13159 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13161 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13163 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13164 Jan Hubicka <jh@suse.cz>
13168 * cfgexpand.c (account_used_vars_for_block): Remove.
13169 (estimated_stack_frame_size): Use referenced vars.
13170 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13171 that were referenced in the original function. Test src_fn
13172 rather than cfun. Drop redundant get_var_ann.
13173 (setup_one_parameter): Drop redundant get_var_ann.
13174 (declare_return_variable): Likewise.
13175 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13176 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13177 * ipa-inline.c (compute_inline_parameters): Do not compute
13178 disregard_inline_limits here.
13179 (compute_inlinable_for_current, pass_inlinable): New.
13180 (pass_inline_parameters): Require PROP_referenced_vars.
13181 * cgraphunit.c (cgraph_process_new_functions): Don't run
13182 compute_inline_parameters explicitly unless function is in SSA form.
13183 (cgraph_analyze_function): Set .disregard_inline_limits.
13184 * tree-sra.c (convert_callers): Compute inliner parameters
13185 only for functions already in SSA form.
13187 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13189 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13190 -mlittle-endian-data.
13192 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13194 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13195 -mno-fpu, not -fpu and -no-fpu.
13196 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13197 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13199 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13202 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13203 input reload with PLUS RTX.
13205 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13207 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13208 of InverseVar(MDMX).
13210 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13212 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13215 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13217 * config/mn10300/mn10300.opt (mno-crt0): New.
13219 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13221 * config/m68k/uclinux.opt (static-libc): New Driver option.
13223 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13225 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13227 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13229 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13230 %{muser-extend-enabled}.
13232 2011-02-16 Richard Guenther <rguenther@suse.de>
13234 PR tree-optimization/47738
13235 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13236 the TODO from tree_predictive_commoning.
13238 2011-02-15 Jeff Law <law@redhat.com>
13241 2011-01-25 Jeff Law <law@redhat.com>
13243 PR rtl-optimization/37273
13244 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13245 handle them like argument loads from stack slots. Do not double
13246 count memory for memory constants and argument loads from stack slots.
13248 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13250 PR middle-end/47725
13251 * combine.c (cant_combine_insn_p): Revert the last change.
13253 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13256 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13257 mode for vector constants. Remove code that checks for TImode.
13259 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13263 * cgraph.h (compute_inline_parameters): Return void.
13264 * ipa-inline.c (compute_inline_parameters): Adjust.
13266 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13270 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13272 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13273 * ipa-inline.c (compute_inline_parameters): Adjust.
13275 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13279 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13280 Adjust all users. Pass FN to...
13281 * tree-flow-inline.h (first_referenced_var): ... this. Add
13283 * ipa-struct-reorg.c: Adjust.
13284 * tree-dfa.c: Adjust.
13285 * tree-into-ssa.c: Adjust.
13286 * tree-sra.c: Adjust.
13287 * tree-ssa-alias.c: Adjust.
13288 * tree-ssa-live.c: Adjust.
13289 * tree-ssa.c: Adjust.
13290 * tree-ssanames.c: Adjust.
13291 * tree-tailcall.c: Adjust.
13293 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13297 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13298 Adjust all callers.
13299 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13300 * tree-flow-inline.h: Adjust.
13301 * gimple-pretty-print.c: Adjust.
13302 * tree-into-ssa.c: Adjust.
13303 * tree-ssa.c: Adjust.
13304 * cfgexpand.c: Adjust.
13306 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13308 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13309 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13310 (EXTRA_CONSTRAINT): Delete.
13311 * config/iq2000/constraints.md: New file.
13312 * config/iq2000/iq2000.md: Include it.
13313 (define_insn ""): Delete.
13314 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13315 unsupported constraint letters from patterns.
13316 (call_value, call_value_internal1): Likewise.
13317 (call_value_multiple_internal1): Likewise.
13319 2011-02-15 Nick Clifton <nickc@redhat.com>
13321 * config/mn10300/mn10300.c: Include tm-constrs.h.
13322 (struct liw_data): New data structure describing an LIW candidate
13324 (extract_bundle): Use struct liw_data. Allow small integer
13325 operands for some instructions.
13326 (check_liw_constraints): Use struct liw_data. Remove swapped
13327 parameter. Add comments describing the checks. Fix bug when
13328 assigning the source of liw1 to the source of liw2.
13329 (liw_candidate): Delete. Code moved into extract_bundle.
13330 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13332 * config/mn10300/predicates.md (liw_operand): New predicate.
13333 Allows registers and small integer constants.
13334 * config/mn10300/constraints.md (O): New constraint. Accetps
13335 integers in the range -8 to +7 inclusive.
13336 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13337 for moving a small integer into a register. Give this alternative
13339 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13340 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13341 using the J,K,L and M constraints,
13342 (liw): Remove SI mode on second operands to allow for HI and QI
13344 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13347 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13349 PR middle-end/47725
13350 * combine.c (cant_combine_insn_p): Check zero/sign extended
13353 2011-02-15 Richard Guenther <rguenther@suse.de>
13355 PR tree-optimization/47743
13356 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13357 for a non-type-compatible VN lookup bail out.
13359 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13361 * config/fr30/constraints.md: New file.
13362 * config/fr30/fr30.md: Include it.
13363 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13364 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13365 (EXTRA_CONSTRAINT): Delete.
13367 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13369 * config/frv/constraints.md: New file.
13370 * config/frv/predicates.md: Include it.
13371 * config/frv/frv.c (reg_class_from_letter): Delete.
13372 (frv_option_override): Don't initialize it.
13373 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13374 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13375 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13376 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13377 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13378 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13379 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13380 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13381 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13382 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13383 (REG_CLASS_FROM_CONSTRAINT): Delete.
13385 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13387 PR middle-end/47581
13388 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13389 if frame size is 0 in a leaf function.
13391 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13394 * config/alpha/host-osf.c: New file.
13395 * config/alpha/x-osf: New file.
13396 * config.host (alpha*-dec-osf*): Use it.
13398 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13400 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13401 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13402 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13403 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13405 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13407 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13409 * config/stormy16/constraints.md: New file.
13410 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13411 Use satisfies_constraint_Q and satisfies_constraint_R.
13412 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13414 (xstormy16_legitiamte_address_p): Declare.
13415 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13416 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13417 (EXTRA_CONSTRAINT): Delete.
13418 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13420 (xstormy16_extra_constraint_p): Delete.
13422 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13424 PR tree-optimization/46494
13425 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13426 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13427 (pass_rtl_loop_done): Add TODO_verify_flow.
13428 * fwprop.c (pass_rtl_fwprop): Likewise.
13429 * modulo-sched.c (pass_sms): Likewise.
13430 * tree-ssa-dom.c (pass_dominator): Likewise.
13431 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13432 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13433 (pass_tree_loop_done): Likewise.
13434 * tree-ssa-pre.c (execute_pre): Likewise.
13435 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13436 * tree-ssa-sink.c (pass_sink_code): Likewise.
13437 * tree-vrp.c (pass_vrp): Likewise.
13439 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13441 * config/v850/constraints.md: New file.
13442 * config/v850/v850.md: Include it.
13443 * config/v850/predicates.md (reg_or_0_operand): Use
13444 satisfies_constraint_G.
13445 (special_symbolref_operand): Use satisfies_constraint_K.
13446 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13447 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13448 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13449 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13450 (EXTRA_CONSTRAINT): Delete.
13451 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13452 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13453 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13455 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13458 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13461 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13463 * config/mcore/constraints.md: New file.
13464 * config/mcore/mcore.md: Include it.
13465 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13466 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13467 (REG_CLASS_FROM_LETTER): Delete.
13468 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13469 insn_const_int_ok_for_constraint.
13470 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13471 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13472 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13473 (EXTRA_CONSTRAINT): Delete.
13475 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13478 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13479 (IS_SIGHANDLER): Define.
13480 (sparc64_is_sighandler): New function, split off from
13481 sparc64_fallback_frame_state.
13482 (sparc_is_sighandler): New function, split off from
13483 sparc_fallback_frame_state.
13484 (sparc64_fallback_frame_state): Merge with ...
13485 (sparc_fallback_frame_state): ... this into ...
13486 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13487 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13488 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13489 stack instead of hardcoded offsets.
13491 2011-02-14 Andriy Gapon <avg@freebsd.org>
13494 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13496 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13498 * configure: Regenerate.
13500 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13503 * gcc.c (asm_options): Correct spec matching --target-help.
13505 2011-02-12 Martin Jambor <mjambor@suse.cz>
13507 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13508 to gimple call error.
13510 2011-02-12 Mike Stump <mikestump@comcast.net>
13512 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13513 comments in backslash regions.
13515 2011-02-12 Mike Stump <mikestump@comcast.net>
13516 Jakub Jelinek <jakub@redhat.com>
13517 Iain Sandoe <iains@gcc.gnu.org>
13520 * dwarf2out.c (output_cfa_loc): When required, apply the
13521 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13522 (output_loc_sequence): Likewise.
13523 (output_loc_operands_raw): Likewise.
13524 (output_loc_sequence_raw): Likewise.
13525 (output_cfa_loc): Likewise.
13526 (output_loc_list): Suppress register number adjustment when
13527 calling output_loc_sequence()
13528 (output_die): Likewise.
13530 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13532 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13534 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13535 xtensa_memory_move_cost): New functions.
13536 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13538 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13541 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13542 in the current directory.
13543 * configure: Rebuilt.
13545 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13547 * config/darwin.c (darwin_override_options): Add a hunk missed
13548 from the commit of r168571. Trim comment line lengths and
13549 correct indents of the preceding block.
13551 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13553 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13556 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13558 * common.opt (nostartfiles): New Driver option.
13560 2011-02-11 Xinliang David Li <davidxl@google.com>
13562 PR tree-optimization/47707
13563 * tree-chrec.c (convert_affine_scev): Keep type precision.
13565 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13567 PR tree-optimization/47420
13568 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13570 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13572 PR rtl-optimization/47614
13573 * rtl.h (check_for_inc_dec): Declare.
13574 * dse.c (check_for_inc_dec): Externalize...
13575 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13576 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13578 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13581 * gcc.c (main): Do not compile inputs if there were errors in
13583 * opts-common.c (read_cmdline_option): Check for wrong language
13584 after other error checks.
13586 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13588 * cgraph.c: Fix comment typos.
13589 * cgraph.h: Likewise.
13590 * cgraphunit.c: Likewise.
13591 * ipa-cp.c: Likewise.
13592 * ipa-inline.c: Likewise.
13593 * ipa-prop.c: Likewise.
13594 * ipa-pure-const.c: Likewise.
13595 * ipa-ref.c: Likewise.
13596 * ipa-reference.c: Likewise.
13598 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13601 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13603 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13606 * doc/sourcebuild.texi (Require Support): Document
13607 dg-require-ascii-locale.
13609 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13611 * doc/lto.texi (Write summary): Fix missing parentheses.
13613 2011-02-10 DJ Delorie <dj@redhat.com>
13615 * config/m32c/m32c.c (m32c_option_override): Disable
13616 -fcombine-stack-adjustments until flag value tracking and compare
13617 optimization can be rewritten.
13619 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13621 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13623 (PROCESSOR_DEFAULT64): Likewise.
13625 2011-02-10 Richard Henderson <rth@redhat.com>
13627 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13628 change from 2011-02-03.
13629 * config/rx/rx.c (flags_from_code): Likewise.
13630 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13631 is valid, n/pz otherwise.
13632 (rx_select_cc_mode): Return CCmode if Y is not zero.
13634 2011-02-10 Richard Guenther <rguenther@suse.de>
13636 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13638 2011-02-10 Richard Guenther <rguenther@suse.de>
13640 PR tree-optimization/47677
13641 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13643 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13646 * combine.c (make_compound_operation): Only change shifts into
13647 multiplication for SCALAR_INT_MODE_P.
13649 2011-02-10 Jie Zhang <jie@codesourcery.com>
13653 2011-02-05 Jie Zhang <jie@codesourcery.com>
13655 * web.c (entry_register): Don't clobber the number of the
13656 first uninitialized reference in used[].
13658 2011-02-09 Richard Guenther <rguenther@suse.de>
13660 PR tree-optimization/47664
13661 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13664 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13668 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13670 (PROCESSOR_DEFAULT64): Same.
13671 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13673 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13675 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13677 2011-02-09 Martin Jambor <mjambor@suse.cz>
13679 PR middle-end/45505
13680 * tree-sra.c (struct access): New flags grp_scalar_read and
13681 grp_scalar_write. Changed description of assignment read and write
13683 (dump_access): Dump new flags, reorder all of them.
13684 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13685 to detect multiple scalar reads.
13686 (analyze_access_subtree): Use the new scalar read write flags instead
13687 of the old flags. Adjusted comments.
13689 2011-02-08 DJ Delorie <dj@redhat.com>
13692 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13695 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13697 * config/m68k/uclinux.opt: New.
13698 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13700 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13702 * config/cris/elf.opt (sim): New Driver option.
13704 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13706 * config/xtensa/elf.opt: New.
13707 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13709 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13711 * config/vax/elf.opt: New.
13712 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13714 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13716 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13718 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13720 * config/gnu-user.opt: New.
13721 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13722 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13723 *-*-uclinux*): Use gnu-user.opt.
13725 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13727 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13728 * config/i386/gnu.h (CPP_SPEC): Likewise.
13730 2011-02-08 Ian Lance Taylor <iant@google.com>
13732 * common.opt (fcx-limited-range): Add SetByCombined flag.
13733 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13734 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13735 (fassociative-math, freciprocal-math): Likewise.
13736 (funsafe-math-optimizations): Likewise.
13737 * opth-gen.awk: Handle SetByCombined.
13738 * optc-gen.awk: Likewise.
13739 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13740 (set_unsafe_math_optimizations_flags): Likewise.
13741 * doc/options.texi (Option properties): Document SetByCombined.
13743 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13745 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13746 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13747 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13748 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13749 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13751 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13753 PR tree-optimization/46834
13754 PR tree-optimization/46994
13755 PR tree-optimization/46995
13756 * graphite-sese-to-poly.c (used_outside_reduction): New.
13757 (detect_commutative_reduction): Call used_outside_reduction.
13758 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13759 translate_scalar_reduction_to_array only when at least one
13760 loop-phi/close-phi tuple has been detected.
13762 2011-02-08 Richard Guenther <rguenther@suse.de>
13764 PR middle-end/47639
13765 * tree-vect-generic.c (expand_vector_operations_1): Update
13767 (expand_vector_operations): ... not here. Cleanup EH info
13768 and the CFG if required.
13770 2011-02-08 Richard Guenther <rguenther@suse.de>
13772 PR tree-optimization/47641
13773 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13774 require type compatibility.
13776 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13778 * gimple-low.c (lower_function_body): Don't remove the location of
13779 the return statement here.
13780 (lower_gimple_return): Do it here instead but only if the return
13781 statement is actually used twice.
13783 2011-02-08 Richard Guenther <rguenther@suse.de>
13785 PR tree-optimization/47632
13786 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13787 unused up_to_stmt parameter, return whether cfg-cleanup is
13788 necessary, remove EH info properly.
13789 (forward_propagate_into_gimple_cond): Adjust caller.
13790 (forward_propagate_into_cond): Likewise.
13791 (forward_propagate_comparison): Likewise.
13792 (tree_ssa_forward_propagate_single_use_vars): Make
13793 forward_propagate_comparison case similar to the two others.
13795 2011-02-08 Nick Clifton <nickc@redhat.com>
13797 * config/mn10300/mn10300.opt (mliw): New command line option.
13798 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13799 (liw_bundling): New automaton.
13800 (liw): New attribute.
13801 (liw_op): New attribute.
13802 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13803 (movsi_internal): Add LIW attributes.
13804 (andsi3): Likewise.
13805 (iorsi3): Likewise.
13806 (xorsi3): Likewise.
13807 (addsi3): Separate register and immediate alternatives.
13808 Add LIW attributes.
13809 (subsi3): Likewise.
13811 (aslsi3): Likewise.
13812 (lshrsi3): Likewise.
13813 (ashrsi3): Likewise.
13814 (liw): New pattern.
13815 * config/mn10300/mn10300.c (liw_op_names): New
13816 (mn10300_print_operand): Handle 'W' operand descriptor.
13817 (extract_bundle): New function.
13818 (check_liw_constraints): New function.
13819 (liw_candidate): New function.
13820 (mn10300_bundle_liw): New function.
13821 (mn10300_reorg): New function.
13822 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13823 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13824 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13825 __LIW__ or __NO_LIW__.
13826 * doc/invoke.texi: Describe the -mliw command line option.
13828 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13830 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13831 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13832 pthread_mutex_unlock): Remove.
13833 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13834 * config/pa/t-pa64: Likewise.
13835 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13836 shared libc if not linking against libpthread.
13837 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13839 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13842 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13843 on 10.6 and later to ensure that we always use the unwinder from
13844 the system. Only add -no_compact_unwind when tarteting darwin
13847 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13850 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13851 (vec_interleave_lowv2sf): Ditto.
13852 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13853 (vec_extract_oddv2sf): Ditto.
13855 2011-02-07 Mike Stump <mikestump@comcast.net>
13858 Add __ieee_divdc3 entry point.
13859 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13861 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13862 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13863 * config/darwin.c (darwin_rename_builtins): Add.
13864 * config/darwin-protos.h (darwin_rename_builtins): Add.
13866 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13869 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13872 2011-02-07 Mike Stump <mikestump@comcast.net>
13874 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13876 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13879 * config/avr/libgcc.S (exit): Move .endfunc
13881 2011-02-07 Richard Guenther <rguenther@suse.de>
13883 PR tree-optimization/47615
13884 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13885 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13886 (run_scc_vn): Initialize it.
13887 (visit_reference_op_load): Use it.
13888 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13890 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13892 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13893 DImode trapping arithmetic libfuncs.
13895 2011-02-07 Richard Guenther <rguenther@suse.de>
13897 PR tree-optimization/47621
13898 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13900 (execute_update_addresses_taken): ... here. Make it more
13901 conservative in what we accept.
13903 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13905 * config/sparc/freebsd.h (ASM_SPEC): Define.
13906 * config/sparc/vxworks.h (ASM_SPEC): Define.
13908 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13910 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13912 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13914 * doc/invoke.texi: Remove reference to compiler internals from
13915 user documentation.
13917 * reg-notes.def: Remove REG_VALUE_PROFILE.
13918 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13920 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13922 PR middle-end/47610
13923 * varasm.c (default_section_type_flags): If decl is NULL,
13924 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13926 2011-02-05 Jie Zhang <jie@codesourcery.com>
13929 * web.c (entry_register): Don't clobber the number of the
13930 first uninitialized reference in used[].
13932 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13934 PR tree-optimization/46194
13935 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13936 (build_classic_dist_vector_1): Do not represent classic distance
13937 vectors when the access functions are variating in different loops.
13939 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13941 * config/mips/iris6.opt: New.
13942 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13944 2011-02-04 Richard Henderson <rth@redhat.com>
13945 Steve Ellcey <sje@cup.hp.com>
13948 * config/ia64/predicates.md (mux1_brcst_element): New.
13949 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13950 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13951 (ia64_unpack_sign): New.
13952 (ia64_expand_unpack): Rewrite using new routines.
13953 (ia64_expand_widen_sum): Ditto.
13954 (ia64_expand_dot_prod_v8qi): Ditto.
13955 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13956 routines, add endian check.
13957 (pmpy2_even): Rename from pmpy2_r, add endian check.
13958 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13959 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13960 (vec_widen_smult_hi_v4hi): Ditto.
13961 (vec_widen_umult_lo_v4hi): Ditto.
13962 (vec_widen_umult_hi_v4hi): Ditto.
13963 (mulv2si3): Change endian checks.
13964 (sdot_prodv4hi): Rewrite with new calls.
13965 (udot_prodv4hi): New.
13966 (vec_pack_ssat_v4hi): Add endian check.
13967 (vec_pack_usat_v4hi): Ditto.
13968 (vec_pack_ssat_v2si): Ditto.
13969 (max1_even): Rename from max1_r, add endian check.
13970 (max1_odd): Rename from max1_l, add endian check.
13971 (*mux1_rev): Format change.
13972 (*mux1_mix): Ditto.
13973 (*mux1_shuf): Ditto.
13974 (*mux1_alt): Ditto.
13975 (*mux1_brcst_v8qi): Use new predicate.
13976 (vec_extract_evenv8qi): Remove endian check.
13977 (vec_extract_oddv8qi): Ditto.
13978 (vec_interleave_lowv4hi): Format change.
13979 (vec_interleave_highv4hi): Ditto.
13980 (mix2_even): Rename from mix2_r, add endian check.
13981 (mix2_odd): Rename from mux2_l, add endian check.
13982 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13983 (vec_extract_evenodd_helper): Format change.
13984 (vec_extract_evenv4hi): Remove endian check.
13985 (vec_extract_oddv4hi): Remove endian check.
13986 (vec_interleave_lowv2si): Format change.
13987 (vec_interleave_highv2si): Format change.
13988 (vec_initv2si): Remove endian check.
13989 (vecinit_v2si): Add endian check.
13990 (reduc_splus_v2sf): Add endian check.
13991 (reduc_smax_v2sf): Ditto.
13992 (reduc_smin_v2sf): Ditto.
13993 (vec_initv2sf): Remove endian check.
13994 (fpack): Add endian check.
13995 (fswap): Add endian check.
13996 (vec_interleave_highv2sf): Add endian check.
13997 (vec_interleave_lowv2sf): Add endian check.
13998 (fmix_lr): Add endian check.
13999 (vec_setv2sf): Format change.
14000 (*vec_extractv2sf_0_be): Use shift to extract operand.
14001 (*vec_extractv2sf_1_be): New.
14002 (vec_pack_trunc_v4hi): Add endian check.
14003 (vec_pack_trunc_v2si): Format change.
14005 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14007 PR inline-asm/23200
14008 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14009 do bb, locus and block comparison and disallow loads if it is not set.
14010 (stmt_is_replaceable_p): New function.
14011 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14013 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14014 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14016 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14018 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14020 * config/rs6000/xilinx.opt: New.
14021 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14023 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14025 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14027 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14029 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14030 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14031 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14032 secondary_reload_info, xtensa_secondary_reload): Remove.
14033 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14034 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14035 (xtensa_preferred_reload_class): Make static. Change return and
14036 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14037 Use CONST_DOUBLE_P predicate.
14038 (xtensa_preferred_output_reload_class): New function.
14039 (xtensa_secondary_reload): Make static.
14041 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14043 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14044 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14045 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14047 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14049 PR middle-end/31490
14050 * output.h (SECTION_RELRO): Define.
14051 (SECTION_MACH_DEP): Adjust.
14052 (get_variable_section): New prototype.
14053 * varpool.c (varpool_finalize_named_section_flags): New function.
14054 (varpool_assemble_pending_decls): Call it.
14055 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14056 * cgraphunit.c (cgraph_output_in_order): Call
14057 varpool_finalize_named_section_flags.
14058 * varasm.c (get_section): Allow section flags conflicts between
14059 relro and read-only sections if the section hasn't been declared yet.
14060 Set SECTION_OVERRIDE after diagnosing section type conflict.
14061 (get_variable_section): No longer static.
14062 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14063 readonly sections that need relocations.
14064 (decl_readonly_section_1): New function.
14065 (decl_readonly_section): Use it.
14068 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14069 Steve Ellcey <sje@cup.hp.com>
14071 PR middle-end/31490
14072 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14073 if section attribute used.
14075 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14077 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14078 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14079 (darwin_init_sections): Remove assertion.
14081 2011-02-03 Nick Clifton <nickc@redhat.com>
14083 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14085 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14086 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14087 instead of "n" and "pz".
14088 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14091 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14094 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14095 fma, expand FMA_EXPR as fma{,f,l} call.
14098 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14099 copy them into a unsigned char variable and pass address of it to
14100 lto_output_data_stream.
14103 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14104 around backend_init_target and lang_dependent_init_target calls.
14105 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14106 (verify_cgraph_node): Don't call set_cfun here. Use
14107 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14108 Set error_found for incorrectly represented calls to thunks.
14110 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14113 PR rtl-optimization/43494
14114 * rtl.h (for_each_inc_dec_fn): New type.
14115 (for_each_inc_dec): Declare.
14116 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14117 (for_each_inc_dec_find_inc_dec): New fn.
14118 (for_each_inc_dec_find_mem): New fn.
14119 (for_each_inc_dec): New fn.
14120 * dse.c (struct insn_size): Remove.
14121 (replace_inc_dec, replace_inc_dec_mem): Remove.
14122 (emit_inc_dec_insn_before): New fn.
14123 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14124 (canon_address): Pass mem modes to cselib_lookup.
14125 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14126 (cselib_lookup_from_insn): Likewise.
14127 (cselib_subst_to_values): Likewise.
14128 * cselib.c (find_slot_memmode): New var.
14129 (cselib_find_slot): New fn. Use it instead of
14130 htab_find_slot_with_hash everywhere.
14131 (entry_and_rtx_equal_p): Use find_slot_memmode.
14132 (autoinc_split): New fn.
14133 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14134 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14135 Deal with autoinc. Special-case recursion into MEMs.
14136 (cselib_hash_rtx): Likewise.
14137 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14138 address and MEM modes.
14139 (cselib_subst_to_values): Add memmode, pass it on.
14141 (cselib_lookup): Add memmode argument, pass it on.
14142 (cselib_lookup_from_insn): Add memmode.
14143 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14144 (struct cselib_record_autoinc_data): New.
14145 (cselib_record_autoinc_cb): New fn.
14146 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14147 mode to cselib_lookup. Reset autoinced REGs here instead of...
14148 (cselib_process_insn): ... here.
14149 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14151 (add_uses): Likewise, also to cselib_subst_to_values.
14152 (add_stores): Likewise.
14153 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14154 cselib_subst_to_values.
14155 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14156 * gcse.c (do_local_cprop): Adjusted.
14157 * postreload.c (reload_cse_simplify_set): Adjusted.
14158 (reload_cse_simplify_operands): Adjusted.
14159 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14161 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14163 PR tree-optimization/45122
14164 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14165 unsafe assumptions when there's more than one loop exit.
14167 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14170 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14171 Document using vector double with the load/store builtins, and
14172 that the load/store builtins always use Altivec instructions.
14174 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14175 to use altivec memory instructions, even on VSX.
14176 (vector_altivec_store_<mode>): Ditto.
14178 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14181 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14182 V2DF, V2DI support to load/store overloaded builtins.
14184 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14185 altivec load/store builtins for V2DF/V2DI types.
14187 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14188 set avoid indexed addresses on power6 if -maltivec.
14189 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14190 vector_altivec_load/vector_altivec_store builtins.
14191 (altivec_expand_st_builtin): Ditto.
14192 (altivec_expand_builtin): Add VSX memory builtins.
14193 (rs6000_init_builtins): Add V2DI types to internal types.
14194 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14195 load/store builtins.
14196 (rs6000_address_for_altivec): Insure memory address is appropriate
14199 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14200 vec_vsx_ld and vec_vsx_st.
14201 (vsx_store_<mode>): Ditto.
14203 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14204 variables to hold long long types for VSX vector memory builtins.
14205 (RS6000_BTI_unsigned_long_long): Ditto.
14206 (long_long_integer_type_internal_node): Ditti.
14207 (long_long_unsigned_type_internal_node): Ditti.
14209 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14210 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14211 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14213 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14215 (vec_vsx_st): Ditto.
14217 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14219 * config/pa/pa-hpux10.opt: New.
14220 * config/hpux11.opt (pthread): New Driver option.
14221 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14222 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14224 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14226 * config/ia64/vms.opt: New.
14227 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14229 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14232 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14233 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14234 generator functions.
14235 (vsx_floatuns<VSi><mode>2): Ditto.
14236 (vsx_fix_trunc<mode><VSi>2): Ditto.
14237 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14239 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14241 * config/i386/djgpp.opt (posix): New Driver option.
14243 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14245 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14246 Move to the unsupported targets list.
14248 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14250 PR rtl-optimization/47525
14251 * df-scan.c: Update copyright years.
14252 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14253 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14255 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14257 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14258 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14259 (ASM_OUTPUT_ASCII): Remove.
14260 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14262 2011-02-02 Jeff Law <law@redhat.com>
14264 PR middle-end/47543
14265 * reload.c (find_reloads_address): Handle reg+d address where both
14266 components are invalid by reloading the entire address.
14268 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14269 Richard Guenther <rguenther@suse.de>
14271 PR tree-optimization/40979
14273 * passes.c (init_optimization_passes): After LIM call copy_prop
14274 and DCE to clean up.
14275 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14277 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14279 PR tree-optimization/47576
14280 PR tree-optimization/47555
14281 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14282 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14283 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14284 * tree-scalar-evolution.c (follow_ssa_edge): Use
14285 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14287 2011-02-02 Richard Guenther <rguenther@suse.de>
14289 PR tree-optimization/47566
14290 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14292 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14296 * tree-inline.c (declare_return_variable): Remove unused caller
14301 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14302 * cfgexpand.c (account_used_vars_for_block): Use them.
14303 * tree-nrv.c (tree_nrv): Likewise.
14304 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14305 (dump_scope_block): Likewise.
14306 (remove_unused_locals): Likewise.
14310 * tree-inline.c (declare_return_variable): Add result decl to
14311 local decls only once.
14312 * gimple-low.c (record_vars_into): Mark newly-created variables
14315 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14321 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14323 (no_real_insns_p, schedule_block, set_priorities): Drop special
14324 treatment of boundary debug insns.
14325 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14326 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14327 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14328 (BOUNDARY_DEBUG_INSN_P): Likewise.
14329 (SCHEDULE_DEBUG_INSN_P): Likewise.
14330 * sched-rgn.c (init_ready_list): Drop special treatment of
14331 boundary debug insns.
14332 * final.c (rest_of_clean_state): Clear notes' BB.
14334 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14336 * config/openbsd.opt (assert=): New Driver option.
14338 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14340 * config/i386/nto.opt: New.
14341 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14343 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14345 * config/i386/netware.opt: New.
14346 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14348 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14350 * config/interix.opt (posix): New Driver option.
14352 2011-02-01 DJ Delorie <dj@redhat.com>
14354 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14356 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14359 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14361 PR tree-optimization/47561
14362 * toplev.c (process_options): Print the Graphite flags. Add
14363 flag_loop_flatten to the list of options requiring Graphite.
14365 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14367 * config/i386/cygming.opt (posix): New Driver option.
14369 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14371 * config/arm/vxworks.opt: New.
14372 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14374 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14376 * config/alpha/elf.opt: New.
14377 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14378 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14380 2011-02-01 Richard Guenther <rguenther@suse.de>
14382 PR tree-optimization/47559
14383 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14384 store-motion on references that can throw.
14386 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14388 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14389 * tree-pass.h (TDF_CSELIB): New macro.
14390 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14391 cselib_lookup): Check for it rather than for TDF_DETAILS.
14393 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14396 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14397 is HOST_BIT_BUCKET.
14399 * opts.c (finish_options): Don't add x_aux_base_name if it is
14402 2011-02-01 Richard Guenther <rguenther@suse.de>
14404 PR tree-optimization/47555
14406 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14408 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14410 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14413 * config/lm32/t-lm32: Add multilib for all CPU options.
14415 2011-02-01 Richard Guenther <rguenther@suse.de>
14417 PR tree-optimization/47541
14418 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14419 sure to have a field at offset zero.
14421 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14423 * config/arc/arc.opt (EB, EL): New Driver options.
14425 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14427 * config/alpha/osf5.opt: New.
14428 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14430 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14432 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14434 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14436 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14437 -floop-interchange.
14438 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14439 is an alias of -floop-interchange and that it requires the
14440 Graphite infrastructure.
14441 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14442 flag_loop_interchange based on the value of flag_tree_loop_linear.
14444 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14445 Richard Guenther <rguenther@suse.de>
14447 PR tree-optimization/47538
14448 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14449 type instead of r1type, except for comparisons. For right
14450 shifts and comparisons punt if there are mismatches in
14451 sizetype vs. non-sizetype types.
14453 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14455 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14458 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14460 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14462 * configure: Regenerate.
14464 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14466 * configure.ac (gcc_cv_ld_static_option): Define.
14467 (gcc_cv_ld_dynamic_option): Define.
14468 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14470 (HAVE_LD_STATIC_DYNAMIC): Update message.
14471 (LD_STATIC_OPTION): Define.
14472 (LD_DYNAMIC_OPTION): Define.
14473 * configure: Regenerate.
14474 * config.in: Regenerate.
14475 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14476 HAVE_LD_STATIC_DYNAMIC]: Use them.
14478 2011-01-31 Nick Clifton <nickc@redhat.com>
14480 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14481 registers inside interrupt handlers if the handler is not a leaf
14484 2011-01-31 Nick Clifton <nickc@redhat.com>
14486 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14487 reg_renumber returning an INVALID_REGNUM.
14489 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14492 * doc/install.texi: Document host options discarded when cross
14493 configuring target libraries.
14495 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14498 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14501 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14503 (no_real_insns_p, schedule_block, set_priorities): Drop special
14504 treatment of boundary debug insns.
14505 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14506 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14507 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14508 (BOUNDARY_DEBUG_INSN_P): Likewise.
14509 (SCHEDULE_DEBUG_INSN_P): Likewise.
14510 * sched-rgn.c (init_ready_list): Drop special treatment of
14511 boundary debug insns.
14512 * final.c (rest_of_clean-state): Clear notes' BB.
14514 2011-01-31 Alan Modra <amodra@gmail.com>
14516 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14517 toc relative expressions as we do in print_operand_address.
14519 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14521 * doc/extend.texi: Follow spelling conventions.
14522 * doc/invoke.texi: Fix a typo.
14524 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14526 * config/hpux11.opt: New.
14527 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14528 ia64*-*-hpux*): Use hpux11.opt.
14530 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14532 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14535 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14537 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14540 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14542 * doc/install.texi (Binaries): Remove outdated reference for
14543 Motorola 68HC11/68HC12 downloads.
14545 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14547 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14550 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14553 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14556 2011-01-28 Ahmad Sharif <asharif@google.com>
14558 * value-prof.c (check_counter): Corrected error message.
14560 2011-01-29 Jie Zhang <jie@codesourcery.com>
14562 * config/arm/arm.c (arm_legitimize_reload_address): New.
14563 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14564 arm_legitimize_reload_address.
14565 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14567 2011-01-28 Ian Lance Taylor <iant@google.com>
14569 * godump.c (go_define): Ignore macros whose definitions include
14570 two adjacent operands.
14572 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14575 * varasm.c (force_const_mem): Store copy of x in desc->constant
14576 instead of x itself.
14577 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14578 itself into REG_EQUAL note.
14580 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14582 * config/freebsd.opt (posix, rdynamic): New Driver options.
14584 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14586 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14587 -Bstatic/-Bdynamic.
14588 * configure: Regenerate.
14590 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14592 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14593 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14595 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14597 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14598 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14599 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14600 (s390_preferred_reload_class): Make static. Change return and
14601 'rclass' argument type to reg_class_t.
14603 2011-01-27 Jan Hubicka <jh@suse.cz>
14605 PR middle-end/46949
14606 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14607 (process_function_and_variable_attributes): Check defined weakrefs.
14609 2011-01-27 Martin Jambor <mjambor@suse.cz>
14611 PR tree-optimization/47228
14612 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14613 build_ref_for_offset.
14615 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14617 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14619 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14621 PR rtl-optimization/46856
14622 * postreload.c (reload_combine_recognize_const_pattern): Do not
14623 separate cc0 setter and user on cc0 targets.
14625 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14628 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14629 passed a VOID_TYPE expression, immediately emit an error and
14630 return error_mark_node.
14632 2011-01-26 Jeff Law <law@redhat.com>
14634 PR rtl-optimization/47464
14635 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14636 rather than may_trap_p as needed.
14638 2011-01-26 DJ Delorie <dj@redhat.com>
14640 PR rtl-optimization/46878
14641 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14642 setter/user dependency as well.
14644 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14646 PR rtl-optimization/44469
14647 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14648 after removing trivially dead basic blocks.
14650 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14652 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14653 * config/frv/frv.h (LINK_SPEC): Likewise.
14654 * config/i386/netware.h (LINK_SPEC): Likewise.
14655 * config/m68k/linux.h (ASM_SPEC): Likewise.
14656 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14657 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14658 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14659 * config/sparc/linux.h (ASM_SPEC): Likewise.
14660 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14661 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14663 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14665 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14666 * config/frv/frv.h (ASM_SPEC): Likewise.
14667 * config/m68k/linux.h (ASM_SPEC): Likewise.
14668 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14669 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14670 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14671 * config/sparc/linux.h (ASM_SPEC): Likewise.
14672 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14673 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14675 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14677 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14678 * config/frv/frv.h (LINK_SPEC): Likewise.
14679 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14681 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14683 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14684 * config/frv/frv.h (ASM_SPEC): Likewise.
14685 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14686 * config/m68k/linux.h (ASM_SPEC): Likewise.
14687 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14688 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14689 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14690 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14691 * config/sparc/linux.h (ASM_SPEC): Likewise.
14692 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14693 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14694 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14696 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14699 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14701 (vec_extract_evenodd_help): Ditto.
14702 (vec_extract_evenv4hi): Ditto.
14703 (vec_extract_oddv4hi): Ditto.
14704 (vec_interleave_lowv2si): Ditto.
14705 (vec_interleave_highv2si): Ditto.
14706 (vec_extract_evenv2si): Ditto.
14707 (vec_extract_oddv2si: Ditto.
14708 (vec_pack_trunc_v2si): Ditto.
14710 2011-01-22 Jan Hubicka <jh@suse.cz>
14713 * cgraph.h (cgraph_local_info): New field can_change_signature.
14714 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14715 signature can change.
14716 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14718 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14719 (cgraph_function_versioning): We can not change signature of functions
14720 that don't allow that.
14721 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14722 (lto_input_node): Likewise.
14723 * ipa-inline.c (compute_inline_parameters): Compute
14724 local.can_change_signature.
14725 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14726 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14727 functions that can not change signature.
14728 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14729 init_cumulative_args): Do not use local calling conventions
14730 for functions that can not change signature.
14732 2011-01-22 Jan Hubicka <jh@suse.cz>
14734 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14736 2011-01-26 Richard Guenther <rguenther@suse.de>
14738 PR tree-optimization/47190
14739 * cgraphunit.c (process_common_attributes): New function.
14740 (process_function_and_variable_attributes): Use it.
14742 2011-01-26 Richard Guenther <rguenther@suse.de>
14745 * cgraphbuild.c (record_eh_tables): Record reference to personality
14748 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14751 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14752 non-debug insns from moving up.
14754 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14757 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14758 t-dlldir{,-x} fragment for build and add it to tmake_file.
14759 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14760 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14761 * config/i386/t-dlldir: New file.
14762 (SHLIB_DLLDIR): Define.
14763 * config/i386/t-dlldir-x: New file.
14764 (SHLIB_DLLDIR): Define.
14765 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14766 (SHLIB_INSTALL): Use it.
14768 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14771 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14772 lower bound of the allowed Thumb-2 coprocessor load/store
14773 index range to -256. Add explaining comment.
14775 2011-01-25 Ian Lance Taylor <iant@google.com>
14777 * godump.c (go_define): Improve lexing of macro expansion to only
14778 accept expressions which match Go spec.
14780 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14783 * tree.c (handle_dll_attribute): Handle it.
14784 * doc/extend.texi (@item dllexport): Mention it.
14785 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14787 2011-01-25 Ian Lance Taylor <iant@google.com>
14789 PR tree-optimization/26854
14790 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14791 (decl_jump_unsafe): Move higher in file, with no other change.
14792 (bind): Set has_jump_unsafe_decl if appropriate.
14793 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14794 (check_earlier_gotos): Likewise.
14795 (c_check_switch_jump_warnings): Likewise.
14797 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14799 * doc/invoke.texi (Warning Options): Add missing hyphen.
14800 (-fprofile-dir): Minor grammatical fixes.
14801 (-fbranch-probabilities): Likewise.
14803 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14807 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14809 (no_real_insns_p, schedule_block, set_priorities): Drop special
14810 treatment of boundary debug insns.
14811 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14812 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14813 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14814 (BOUNDARY_DEBUG_INSN_P): Likewise.
14815 (SCHEDULE_DEBUG_INSN_P): Likewise.
14816 * sched-rgn.c (init_ready_list): Drop special treatment of
14817 boundary debug insns.
14818 * final.c (rest_of_clean-state): Clear notes' BB.
14820 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14822 * Makefile.in (LAMBDA_H): Removed.
14823 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14824 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14825 lambda-trans.o, and tree-loop-linear.o.
14826 (lto-symtab.o): Remove dependence on LAMBDA_H.
14827 (tree-loop-linear.o): Remove rule.
14828 (lambda-mat.o): Same.
14829 (lambda-trans.o): Same.
14830 (lambda-code.o): Same.
14831 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14832 (tree-vect-slp.o): Same.
14833 * hwint.h (gcd): Moved here.
14834 (least_common_multiple): Same.
14835 * lambda-code.c: Removed.
14836 * lambda-mat.c: Removed.
14837 * lambda-trans.c: Removed.
14838 * lambda.h: Removed.
14839 * tree-loop-linear.c: Removed.
14840 * lto-symtab.c: Do not include lambda.h.
14841 * omega.c (gcd): Removed.
14842 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14843 * tree-data-ref.c (print_lambda_vector): Moved here.
14844 (lambda_vector_copy): Same.
14845 (lambda_matrix_copy): Same.
14846 (lambda_matrix_id): Same.
14847 (lambda_vector_first_nz): Same.
14848 (lambda_matrix_row_add): Same.
14849 (lambda_matrix_row_exchange): Same.
14850 (lambda_vector_mult_const): Same.
14851 (lambda_vector_negate): Same.
14852 (lambda_matrix_row_negate): Same.
14853 (lambda_vector_equal): Same.
14854 (lambda_matrix_right_hermite): Same.
14855 * tree-data-ref.h: Do not include lambda.h.
14856 (lambda_vector): Moved here.
14857 (lambda_matrix): Same.
14858 (dependence_level): Same.
14859 (lambda_transform_legal_p): Removed declaration.
14860 (lambda_collect_parameters): Same.
14861 (lambda_compute_access_matrices): Same.
14862 (lambda_vector_gcd): Same.
14863 (lambda_vector_new): Same.
14864 (lambda_vector_clear): Same.
14865 (lambda_vector_lexico_pos): Same.
14866 (lambda_vector_zerop): Same.
14867 (lambda_matrix_new): Same.
14868 * tree-flow.h (least_common_multiple): Removed declaration.
14869 * tree-parloops.c (lambda_trans_matrix): Moved here.
14870 (LTM_MATRIX): Same.
14871 (LTM_ROWSIZE): Same.
14872 (LTM_COLSIZE): Same.
14873 (LTM_DENOMINATOR): Same.
14874 (lambda_trans_matrix_new): Same.
14875 (lambda_matrix_vector_mult): Same.
14876 (lambda_transform_legal_p): Same.
14877 * tree-pass.h (pass_linear_transform): Removed declaration.
14878 * tree-ssa-loop.c (tree_linear_transform): Removed.
14879 (gate_tree_linear_transform): Removed.
14880 (pass_linear_transform): Removed.
14881 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14882 flag_loop_interchange.
14884 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14886 PR tree-optimization/47265
14887 PR tree-optimization/47443
14888 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14889 if name still has some uses.
14891 2011-01-25 Martin Jambor <mjambor@suse.cz>
14893 PR tree-optimization/47382
14894 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14895 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14897 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14899 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14900 sjlj_except_unwind_info.
14902 2011-01-25 Richard Guenther <rguenther@suse.de>
14904 PR tree-optimization/47426
14905 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14906 visible functions results escape.
14908 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14911 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14912 (arm_get_frame_offsets): Use it.
14914 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14915 Jakub Jelinek <jakub@redhat.com>
14917 PR tree-optimization/47271
14918 * tree-if-conv.c (bb_postdominates_preds): New.
14919 (if_convertible_bb_p): Call bb_postdominates_preds.
14920 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14921 (predicate_scalar_phi): Call bb_postdominates_preds.
14923 2011-01-25 Nick Clifton <nickc@redhat.com>
14925 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14926 * config/rx/rx.c (rx_function_value): Likewise.
14927 (rx_promote_function_mode): Likewise.
14928 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14929 in order to make it legitimate.
14930 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14931 make sure that the first operand is the same as the result register.
14932 (addsi3_unspec): Delete.
14933 (subdi3): Do not accept immediate operands.
14934 (subdi3_internal): Likewise.
14936 2011-01-25 Jeff Law <law@redhat.com>
14938 PR rtl-optimization/37273
14939 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14940 handle them like argument loads from stack slots. Do not double
14941 count memory for memory constants and argument loads from stack slots.
14943 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14945 PR tree-optimization/47427
14946 PR tree-optimization/47428
14947 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14948 coalesce if the new root var would be TREE_READONLY.
14950 2011-01-25 Richard Guenther <rguenther@suse.de>
14952 PR middle-end/47414
14953 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14954 correct type for TBAA.
14956 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14958 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14959 (close_phi_written_to_memory): Call for_each_index with
14960 dr_indices_valid_in_loop.
14962 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14964 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14965 when it is initialized.
14967 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14969 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14970 call to graphite_find_data_references_in_stmt.
14971 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14972 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14973 call to graphite_find_data_references_in_stmt.
14974 (analyze_drs_in_stmts): Same.
14975 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14976 in which the scalar analysis of indices is performed.
14977 (create_data_ref): Same. Update call to dr_analyze_indices.
14978 (find_data_references_in_stmt): Update call to create_data_ref.
14979 (graphite_find_data_references_in_stmt): Same.
14980 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14982 (create_data_ref): Same.
14983 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14984 call to create_data_ref.
14986 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14988 * graphite-sese-to-poly.c (build_poly_scop): Move
14989 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14991 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14993 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14994 VAR_DECL, PARM_DECL, and RESULT_DECL.
14996 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14998 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14999 in a reduction PBB.
15000 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15001 that have already been marked as PBB_IS_REDUCTION.
15003 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15005 * graphite-scop-detection.c (same_close_phi_node): New.
15006 (remove_duplicate_close_phi): New.
15007 (make_close_phi_nodes_unique): New.
15008 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15010 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15012 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15013 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15014 of both data references to be the same.
15016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15018 * graphite-dependences.c (build_lexicographical_constraint): Remove
15019 the gdim parameter.
15020 (build_lexicographical_constraint): Adjust call to
15021 ppl_powerset_is_empty.
15022 (dependence_polyhedron): Same.
15023 (graphite_legal_transform_dr): Same.
15024 (graphite_carried_dependence_level_k): Same.
15025 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15027 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15031 * graphite-sese-to-poly.c
15032 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15033 (close_phi_written_to_memory): New.
15034 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15037 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15039 * doc/install.texi: Update the expected version number of PPL to 0.11.
15040 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15041 #if PPL_VERSION_MINOR < 11.
15043 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15045 * graphite-dependences.c: Include graphite-cloog-util.h.
15046 (new_poly_ddr): Inlined into dependence_polyhedron.
15047 (free_poly_ddr): Moved close by new_poly_ddr.
15048 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15049 Early return NULL when ppl_powerset_is_empty returns true.
15050 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15051 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15052 (graphite_legal_transform_dr): Call new_poly_ddr.
15053 (graphite_carried_dependence_level_k): Same.
15054 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15055 (dot_transformed_deps_stmt_1): Removed.
15056 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15057 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15058 (dot_deps_1): Call dot_deps_2.
15059 * Makefile.in (graphite-dependences.o): Add missing dependence on
15060 graphite-cloog-util.h.
15062 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15064 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15065 (build_lexicographical_constraint): Same.
15066 (dependence_polyhedron_1): Same.
15067 (graphite_legal_transform_dr): Same.
15068 (graphite_carried_dependence_level_k): Same.
15069 * graphite-ppl.c (ppl_powerset_is_empty): New.
15070 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15071 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15073 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15075 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15076 the "a followed by b" relation and document it.
15078 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15080 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15081 iteration when the bag of constraints is empty.
15083 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15085 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15087 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15089 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15090 nest and two loop depths as parameters.
15091 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15092 lst_perfect_nestify.
15094 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15096 * graphite-dependences.c (print_pddr): Call
15097 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15099 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15101 * graphite-ppl.c (debug_gmp_value): New.
15102 * graphite-ppl.h (debug_gmp_value): Declared.
15104 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15106 * doc/install.texi: Document availability of cloog-0.16.
15108 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15110 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15111 invalid postdominance info.
15113 2011-01-24 Jan Hubicka <jh@suse.cz>
15116 * doc/extend.texi (weak pragma): Drop claim that it must
15117 appear before definition.
15118 * varasm.c (merge_weak, declare_weak): Only sanity check
15119 that DECL is not output at a time it is declared weak.
15121 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15123 * machmode.def: Fixed comments.
15125 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15127 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15129 2011-01-24 Paul Koning <ni1d@arrl.net>
15131 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15134 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15137 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15138 (block_info): Add scanned and prev.
15139 (move_or_delete_vzeroupper_2): Return if the basic block
15140 has been scanned and the upper 128bit state is unchanged
15141 from the last scan.
15142 (move_or_delete_vzeroupper_1): Return true if the exit
15144 (move_or_delete_vzeroupper): Visit basic blocks using the
15145 work-list based algorithm based on vt_find_locations in
15148 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15150 2011-01-24 Nick Clifton <nickc@redhat.com>
15152 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15153 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15154 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15155 then define __v850e1__.
15156 * doc/invoke.texi: Document -mv850es.
15158 2011-01-24 Richard Henderson <rth@redhat.com>
15160 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15161 compound unordered comparisons.
15162 * config/rx/rx.c (rx_split_fp_compare): Remove.
15163 * config/rx/rx-protos.h: Update.
15164 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15165 (cbranchsf4): Don't call rx_split_fp_compare.
15166 (*cbranchsf4): Use rx_split_cbranch.
15167 (*cmpsf): Don't accept "i" constraint.
15168 (*conditional_branch): Only valid after reload.
15169 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15171 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15174 * config/rs6000/altivec.md (vector constant splitters): Add
15175 support for creating vector single precision constants if -mvsx is
15176 used and we would create the constant using Altivec primitives.
15178 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15179 Richard Sandiford <rdsandiford@googlemail.com>
15181 PR rtl-optimization/47166
15182 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15183 mechanism for PRE_MODIFY and POST_MODIFY.
15184 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15187 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15189 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15191 2011-01-22 Jan Hubicka <jh@suse.cz>
15194 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15196 2011-01-22 Jan Hubicka <jh@suse.cz>
15198 PR tree-optimization/43884
15200 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15201 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15203 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15205 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15206 * config/s390/s390.c (s390_register_move_cost,
15207 s390_memory_move_cost): New.
15208 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15210 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15212 PR middle-end/47401
15213 * except.c (sjlj_assign_call_site_values): Move setting the
15214 crtl->uses_eh_lsda flag to ...
15215 (sjlj_mark_call_sites): ... here.
15216 (sjlj_emit_function_enter): Support NULL dispatch label.
15217 (sjlj_build_landing_pads): In a function with no landing pads
15218 that still has must-not-throw regions, generate code to register
15219 a personality function with empty LSDA.
15221 2011-01-21 Richard Henderson <rth@redhat.com>
15223 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15225 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15227 * compare-elim.c: New file.
15228 * Makefile.in (OBJS-common): Add it.
15229 (compare-elim.o): New.
15230 * common.opt (fcompare-elim): New.
15231 * opts.c (default_options_table): Add OPT_fcompare_elim.
15232 * tree-pass.h (pass_compare_elim_after_reload): New.
15233 * passes.c (init_optimization_passes): Add it.
15234 * recog.h: Protect against re-inclusion.
15235 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15236 * doc/invoke.texi (-fcompare-elim): Document it.
15237 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15238 * doc/tm.texi: Rebuild.
15240 2011-01-22 Nick Clifton <nickc@redhat.com>
15242 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15243 rx_split_fp_compare.
15245 2011-01-22 Nick Clifton <nickc@redhat.com>
15247 * config/rx/rx.md (UNSPEC_CONST): New.
15248 (deallocate_and_return): Wrap the amount popped off the stack in
15249 an UNSPEC_CONST in order to stop it being rejected by
15250 -mmax-constant-size.
15251 (pop_and_return): Add a "(return)" rtx.
15252 (call): Drop the immediate operand.
15253 (call_internal): Likewise.
15254 (call_value): Likewise.
15255 (call_value_internal): Likewise.
15256 (sibcall_internal): Likewise.
15257 (sibcall_value_internal): Likewise.
15258 (sibcall): Likewise. Generate an explicit call using
15260 (sibcall_value): Likewise.
15261 (mov<>): FAIL if a constant operand is not legitimate.
15262 (addsi3_unpsec): New pattern.
15264 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15265 (ok_for_max_constant): New function.
15266 (gen_safe_add): New function.
15267 (rx_expand_prologue): Use gen_safe_add.
15268 (rx_expand_epilogue): Likewise.
15269 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15272 2011-01-21 Jeff Law <law@redhat.com>
15274 PR tree-optimization/47053
15275 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15276 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15277 statements are deleted.
15278 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15279 is nonempty, then purge dead edges and cleanup the CFG.
15281 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15284 Temporarily revert:
15285 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15287 * tree-dfa.c (create_var_ann): Mark variable as used.
15289 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15291 PR middle-end/45566
15292 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15293 notes from other section in hot/cold partitioning even if
15294 last_action is -3. Increment call_site_base.
15296 PR rtl-optimization/47366
15297 * fwprop.c (forward_propagate_into): Return bool. If
15298 any changes are made, -fnon-call-exceptions is used and
15299 REG_EH_REGION note is present, call purge_dead_edges
15300 and return true if it purged anything.
15301 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15302 any EH edges were purged.
15304 2011-01-21 Jeff Law <law@redhat.com>
15306 PR rtl-optimization/41619
15307 * caller-save.c (setup_save_areas): Break out code to determine
15308 which hard regs are live across calls by examining the reload chains
15309 so that it is always used.
15310 Eliminate code which checked REG_N_CALLS_CROSSED.
15312 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15314 PR tree-optimization/47355
15315 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15316 NOP has non-debug uses beyond PHIs in new_bb.
15318 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15321 * cfgexpand.c (account_used_vars_for_block): Only account vars
15322 that are annotated as used.
15323 (estimated_stack_frame_size): Don't set TREE_USED.
15324 * tree-dfa.c (create_var_ann): Mark variable as used.
15326 2011-01-21 Richard Guenther <rguenther@suse.de>
15328 PR middle-end/47395
15329 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15331 2011-01-21 Richard Guenther <rguenther@suse.de>
15333 PR tree-optimization/47365
15334 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15335 (vn_reference_lookup_pieces): Adjust.
15336 (vn_reference_lookup): Likewise.
15337 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15338 (vn_reference_lookup_3): Only look through kills if in
15339 VN_WALKREWRITE mode.
15340 (vn_reference_lookup_pieces): Adjust.
15341 (vn_reference_lookup): Likewise.
15342 (visit_reference_op_load): Likewise.
15343 (visit_reference_op_store): Likewise.
15344 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15345 (compute_avail): Likewise.
15346 (eliminate): Likewise.
15348 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15350 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15351 DECL_IGNORED_P non-reg vars if they are used.
15353 PR tree-optimization/47391
15354 * varpool.c (const_value_known_p): Return false if
15357 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15360 * config/i386/i386.c (ix86_local_alignment): Handle
15361 case for va_list_type_node is nil.
15362 (ix86_canonical_va_list_type): Likewise.
15364 2011-01-21 Alan Modra <amodra@gmail.com>
15366 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15367 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15369 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15371 * config/arm/arm.md (define_attr type): Rename f_load
15372 and f_store to f_fpa_load and f_fpa_store. Update.
15373 (write_conflict): Deal with rename fallout.
15374 (*push_fp_multi): Likewise.
15375 * config/arm/fpa.md (f_load): Use f_fpa_load.
15376 (f_store): Use f_fpa_store.
15377 (*movsf_fpa): Likewise.
15378 (*movdf_fpa): Likewise.
15379 (*movxf_fpa): Likewise.
15380 (*thumb2_movsf_fpa): Likewise.
15381 (*thumb2_movdf_fpa): Likewise.
15382 (*thumb2_movxf_fpa): Likewise.
15383 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15384 f_loadd and f_stored.
15385 (*thumb2_movdi_vfp): Likewise.
15386 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15387 (*thumb2_movsi_vfp): Likewise.
15388 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15389 Use f_loads instead of f_load.
15390 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15392 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15394 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15395 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15396 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15397 (xtensa_mode_dependent_address_p): New function.
15398 (constantpool_address_p): Make static. Change return type to bool.
15399 Change argument type to const_rtx. Use CONST_INT_P predicate.
15401 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15404 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15406 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15409 * cfgexpand.c (expand_debug_expr): Instead of generating
15410 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15413 2011-01-20 Richard Guenther <rguenther@suse.de>
15415 PR middle-end/47370
15416 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15417 the pointer operand of MEM_REFs.
15419 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15421 PR tree-optimization/46130
15422 * ipa-split.c (consider_split): If return_bb contains non-virtual
15423 PHIs other than for retval or if split_function would not adjust it,
15426 2011-01-20 Richard Guenther <rguenther@suse.de>
15428 PR tree-optimization/47167
15429 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15430 Revert previous change, only avoid enumeral type changes.
15432 2011-01-19 Mike Stump <mikestump@comcast.net>
15434 * doc/tm.texi.in (BRANCH_COST): Englishify.
15435 * doc/tm.texi (BRANCH_COST): Likewise.
15437 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15440 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15441 (gen_scheduled_generic_parms_dies): New functions.
15442 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15443 generation for the end of CU compilation.
15444 (dwarf2out_finish): Generate template parameters DIEs here.
15446 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15449 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15450 debug bind stmt on merge edges.
15452 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15456 * function.c (instantiate_expr): Instantiate incoming rtl of
15457 implicit arguments, and recurse on VALUE_EXPRs.
15458 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15459 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15461 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15463 * c-parser.c (c_parser_for_statement): Initialize
15464 collection_expression.
15466 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15468 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15470 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15472 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15473 (LINK_SHLIB_SPEC): Don't use %(link_path).
15474 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15476 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15478 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15479 (NO_SHARED_LIB_SUPPORT): Remove.
15480 (LINK_SHLIB_SPEC): Remove one conditional definition.
15482 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15484 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15486 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15487 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15488 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15489 %{call_shared} and conditionals on these options not being passed.
15490 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15493 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15495 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15498 * ipa-split.c: Spelling fixes.
15500 2011-01-19 Richard Henderson <rth@redhat.com>
15502 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15503 (*mulsi3): Likewise.
15505 * longlong.h [__mn10300__] (count_leading_zeros): New.
15506 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15507 [__mn10300__] (add_ssaaaa, subddmmss): New.
15508 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15509 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15511 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15513 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15515 2011-01-19 Richard Henderson <rth@redhat.com>
15517 * config/mn10300/mn10300.md (addsi3_flags): New.
15518 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15519 (subsi3_flags, subc_internal, subdi3): New.
15520 (subdi3_internal, *subdi3_degenerate): New.
15521 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15523 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15524 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15525 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15526 * config/mn10300/mn10300-protos.h: Update.
15527 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15528 (return_ret): Likewise. Rename from return_internal_regs.
15529 (return_internal): Remove.
15531 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15532 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15533 (mn10300_legitimate_constant_p): Likewise.
15534 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15535 (mn10300_frame_size): New.
15536 (mn10300_expand_prologue): Use it.
15537 (mn10300_expand_epilogue): Likewise.
15538 (mn10300_initial_offset): Likewise.
15539 * config/mn10300/mn10300-protos.h: Update.
15540 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15541 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15542 (prologue, epilogue, return_internal): Tidy output code.
15543 (mn10300_store_multiple_operation, return): Likewise.
15544 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15545 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15546 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15547 (load_pic, am33_load_pic): New.
15548 (mn10300_load_pic0, mn10300_load_pic1): New.
15550 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15551 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15552 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15553 (cc_flags_for_mode, cc_flags_for_code): New.
15554 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15555 overflow flag is not valid. Validate that the flags we need
15556 for the comparison are valid.
15557 (mn10300_output_cmp): Remove.
15558 (mn10300_output_add): New.
15559 (mn10300_select_cc_mode): Use cc_flags_for_code.
15560 (mn10300_split_cbranch): New.
15561 (mn10300_match_ccmode): New.
15562 (mn10300_split_and_operand_count): New.
15563 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15565 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15566 (addsi3): ... here. Use mn10300_output_add.
15567 (*addsi3_flags): New.
15568 (*am33_subsi3, *mn10300_subsi3): Merge...
15569 (subsi3): ... here. Use attribute isa.
15570 (*subsi3_flags): New.
15571 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15573 (*am33_andsi3, *mn10300_andsi3): Merge...
15574 (andsi3): ... here.
15575 (*andsi3_flags): New.
15576 (andsi3 splitters): New.
15577 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15578 (iorsi3): ... here.
15579 (*iorsi3_flags): New.
15580 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15581 (xorsi3): ... here.
15582 (*xorsi3_flags): New.
15583 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15584 (one_cmplsi2): ... here.
15585 (*one_cmplsi2_flags): New.
15586 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15587 instead of "dax" in constraints. Use mn10300_split_cbranch.
15588 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15589 use matching constraints to eliminate a self-comparison.
15590 (*integer_conditional_branch): Rename from integer_conditional_branch.
15591 Use int_mode_flags to match CC_REG.
15592 (*cbranchsi4_btst, *btstsi): New.
15593 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15594 mn10300_split_cbranch.
15595 (*am33_cmpsf): Rename from am33_cmpsf.
15596 (*float_conditional_branch): Rename from float_conditional_branch.
15597 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15598 (zero_extendqisi2): ... here.
15599 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15600 (zero_extendhisi2): ... here.
15601 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15602 (extendqisi2): ... here.
15603 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15604 (extendhisi2): ... here.
15605 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15606 (ashlsi3): ... here.
15607 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15608 (lshrsi3): ... here.
15609 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15610 (ashrsi3): ... here.
15611 (consecutive add peephole): Remove.
15612 * config/mn10300/predicates.md (label_ref_operand): New.
15613 (int_mode_flags): New.
15614 (CCZN_comparison_operator): New.
15616 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15617 (throughput_42_latency_43): New reservation.
15618 (mulsidi3, umulsidi3): New expanders.
15619 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15620 the MDR register to allocation; separately allocate the low and
15621 high parts of the DImode result.
15622 (umulsidi3_internal): Similarly.
15623 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15624 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15625 (udivsi3, umodsi3): Remove.
15626 (udivmodsi4, divmodsi4): New expanders.
15627 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15628 (*divmodsi4): Simiarly.
15629 (ext_internal): New.
15631 * config/mn10300/constraints.md ("z"): New constraint.
15632 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15633 (FIXED_REGISTERS): Don't fix MDR.
15634 (CALL_USED_REGSITERS): Reformat nicely.
15635 (REG_ALLOC_ORDER): Add MDR.
15636 (enum regclass): Add MDR_REGS.
15637 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15638 (IRA_COVER_CLASSES): Add MDR_REGS.
15639 (REGNO_REG_CLASS): Handle MDR_REG.
15640 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15641 (mn10300_register_move_cost): Likewise.
15642 * config/mn10300/mn10300.md (MDR_REG): New.
15643 (*movsi_internal): Handle moves to/from MDR_REGS.
15645 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15647 (mn10300_secondary_reload): Tidy combination reload classes.
15648 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15649 addresses for AM33. Allow symbolic offsets for reg+imm.
15650 (mn10300_regno_in_class_p): New.
15651 (mn10300_legitimize_reload_address): New.
15652 * config/mn10300/mn10300.h (enum reg_class): Remove
15653 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15654 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15655 SP_OR_GENERAL_REGS.
15656 (REG_CLASS_NAMES): Update to match.
15657 (REG_CLASS_CONTENTS): Likewise.
15658 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15659 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15660 (REGNO_IN_RANGE_P): Remove.
15661 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15662 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15663 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15664 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15665 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15666 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15667 (REGNO_GENERAL_P): New.
15668 (HAVE_POST_MODIFY_DISP): New.
15669 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15670 (LEGITIMIZE_RELOAD_ADDRESS): New.
15671 * config/mn10300/mn10300-protos.h: Update.
15673 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15674 DATA_REGS for AM33 stack-pointer destination.
15675 (mn10300_preferred_output_reload_class): Likewise.
15676 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15677 into a form appropriate for ...
15678 (TARGET_SECONDARY_RELOAD): New.
15679 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15680 * config/mn10300/mn10300-protos.h: Update.
15681 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15682 reload_insi; use the "A" constraint for the scratch; handle AM33
15683 moves of sp to non-address registers.
15685 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15686 (*movqi_internal): ... here.
15687 (*am33_movhi, *mn10300_movhi): Merge into...
15688 (*movhi_internal): ... here.
15689 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15690 as the source/destination of moves from/to SP.
15691 (movsf): Only allow for AM33-2.
15692 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15693 any integer constant constraint. Only allow for AM33-2. Tidy
15694 all of the alternative outputs.
15695 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15696 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15698 (udivsi3, umodsi3): New patterns for MN103 only.
15700 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15702 * doc/tm.texi.in: Spell out that a lack of register class unions
15704 * doc/tm.texi: Regenerate.
15706 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15708 PR rtl-optimization/47337
15709 * dce.c (check_argument_store): New function.
15710 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15712 PR tree-optimization/47290
15713 * tree-eh.c (infinite_empty_loop_p): New function.
15714 (cleanup_empty_eh): Use it.
15716 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15719 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15720 (a64_expand_widen_sum): Ditto.
15721 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15722 (vec_extract_evenodd_help): Ditto.
15723 (vec_extract_evenv4hi): Ditto.
15724 (vec_extract_oddv4hi): Ditto.
15725 (vec_extract_evenv2si): Ditto.
15726 (vec_extract_oddv2si): Ditto.
15727 (vec_extract_evenv2sf): Ditto.
15728 (vec_extract_oddv2sf): Ditto.
15729 (vec_pack_trunc_v4hi: Ditto.
15730 (vec_pack_trunc_v2si): Ditto.
15731 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15732 (vec_interleave_highv8qi): Ditto.
15734 (vec_extract_oddv8qi): Ditto.
15735 (vec_interleave_lowv4hi): Ditto.
15736 (vec_interleave_highv4hi): Ditto.
15737 (vec_interleave_lowv2si): Ditto.
15738 (vec_interleave_highv2si): Ditto.
15740 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15742 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15743 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15744 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15745 (pa_c_mode_for_suffix): New.
15746 (TARGET_EXPAND_BUILTIN): Define.
15747 (TARGET_C_MODE_FOR_SUFFIX): Define.
15748 (pa_builtins): Define.
15749 (pa_init_builtins): Register __float128 type and init new support
15751 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15752 * config/pa/quadlib.c (_U_Qfcopysign): New.
15754 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15756 PR middle-end/46894
15757 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15758 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15761 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15763 PR tree-optimization/47179
15764 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15765 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15767 2011-01-18 Richard Guenther <rguenther@suse.de>
15769 PR rtl-optimization/47216
15770 * emit-rtl.c: Include tree-flow.h.
15771 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15772 of replicating it with different semantics.
15773 * Makefile.in (emit-rtl.o): Adjust.
15775 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15777 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15778 (cortex_a9_dp): Handle neon types correctly.
15780 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15782 PR rtl-optimization/47299
15783 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15784 subtarget. Use normal multiplication if both operands are constants.
15785 * expmed.c (expand_widening_mult): Don't try to optimize constant
15786 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15789 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15791 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15792 spacing after 'e.g.', typos, comma, hyphenation.
15794 2011-01-17 Richard Henderson <rth@redhat.com>
15796 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15797 (rx_restricted_mem_operand): New.
15798 (rx_shift_operand): Use register_operand.
15799 (rx_source_operand, rx_compare_operand): Likewise.
15800 * config/rx/rx.md (addsi3_flags): New expander.
15801 (adddi3): Rewrite as expander.
15802 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15803 (subsi3_flags): New expander.
15804 (subdi3): Rewrite as expander.
15805 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15807 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15808 (rx_init_builtins): Remove sat builtin.
15809 (rx_expand_builtin): Likewise.
15810 * config/rx/rx.md (ssaddsi3): New.
15811 (*sat): Rename from sat. Represent the CC_REG input.
15813 * config/rx/predicates.md (rshift_operator): New.
15814 * config/rx/rx.c (rx_expand_insv): Remove.
15815 * config/rx/rx-protos.h: Update.
15816 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15817 operand to the canonical position.
15818 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15819 (*bitclr, *bitclr_in_memory): Similarly.
15820 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15821 (insv): Retain the zero_extract in the expansion.
15823 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15824 (bswaphi2, bitinvert, revw): Likewise.
15826 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15827 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15828 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15829 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15830 (bitset, bitset_in_memory): Likewise.
15831 (bitinvert, bitinvert_in_memory): Likewise.
15832 (bitclr, bitclr_in_memory): Likewise.
15833 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15834 (rx_strend, rx_cmpstrn): Likewise.
15835 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15836 (bitop peep2 patterns): Remove.
15838 * config/rx/rx.c (rx_match_ccmode): New.
15839 * config/rx/rx-protos.h: Update.
15840 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15841 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15842 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15843 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15844 (fix_truncsfsi2, floatsisf2): Likewise.
15845 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15846 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15847 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15848 (*subsi3_flags, *xorsi3_flags): New.
15850 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15852 * config/rx/rx.c (rx_print_operand): Remove workaround for
15853 unsplit comparison operations.
15855 * config/rx/rx.md (movsicc): Split after reload.
15856 (*movsicc): Merge *movsieq and *movsine via match_operator.
15857 (*stcc): New pattern.
15859 * config/rx/rx.c (rx_float_compare_mode): Remove.
15860 * config/rx/rx.h (rx_float_compare_mode): Remove.
15861 * config/rx/rx.md (cstoresi4): Split after reload.
15862 (*sccc): New pattern.
15864 * config/rx/predicates.md (label_ref_operand): New.
15865 (rx_z_comparison_operator): New.
15866 (rx_zs_comparison_operator): New.
15867 (rx_fp_comparison_operator): New.
15868 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15869 Validate that the flags are set properly for the comparison.
15870 (rx_gen_cond_branch_template): Remove.
15871 (rx_cc_modes_compatible): Remove.
15872 (mode_from_flags): New.
15873 (flags_from_code): Rename from flags_needed_for_conditional.
15874 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15875 (rx_select_cc_mode): Likewise.
15876 (rx_split_fp_compare): New.
15877 (rx_split_cbranch): New.
15878 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15879 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15880 (*cbranchsf4): Similarly.
15881 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15882 match_operator and rx_split_cbranch.
15883 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15884 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15885 (*cmpsi): Rename from cmpsi.
15886 (*tstsi): Rename from tstsi.
15887 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15888 (*conditional_branch): Rename from conditional_branch.
15889 (*reveresed_conditional_branch): Remove.
15890 (b<code>): Remove expander.
15891 * config/rx/rx-protos.h: Update.
15893 * config/rx/rx.c (rx_compare_redundant): Remove.
15894 * config/rx/rx.md (cmpsi): Don't use it.
15895 * config/rx/rx-protos.h: Update.
15897 * config/rx/rx-modes.def (CC_F): New mode.
15898 * config/rx/rx.c (rx_select_cc_mode): New.
15899 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15900 * config/rx/rx-protos.h: Update.
15902 2011-01-17 Richard Henderson <rth@redhat.com>
15904 * except.c (dump_eh_tree): Fix stray ; after for statement.
15906 2011-01-17 Richard Guenther <rguenther@suse.de>
15908 PR tree-optimization/47313
15909 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15910 handling before copying the body. Properly deal with
15911 by-reference result in SSA form.
15913 2011-01-17 Ian Lance Taylor <iant@google.com>
15916 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15917 (struct_value_alias_set): Don't define.
15918 (sparc_option_override): Don't set sparc_sr_alias_set and
15919 struct_value_alias_set.
15920 (save_or_restore_regs): Use gen_frame_mem rather than calling
15922 (sparc_struct_value_rtx): Likewise.
15924 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15927 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15928 (_mm_maskstore_pd): Likewise.
15929 (_mm_maskload_ps): Likewise.
15930 (_mm_maskstore_ps): Likewise.
15931 (_mm256_maskload_pd): Change mask to __m256i.
15932 (_mm256_maskstore_pd): Likewise.
15933 (_mm256_maskload_ps): Likewise.
15934 (_mm256_maskstore_ps): Likewise.
15936 * config/i386/i386-builtin-types.def: Updated.
15937 (ix86_expand_special_args_builtin): Likewise.
15939 * config/i386/i386.c (bdesc_special_args): Update
15940 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15941 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15942 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15943 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15945 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15946 Use <avxpermvecmode> on mask register.
15947 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15949 2011-01-17 Olivier Hainque <hainque@adacore.com>
15950 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15951 Eric Botcazou <ebotcazou@adacore.com>
15954 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15955 if <= USHRT_MAX in 32-bit mode.
15957 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15959 * doc/install.texi (Configuration, Specific): Wrap long
15960 lines in examples. Allow line wrapping in long options
15961 and URLs where beneficial for PDF output.
15963 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15965 * config/mips/mips.c (mips_classify_symbol): Don't return
15966 SYMBOL_PC_RELATIVE for nonlocal labels.
15968 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15970 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15972 2011-01-15 Jan Hubicka <jh@suse.cz>
15974 PR tree-optimization/47276
15975 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15976 declarations as needed.
15978 2011-01-15 Martin Jambor <mjambor@suse.cz>
15980 * common.opt (fdevirtualize): New flag.
15981 * doc/invoke.texi (Option Summary): Document it.
15982 * opts.c (default_options_table): Add devirtualize flag.
15983 * ipa-prop.c (detect_type_change): Return immediately if
15984 devirtualize flag is not set.
15985 (detect_type_change_ssa): Likewise.
15986 (compute_known_type_jump_func): Likewise.
15987 (ipa_analyze_virtual_call_uses): Likewise.
15989 2011-01-14 Martin Jambor <mjambor@suse.cz>
15991 PR tree-optimization/45934
15992 PR tree-optimization/46302
15993 * ipa-prop.c (type_change_info): New type.
15994 (stmt_may_be_vtbl_ptr_store): New function.
15995 (check_stmt_for_type_change): Likewise.
15996 (detect_type_change): Likewise.
15997 (detect_type_change_ssa): Likewise.
15998 (compute_complex_assign_jump_func): Check for dynamic type change.
15999 (compute_complex_ancestor_jump_func): Likewise.
16000 (compute_known_type_jump_func): Likewise.
16001 (compute_scalar_jump_functions): Likewise.
16002 (ipa_analyze_virtual_call_uses): Likewise.
16003 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16005 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16007 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16008 * config/i386/i386.opt (msse5): New Alias.
16010 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16012 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16013 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16014 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16015 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16017 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16019 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16021 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16022 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16023 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16024 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16026 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16028 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16030 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16032 2011-01-14 Mike Stump <mikestump@comcast.net>
16034 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16035 * config/fr30/fr30.md: Likweise
16036 (movsi_push): Likewise.
16037 (movsi_pop): Likewise.
16038 (enter_func): Likewise.
16039 * config/moxie/moxie.md (movsi_push): Likewise.
16040 (movsi_pop): Likewise.
16042 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16044 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16045 %{no_archive} %{exact_version}.
16046 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16047 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16048 %{no_archive} %{exact_version}.
16049 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16050 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16051 * config/mips/vxworks.h: Likewise.
16053 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16055 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16057 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16059 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16060 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16062 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16064 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16067 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16069 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16071 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16072 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16074 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16075 Don't handle -shlib.
16077 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16079 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16080 (CC1_SPEC): Don't handle -profile.
16082 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16084 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16085 * config/mips/mips.h (CC1_SPEC): Likewise.
16087 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16089 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16090 * config/mips/mips.h (CC1_SPEC): Likewise.
16092 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16094 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16095 * config/m32r/linux.h (LINK_SPEC): Likewise.
16096 * config/mips/linux.h (LINK_SPEC): Likewise.
16097 * config/mips/linux64.h (LINK_SPEC): Likewise.
16098 * config/sparc/linux.h (LINK_SPEC): Likewise.
16099 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16100 LINK_SPEC): Likewise.
16101 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16103 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16105 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16107 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16109 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16111 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16112 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16114 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16116 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16118 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16120 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16121 supports -Bstatic/-Bdynamic.
16122 * configure: Regenerate.
16124 2011-01-14 Jan Hubicka <jh@suse.cz>
16125 Jack Howarth <howarth@bromo.med.uc.edu>
16128 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16129 when checking debug_info_level. Test write_symbols instead of
16130 debug_hooks->var_location when setting flag_var_tracking_uninit.
16132 2011-01-14 Richard Guenther <rguenther@suse.de>
16134 PR tree-optimization/47179
16135 * target.def (ref_may_alias_errno): New target hook.
16136 * targhooks.h (default_ref_may_alias_errno): Declare.
16137 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16138 (default_ref_may_alias_errno): New function.
16139 * target.h (struct ao_ref_s): Declare.
16140 * tree-ssa-alias.c: Include target.h.
16141 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16142 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16143 (targhooks.o): Likewise.
16144 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16145 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16147 2011-01-14 Richard Guenther <rguenther@suse.de>
16149 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16151 2011-01-14 Richard Guenther <rguenther@suse.de>
16153 PR tree-optimization/47280
16154 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16155 return CFG changes.
16156 (tree_ssa_forward_propagate_single_use_vars): Deal with
16157 CFG changes from associate_plusminus.
16159 2011-01-14 Richard Guenther <rguenther@suse.de>
16161 PR middle-end/47281
16163 2011-01-11 Richard Guenther <rguenther@suse.de>
16165 PR tree-optimization/46076
16166 * tree-ssa.c (useless_type_conversion_p): Conversions from
16167 unprototyped to empty argument list function types are useless.
16169 2011-01-14 Richard Guenther <rguenther@suse.de>
16171 PR tree-optimization/47286
16172 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16174 2011-01-14 Martin Jambor <mjambor@suse.cz>
16176 PR middle-end/46823
16177 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16179 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16181 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16182 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16183 * config/xtensa/xtensa.c (xtensa_libcall_value,
16184 xtensa_function_value_regno_p): New functions.
16185 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16187 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16190 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16192 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16193 New function prototype.
16194 * config/i386/winnt.c (i386_pe_assemble_visibility):
16195 Warn only if attribute was specified by user.
16197 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16200 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16202 (floatunsdidf2_fcfidu): Ditto.
16204 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16206 * config/s390/s390.c (print_operand_address): Replace 'error' with
16207 'output_operand_lossage'.
16208 (print_operand): Likewise.
16210 2011-01-13 Jeff Law <law@redhat.com>
16212 PR rtl-optimization/39077
16213 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16214 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16215 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16216 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16217 * gcse.c (prune_insertions_deletions): New function.
16218 (compute_pre_data): Use it.
16220 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16223 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16225 (prune_unused_types_mark): Use it.
16227 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16229 PR rtl-optimization/45352
16230 * sel-sched.c: Update copyright years.
16231 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16232 in the advancing loop when we have issued issue_rate insns.
16234 2011-01-12 Richard Henderson <rth@redhat.com>
16236 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16237 (TARGET_MD_ASM_CLOBBERS): New.
16239 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16240 (TARGET_DELEGITIMIZE_ADDRESS): New.
16242 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16243 (clzsi2, *bsch): New patterns.
16245 * config/mn10300/mn10300.md (INT): New mode iterator.
16246 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16248 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16249 flag_split_wide_types.
16251 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16252 (mn10300_trampoline_init): Rewrite without a template, an immediate
16253 load and a direct branch.
16254 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16256 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16258 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16259 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16260 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16261 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16263 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16266 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16269 2011-01-12 Jan Hubicka <jh@suse.cz>
16272 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16273 (PLUGIN_COND_CLOSE): New macro.
16274 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16276 2011-01-12 Richard Guenther <rguenther@suse.de>
16279 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16280 register variables in a MEM_REF.
16282 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16284 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16285 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16286 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16287 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16288 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16289 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16290 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16291 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16292 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16293 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16294 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16295 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16296 * config/gnu-user.h: New. Copied from linux.h.
16297 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16298 GNU_USER_TARGET_STARTFILE_SPEC.
16299 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16300 GNU_USER_TARGET_ENDFILE_SPEC.
16301 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16302 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16303 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16304 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16305 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16306 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16307 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16308 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16309 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16310 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16311 * config/arm/linux-eabi.h (CC1_SPEC): Use
16312 GNU_USER_TARGET_CC1_SPEC.
16313 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16314 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16315 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16316 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16317 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16318 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16319 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16320 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16322 2011-01-12 Richard Guenther <rguenther@suse.de>
16325 * doc/invoke.texi (ffast-math): Document it is turned on
16328 2011-01-12 Jan Hubicka <jh@suse.cz>
16330 PR tree-optimization/47233
16331 * opts.c (common_handle_option): Disable ipa-reference with profile
16334 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16336 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16339 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16341 * c-parser.c (c_lex_one_token): Updated and reindented some
16342 comments. No changes in code.
16344 2011-01-11 Ian Lance Taylor <iant@google.com>
16346 * godump.c (go_output_var): Don't output the variable if there is
16347 already a type with the same name.
16349 2011-01-11 Ian Lance Taylor <iant@google.com>
16351 * godump.c (go_format_type): Don't generate float80.
16353 2011-01-11 Richard Henderson <rth@redhat.com>
16355 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16356 declaration. Rewrite for both speed and size.
16357 (mn10300_address_cost_1): Remove.
16358 (mn10300_register_move_cost): New.
16359 (mn10300_memory_move_cost): New.
16360 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16361 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16362 extensions, shifts, BSWAP, CLZ.
16363 (mn10300_wide_const_load_uses_clr): Remove.
16364 (TARGET_REGISTER_MOVE_COST): New.
16365 (TARGET_MEMORY_MOVE_COST): New.
16366 * config/mn10300/mn10300-protos.h: Update.
16367 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16369 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16370 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16371 * config/mn10300/mn10300-protos.h: Update.
16372 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16373 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16374 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16375 (*test_int_bitfield, *test_byte_bitfield): Remove.
16376 (*bit_test, *subreg_bit_test): Remove.
16377 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16379 * config/mn10300/constraints.md ("c"): Rename from "A".
16380 ("A", "D"): New constraint letters.
16381 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16382 (fmssf4, fnmasf4, fnmssf4): Likewise.
16384 * config/mn10300/mn10300.md (isa): New attribute.
16385 (enabled): New attribute.
16387 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16388 (abssf2, negsf2): Define only for hardware fp.
16389 (sqrtsf2): Reformat.
16390 (addsf3, subsf3, mulsf3): Merge expander and insn.
16392 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16393 (DEBUGGER_AUTO_OFFSET): Remove.
16394 (DEBUGGER_ARG_OFFSET): Remove.
16396 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16397 Emit register stores with the same offsets as the hardware.
16398 (mn10300_store_multiple_operation): Don't check that the register
16399 save offsets are monotonic.
16400 * config/mn10300/mn10300-protos.h: Update.
16402 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16404 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16405 in terms of the value on the stack, not the MDR register.
16407 2011-01-11 Jan Hubicka <jh@suse.cz>
16411 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16412 (symbol_alias_set_destroy, symbol_alias_set_contains,
16413 propagate_aliases_backward): Declare.
16414 * lto-streamer-out.c (struct sets): New sturcture.
16415 (trivally_defined_alias): New function.
16416 (output_alias_pair_p): Rewrite.
16417 (output_unreferenced_globals): Fix output of alias pairs.
16418 (produce_symtab): Likewise.
16419 * ipa.c (function_and_variable_visibility): Set weak alias destination
16421 * varasm.c (symbol_alias_set_t): Remove.
16422 (symbol_alias_set_destroy): Export.
16423 (propagate_aliases_forward, propagate_aliases_backward): New functions
16425 (compute_visible_aliases): ... this one; remove.
16426 (trivially_visible_alias): New
16427 (trivially_defined_alias): New.
16428 (remove_unreachable_alias_pairs): Rewrite.
16429 (finish_aliases_1): Reorganize code checking if alias is defined.
16430 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16433 2011-01-11 Richard Guenther <rguenther@suse.de>
16435 PR tree-optimization/46076
16436 * tree-ssa.c (useless_type_conversion_p): Conversions from
16437 unprototyped to empty argument list function types are useless.
16439 2011-01-11 Richard Guenther <rguenther@suse.de>
16441 PR middle-end/45235
16442 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16443 volatile MEMs as MEM_READONLY_P.
16445 2011-01-11 Richard Guenther <rguenther@suse.de>
16447 PR tree-optimization/47239
16448 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16450 2011-01-11 Jeff Law <law@redhat.com>
16452 PR tree-optimization/47086
16453 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16454 IVs from statements that might throw.
16456 2011-01-10 Jan Hubicka <jh@suse.cz>
16459 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16461 2011-01-10 Jan Hubicka <jh@suse.cz>
16464 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16465 when correcting profile.
16467 2011-01-10 Jan Hubicka <jh@suse.cz>
16470 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16471 DECL_FINI_PRIORITY.
16472 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16473 Restore DECL_FINI_PRIORITY.
16475 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16477 * doc/gimple.texi: Fix quoting of multi-word return values in
16478 @deftypefn statements. Ensure presence of return value. Wrap
16479 overlong @deftypefn lines.
16480 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16481 descriptions of removed functions.
16482 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16483 of multi-word return value in @deftypefn statement.
16485 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16487 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16488 (Conditional Expressions, Logical Operators)
16489 (Statement and operand traversals): Do not indent smallexample
16490 code. Fix duplicate function argument in example.
16492 2011-01-10 Jeff Law <law@redhat.com>
16494 PR tree-optimization/47141
16495 * ipa-split.c (split_function): Handle case where we are
16496 returning a value and the return block has a virtual operand phi.
16498 2011-01-10 Jan Hubicka <jh@suse.cz>
16500 PR tree-optimization/47234
16501 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16502 (pass_feedback_split_functions): Declare.
16503 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16505 * ipa-split.c (gate_split_functions): Update comments; disable
16506 split-functions for profile_arc_flag and branch_probabilities.
16507 (gate_feedback_split_functions): New function.
16508 (execute_feedback_split_functions): New function.
16509 (pass_feedback_split_functions): New global var.
16511 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16514 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16515 calling gimple_call_set_cannot_inline.
16517 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16519 * config/darwin-sections.def: Remove unused section.
16521 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16524 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16526 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16529 * c-parser.c (c_parser_declaration_or_fndef): Improved
16532 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16534 * config/i386/winnt.c (i386_pe_start_function): Make sure
16535 to switch back to function's section.
16537 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16541 * plugin.c: Move include of dlfcn.h from here...
16542 * system.h: ... to here.
16544 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16546 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16548 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16549 two extra empty pages in PDF output.
16551 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16554 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16555 for error recovery purposes behave as if it was not specified so
16556 that the default type is usd.
16558 2011-01-07 Jan Hubicka <jh@suse.cz>
16560 PR tree-optmization/46469
16561 * ipa.c (function_and_variable_visibility): Clear needed flags on
16562 nodes with external decls; handle weakrefs merging correctly.
16564 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16566 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16569 2011-01-07 Jan Hubicka <jh@suse.cz>
16571 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16572 and no longer claim that gold is required for linker plugin.
16573 * configure: Regenerate.
16574 * gcc.c (PLUGIN_COND): New macro.
16575 (LINK_COMMAND_SPEC): Use it.
16576 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16577 * config.in (HAVE_LTO_PLUGIN): New.
16578 * configure.ac (--with-lto-plugin): New parameter; autodetect
16581 2011-01-07 Jan Hubicka <jh@suse.cz>
16583 PR tree-optimization/46367
16584 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16585 when we can update original.
16586 (cgraph_mark_inline_edge): Sanity check.
16587 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16589 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16591 * config/spu/spu.h (ASM_COMMENT_START): Define.
16593 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16596 * gcc.c (%>S): New.
16597 (SWITCH_KEEP_FOR_GCC): Likewise.
16598 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16599 (do_spec_1): Handle "%>".
16601 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16603 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16606 * config/i386/i386.c (ix86_delegitimize_address): If
16607 simplify_gen_subreg fails, return orig_x.
16610 * value-prof.c (gimple_stringop_fixed_value): Handle
16611 lhs of the call properly.
16613 2011-01-07 Jan Hubicka <jh@suse.cz>
16616 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16618 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16620 * target.def (function_switched_text_sections): New hook.
16621 * doc/tm.texi: Regenerated.
16622 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16623 * final.c (default_function_switched_text_sections): New.
16624 (final_scan_insn): Call function_switched_text_sections when a
16625 mid-function section change occurs.
16626 * output.h (default_function_switched_text_sections): Declare.
16627 * config/darwin-protos.h (darwin_function_switched_text_sections):
16629 * config/darwin.c (darwin_function_switched_text_sections): New.
16630 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16632 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16634 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16635 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16636 the secondary code fragment when outputting for DWARF == 2.
16638 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16640 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16641 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16643 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16644 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16646 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16649 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16650 when it is not empty.
16652 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16655 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16656 (case ${target}): Add btver1.
16657 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16658 -march=native recognize btver1 processors.
16659 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16660 btver1 def_and_undef
16661 * config/i386/i386.c (struct processor_costs btver1_cost): New
16663 (m_BTVER1): New definition.
16664 (m_AMD_MULTIPLE): Includes m_BTVER1.
16665 (initial_ix86_tune_features): Add btver1 tune.
16666 (processor_target_table): Add btver1 entry.
16667 (static const char *const cpu_names): Add btver1 entry.
16668 (software_prefetching_beneficial_p): Add btver1.
16669 (ix86_option_override_internal): Add btver1 instruction sets.
16670 (ix86_issue_rate): Add btver1.
16671 (ix86_adjust_cost): Add btver1.
16672 * config/i386/i386.h (TARGET_BTVER1): New definition.
16673 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16674 (enum processor_type): Add PROCESSOR_BTVER1.
16675 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16677 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16680 * config/i386/i386.c (legitimize_tls_address)
16681 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16682 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16683 (tls_initial_exec_64_sun): New pattern.
16685 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16687 * doc/invoke.texi (Overall Options): Improve wording and markup
16688 of the description of -wrapper.
16690 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16692 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16693 rdynamic, threads): New Driver options.
16695 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16698 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16699 if coming from .tdata.
16700 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16702 2011-01-06 Jan Hubicka <jh@suse.cz>
16705 * collect2.c (main): Do not enable LTOmode when plugin is active.
16707 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16710 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16711 --version output if supported.
16712 * configure: Regenerate.
16714 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16716 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16719 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16722 * c-convert.c (convert): When converting a complex expression
16723 other than COMPLEX_EXPR to a different complex type, ensure
16724 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16725 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16726 when converting COMPLEX_TYPE.
16728 2011-01-06 Ira Rosen <irar@il.ibm.com>
16730 PR tree-optimization/47139
16731 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16732 only the last reduction value is used outside the loop. Update
16735 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16737 * config/rtems.opt: New.
16738 * config.gcc (*-*-rtems*): Use rtems.opt.
16740 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16742 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16743 processors do not support 3DNow instructions.
16745 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16747 * config/spu/spu.c (spu_option_override): Set parameter
16748 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16750 2011-01-05 Jan Hubicka <jh@suse.cz>
16752 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16753 at the command line.
16755 2011-01-05 Martin Jambor <mjambor@suse.cz>
16758 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16759 deltas on streamed outgoing edges.
16760 (output_node_opt_summary): Output info for outgoing edges only when
16761 the node is in new parameter set.
16762 (output_cgraph_opt_summary): New parameter set, passed to the two
16763 aforementioned functions. Update its forward declaration and its
16766 2011-01-05 Tom Tromey <tromey@redhat.com>
16768 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16769 operator to c_finish_omp_atomic.
16770 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16771 (build_unary_op): Update.
16772 (build_modify_expr): Update.
16773 (build_asm_expr): Update.
16775 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16777 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16778 newly inserted insns.
16779 (pad_bb): Likewise.
16780 (spu_emit_branch_hint): Likewise.
16781 (insert_hbrp_for_ilb_runout): Likewise.
16782 (spu_machine_dependent_reorg): Call df_finish_pass after
16783 schedule_insns returns.
16785 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16787 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16789 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16791 PR tree-optimization/47005
16792 * tree-sra.c (struct access): Add 'non_addressable' bit.
16793 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16794 (decide_one_param_reduction): Return 0 if the parameter is passed by
16795 reference and one of the accesses in the group is non_addressable.
16797 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16799 PR tree-optimization/47056
16800 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16801 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16802 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16804 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16806 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16807 initializer. Skip view conversions from aggregate types.
16809 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16812 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16814 2011-01-04 Philipp Thomas <pth@suse.de>
16816 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16819 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16821 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16822 on empty epilogue sequences.
16824 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16826 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16827 non-static): New Driver options.
16829 2011-01-04 Jie Zhang <jie@codesourcery.com>
16832 * gcc.c (default_compilers[]): Set combinable field to 0
16833 for all assembly languages.
16835 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16837 * config/mips/loongson3a.md: New file.
16838 * config/mips/mips.md: Include loongson3a.md.
16839 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16842 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16844 PR middle-end/47017
16845 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16846 instead of convert_memory_address_addr_space on the base expression.
16848 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16850 * config/spu/spu.c (spu_option_override): Update error text
16851 for bad -march= / -mtune= values.
16853 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16855 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16856 if branch-hint optimization will be performed.
16858 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16860 PR tree-optimization/47148
16861 * ipa-split.c (split_function): Convert arguments to
16862 DECL_ARG_TYPE if possible.
16864 PR tree-optimization/47155
16865 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16866 when computing uns.
16868 PR rtl-optimization/47157
16869 * combine.c (try_combine): If undobuf.other_insn becomes
16870 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16871 and set *new_direct_jump_p too.
16873 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16875 PR tree-optimization/47021
16876 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16878 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16880 * gcc.c (process_command): Update copyright notice dates.
16881 * gcov.c (print_version): Likewise.
16882 * gcov-dump.c (print_version): Likewise.
16883 * mips-tfile.c (main): Likewise.
16884 * mips-tdump.c (main): Likewise.
16886 2011-01-03 Martin Jambor <mjambor@suse.cz>
16888 PR tree-optimization/46801
16889 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16890 aggregate fields start at byte boundary instead of the bit-field flag.
16892 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16895 * gcc.c (main): Revert revision 168407.
16897 2011-01-03 Martin Jambor <mjambor@suse.cz>
16899 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16901 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16903 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16904 vector optab to expand vector/scalar shift, update gimple to vector.
16906 2011-01-03 Martin Jambor <mjambor@suse.cz>
16908 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16911 2011-01-03 Martin Jambor <mjambor@suse.cz>
16913 PR tree-optimization/46984
16914 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16916 (cgraph_create_indirect_edge): Fixed line length.
16917 (cgraph_indirect_call_info): Declare.
16918 (cgraph_make_edge_direct) Update declaration.
16919 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16920 (cgraph_create_indirect_edge): Use it.
16921 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16923 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16924 the new thunk_delta representation.
16925 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16927 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16928 (ipa_read_indirect_edge_info): Likewise.
16929 * lto-cgraph.c (output_edge_opt_summary): New function.
16930 (output_node_opt_summary): Call it on all outgoing edges.
16931 (input_edge_opt_summary): New function.
16932 (input_node_opt_summary): Call it on all outgoing edges.
16934 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16937 * gcc.c (main): Don't check have_o when settting combine_inputs.
16939 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16941 * regrename.c: Add general comment describing the pass.
16942 (struct du_head): Remove 'length' field.
16943 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16944 (regrename_optimize): Do not sort chains. Rework comments, add others.
16945 Force renaming to the preferred class (if any) in the first pass and do
16946 not consider registers that belong to it in the second pass.
16947 (create_new_chain): Do not set 'length' field.
16948 (scan_rtx_reg): Likewise.
16950 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16952 PR tree-optimization/47140
16953 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16954 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16955 to bit_value_binop.
16957 PR rtl-optimization/47028
16958 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16959 parm_birth_insn instead of at the beginning of first bb.
16961 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16963 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16964 Remove the word "see" before "@pxref".
16965 * doc/rtl.texi: Remove the word "see" before "@pxref".
16967 2011-01-01 Jan Hubicka <jh@suse.cz>
16969 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16972 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16975 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16978 Copyright (C) 2011 Free Software Foundation, Inc.
16980 Copying and distribution of this file, with or without modification,
16981 are permitted in any medium without royalty provided the copyright
16982 notice and this notice are preserved.