1 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3 PR tree-optimization/46728
4 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5 to use gimple_val_nonnegative_real_p.
6 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
7 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
9 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
11 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
13 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
15 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
18 2011-06-07 Richard Guenther <rguenther@suse.de>
20 * stor-layout.c (initialize_sizetypes): Initialize all
21 sizetypes based on target definitions.
22 (set_sizetype): Remove.
23 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
24 * tree.h (set_sizetype): Remove.
26 2011-06-07 Nick Clifton <nickc@redhat.com>
28 * config.gcc: Unify V850 architecture options and add support for
29 newer V850 architectures.
30 * config/v850/t-v850e: Delete.
32 2011-06-07 Richard Guenther <rguenther@suse.de>
34 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
35 Call set_sizetype from here.
37 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
39 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
40 (*maddhisi4tb, *maddhisi4tt): New define_insns.
42 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
43 Andrew Stubbs <ams@codesourcery.com>
45 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
47 * doc/md.texi (Canonicalization of Instructions): Document widening
48 multiply canonicalization.
50 2011-06-07 Jakub Jelinek <jakub@redhat.com>
53 * value-prof.c (gimple_ic): Don't assume icall has
56 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
58 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
60 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
61 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
62 vect_recog_pow_pattern): Likewise.
63 (vect_pattern_recog_1): Remove declaration.
64 (widened_name_p): Remove declaration. Add new argument to specify
65 whether to check that both types are either signed or unsigned.
66 (vect_recog_widen_mult_pattern): Update documentation. Handle
67 unsigned patterns and multiplication by constants.
68 (vect_pattern_recog_1): Update vect_recog_func references. Use
69 statement information from the statement returned from pattern
71 (vect_pattern_recog): Update vect_recog_func reference.
72 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
73 multiplication by a constant use the type of the other operand.
75 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
77 PR rtl-optimization/49145
78 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
80 2011-06-06 Jakub Jelinek <jakub@redhat.com>
83 * dwarf2out.c (native_encode_initializer): Decrement count in each
87 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
91 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
92 if stmt folded into nothing.
93 * tree-inline.c (fold_marked_statements): If a builtin at the
94 end of a bb folded into nothing, just update cgraph edges
96 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
97 to be NULL. Don't compute count and frequency if new_call is NULL.
99 2011-06-04 Diego Novillo <dnovillo@google.com>
101 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
102 (cgraph.o): Likewise.
103 (cgraphunit.o): Likewise.
104 * cgraphunit.c: Include lto-streamer.h
105 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
107 * lto-streamer-in.c (unpack_value_fields): Call
108 streamer_hooks.unpack_value_fields if set.
109 (lto_materialize_tree): For unhandled nodes, first try to
110 call lto_streamer_hooks.alloc_tree, if it exists.
111 (lto_input_ts_decl_common_tree_pointers): Move reading of
112 DECL_INITIAL to lto_streamer_read_tree.
113 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
114 (lto_streamer_read_tree): New.
115 (lto_reader_init): Rename from lto_init_reader.
116 Move initialization code to lto/lto.c.
117 * lto-streamer-out.c (pack_value_fields): Call
118 streamer_hooks.pack_value_fields if set.
119 (lto_output_tree_ref): For tree nodes that are not
120 normally indexable, call streamer_hooks.indexable_with_decls_p
122 (lto_output_ts_decl_common_tree_pointers): Move handling
123 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
124 lto_streamer_write_tree.
125 (lto_output_tree_header): Call streamer_hooks.is_streamable
126 instead of lto_is_streamable.
127 Call lto_streamer_hooks.output_tree_header if set.
128 (lto_write_tree): Call lto_streamer_hooks.write_tree if
130 (lto_streamer_write_tree): New.
131 (lto_output): Call lto_streamer_init directly.
132 (lto_writer_init): Remove.
133 * lto-streamer.c (streamer_hooks): New.
134 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
135 instead of lto_preload_common_nodes.
136 (lto_is_streamable): Move from lto-streamer.h
137 (lto_streamer_hooks_init): New.
138 (streamer_hooks): New.
139 (streamer_hooks_init): New.
140 * lto-streamer.h (struct output_block): Forward declare.
141 (struct lto_input_block): Likewise.
142 (struct data_in): Likewise.
143 (struct bitpack_d): Likewise.
144 (struct streamer_hooks): Declare.
145 (streamer_hooks): Declare.
146 (lto_streamer_hooks_init): Declare.
147 (lto_streamer_write_tree): Declare.
148 (lto_streamer_read_tree): Declare.
149 (streamer_hooks_init): Declare.
150 (lto_is_streamable): Move to lto-streamer.c
152 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
154 * longlong.h (smul_ppmm): The resulting register pair contains the
155 higher order word first.
157 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
159 PR tree-optimization/46728
160 * builtins.c (powi_table): Remove.
161 (powi_lookup_cost): Remove.
163 (expand_powi_1): Remove.
164 (expand_powi): Remove.
165 (expand_builtin_pow_root): Remove.
166 (expand_builtin_pow): Remove.
167 (expand_builtin_powi): Eliminate handling of constant exponent.
168 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
170 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
172 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
174 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
176 * dce.c (reset_unmarked_insns_debug_uses): New.
177 (delete_unmarked_insns): Skip debug insns.
178 (prescan_insns_for_dce): Likewise.
179 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
180 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
181 active reg can be found.
182 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
183 (convert_regs_1): Use it.
185 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
187 * tree-pretty-print.c (dump_function_header): Add flags.
188 Don't dump decl_uid with nouid.
189 * tree-pretty-print.h (dump_function_header): Adjust.
190 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
191 * passes.c (pass_init_dump_file): Pass dump_flags on.
192 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
194 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
197 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
199 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
201 PR tree-optimization/49243
202 * calls.c (setjmp_call_p): Also check if fndecl has the
203 returns_twice attribute.
205 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
207 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
210 2011-06-06 Richard Henderson <rth@redhat.com>
211 Georg-Johann Lay <avr@gjlay.de>
214 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
216 * config/avr/avr.md ("insv"): New insn expander.
217 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
218 "*insv.not.io", "*insv.reg"): New insns.
220 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
223 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
224 predicate to nonimmediate_operand from memory_operand for the
225 operand that is to be forced to memory by the expander. Lose
228 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
230 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
231 EH return when delayed branches are disabled.
233 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
235 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
236 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
238 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
239 Simplify MODE_V1DF and MODE_V2SF handling.
240 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
241 Simplify MODE_SF handling.
243 2011-06-04 Jan Hubicka <jh@suse.cz>
245 PR tree-optimization/48893
246 PR tree-optimization/49091
247 PR tree-optimization/49179
248 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
251 2011-06-04 Jan Hubicka <jh@suse.cz>
254 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
256 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
258 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
260 2011-06-04 Jakub Jelinek <jakub@redhat.com>
263 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
264 to be strictly smaller than 1 << shiftcount.
266 2011-06-04 Jan Hubicka <jh@suse.cz>
268 PR tree-optimize/48929
269 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
272 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
275 * calls.c (emit_call_1): Prefer the __builtin declaration of
278 2011-06-03 Diego Novillo <dnovillo@google.com>
280 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
281 (lto_input_tree_pointers): Likewise.
282 * lto-streamer-out.c (pack_value_fields): Likewise.
283 (lto_output_tree_pointers): Likewise.
284 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
285 and OPTIMIZATION_NODE.
287 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
289 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
290 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
291 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
292 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
293 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
294 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
295 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
296 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
297 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
298 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
299 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
300 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
301 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
302 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
303 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
304 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
305 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
306 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
307 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
308 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
309 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
310 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
311 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
312 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
313 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
314 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
315 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
316 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
317 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
318 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
319 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
320 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
321 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
322 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
323 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
324 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
325 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
326 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
327 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
328 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
329 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
330 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
331 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
332 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
333 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
334 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
335 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
336 * system.h (MD_UNWIND_SUPPORT): Poison.
337 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
338 * doc/tm.texi: Regenerate.
339 * unwind-dw2.c: Include md-unwind-support.h instead of
341 * config/ia64/unwind-ia64.c: Likewise.
342 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
344 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
346 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
348 2011-06-03 Richard Henderson <rth@redhat.com>
349 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
351 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
352 (sigill_hdlr): Correct insn, insn size.
353 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
355 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
357 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
359 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
360 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
361 * config/mips/t-iris: Remove.
362 * config/mips/t-irix6: New file.
363 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
365 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
367 * Makefile.in (LIB2ADDEHDEP): Remove.
368 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
369 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
370 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
371 * config/t-darwin (LIB2ADDEHDEP): Remove.
372 * config/t-freebsd (LIB2ADDEHDEP): Remove.
373 * config/t-linux (LIB2ADDEHDEP): Remove.
375 2011-06-03 Diego Novillo <dnovillo@google.com>
377 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
378 (lto_register_var_decl_in_symtab): Likewise.
379 (lto_register_function_decl_in_symtab): Likewise.
380 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
381 logic to uniquify_nodes.
383 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
385 * config/alpha/t-osf5: Remove.
386 * config/alpha/t-osf-pthread: Remove.
387 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
388 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
390 2011-06-03 Julian Brown <julian@codesourcery.com>
392 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
393 (strongarm1110): Use strongarm tuning.
394 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
395 * config/arm/arm.c (arm_strongarm_tune): New.
396 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
397 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
398 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
399 setting, using previous defaults or 1 for Cortex-A5.
400 (arm_option_override): Set max_insns_skipped from current tuning.
402 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
404 * doc/install.texi (Options specification): Document --with-specs.
406 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
408 * config/arm/neon.md (orndi3_neon): Actually split it.
410 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
412 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
413 * var-tracking.c (reverse_op): Limite recurse depth to 5.
415 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
418 * target.def (delay_sched2, delay_vartrack): New.
419 * doc/tm.texi.in: Update.
420 * doc/tm.texi: Rebuild.
421 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
422 * var-tracking.c (gate_handle_var_tracking): Likewise.
423 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
424 (bfin_flag_var_tracking): Drop.
425 (output_file_start): Don't save and override flag_var_tracking.
426 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
427 (bfin_reorg): Test original variables.
428 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
429 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
430 (ia64_flag_var_tracking): Drop.
431 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
432 (ia64_file_start): Don't save and override flag_var_tracking.
433 (ia64_override_options_after_change): Ditto
434 flag_schedule_insns_after_reload.
435 (ia64_reorg): Test original variables.
436 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
437 (picochip_flag_var_tracking): Drop.
438 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
439 (picochip_option_override): Don't save and override
440 flag_schedule_insns_after_reload.
441 (picochip_asm_file_start): Ditto flag_var_tracking.
442 (picochip_reorg): Test original variables.
443 * config/spu/spu.c (spu_flag_var_tracking): Drop.
444 (TARGET_DELAY_VARTRACK): Define.
445 (spu_var_tracking): New.
446 (spu_machine_dependent_reorg): Call it.
447 (asm_file_start): Don't save and override flag_var_tracking.
449 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
452 * config/sh/predicates.md (general_movsrc_operand): Return 0
453 for memory and memory subreg of which address is an invalid
454 indexed address for QI and HImode.
455 (general_movdst_operand): Likewise.
457 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
459 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
460 edges only, when there is a non-local label in the function.
461 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
463 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
465 * config/i386/constraints.md (Y3): New register constraint.
466 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
467 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
468 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
469 *sse2_interleave_lowv2df.
471 2011-06-02 Julian Brown <julian@codesourcery.com>
473 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
474 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
475 (arm_cortex_a5_tune): New.
477 2011-06-02 Julian Brown <julian@codesourcery.com>
479 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
480 * config/arm/arm.c (arm_default_branch_cost): New.
481 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
482 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
483 (arm_fa726_tune): Set branch_cost field using
484 arm_default_branch_cost.
485 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
486 current_tune structure.
487 * dojump.c (tm_p.h): Include file.
489 2011-06-02 Julian Brown <julian@codesourcery.com>
491 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
493 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
494 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
495 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
497 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
498 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
499 (arm_fa726te_tune): Add prefer_constant_pool setting.
500 (arm_v6t2_tune, arm_cortex_tune): New.
501 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
502 prefer_constant_pool setting.
504 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
506 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
508 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
509 (*movdf_internal) <case 6,7,8>: Ditto.
511 * config/i386/constraints.md (Y4): New register constraint.
512 * config/i386/sse.md (vec_set<mode>_0): Merge with
513 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
514 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
515 *vec_extractv2di_1_sse.
516 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
517 and *vec_concatv2di_rex64_sse.
519 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
522 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
523 of cgraph_local_info for null before attempting to use it.
525 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
527 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
528 (current_function_dynamic_alloc_count): Delete.
529 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
530 (expand_builtin_nonlocal_goto): Remove obsolete comment.
531 (expand_builtin_update_setjmp_buf): Remove dead code.
532 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
533 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
535 * function.c (instantiate_virtual_regs): Likewise.
536 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
537 for a block with a single abnormal incoming edge.
538 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
539 (SETJMP_VIA_SAVE_AREA): Delete.
540 * config/sparc/sparc-protos.h (load_got_register): Declare.
541 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
542 (load_got_register): Make global.
543 (sparc_frame_pointer_required): Add 'static'.
544 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
545 (sparc_builtin_setjmp_frame_value): New function.
546 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
547 (save_stack_nonlocal): New expander.
548 (restore_stack_nonlocal): Likewise.
549 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
550 (nonlocal_goto_internal): New insn.
551 (goto_handler_and_restore): Delete.
552 (builtin_setjmp_setup): Likewise.
553 (do_builtin_setjmp_setup): Likewise.
555 (builtin_setjmp_receiver): New expander.
557 2011-06-01 David Li <davidxl@google.com>
560 * tree-pretty-print.c (dump_function_header): Format cleanup.
562 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
565 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
566 needed when original operands are used for msw_skip comparison.
568 2011-06-01 Jakub Jelinek <jakub@redhat.com>
571 * var-tracking.c (add_uses, add_stores): Don't call
572 cselib_subst_to_values on ENTRY_VALUE.
574 2011-06-01 Diego Novillo <dnovillo@google.com>
576 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
577 output_record_start with LTO_null instead of output_zero.
578 (lto_output_ts_binfo_tree_pointers): Likewise.
579 (lto_output_tree): Likewise.
580 (output_eh_try_list): Likewise.
581 (output_eh_region): Likewise.
582 (output_eh_lp): Likewise.
583 (output_eh_regions): Likewise.
584 (output_bb): Likewise.
585 (output_function): Likewise.
586 (output_unreferenced_globals): Likewise.
587 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
588 instead of NUM_TREE_CODES.
589 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
590 (lto_output_int_in_range): Change << to >> when shifting VAL.
592 2011-06-01 Diego Novillo <dnovillo@google.com>
594 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
595 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
597 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
600 * optabs.h (valid_multiword_target_p): Declare.
601 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
602 doing multi-word operations.
603 * optabs.c (expand_binop): Likewise.
604 (expand_doubleword_bswap): Likewise.
605 (expand_absneg_bit): Likewise.
606 (expand_unop): Likewise.
607 (expand_copysign_bit): Likewise.
608 (multiword_target_p): New function.
610 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
612 PR rtl-optimization/48830
613 PR rtl-optimization/48808
614 PR rtl-optimization/48792
615 * reload.c (push_reload): Check contains_reg_of_mode.
616 * reload1.c (strip_paradoxical_subreg): New function.
617 (gen_reload_chain_without_interm_reg_p): Use it to handle
619 (emit_output_reload_insns, gen_reload): Likewise.
621 2011-06-01 David Li <davidxl@google.com>
623 * predict.c : Change pass name
626 * tree-profile.c: Ditto.
629 2011-06-01 David Li <davidxl@google.com>
631 * tree-pretty-print.c (dump_function_header): New function.
632 * final.c (rest_of_clean_state): Use header dumper.
633 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
634 * passes.c (pass_init_dump_file): Use header dumper.
636 2011-06-01 Jakub Jelinek <jakub@redhat.com>
638 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
639 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
640 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
642 (mem_loc_descriptor): Use them.
644 * var-tracking.c (create_entry_value): New function.
645 (vt_add_function_parameter): Use it.
647 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
649 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
650 Include <signal.h>, <ucontext.h>.
651 (sigill_caught): Define.
652 (sigill_hdlr): New function.
653 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
654 insns can be executed.
655 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
656 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
658 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
660 * config/t-slibgcc-darwin: Move to ...
661 * config/t-slibgcc-dummy: ... this. Clarify comments.
662 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
663 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
664 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
665 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
666 Remove i386/t-crtstuff from tmake_file.
667 (i[34567]86-*-solaris2*): Remove t-svr4,
668 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
670 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
671 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
672 sparc/t-crtfm from tmake_file.
673 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
674 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
676 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
677 * config/i386/t-nwld (SHLIB_LINK): Remove.
678 * config/i386/t-rtems-i386: Rename to ...
679 * config/i386/t-rtems: ... this.
680 ($(T)crti.o, $(T)crtn.o): Remove.
681 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
682 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
683 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
684 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
685 EXTRA_MULTILIB_PARTS): Remove.
686 * config/sparc/t-sol2-64: Likewise.
687 * config/sparc/t-sol2: Remove.
688 * config/sparc/t-crtin: Remove.
689 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
690 * config/i386/gmon-sol2.c: Remove.
691 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
692 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
693 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
694 * config/i386/sol2-gc1.asm: Remove.
695 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
696 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
697 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
698 * config/t-slibgcc-sld: Remove.
700 2011-06-01 Jakub Jelinek <jakub@redhat.com>
702 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
703 base_type_for_mode with op_mode instead of mode.
705 2011-06-01 Paul Brook <paul@cpodesourcery.com>
707 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
709 * config/arm/arm-tune.md: Regenerate.
710 * config/arm/arm-tables.opt: Regenerate.
711 * config/arm/arm.c (FL_DIV): Rename...
712 (FL_THUMB_DIV): ... to this.
713 (FL_ARM_DIV): Define.
714 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
715 (arm_arch_hwdiv): Remove.
716 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
717 (arm_issue_rate): Add cortexr5.
718 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
719 __ARM_ARCH_EXT_IDIV__.
720 (TARGET_IDIV): Define.
721 (arm_arch_hwdiv): Remove.
722 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
723 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
724 (divsi3, udivsi3): New patterns.
725 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
726 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
728 2011-06-01 Martin Jambor <mjambor@suse.cz>
730 * ipa-utils.c (ipa_dfs_info): New field scc_no.
731 * ipa-utils.c (searchc): Set scc_no.
733 2011-06-01 Martin Jambor <mjambor@suse.cz>
735 * ipa-utils.c (searchc_env): New field allow_overwritable.
736 (searchc): do not ignore edges to overwritable nodes if indicated
737 by env->allow_overwritable.
738 (ipa_reduced_postorder): Set env.allow_overwritable.
740 2011-06-01 Richard Guenther <rguenther@suse.de>
742 * tree.c (free_lang_data): Do not reset boolean_type_node nor
744 * lto-streamer.c (lto_record_common_node): Take node pointer,
745 do not register types.
746 (lto_preload_common_nodes): Explicitly skip preloading nodes
747 that differ between frontends.
749 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
751 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
754 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
756 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
757 parameter value for dump. Dump cost on outermost call only.
758 (rs6000_memory_move_cost): Dump cost on outermost call only.
760 2011-05-31 Jakub Jelinek <jakub@redhat.com>
762 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
763 DW_OP_GNU_convert ops.
765 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
766 cselib_preserve_constants.
767 (cselib_lookup_1): If cselib_preserve_constants,
768 a new VALUE is being created for REG and there is a VALUE for the
769 same register in wider mode, add another loc with lowpart SUBREG of
771 (cselib_subst_to_values): Handle ENTRY_VALUE.
772 * var-tracking.c (replace_expr_with_values): Return NULL for
774 * dwarf2out.c (convert_descriptor_to_signed): New function.
775 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
776 instead of two shifts.
777 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
778 the right mode if needed.
779 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
780 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
781 convert_descriptor_to_signed.
782 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
783 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
786 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
788 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
790 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
791 of X87MODEI12 and SWI48x instead of SSEMODEI24.
792 (SWI248x): New mode iterator, rename from X87MODEI.
793 (X87MODEI): Remove mode iterator.
797 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
799 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
800 * doc/invoke.texi: Document max-vartrack-expr-depth.
801 * var-tracking.c (EXPR_DEPTH): New.
802 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
804 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
806 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
807 * config/i386/sse.md: Add n to negated FMA pattern names.
809 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
811 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
813 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
815 * gengtype-state.c (read_state_params_structs): Initialize previous.
817 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
819 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
820 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
822 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
824 * config/i386/i386.md (*movtf_internal): Avoid allocating general
825 registers. Penalize F*r->o alternative to prevent partial memory
826 stalls. Slightly penalize *roF->*r alternative. Generate SSE
827 CONST_DOUBLE immediates when optimizing function for size. Do not move
828 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
829 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
830 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
831 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
833 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
835 (fp_register_operand splitters): Use fp_register_operand
836 constraint. Do not use FP_REG_P in insn condition.
837 (any_fp_register_operand splitters): Use any_fp_register_operand
838 constraint. Do not use ANY_FP_REG_P in insn condition.
840 2011-05-31 Jan Hubicka <jh@suse.cz>
842 * cgraph.h (cgraph_inline_failed_t): Give enum a name
843 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
844 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
845 (lto_output_edge): Use output_enum and var_len_unsigned.
846 (lto_output_varpool_node): Likewise.
847 (input_overwrite_node): Do not take resolution parameter;
848 extract it from a bitpack.
849 (input_node): Do not read resolution; use input_enum and
851 (input_varpool_node): Likewise.
852 (input_edge): Likewise.
853 (input_cgraph_1): Likewise.
855 2011-05-31 Richard Guenther <rguenther@suse.de>
857 * gimple.c (gimple_register_canonical_type): Do not register
858 any types via gimple_register_type.
860 2011-05-31 Jan Hubicka <jh@suse.cz>
862 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
865 2011-05-31 Jakub Jelinek <jakub@redhat.com>
867 PR rtl-optimization/49235
868 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
869 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
871 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
873 PR tree-optimization/49093
874 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
877 2011-05-31 Dodji Seketeli <dodji@redhat.com>
880 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
881 for concrete functions containing the code of cloned functions.
883 2011-05-31 Richard Guenther <rguenther@suse.de>
885 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
887 (forward_propagate_into_comparison_1): ... this.
888 (forward_propagate_comparison): Rename to ...
889 (forward_propagate_into_comparison): ... this. Split out
890 real forward propagation code to ...
891 (forward_propagate_comparison): ... this.
892 (forward_propagate_into_gimple_cond): Remove looping.
893 (forward_propagate_into_cond): Likewise.
894 (simplify_not_neg_expr): Return whether we have done something.
895 (simplify_gimple_switch): Likewise.
896 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
897 (ssa_forward_propagate_and_combine): ... this. Re-structure
898 to do a forward forward-propagation walk on BBs and a backward
899 stmt combining walk on BBs. Consistently re-scan changed statements.
900 (pass_forwprop): Adjust.
902 2011-05-30 Ian Lance Taylor <iant@google.com>
904 * godump.c (go_format_type): Correct length of name added to
905 obstack for anonymous field.
907 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
910 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
911 part of the second operand is 0.
913 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
915 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
916 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
917 to memory for !TARGET_MEMORY_MISMATCH_STALL.
918 (*movdf_internal_rex64): Do not penalize F->r alternative.
919 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
920 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
921 when optimizing function for size. Do not move CONST_DOUBLEs
922 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
923 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
924 SUBREGs. Do not check for MEM_P operands in the insn condition,
925 check for ANY_FP_REGNO_P instead.
926 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
927 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
929 * config/i386/i386.c (ix86_option_override_internal): Do not
930 set TARGET_INTEGER_DFMODE_MOVES here.
932 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
935 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
937 2011-05-30 Jakub Jelinek <jakub@redhat.com>
939 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
940 DW_TAG_rvalue_reference_type even for
941 -gdwarf-4 -fno-debug-types-section.
943 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
945 PR tree-optimization/46728
946 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
947 (build_and_insert_binop): New.
948 (gimple_expand_builtin_pow): Reorder args for
949 build_and_insert_call; use build_and_insert_binop; add more
950 optimizations for fractional exponents.
952 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
957 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
959 * tree.h (struct tree_identifier): Inherit from tree_typed, not
961 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
962 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
963 TS_BASE instead of TS_COMMON.
964 * varasm.c (assemble_name): Remove assert.
966 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
968 * config.gcc: Keep obselete list sorted.
970 2011-05-30 Jakub Jelinek <jakub@redhat.com>
971 Eric Botcazou <ebotcazou@adacore.com>
973 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
974 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
975 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
976 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
977 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
979 2011-05-30 Richard Guenther <rguenther@suse.de>
981 * gimple.c (gimple_types_compatible_p_1): Compare record
982 and union type members properly.
984 2011-05-30 Richard Guenther <rguenther@suse.de>
986 PR tree-optimization/49210
987 * ipa-split.c (split_function): Care for the case where the call
988 result is not trivially convertible to the result holding variable.
990 2011-05-30 Richard Guenther <rguenther@suse.de>
992 PR tree-optimization/49218
993 * tree-vrp.c (adjust_range_with_scev): Properly check whether
996 2011-05-30 Richard Guenther <rguenther@suse.de>
998 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
999 New function split out from ...
1000 (forward_propagate_into_gimple_cond): ... here. Adjust.
1001 (forward_propagate_into_cond): Likewise.
1002 (forward_propagate_comparison): Also propagate into
1003 comparisons on assignment RHS. Change return value to
1004 behave similar to forward_propagate_into_cond.
1005 (tree_ssa_forward_propagate_single_use_vars): Handle
1006 strict-overflow warnings properly for forward_propagate_comparison.
1008 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1010 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1012 * configure: Regenerate.
1014 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1016 PR tree-optimization/49199
1017 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1018 non-reduction operands are either defined in the loop or by induction.
1020 2011-05-29 Xinliang David Li <davidxl@google.com>
1022 * opts-global.c (handle_common_deferred_options): Handle new options.
1023 * passes.c (register_one_dump_file): Call register_pass_name.
1024 (execute_one_pass): Check explicit enable/disable flag.
1025 (passr_hash): New function.
1027 (register_pass_name): Ditto.
1028 (get_pass_by_name): Ditto.
1031 (enable_pass): Ditto.
1032 (disable_pass): Ditto.
1033 (is_pass_explicitly_enabled_or_disabled): Ditto.
1035 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1037 * config/i386/i386.md (*movoi_internal_avx): Use
1038 standard_sse_constant_opcode for alternative 0.
1039 (*movti_internal_sse): Ditto.
1040 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1042 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1044 (*movsi_internal): Ditto.
1045 (*movdi_internal): Ditto. Add ssecvt type moves.
1047 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1050 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1052 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1054 PR rtl-optimization/49095
1055 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1056 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1058 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1061 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1062 recurse_p argument. Only follow register copies if it is set,
1063 and prevent mips_find_pic_call_symbol from recursing.
1064 (mips_find_pic_call_symbol): Add a recurse_p argument.
1065 Pass it to mips_pic_call_symbol_from_set.
1066 (mips_annotate_pic_calls): Update accordingly.
1068 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1070 * emit-rtl.c (try_split): Use a loop to search for
1071 NOTE_INSN_CALL_ARG_LOCATIONs.
1073 2011-05-29 Richard Guenther <rguenther@suse.de>
1075 PR tree-optimization/49217
1076 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1078 2011-05-28 Jan Hubicka <jh@suse.cz>
1080 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1082 (string_slot_free): Remove
1083 (create_output_block): Initialize obstack.
1084 (destroy_output_block): Free obstack.
1085 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1086 the string unless it needs to be added into the hash.
1087 (lto_output_string_with_length): Add persistent attribute;
1088 handle NULL strings.
1089 (lto_output_string): Add PERSISTENT parameter.
1090 (output_string_cst, output_identifier): Simplify.
1091 (lto_output_location_bitpack): Update.
1092 (lto_output_builtin_tree): Update.
1093 * lto-streamer.h (struct output_block): Add obstack.
1094 (lto_output_string, lto_output_string_with_length): Remove
1095 declarations; functions are static now.
1097 2011-05-28 Jan Hubicka <jh@suse.cz>
1099 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1100 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1101 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1102 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1103 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1104 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1105 unpack_ts_decl_with_vis_value_fields,
1106 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1107 lto_get_builtin_tree): Use enum and variable length i/o.
1108 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1109 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1111 (bp_pack_enum, bp_unpack_enum): New macros.
1113 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1115 * genrecog.c: Remove redundant forward declarations.
1117 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1119 * config.gcc: Deprecate mips*-*-openbsd*.
1121 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1124 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1127 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1130 * gengtype.c (vec_prefix_type): New function.
1131 (note_def_vec): Use vec_prefix_type and change the length
1132 attribute to be based on the prefix.
1133 * vec.c: Include coretypes.h before vec.h.
1134 (struct vec_prefix): Remove.
1135 (vec_gc_p_reserve): Change the offsetof to sizeof.
1136 (vec_gc_p_reserve_exact): Likewise.
1137 (vec_heap_p_reserve): Likewise.
1138 (vec_heap_p_reserve_exact): Likewise.
1139 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1140 (vec_stack_p_reserve): Change the offsetof to sizeof.
1141 (vec_stack_p_reserve_exact): Likewise.
1142 * vec.h (struct vec_prefix): New struct definition.
1143 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1144 (VEC_T_GTY(T,B)): Likewise.
1145 (DEF_VEC_FUNC_P(T)): Use prefix field.
1146 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1147 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1149 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1151 PR tree-optimization/46728
1152 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1153 (powi_as_mults): Add gimple_set_location.
1154 (build_and_insert_call): New.
1155 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1156 0.5, 0.25, 0.75, 1./3., or 1./6.
1158 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1160 * doc/contrib.texi: Update copyright years.
1161 (Contributors): Add Zdenek Sojka.
1163 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1165 * c-decl.c (c_push_function_context): Copy the current statement
1167 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1168 (finish_struct): Call building_stmt_list_p instead of checking
1170 * c-parser.c (c_parser_postfix_expression): Likewise.
1171 * c-typeck.c (c_end_compound_stmt): Likewise.
1172 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1173 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1174 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1175 (free_stmt_list): Likewise.
1176 * tree.h (struct tree_statement_list): Include typed_tree instead
1178 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1179 as TS_TYPED instead of TS_COMMON.
1181 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1182 Uros Bizjak <ubizjak@gmail.com>
1184 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1185 (HAVE_AS_IX86_TLSGDPTL): Define.
1186 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1187 (HAVE_AS_IX86_TLSLDMPLT): Define.
1188 * configure: Regenerate.
1189 * config.in: Regenerate.
1190 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1191 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1192 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1193 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1194 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1196 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1198 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1200 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1202 (INSN_COND, INSN_REVERSE_COND): New macros.
1203 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1205 (sched_get_condition_with_rev): Cache the results, and look them up
1207 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1208 are clobbered by the current insn.
1209 * target.def (exposed_pipline): New sched data hook.
1210 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1211 * doc/tm.texi: Regenerate.
1213 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1215 PR tree-optimization/49170
1216 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1219 2011-05-27 Richard Guenther <rguenther@suse.de>
1222 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1225 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1227 * haifa-sched.c (sched_scan_info): Remove.
1228 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1230 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1232 (sched_scan): Remove.
1233 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1234 static. All callers changed.
1235 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1236 static. All callers changed.
1237 (sched_init_luids): Remove all arguments except the first. All
1238 callers changed. Don't use sched_scan.
1239 (haifa_init_h_i_d): Likewise.
1240 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1241 manually rather than using sched_init_luids. Likewise with
1242 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1243 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1244 rather than sched_init_luids with NULL args.
1245 * sel-sched-ir.c (new_insns): Remove variable.
1246 (sched_scan): New static function, previously in haifa-sched.c. Remove
1247 all arguments but the first two; all callers changed.
1248 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1249 rather than sched_init_luids.
1250 (sel_init_bbs): Remove second argument. All callers changed.
1251 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1252 with NULL arguments.
1253 (create_insn_rtx_from_pattern): Likewise.
1254 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1255 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1256 (sched_init_insn_luid, sched_extend_luids): Declare.
1257 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1260 2011-05-27 Richard Guenther <rguenther@suse.de>
1263 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1264 A CMP B ? (T) true : (T) false for non-integral types T again.
1266 2011-05-27 Jan Hubicka <jh@suse.cz>
1268 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1269 so 0 means NULL string.
1270 (lto_output_string_with_length): ... here.
1271 (lto_output_string, output_string_cst, output_identifier): Update
1272 handling of NULL strings.
1273 (lto_output_location_bitpack): New function.
1274 (lto_output_location): Use it.
1275 (lto_output_tree_ref): Use output_record_start.
1276 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1278 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1280 (input_string_internal): ... here;
1281 (input_string_cst, input_identifier, lto_input_string): Update handling
1283 (lto_input_location_bitpack): New function
1284 (lto_input_location): Use it.
1285 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1287 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1288 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1289 (bp_pack_value): Sanity check the value range.
1290 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1292 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1295 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1297 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1298 call_arg_location instructions down the floor.
1300 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1302 PR rtl-optimization/49154
1303 * ira.c (setup_pressure_classes): Process class without sublcasses
1304 as a candidate for pressure classes.
1306 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1308 PR rtl-optimization/48575
1309 * genrecog.c (position_type): New enum.
1310 (position): New structure.
1311 (decision): Use position structure instead of a string.
1312 (root_pos, peep2_insn_pos_list): New variables.
1313 (next_position, compare_positions): New functions.
1314 (new_decision): Use position structures instead of strings.
1315 (maybe_both_true): Likewise.
1316 (change_state): Likewise.
1317 (write_tree): Likewise.
1318 (make_insn_sequence): Likewise.
1320 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1322 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1323 TS_BASE instead of TS_COMMON.
1324 (find_decls_types_r): Check for TS_TYPED structure before looking at
1326 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1328 (BLOCK_CHAIN): Use new chain field.
1330 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1332 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1333 moves expensive on Power7 also.
1335 2011-05-26 Richard Guenther <rguenther@suse.de>
1337 * fold-const.c (fold_unary_loc): Remove bogus code.
1339 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1341 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1343 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1344 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1345 TS_BASE instead of TS_COMMON.
1346 * varasm.c (assemble_name): Remove assert.
1348 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1350 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1352 * libgcc-std.ver: Delete file.
1354 2011-05-26 Richard Guenther <rguenther@suse.de>
1356 PR tree-optimization/48702
1357 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1358 only when we know the base address is within bounds.
1359 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1360 assume the base address of TARGET_MEM_REFs is in bounds.
1362 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1365 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1366 declaration in TARGET_SOLARIS.
1368 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1370 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1371 The instruction is then expanded explicitly.
1372 (supported_compare): Callable instruction.
1373 (compare): Likewise.
1375 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1378 * gimplify.c (shortcut_cond_r): Don't special case
1379 COND_EXPRs if they have void type on one of their arms.
1381 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1383 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1384 to reduce duplication, and to achieve a slightly more logical order
1387 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1389 PR tree-optimization/49161
1390 * tree-vrp.c (struct case_info): New type.
1391 (compare_case_labels): Sort case_info structs instead of
1392 trees, and not primarily by CASE_LABEL uids but by
1393 label_for_block indexes.
1394 (find_switch_asserts): Put case labels into struct case_info
1395 array instead of TREE_VEC, adjust sorting, compare label_for_block
1396 values instead of CASE_LABELs.
1398 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1400 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1401 ("orndi3_neon"): Likewise.
1402 ("bic<mode>3_neon"): Likewise.
1404 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1406 PR tree-optimization/49038
1407 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1408 Ensure at least one epilogue iteration if required by data
1410 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1411 to mark loops that require peeling for gaps.
1412 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1413 (vect_get_known_peeling_cost): Take peeling for gaps into
1415 (vect_transform_loop): Generate epilogue if required by data
1417 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1418 loop as requiring an epilogue if there are gaps in the end of
1421 2011-05-25 Ian Lance Taylor <iant@google.com>
1423 * godump.c (go_format_type): Output the first field with a usable
1426 2011-05-25 Ian Lance Taylor <iant@google.com>
1428 * godump.c (go_format_type): Check for invalid type names, pointer
1429 target types, and struct field types.
1431 2011-05-25 Jason Merrill <jason@redhat.com>
1433 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1435 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1437 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1439 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1441 * config/i386/i386.md (*movqi_extv_1)): Put back
1442 "register_operand" check in "type" calculation.
1443 (*movqi_extzv_2): Likewise.
1445 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1447 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1449 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1452 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1453 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1454 __divxc3, __divtc3): Wrap definitions in #ifndef.
1456 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1459 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1460 "register_operand" check and replace q_regs_operand with
1461 QIreg_operand in "type" calculation.
1462 (*movqi_extv_1): Likewise.
1463 (*movqi_extzv_2_rex64): Likewise.
1464 (*movqi_extzv_2): Likewise.
1466 * config/i386/predicates.md (QIreg_operand): New.
1468 2011-05-25 Richard Guenther <rguenther@suse.de>
1470 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1471 type-based offset disambiguation, streamline MEM_REF and
1472 TARGET_MEM_REF handling.
1474 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1476 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1477 (bdesc_special_args): Add pause intrinsic.
1479 * config/i386/i386.md (UNSPEC_PAUSE): New.
1482 * config/i386/ia32intrin.h (__pause): Likewise.
1484 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1487 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1489 PR tree-optimization/46728
1490 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1491 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1493 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1495 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1496 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1497 instead of TS_COMMON.
1499 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1501 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1502 LIBGCC2_GNU_PREFIX is defined.
1504 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1505 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1506 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1507 __clz_tab): Define using __N.
1508 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1509 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1510 * target.def (libfunc_gnu_prefix): New hook.
1511 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1512 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1513 * doc/tm.texi: Regenerate.
1514 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1515 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1517 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1518 (init_optabs): Likewise for the bswap libfuncs.
1519 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1521 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1522 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1523 * libgcc-std.ver: Remove.
1524 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1525 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1527 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1528 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1529 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1530 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1531 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1532 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1533 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1534 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1535 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1536 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1538 2011-05-25 Jan Hubicka <jh@suse.cz>
1540 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1541 (lto_output_tree): Use output_record_start.
1542 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1543 (lto_get_pickled_tree): Use input_record_start.
1544 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1545 (lto_value_range_error): New function.
1546 * lto-streamer.h (lto_value_range_error): Declare.
1547 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1548 (lto_output_enum, lto_input_enum): New macros.
1550 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1552 * common.opt (flag_stack_usage_info): New variable.
1553 (-Wstack-usage): New option.
1554 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1555 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1556 <OPT_fstack_usage>: Likewise.
1557 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1558 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1559 of flag_stack_usage.
1560 (emit_library_call_value_1): Likewise.
1561 * explow.c (allocate_dynamic_stack_space): Likewise.
1562 * function.c (instantiate_virtual_regs ): Likewise.
1563 (prepare_function_start): Likewise.
1564 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1565 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1566 * config/arm/arm.c (arm_expand_prologue): Likewise.
1567 (thumb1_expand_prologue): Likewise.
1568 * config/avr/avr.c (expand_prologue): Likewise.
1569 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1570 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1571 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1572 * config/mips/mips.c (mips_expand_prologue): Likewise.
1573 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1574 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1575 * config/s390/s390.c (s390_emit_prologue): Likewise.
1576 * config/sh/sh.c (sh_expand_prologue): Likewise.
1577 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1578 * config/spu/spu.c (spu_expand_prologue): Likewise.
1580 2011-05-25 Richard Guenther <rguenther@suse.de>
1582 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1583 (gimple_canonical_types_compatible_p): Likewise.
1585 2011-05-25 Jan Hubicka <jh@suse.cz>
1588 * ipa.c (function_and_variable_visibility): Only add to same
1589 comdat group list if DECL_ONE_ONLY.
1591 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1593 PR rtl-optimization/49014
1594 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1596 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1599 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1601 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1603 PR rtl-optimization/48757
1604 * ira-build.c (loop_with_eh_edge_p): Rename to
1605 loop_with_complex_edge_p, check edges on complexity, make function
1607 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1610 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1612 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1613 force flag_ira_share_save_slots to 0.
1615 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1617 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1618 (vt_initialize): Set PROLOGUE_BB unconditionally.
1619 Add block comment about CFA_BASE_RTX machinery.
1620 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1621 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1623 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1626 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1627 parsing of syntax error in ObjC instance variable lists. In
1628 particular, avoid an infinite loop if there is a stray ']'.
1629 Updated error message.
1631 2011-05-24 Ian Lance Taylor <iant@google.com>
1633 * godump.c (go_define): Don't accept a string immediately after
1636 2011-05-24 Ian Lance Taylor <iant@google.com>
1638 * godump.c (struct godump_container): Add invalid_hash field.
1639 (go_format_type): Return false if type is found in invalid_hash.
1640 (go_output_typedef): Add invalid type to invalid_hash.
1641 (go_finish): Create and delete invalid_hash.
1643 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1645 PR tree-optimization/46728
1646 * tree-ssa-math-opts.c (powi_table): New.
1647 (powi_lookup_cost): New.
1649 (powi_as_mults_1): New.
1650 (powi_as_mults): New.
1651 (gimple_expand_builtin_powi): New.
1652 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1653 (gate_cse_sincos): Remove sincos/cexp restriction.
1655 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1658 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1660 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1661 * mips-tdump.c: Likewise.
1663 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1666 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1667 add -mno-XXX. Handle FMA.
1669 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1671 PR rtl-optimization/48633
1672 * ira-build.c (loop_with_eh_edge_p): New function.
1673 (mark_loops_for_removal): Use it.
1675 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1677 PR rtl-optimization/48971
1678 * ira.c (setup_pressure_classes): Don't check register move cost
1679 for classes with one registers. Don't add pressure class if there
1680 is a pressure class with the same available hard registers.
1681 Check contains_reg_of_mode. Fix a typo in collecting
1682 temp_hard_regset. Ignore hard registers not belonging to a class.
1684 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1687 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1689 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1690 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1692 PR gcov-profile/48845
1693 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1695 2011-05-24 Richard Guenther <rguenther@suse.de>
1697 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1698 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1699 (gimple_types_compatible_p_1): Adjust.
1700 (iterative_hash_canonical_type): Do not bother about complete vs.
1702 (gimple_canonical_types_compatible_p): Likewise.
1704 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1706 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1708 2011-05-24 Richard Guenther <rguenther@suse.de>
1711 * gimple.c (gimple_register_canonical_type): Revert
1713 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1714 does not for a tree for the case where it matters. Cache
1715 pointer-type alias-sets.
1717 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1719 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1720 (OBJS): Remove options.o, opts-common.o and prefix.o.
1721 (OBJS-libcommon-target): New.
1722 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1723 (BACKEND): Include libcommon-target.a.
1724 (MOSTLYCLEANFILES): Include libcommon-target.a.
1725 (libcommon-target.a): New.
1726 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1729 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1731 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1732 parts of output shared with the driver.
1733 * optc-gen.awk: Don't generate parts of output not shared with the
1735 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1736 * doc/options.texi (SourcerInclude): Mention options-save.c.
1737 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1738 (OBJS): Add options-save.o.
1739 (options-save.c, options-save.o): New.
1740 (options.o): Update dependencies.
1741 (gcc-options.o): Remove.
1742 (mostlyclean): Remove options-save.c.
1744 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1747 * dbxout.c: Include cgraph.h.
1748 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1749 and without value expr, return NULL if no varpool node exists for
1750 it or if it is not needed.
1751 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1754 * c-decl.c (start_decl): Convert expr to void_type_node.
1756 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1758 PR rtl-optimization/48826
1759 * emit-rtl.c (try_split): When splitting a call that is followed
1760 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1762 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1764 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1765 parameters passed in memory prefer using DECL_INCOMING_RTL over
1766 the pseudos it will be copied into.
1768 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1771 * config/i386/i386.c (ix86_option_override_internal): Save the
1772 initial options after checking vzeroupper.
1774 2011-05-23 David Li <davidxl@google.com>
1776 PR tree-optimization/48988
1777 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1778 Initialize has_valid_pred for each pred chain.
1780 2011-05-23 Richard Guenther <rguenther@suse.de>
1782 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1783 (iterative_hash_gimple_type): Always hash type names.
1785 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1787 * c-typeck.c (build_function_call_vec): Tweak call to
1788 check_function_arguments.
1790 2011-05-23 Richard Guenther <rguenther@suse.de>
1792 PR tree-optimization/49115
1793 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1794 is not necessarily carried out, do not claim it kills the ref.
1795 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1797 2011-05-23 Richard Guenther <rguenther@suse.de>
1800 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1801 what pointer types we accept for folding.
1803 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1805 * gthr-gnat.c: Remove.
1806 * gthr-gnat.h: Remove.
1807 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1808 * config/t-freebsd (LIB2ADDEH): Likewise.
1809 * config/t-linux (LIB2ADDEH): Likewise.
1810 * config/t-sol2 (LIB2ADDEH): Likewise.
1811 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1812 * configure.ac (target_thread_file): Remove gnat handling.
1813 * configure: Regenerate.
1814 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1816 2011-05-23 Tristan Gingold <gingold@adacore.com>
1817 Eric Botcazou <ebotcazou@adacore.com>
1819 * gcov.c (create_file_names): If no object directory is specified,
1820 keep the directory of the file.
1822 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1824 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1825 * configure: Regenerate.
1827 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1830 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1831 failed and the comparison has a single bit signed type, use
1832 constm1_rtx instead of const1_rtx for true value.
1833 (do_store_flag): If ops->type is single bit signed type, disable
1834 signel bit test optimization and pass -1 instead of 1 as last
1835 parameter to emit_store_flag_force.
1837 2011-05-23 Tom de Vries <tom@codesourcery.com>
1840 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1842 (infer_loop_bounds_from_undefined): Use new function.
1844 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1846 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1847 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1848 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1850 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1852 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1854 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1855 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1858 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1860 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1862 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1864 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1865 UNSPEC_MOVE_PIC pattern.
1867 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1869 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1870 (sparc-*-rtems*): Likewise.
1871 (sparc64-*-elf*): Likewise.
1872 (sparc64-*-rtems*): Likewise.
1873 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1874 * config/sparc/t-crtin: New file.
1875 * config/sparc/t-sol2 (crti.o): Delete rule.
1877 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1878 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1879 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1880 (ENDFILE_SPEC): Add crtn.o.
1882 2011-05-22 Tom de Vries <tom@codesourcery.com>
1885 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1886 CODE_CONTAINS_STRUCT (TS_COMMON).
1888 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1891 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1892 only after deciding which mode to use.
1894 2011-05-22 Tom de Vries <tom@codesourcery.com>
1897 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1898 for call to get_shiftadd_cost.
1900 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1903 * config/i386/cpuid.h (bit_MMXEXT): New define.
1905 2011-05-22 Nick Clifton <nickc@redhat.com>
1907 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1908 initialisation of non-existant args[2] element. Use args[] array
1909 not arg[] array to pass arguments to build_function_type_list.
1911 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1913 PR tree-optimization/49087
1914 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1916 2011-05-21 Jason Merrill <jason@redhat.com>
1919 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1920 static storage duration.
1922 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1924 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1927 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1929 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1930 false if there are call-saved registers here...
1931 (sparc_can_use_return_insn_p): ...but here instead.
1932 (save_or_restore_regs): Fix thinko.
1933 (sparc_expand_prologue): Use current_function_is_leaf.
1934 (sparc_frame_pointer_required): Likewise.
1936 2011-05-21 Nick Clifton <nickc@redhat.com>
1939 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1941 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1943 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1944 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1946 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1948 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1949 * optc-gen.awk: Move common code to opt-read.awk.
1950 * opth-gen.awk: Likewise.
1951 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1953 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1955 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1957 2011-05-20 Tom de Vries <tom@codesourcery.com>
1960 * tree-ssa-loop-ivopts.c: Include expmed.h.
1961 (get_shiftadd_cost): New function.
1962 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1964 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1967 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1968 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1970 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1972 * Makefile.in: Update comment referring to $(OBJS-common).
1974 2011-05-20 Ian Lance Taylor <iant@google.com>
1976 * godump.c (go_output_typedef): Put enum constants in the macro
1977 hash table to avoid duplicate Go const definitions.
1979 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1981 * Makefile.in (LIBDEPS): Add libcommon.a.
1983 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1984 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1985 pretty-print.o and version.o.
1986 (OBJS-libcommon): New.
1987 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1988 (BACKEND): Add libcommon.a.
1989 (MOSTLYCLEANFILES): Likewise.
1991 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1992 (cpp$(exeext)): Likewise.
1993 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1994 pretty-print.o and input.o.
1995 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1996 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1998 (mips-tfile): Don't explicitly use version.o.
1999 (mips-tdump): Likewise.
2000 (gcov.o): Depend on $(DIAGNOSTIC_H).
2001 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2002 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2003 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2004 * gcov-dump.c: Include intl.h and diagnostic.h.
2005 (main): Initialize diagnostics.
2006 * gcov.c: Include diagnostic.h.
2008 (main): Initialize diagnostics.
2009 * lto-wrapper.c: Include diagnostic.h.
2010 (main): Initialize diagnostics.
2012 2011-05-20 Michael Matz <matz@suse.de>
2014 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2016 2011-05-20 Michael Matz <matz@suse.de>
2017 Richard Guenther <rguenther@suse.de>
2019 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2020 use lto_streamer_cache_append directly instead of returning a VEC.
2021 (preload_common_node): Remove.
2022 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2024 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2026 2011-05-20 Richard Guenther <rguenther@suse.de>
2028 PR tree-optimization/49079
2029 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2030 MEM_REFs correctly for the trailing array access detection.
2031 Special case constants the same way as decls for overall size
2034 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2036 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2039 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2041 PR tree-optimization/49073
2042 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2043 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2044 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2046 2011-05-20 Richard Guenther <rguenther@suse.de>
2049 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2050 of pointer types the same way the middle-end does.
2052 2011-05-20 Richard Guenther <rguenther@suse.de>
2054 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2055 or pointer-to chains. Delay all fixup to uniquify_nodes.
2057 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2059 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2060 (fma4_fmaddsub): Likewise
2062 2011-05-19 Jan Hubicka <jh@suse.cz>
2064 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2065 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2066 (type_pair_cache): New static var.
2067 (lookup_type_pair): Use fixed sized custom hash; make inline.
2068 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2069 calls of lookup_type_pair.
2070 (print_gimple_types_stats): Remove cache stats.
2071 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2074 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2076 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2077 when TARGET_RDRND is active.
2078 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2079 Generate dummy SImode target register when target is NULL.
2081 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2083 * config/arm/arm-fpus.def: New.
2084 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2086 * config/arm/arm-tables.opt: Regenerate.
2087 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2088 (arm_option_override): Don't decode FPU name to string here.
2089 * config/arm/arm.opt (mfpu=): Use Enum.
2090 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2091 Update dependencies.
2093 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2095 * collect2.c: Include diagnostic.h.
2096 (fatal_perror, fatal, error, fancy_abort): Remove.
2097 (main): Set progname. Call xmalloc_set_program_name and
2098 diagnostic_initialize.
2099 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2100 scan_libraries, resolve_lib_name): Call fatal_error instead of
2101 fatal and fatal_perror.
2102 * collect2.h (error, fatal, fatal_perror): Don't declare.
2103 * tlink.c: Include diagnostic-core.h.
2104 (recompile_files): Call fatal_error instead of fatal_perror.
2105 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2106 pretty-print.o and input.o.
2107 (collect2.o, tlink.o): Update dependencies.
2109 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2111 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2113 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2116 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2117 COMDAT group syntax, both SPARC and x86 variants.
2118 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2119 * configure: Regenerate.
2120 * config/sol2.h (TARGET_SOLARIS): Define.
2121 (PUSHSECTION_FORMAT): Remove.
2122 (SECTION_NAME_FORMAT): Define.
2123 * config/sol2.c: Include hashtab.h.
2124 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2125 expansion, using SECTION_NAME_FORMAT.
2126 (solaris_comdat_htab): New variable.
2127 (struct comdat_entry): Define.
2128 (comdat_hash): New function.
2129 (comdat_eq): New function.
2130 (solaris_elf_asm_comdat_section): New function.
2131 (solaris_define_comdat_signature): New function.
2132 (solaris_code_end): New function.
2133 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2134 (solaris_code_end): Declare.
2135 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2136 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2138 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2139 Remove ATTRIBUTE_UNUSED.
2140 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2141 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2142 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2143 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2144 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2145 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2146 (PUSHSECTION_FORMAT): Remove.
2147 (SECTION_NAME_FORMAT): Redefine.
2149 2011-05-19 Kai Tietz <ktietz@redhat.com>
2151 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2152 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2153 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2155 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2156 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2158 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2160 2011-05-19 Richard Guenther <rguenther@suse.de>
2163 * tree-object-size.c (addr_object_size): If the pointed-to
2164 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2166 2011-05-19 Richard Guenther <rguenther@suse.de>
2168 * gimple.c (gimple_types_compatible_p_1): Compare names of
2169 the types themselves.
2170 (iterative_hash_gimple_type): And hash them that way.
2171 (gimple_register_type_1): If we register a main variant properly
2172 initialize the leader to ourselves.
2174 2011-05-19 Tom de Vries <tom@codesourcery.com>
2177 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2178 get_loop_invariant_expr_id.
2179 (get_loop_invariant_expr_id): Use get_expr_id.
2180 (parm_decl_cost): New function.
2181 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2182 Improve bound cost estimation. Use different inv_expr_id for elim and
2185 2011-05-19 Tom de Vries <tom@codesourcery.com>
2188 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2189 cost_base.cost == 0.
2191 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2194 * config/i386/sse.md
2195 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2198 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2200 PR tree-optimization/49039
2201 * tree-vrp.c (extract_range_from_binary_expr): For
2202 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2203 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2205 2011-05-18 Tom de Vries <tom@codesourcery.com>
2208 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2210 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2212 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2213 (*tls_global_dynamic_64): Ditto.
2214 (*tls_local_dynamic_base_32_gnu): Ditto.
2215 (*tls_local_dynamic_base_64): Ditto.
2216 (tls_initial_exec_64_sun): Ditto.
2218 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2220 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2221 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2223 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2224 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2225 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2226 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2227 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2228 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2229 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2231 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2233 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2234 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2235 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2236 target_thread_pointer, arm_structure_size_boundary, struct
2237 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2238 struct abi_name, arm_all_abis): Remove.
2239 (arm_option_override) Don't process most enumerated option values here.
2240 Don't process target_fpe_name here. Work with integer not string for
2241 structure size boundary; use separate diagnostics for each case.
2242 * config/arm/arm.h (enum float_abi_type, enum
2243 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2245 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2246 arm_structure_size_boundary): Remove.
2247 * config/arm/arm.opt (mabi=): Use Enum and Init.
2248 (arm_abi_type): New Enum and EnumValue entries.
2249 (mfloat-abi=): Use Enum and Init.
2250 (float_abi_type): New Enum and EnumValue entries.
2251 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2252 (mfp16-format=): Use Enum and Init.
2253 (arm_fp16_format_type): New Enum and EnumValue entries.
2254 (mstructure-size-boundary=): Use UInteger and Init.
2255 (mtp=): Use Enum and Init.
2256 (arm_tp_type): New Enum and EnumValue entries.
2258 2011-05-18 Richard Guenther <rguenther@suse.de>
2260 PR tree-optimization/49018
2261 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2262 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2263 gimple_has_side_effects.
2265 2011-05-18 Richard Guenther <rguenther@suse.de>
2267 * gimple.c (gimple_register_type_1): New function, split out from ...
2268 (gimple_register_type): ... here. Avoid infinite recursion.
2270 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2272 PR tree-optimization/41881
2273 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2274 reduction_chains along with a macro for its access.
2275 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2276 (destroy_loop_vec_info): Free reduction chains.
2277 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2278 (vect_is_slp_reduction): New function.
2279 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2280 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2281 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2282 definition types for reduction chains.
2283 (vect_supported_load_permutation_p): Don't allow permutations for
2285 (vect_analyze_slp_instance): Support reduction chains.
2286 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2287 (vect_get_constant_vectors): Handle reduction chains.
2288 (vect_schedule_slp_instance): Mark the first statement of the
2289 reduction chain as reduction.
2291 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2293 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2294 names for group elements access.
2295 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2296 reduction chains as well. Remove data reference and interleaving
2297 related words from the fields names.
2298 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2300 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2301 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2302 vect_update_interleaving_chain, vect_same_range_drs,
2303 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2304 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2305 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2306 vect_analyze_group_access, vect_analyze_data_ref_access,
2307 vect_create_data_ref_ptr, vect_transform_strided_load,
2308 vect_record_strided_load_vectors): Likewise.
2309 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2310 vect_model_load_cost, vectorizable_store, vectorizable_load,
2311 vect_remove_stores, new_stmt_vec_info): Likewise.
2312 * tree-vect-slp.c (vect_build_slp_tree,
2313 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2315 2011-05-18 Richard Guenther <rguenther@suse.de>
2318 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2319 operand verification.
2320 (verify_gimple_assign_binary): Likewise.
2321 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2322 to non-1-precision BOOLEAN_TYPEs.
2324 2011-05-18 Tom de Vries <tom@codesourcery.com>
2327 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2329 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2331 PR tree-optimization/49000
2332 * tree-ssa.c (execute_update_addresses_taken): Call
2333 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2334 be rewritten and decl has been marked for renaming, reset
2337 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2339 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2340 enum_opts_set when testing if attributes have set -mfpmath=.
2342 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2344 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2346 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2348 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2350 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2351 id.transform_lang_insert_block with NULL.
2353 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2355 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2356 (output_fp_compare): Change args 3 and 4 to bool.
2357 (ix86_expand_call): Change arg 6 to bool.
2358 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2359 (ix86_attr_length_vex_default): Change arg 3 to bool.
2360 * config/i386/i386.md: Update all uses.
2361 * config/i386/i386.c: Ditto.
2362 (ix86_flags_dependent): Change return type to bool.
2364 2011-05-17 Richard Guenther <rguenther@suse.de>
2366 * gimple.c (type_hash_pair_compare): Fix comparison.
2368 2011-05-17 Richard Guenther <rguenther@suse.de>
2370 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2371 case some more, fix final hash value of the non-singleton case.
2373 2011-05-17 Richard Guenther <rguenther@suse.de>
2377 2011-05-16 Richard Guenther <rguenther@suse.de>
2379 * gimple.c (gimple_types_compatible_p_1): Use names of the
2380 type itself, not its main variant.
2381 (iterative_hash_gimple_type): Likewise.
2383 2011-05-17 Richard Guenther <rguenther@suse.de>
2385 * gimple.c (gimple_register_canonical_type): Use the main-variant
2386 leader for computing the canonical type.
2388 2011-05-17 Nick Clifton <nickc@redhat.com>
2390 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2393 * config/rx/rx.md: Add peephole to remove redundant extensions
2395 (bitset_in_memory): Use rx_restricted_mem_operand.
2396 (bitinvert_in_memory): Likewise.
2397 (bitclr_in_memory): Likewise.
2399 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2400 Nick Clifton <nickc@redhat.com>
2402 * config/rx/rx.md: Add peepholes to match a register move followed
2403 by a comparison of the moved register. Replace these with an
2404 addition of zero that does both actions in one instruction.
2406 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2409 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2410 predicate to allow CONST_INT.
2411 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2413 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2415 * opts-common.c (opt_enum_arg_to_value): New.
2416 * opts.h (opt_enum_arg_to_value): Declare.
2417 * config/i386/i386.opt (fpmath): Remove.
2418 (mfpmath=): Use Enum, Init and Save.
2419 (fpmath_unit): New Enum and EnumValue entries.
2420 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2421 name for function fpmath state.
2422 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2423 * config/i386/i386.c: Include diagnostic.h.
2424 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2425 (ix86_target_string): Take enum fpmath_unit value instead of string.
2426 (ix86_debug_options): Update call to ix86_target_string.
2427 (ix86_option_override_internal): Don't process fpmath strings here.
2428 (x86_function_specific_save, ix86_function_specific_restore):
2429 Don't handle fpmath state specially.
2430 (ix86_function_specific_print): Pass fpmath state to
2431 ix86_target_string instead of printing in this function.
2432 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2433 Handle enum attributes.
2434 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2435 (ix86_valid_target_attribute_tree): Update option_strings
2436 handling. Handle fpmath as enum option.
2437 (ix86_can_inline_p): Update field names for function fpmath state.
2438 (ix86_expand_builtin): Update call to ix86_target_string.
2439 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2440 (ix86_fpmath): Remove.
2441 * config/i386/t-i386 (i386.o): Update dependencies.
2443 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2445 PR preprocessor/48677
2446 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2447 from decoded_options[0], not from itself.
2449 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2451 * config/i386/constraints.md (z): New constraint.
2452 * config/i386/i386.c (c): New mode attribute.
2453 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2454 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2455 constraint for operand 0.
2456 (*call_vzeroupper): Ditto.
2457 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2458 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2459 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2460 Use "lzm" constraint for operand 0.
2461 (*call_pop_vzeroupper): Ditto.
2462 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2463 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2464 constraint for operand 0.
2465 (*sibcall_vzeroupper): Ditto.
2466 (*sibcall_rex64_ms_sysv): Ditto.
2467 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2468 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2469 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2470 (*sibcall_pop_vzeroupper): Ditto.
2471 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2472 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2473 mode iterator. Use "<c>zm" constraint for operand 1.
2474 (*call_value_vzeroupper): Ditto.
2475 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2477 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2478 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2479 *call_value_pop_1. Use "lzm" constraint for operand 1.
2480 (*call_value_pop_vzeroupper): Ditto.
2481 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2482 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2483 mode iterator. Use "Uz" constraint for operand 1.
2484 (*sibcall_value_vzeroupper): Ditto.
2485 (*sibcall_value_rex64_ms_sysv): Ditto.
2486 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2487 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2488 constraint for operand 1.
2489 (*sibcall_value_pop_vzeroupper): Ditto.
2490 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2491 and "z" constraint for operand 2.
2492 (*tls_global_dynamic_32_gnu): Ditto.
2493 (*tls_local_dynamic_base_32_gnu): Ditto.
2494 (*tls_local_dynamic_base_64): Ditto.
2495 (*tls_local_dynamic_32_once): Ditto.
2496 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2498 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2500 2011-05-16 Richard Guenther <rguenther@suse.de>
2502 * gimple.c (gimple_types_compatible_p_1): Use names of the
2503 type itself, not its main variant.
2504 (iterative_hash_gimple_type): Likewise.
2506 2011-05-16 Richard Guenther <rguenther@suse.de>
2508 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2509 always visit pointer target and function result and argument types.
2511 2011-05-16 Jason Merrill <jason@redhat.com>
2514 * tree-inline.c (copy_statement_list): Put back recursion.
2516 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2520 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2521 * config/avr/avr.md ("*ior<mode>qi.byte0",
2522 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2524 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2527 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2528 register is needed for a function argument.
2530 2011-05-16 Richard Guenther <rguenther@suse.de>
2532 * gimple.c (struct type_hash_pair): New type.
2533 (type_hash_pair_compare): New function.
2534 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2536 2011-05-16 Revital Eres <revital.eres@linaro.org>
2538 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2540 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2542 * config/i386/i386.md (floating point move splitters): Fix
2543 usage of standard_80387_constant_p.
2544 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2546 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2548 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2550 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2552 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2553 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2554 (tree_ssa_lim_finalize): Likewise.
2556 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2558 * config/i386/constraint.md (Yd, Yx): New register constraints.
2559 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2560 Yd conditional register constraint.
2561 (*movtf_internal): Use standard_sse_constant_opcode.
2562 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2563 Yx conditional register constraint.
2564 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2565 Yd conditional register constraint. Use standard_sse_constant_p to
2566 check for valid SSE constants and call standard_sse_constant_opcode to
2568 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2569 constants and call standard_sse_constant_opcode to output SSE insn.
2570 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2571 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2572 optimize_size is set.
2573 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2575 2011-05-14 Tobias Burnus <burnus@net-b.de>
2577 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2579 2011-05-13 Martin Jambor <mjambor@suse.cz>
2581 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2582 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2583 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2584 (evaluate_conditions_for_ipcp_clone): Removed.
2585 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2586 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2587 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2589 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2591 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2592 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2593 lieu of MAY_HAVE_DEBUG_STMTS.
2594 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2595 debug statements if !MAY_HAVE_DEBUG_STMTS.
2597 2011-05-13 Martin Thuresson <martint@google.com>
2599 PR gcov-profile/47793
2600 * libgcov.c (gcov_exit): Support relative profile paths.
2601 * doc/invoke.texi (-fprofile-dir): Update for above change.
2603 2011-05-13 Richard Guenther <rguenther@suse.de>
2605 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2606 type-pair caching, do not compare hashes.
2608 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2611 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2612 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2614 2011-05-13 Kai Tietz <ktietz@redhat.com>
2616 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2617 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2618 compatible type for TRUTH_NOT_EXPR.
2620 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2622 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2623 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2624 can_create_pseudo_p ().
2626 2011-05-13 Richard Guenther <rguenther@suse.de>
2629 * gimple.c (iterative_hash_gimple_type): Revert change in
2630 pointer target and function result and argument hashing.
2632 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2634 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2635 (*movxf_internal_nointeger): Ditto.
2636 (*movdf_internal_rex64): Ditto.
2637 (*movdf_internal): Ditto.
2638 (*movdf_internal_nointeger): Ditto.
2639 (*movsf_internal): Ditto.
2640 (sincos splitters): Use can_create_pseudo ().
2642 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2644 * config/i386/i386-opts.h: New.
2645 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2646 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2647 ix86_section_threshold): Remove.
2648 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2649 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2651 (ix86_option_override_internal): Don't decode strings for options
2652 other than -march=, -mtune= and -mfpmath=. Don't allow for
2653 __attribute__ uses in remaining diagnostics for options with
2654 string arguments. Don't check for integer arguments being negative.
2655 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2656 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2657 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2658 ix86_branch_cost, ix86_section_threshold): Remove.
2659 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2661 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2663 (masm=): Use Enum and Init.
2664 (asm_dialect): New Enum and EnumValue entries.
2665 (mbranch-cost=): Use UInteger.
2666 (mlarge-data-threshold=): Use UInteger and Init.
2667 (mcmodel=): Use Enum and Init.
2668 (cmodel): New Enum and EnumValue entries.
2669 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2670 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2671 mregparm=): Use UInteger.
2672 (mstringop-strategy=): Use Enum and Init.
2673 (stringop_alg): New Enum and EnumValue entries.
2674 (mtls-dialect=): Use Enum and Init.
2675 (tls_dialect): New Enum and EnumValue entries.
2676 (mabi=): Use Enum and Init.
2677 (calling_abi): New Enum and EnumValue entries.
2678 (mveclibabi=): Use Enum and Init.
2679 (ix86_veclibabi): New Enum and EnumValue entries.
2681 2011-05-13 Nick Clifton <nickc@redhat.com>
2683 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2684 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2686 2011-05-13 Kai Tietz <ktietz@redhat.com>
2689 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2690 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2691 (gimple_boolify): Check for cast for boolean_type_node instead for
2694 2011-05-13 Richard Guenther <rguenther@suse.de>
2696 PR tree-optimization/48172
2697 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2698 multiplying by number of iterations for equal step.
2699 (vect_create_cond_for_alias_checks): Likewise.
2701 2011-05-13 Andreas Schwab <schwab@redhat.com>
2703 * configure.ac: Use AS_HELP_STRING throughout.
2704 * configure: Regenerate.
2706 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2708 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2709 (ix86_emit_restore_regs_using_mov): Likewise.
2710 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2712 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2714 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2715 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2716 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2717 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2718 RTX_OK_FOR_OLO10_P): ...here.
2719 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2722 2011-05-12 Kai Tietz <ktietz@redhat.com>
2724 * gimplify.c (gimple_boolify): Re-boolify expression
2725 arguments even if expression type is of kind BOOLEAN_TYPE.
2726 (gimplify_boolean_expr): Removed.
2727 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2728 and XOR. Additional take care that we keep expression's type.
2729 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2730 of TRUTH_AND|OR|XOR_EXPR.
2732 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2734 PR tree-optimization/48975
2735 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2736 on all bbs here and free and clear ifc_bbs at the end.
2738 2011-05-12 Richard Guenther <rguenther@suse.de>
2740 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2741 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2742 until after simple checks.
2743 (gimple_types_compatible_p): Likewise.
2744 (iterative_hash_gimple_type): Always hash pointer targets
2745 and function return and argument types.
2746 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2747 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2748 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2749 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2750 completely in the simple compare section.
2751 (gimple_register_canonical_type): Query the cache again after
2754 2011-05-12 Richard Guenther <rguenther@suse.de>
2756 PR tree-optimization/48172
2757 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2758 the number of iterations from the segment size calculation.
2759 (vect_create_cond_for_alias_checks): Adjust.
2761 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2764 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2765 if validate_subreg fails.
2767 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2769 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2770 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2773 2011-05-12 DJ Delorie <dj@redhat.com>
2775 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2776 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2777 created builtin into rx_builtins array.
2778 (rx_builtin_decl): New function.
2779 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2781 2011-05-12 DJ Delorie <dj@redhat.com>
2782 Nick Clifton <nickc@redhat.com>
2784 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2785 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2786 (rx_is_legitimate_address): Add pre-decrement and post-increment
2787 addressing in HImode and QImode. Fix test for out of range
2789 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2790 (rx_align_for_label): Test label before extracting its usage count.
2791 (rx_adjust_insn_lengths): Fix selection of insn codes.
2792 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2794 2011-05-11 Jason Merrill <jason@redhat.com>
2796 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2798 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2800 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2801 reindent the subsequent block.
2803 2011-05-11 Satoru Takabayashi <satorux@google.com>
2804 Paul Pluzhnikov <ppluzhnikov@google.com>
2806 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2807 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2808 * config.in: Add LINKER_HASH_STYLE.
2809 * configure.ac: Add --with-linker-hash-style.
2810 * configure: Regenerate.
2812 2011-05-11 Richard Guenther <rguenther@suse.de>
2815 * gimple.c (iterative_hash_canonical_type): Fix typo.
2817 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2819 * config/i386/i386.c (legitimize_tls_address)
2820 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2821 expanders directly for TARGET_GNU2_TLS. Determine pic and
2822 __tls_get_addr symbol reference here. Update call to
2823 gen_tls_global_dynamic_{32,64} for added arguments.
2824 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2825 expanders directly for TARGET_GNU2_TLS. Determine
2826 __tls_get_addr symbol reference here. Update call to
2827 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2828 unique UNSPEC REG_EQUIV to libcall block.
2829 (ix86_tls_get_addr): Declare static.
2830 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2831 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2832 Do not determine pic and __tls_get_addr symbol reference here. Do not
2833 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2834 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2835 (tls_global_dynamic_64): Add operand 2. Do not determine
2836 __tls_get_addr symbol reference here. Do not call
2837 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2838 (tls_local_dynamic_base64): Ditto for operand 1.
2840 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2842 * function.c (expand_function_start): Initialize stack_check_probe_note
2843 only if the generic stack checking mechanism is used.
2845 2011-05-11 Richard Guenther <rguenther@suse.de>
2847 PR tree-optimization/15256
2848 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2849 (A & B) | C, combine (A op CST1) op CST2.
2850 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2851 visit assigns that have uses.
2853 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2855 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2856 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2857 (unpack_ts_type_common_value_fields): ...this. Update comment.
2858 (unpack_value_fields): Adjust for renaming.
2859 (lto_input_ts_type_tree_pointers): Split into...
2860 (lto_input_ts_type_common_tree_pointer): ...this and...
2861 (lto_input_ts_type_non_common_tree_pointers): ...this.
2862 (lto_input_tree_pointers): Adjust for above split.
2863 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2864 (pack_ts_type_common_value_fields): ...this. Update comment.
2865 (lto_output_ts_type_tree_pointers): Split into...
2866 (lto_output_ts_type_common_tree_pointers): ...this and...
2867 (lto_output_ts_type_non_common_tree_pointers): ...this.
2868 (lto_output_tree_pointers): Adjust for above split.
2869 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2870 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2871 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2872 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2874 (struct tree_type): Split into...
2875 (struct tree_type_common: ...this and...
2876 (struct tree_type_with_lang_specific): ...this and...
2877 (struct tree_type_non_common): ...this. Adjust accessor macros
2879 (TYPE_VALUES_RAW): Define.
2880 (union tree_node): Update for above changes.
2881 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2883 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2884 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2885 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2886 * treestructu.def (TS_TYPE): Remove.
2887 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2890 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2893 * tree-ssa.c (reset_debug_uses): New function.
2894 * tree-flow.h (reset_debug_uses): New prototype.
2895 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2896 * tree-loop-distribution.c (generate_loops_for_partition): Call
2897 reset_debug_uses on the stmts that will be removed. Keep around
2898 all debug stmts, don't count them as bits in partition bitmap.
2899 (generate_builtin): Don't count debug stmts or labels as bits in
2902 2011-05-11 Richard Guenther <rguenther@suse.de>
2904 * gimple.c (gimple_type_hash_1): Merge with ...
2905 (gimple_type_hash): ... this.
2906 (gtc_visit): Remove mode parameter and simplify accordingly.
2907 (gimple_types_compatible_p_1): Likewise.
2908 (gimple_types_compatible_p): Likewise.
2909 (iterative_hash_gimple_type): Likewise.
2911 (gimple_type_eq): Adjust.
2913 2011-05-11 Revital Eres <revital.eres@linaro.org>
2915 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2916 enters the branch create an anti edge in the opposite direction
2917 to prevent the creation of reg-moves.
2918 * modulo-sched.c: Adjust comment to reflect the fact we are
2919 scheduling closing branch.
2920 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2921 (stage_count): New field in struct partial_schedule.
2922 (calculate_stage_count): New function.
2923 (normalize_sched_times): Rename to reset_sched_times and handle
2924 incrementing the sched time of the nodes by a constant value
2925 passed as parameter.
2926 (duplicate_insns_of_cycles): Skip closing branch.
2927 (sms_schedule_by_order): Schedule closing branch.
2928 (ps_insn_find_column): Handle closing branch.
2929 (sms_schedule): Call reset_sched_times and adjust the code to
2930 support scheduling of the closing branch.
2931 (ps_insert_empty_row): Update calls to normalize_sched_times
2932 and rotate_partial_schedule functions.
2934 2011-05-11 Richard Guenther <rguenther@suse.de>
2937 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2939 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2941 * opts.c (finish_options): Move warning settings from process_options.
2942 * toplev.c (process_options): Move warning settings to finish_options.
2944 2011-05-11 Richard Guenther <rguenther@suse.de>
2946 PR tree-optimization/18041
2947 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2948 (simplify_bitwise_binary): ... this. Handle operand conversions
2949 by applying them to the result instead.
2950 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2952 2011-05-11 Richard Guenther <rguenther@suse.de>
2954 * gimple.c (gimple_canonical_types_compatible_p): Split out
2955 from gimple_types_compatible_p and friends. Do not recurse
2956 to pointed-to types.
2957 (gimple_canonical_type_eq): Use it.
2958 (iterative_hash_canonical_type): Split out from
2959 iterative_hash_gimple_type and friends. Do not recurse
2960 to pointed-to types.
2961 (gimple_canonical_type_hash): Use it, allocate the hash here.
2963 2011-05-11 Revital Eres <revital.eres@linaro.org>
2965 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2968 2011-05-11 Revital Eres <revital.eres@linaro.org>
2970 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2971 instead of PREV_INSN.
2973 2011-05-11 Revital Eres <revital.eres@linaro.org>
2975 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2976 * loop-doloop.c (doloop_condition_get): Likewise.
2977 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2979 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2981 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2983 * tree.def (CASE_LABEL_EXPR): Add an operand.
2984 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2986 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2988 * c-decl.c (c_override_global_bindings_to_false): Remove.
2989 (global_bindings_p): Don't check
2990 c_override_global_bindings_to_false.
2991 * c-tree.h (c_override_global_bindings_to_false): Remove.
2992 * c-typeck.c (composite_type): Don't set
2993 c_override_global_bindings_to_false.
2995 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2997 PR target/48857, 48495
2998 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3000 (VSX_MOVE_MODE): Ditto.
3001 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3002 VSX vector types. Add V2DImode.
3003 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3004 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3005 (MODES_TIEABLE_P): Ditto.
3007 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3008 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3010 (init_cumulative_args): Ditto.
3011 (rs6000_function_arg_boundary): Ditto.
3012 (rs6000_function_arg_advance_1): Ditto.
3013 (rs6000_function_arg): Ditto.
3014 (rs6000_function_ok_for_sibcall): Ditto.
3015 (emit_frame_save): Ditto.
3016 (rs6000_function_value): Ditto.
3017 (rs6000_libcall_value): Ditto.
3019 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3021 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3022 i386/darwin-lib.h to $libgcc_tm_file.
3023 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3025 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3027 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3029 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3031 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3032 * config/rs6000/rs6000-tables.opt: New file (generated).
3033 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3034 rs6000/rs6000-tables.opt to extra_options.
3035 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3036 * config/rs6000/rs6000.c (rs6000_select): Remove.
3037 (processor_target_table): Move contents to rs6000-cpus.def.
3038 (darwin_rs6000_override_options): Check
3039 global_options_set.x_rs6000_cpu_index instead of
3040 rs6000_select[1].string.
3041 (rs6000_option_override_internal): Likewise.
3042 (rs6000_handle_option): Don't assert that global structures are in
3043 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3044 (rs6000_default_cpu): New variable.
3045 (rs6000_file_start): Set it instead of local default_cpu. Check
3046 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3047 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3048 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3049 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3050 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3051 rs6000_select): Remove.
3052 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3054 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3055 * config/rs6000/t-rs6000
3056 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3057 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3058 global_options_set.x_rs6000_cpu_index instead of
3059 rs6000_select[1].string.
3060 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3061 global_options_set.x_rs6000_cpu_index instead of
3062 rs6000_select[1].string.
3064 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3066 * config.gcc (libgcc_tm_file): Define instead of including files
3067 from ../../libgcc/config/ in tm_file.
3068 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3069 * configure: Regenerate.
3070 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3071 libgcc_tm.h, cs-libgcc_tm.h): New.
3072 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3073 (clean): Remove libgcc_tm.h.
3074 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3075 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3076 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3078 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3081 * config/avr/avr.c (avr_ret_register): Return unsigned int
3083 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3084 it to avr_libcall_value.
3085 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3087 (avr_expand_binop_builtin): Ditto.
3088 (avr_expand_unop_builtin): Ditto.
3090 2011-05-10 DJ Delorie <dj@redhat.com>
3092 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3093 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3094 * config/rx/rx.c (rx_align_for_label): Add label and
3095 uses_threshold parameters. Do not align when the label is not
3097 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3099 2011-05-10 Richard Guenther <rguenther@suse.de>
3101 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3102 a series of conversions and apply foldings similar to what
3104 (tree_ssa_forward_propagate_single_use_vars): Call it.
3106 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3108 PR tree-optimization/48611
3109 PR tree-optimization/48794
3110 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3111 referenced from RESX or EH_DISPATCH arguments.
3114 * dfp.c (decimal_to_decnumber): Handle conversion from
3115 dconst{1,2,m1,half}.
3117 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3119 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3120 for !flag_prefer_avx128.
3121 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3123 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3125 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3126 (fold_ternary_loc): Use expr_location_or.
3128 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3131 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3132 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3133 Pmode and mem_mode is not VOIDmode.
3135 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3137 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3138 TYPE_QUAL_RESTRICT): Convert to enum.
3140 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3142 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3143 (const_pow2_1_to_8_operand): Ditto.
3144 (const_pow2_1_to_128_operand): Ditto.
3145 (const_pow2_1_to_32768_operand): Ditto.
3146 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3147 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3148 in insn constraint to check integer value of operand 3.
3149 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3151 (PINSR_MODE): New mode iterator.
3152 (sse2p4_1): New mode attribute.
3153 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3154 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3155 iterator. Use const_int_operand instead of
3156 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3157 exact_log2 in insn constraint to check integer value of operand 3.
3159 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3161 * config/i386/sse.md (blendbits): Remove mode attribute.
3162 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3163 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3164 Check integer value of operand 3 in insn constraint.
3166 2011-05-09 Richard Guenther <rguenther@suse.de>
3168 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3170 (lto_symtab_merge): Likewise. Do not register types here.
3171 (lto_symtab_merge_decls_2): Likewise.
3172 (lto_symtab_merge_decls_1): Likewise.
3173 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3174 * gimple.c (enum gtc_mode): Declare.
3175 (gimple_types_compatible_p): Make static.
3177 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3179 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3180 temporary register to match Pmode.
3182 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3184 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3185 and *vec_concatv4si_1_avx.
3187 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3189 PR rtl-optimization/48927
3190 * ira-conflicts.c (commutative_constraint_p): Use
3191 recog_data.alternative_enabled_p to disable alternatives where
3192 "enabled" attribute is false.
3193 (get_dup_num): Ditto.
3194 * ira-lives.c (single_reg_class): Ditto.
3195 (ira_implicitly_set_insn_hard_regs): Ditto.
3197 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3199 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3200 (dataflow_set_preserve_mem_locs): Likewise.
3202 2011-05-09 Philipp Thomas <pth@suse.de>
3204 * config/mep/mep.c (mep_validate_vliw): Syntax description
3205 should not be translated.
3207 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3209 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3210 * config/mips/mips-tables.opt: New file (generated).
3211 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3212 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3213 MIPS_ARCH_OPTION_NATIVE): Define.
3214 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3216 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3217 mips_parse_cpu): Remove.
3218 (mips_cpu_info_from_opt, mips_default_arch): New.
3219 (mips_handle_option): Don't assert that global structures are in
3220 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3221 (mips_option_override): Use new variables and functions to set
3222 state of these options. Use strcmp to check for individual CPU names.
3223 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3225 * config/mips/mips.opt (march=): Use ToLower and Enum.
3226 (mips): Use ToLower, Enum and Var.
3227 (mtune=): Use ToLower and Enum.
3228 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3230 2011-05-08 Jan Hubicka <jh@suse.cz>
3232 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3233 Arrange type pairs to be UID ordered.
3234 (gimple_lookup_type_leader): Make inline.
3236 2011-05-09 Nick Clifton <nickc@redhat.com>
3239 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3243 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3246 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3248 * combine.c (simplify_comparison): Abstract out parts into...
3249 (simplify_compare_const): ... new function.
3250 (try_combine): Generalize parallel arithmetic/compare combining
3251 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3253 2011-05-08 Jan Hubicka <jh@suse.cz>
3255 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3256 (cgraph_create_virtual_clone): Call hooks once virtual clone
3258 * cgraph.h (cgraph_clone_node): Update prototype.
3259 * ipa-cp.c (ipcp_estimate_growth): Use
3260 estimate_ipcp_clone_size_and_time.
3261 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3262 * lto-cgraph.c (input_node): Update.
3263 * ipa-inline.c (recursive_inlining): Update.
3264 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3265 (evaluate_conditions_for_known_args): Break out from ...
3266 (evaluate_conditions_for_edge): ... here.
3267 (evaluate_conditions_for_ipcp_clone): New function.
3268 (inline_node_duplication_hook): Update clone summary based
3270 (estimate_callee_size_and_time): Rename to ...
3271 (estimate_node_size_and_time): take NODE instead of EDGE;
3272 take POSSIBLE_TRUTHS as argument.
3273 (estimate_callee_size_and_time): Update.
3274 (estimate_ipcp_clone_size_and_time): New function.
3275 (do_estimate_edge_time): Update.
3277 2011-05-08 Richard Guenther <rguenther@suse.de>
3281 * expmed.c (expand_shift_1): Compute adjusted constant shift
3284 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3286 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3288 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3290 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3292 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3294 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3296 2011-05-07 Jan Hubicka <jh@suse.cz>
3298 * ipa-inline-transform.c (inline_call): Account when program size
3300 * ipa-inline.c (relative_time_benefit): New function.
3301 (edge_badness): Reorganize to be power 2 based; fix thinko when
3302 computing badness for negative growth; update comments to match
3303 reality; better dumps.
3305 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3307 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3308 type to bool and adjust comment.
3309 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3310 (fold_mathfn_compare): Remove calls to global_bindings_p.
3311 (fold_inf_compare): Likewise.
3312 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3313 * c-tree.h (global_bindings_p): Adjust prototype.
3314 * c-decl.c (global_bindings_p): Return bool and simplify.
3316 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3318 PR tree-optimization/48837
3319 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3320 when accumulator transformation is performed.
3322 2011-05-06 Jan Hubicka <jh@suse.cz>
3324 * i386.h (ix86_tune_indices): Add
3325 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3326 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3327 * i386.c (initial_ix86_tune_features): Add
3328 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3329 (software_prefetching_beneficial_p): Remove predicate.
3330 (ix86_option_override_internal): Use new macro.
3332 2011-05-06 Jan Hubicka <jh@suse.cz>
3334 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3336 2011-05-06 Jan Hubicka <jh@suse.cz>
3338 * cgraph.c (cgraph_add_thunk): Create real function node instead
3339 of alias node; finalize it and mark needed/reachale; arrange visibility
3340 to be right and add it into the corresponding same comdat group list.
3341 (dump_cgraph_node): Dump thunks.
3342 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3343 cgraph_function_with_gimple_body_p,
3344 cgraph_first_function_with_gimple_body,
3345 cgraph_next_function_with_gimple_body): New functions.
3346 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3348 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3349 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3350 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3351 devirtualization when optimizing.
3352 (verify_cgraph_node): Verify thunks.
3353 (cgraph_analyze_function): Analyze thunks.
3354 (cgraph_mark_functions_to_output): Output thunks only in combination
3355 with function they are assigned to.
3356 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3357 alias into normal node.
3358 (assemble_thunks): New functoin.
3359 (cgraph_expand_function): Use it.
3360 * lto-cgraph.c (lto_output_node): Stream thunks.
3361 (input_overwrite_node): Stream in thunks.
3362 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3363 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3364 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3365 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3366 (inline_analyze_function): Do not care about thunk jump functions.
3367 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3368 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3369 cgraph_function_with_gimple_body_p.
3370 * passes.c (do_per_function_toporder): Use
3371 cgraph_function_with_gimple_body_p.
3372 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3373 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3374 (function_called_by_processed_nodes_p): Likewise.
3376 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3378 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3379 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3381 (mabi=): Replace with separate entries for mabi=altivec,
3382 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3383 mabi=ieeelongdouble and mabi=ibmlongdouble.
3384 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3385 check for -mabi=spe without SPE ABI support here.
3386 (rs6000_handle_option): Replace OPT_mabi_ handling with
3387 OPT_mabi_altivec and OPT_mabi_spe handling.
3389 2011-05-06 Cary Coutant <ccoutant@google.com>
3391 * dwarf2out.c (contains_subprogram_definition): New function.
3392 (should_move_die_to_comdat): Call it.
3394 2011-05-06 Jeff Law <law@redhat.com>
3396 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3397 remove_ctrl_stmt_and_useless_edges.
3398 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3399 (fixup_template_block, thread_single_edge): Likewise.
3400 (mark_threaded_blocks): Use THREAD_TARGET.
3402 2011-05-06 Alan Modra <amodra@gmail.com>
3405 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3406 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3408 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3410 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3411 constraint modifier to "r".
3413 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3415 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3416 fall through for OPT_mcmodel_.
3418 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3420 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3422 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3424 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3427 * config/arm/arm.opt (marm): Document it.
3428 (mthumb): Reject negative variant.
3430 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3433 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3434 Fix typo in "ccvt" variable name.
3436 2011-05-06 Tristan Gingold <gingold@adacore.com>
3439 * config/vms/vms-ar.c (main): Remove cwd variable.
3441 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3444 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3446 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3448 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3449 * gimplify.c (gimplify_switch_expr): Likewise.
3450 * omp-low.c (expand_omp_sections): Likewise.
3451 * tree-eh.c (lower_try_finally_switch): Likewise.
3452 (lower_eh_dispatch): Likewise.
3453 * tree.h (build_case_label): Declare.
3454 * tree.c (build_case_label): Define.
3456 2011-05-05 Jason Merrill <jason@redhat.com>
3459 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3460 (copy_statement_list): Don't recurse.
3461 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3464 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3466 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3467 through from -mfpu= handling.
3468 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3470 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3472 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3475 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3477 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3479 (hppa[12]*-*-hpux11*): Ditto.
3480 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3481 * config/ia64/hpux-unix2003.h: New.
3482 * config/pa/pa-hpux1131.opt: New.
3483 * config/pa/pa-hpux1131.h: New.
3484 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3485 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3486 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3488 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3491 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3492 instead of mode as 3rd argument to recursive call.
3493 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3494 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3496 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3497 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3498 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3499 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3501 2011-05-05 Julian Brown <julian@codesourcery.com>
3503 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3504 parenthesis in D-register case.
3506 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3508 * opt-functions.awk (var_type_struct): Handle Enum options.
3509 * optc-gen.awk: Don't check range of variables of character type.
3510 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3511 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3512 rs6000_sdata_name, rs6000_explicit_options): Remove.
3513 (rs6000_option_override_internal): Check for -malign-power here.
3514 Use global_options_set instead of rs6000_explicit_options.
3515 (rs6000_parse_fpu_option): Remove.
3516 (rs6000_handle_option): Access variables via opts and opts_set
3517 pointers. Use error_at and warning_at. Add fall-through
3518 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3519 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3520 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3521 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3522 here. Don't use rs6000_parse_fpu_option.
3523 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3524 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3525 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3527 (mspe): Use Var and Save.
3528 (mtraceback=): Use Enum and Var.
3529 (rs6000_traceback_type): New Enum and EnumValue entries.
3530 (mfloat-gprs=): Use Enum, Var and Save.
3531 (rs6000_float_gprs): New Enum and EnumValue entries.
3532 (mlong-double-): use Var and Save.
3533 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3534 (malign-): Use Enum and Var.
3535 (rs6000_alignment_flags): New Enum and EnumValue entries.
3537 (fpu_type_t): New Enum and EnumValue entries.
3538 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3539 global_options_set instead of rs6000_explicit_options.
3540 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3541 global_options_set instead of rs6000_explicit_options.
3542 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3543 global_options_set instead of rs6000_explicit_options.
3544 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3545 global_options_set instead of rs6000_explicit_options.
3546 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3547 global_options_set instead of rs6000_explicit_options.
3548 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3549 global_options_set instead of rs6000_explicit_options.
3550 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3552 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3553 global_options_set instead of rs6000_explicit_options.
3554 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3555 (rs6000_cmodel): New Enum and EnumValue entries.
3556 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3557 global_options_set instead of rs6000_explicit_options.
3558 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3559 (mtls-size=): Use Enum and Var.
3560 (rs6000_tls_size): New Enum and EnumValue entries.
3562 2011-05-05 Michael Matz <matz@suse.de>
3564 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3565 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3566 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3567 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3568 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3569 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3570 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3571 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3572 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3573 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3574 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3575 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3576 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3577 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3578 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3579 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3581 2011-05-05 Richard Guenther <rguenther@suse.de>
3583 * expmed.c (expand_variable_shift): Rename to ...
3584 (expand_shift_1): ... this. Take an expanded shift amount.
3585 For rotates recurse directly not building trees for the shift amount.
3586 (expand_variable_shift): Wrap around expand_shift_1.
3587 (expand_shift): Adjust.
3589 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3591 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3593 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3595 * tree.h (get_pending_sizes): Remove prototype.
3596 (put_pending_size): Likewise.
3597 (put_pending_sizes): Likewise.
3598 * stor-layout.c (pending_sizes): Delete.
3599 (get_pending_sizes): Likewise.
3600 (put_pending_size): Likewise.
3601 (put_pending_sizes): Likewise.
3602 (variable_size): Do not call put_pending_size and tidy up.
3603 * function.h (struct function): Remove dont_save_pending_sizes_p.
3604 * lto-streamer-in.c (input_function): Do not stream it.
3605 * lto-streamer-out.c (output_function): Likewise.
3606 * tree-inline.c (initialize_cfun): Do not copy it.
3607 * c-decl.c (store_parm_decls): Do not set it.
3608 * omp-low.c (create_task_copyfn): Likewise.
3609 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3611 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3613 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3615 (*movdf_internal): Ditto.
3616 (*movdf_internal_nointeger): Ditto.
3617 (*movsf_internal): Ditto.
3619 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3621 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3622 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3623 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3624 (c_variable_size): Remove.
3625 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3626 call put_pending_sizes.
3627 (get_parm_info): Add parameter expr. Use it to set
3628 arg_info->pending_sizes.
3629 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3631 * c-parser.c (c_parser_parms_declarator): Update call to
3632 c_parser_parms_list_declarator.
3633 (c_parser_parms_list_declarator): Take parameter expr. Update
3634 call to push_parm_decl. Update recursive call. Don't call
3635 get_pending_sizes. Update calls to get_parm_info.
3636 (c_parser_objc_method_definition): Update calls to
3637 c_parser_objc_method_decl and objc_start_method_definition.
3638 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3639 (c_parser_objc_method_decl): Add parameter expr. Update call to
3641 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3642 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3643 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3645 2011-05-05 Michael Hope <michael.hope@linaro.org>
3648 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3651 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3653 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3654 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3655 (spu_output_mi_thunk): New function.
3657 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3659 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3660 targetm.asm_out.print_operand.
3661 * config/sol2.c: Include target.h.
3663 2011-05-04 Jan Hubicka <jh@suse.cz>
3665 * ipa-inline.c (reset_edge_caches): New function.
3666 (update_caller_keys): Add check_inlinablity_for; do not
3667 reset edge caches; remove now unnecesary loop.
3668 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3669 (update_all_callee_keys): Likewise.
3670 (inline_small_functions): Sanity check cache; update code
3673 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3675 PR rtl-optimization/47612
3676 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3677 as the last insn of the sequence to be moved.
3679 2011-05-04 Tobias Burnus <burnus@net-b.de>
3682 * doc/invoke.texi (Ofast): Document that it
3683 enables Fortran's -fno-protect-parens.
3685 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3687 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3689 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3691 * stor-layout.c (variable_size): Do not issue errors.
3693 2011-05-04 Richard Guenther <rguenther@suse.de>
3695 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3696 for array-ref indices.
3697 (tree_coverage_counter_addr): Likewise.
3698 (build_fn_info_type): Use size_int for index types.
3699 (build_gcov_info): Likewise.
3701 2011-05-04 Richard Guenther <rguenther@suse.de>
3703 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3705 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3706 for constructor indices.
3707 (push_init_level): Likewise.
3709 2011-05-04 Richard Guenther <rguenther@suse.de>
3711 * explow.c (promote_mode): Move variable declarations before code.
3713 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3715 * tree.h (build_function_type_array): Declare.
3716 (build_varargs_function_type_array): Declare.
3717 (build_function_type_vec, build_varargs_function_type_vec): Define.
3718 * tree.c (build_function_type_array_1): New function.
3719 (build_function_type_array): New function.
3720 (build_varargs_function_type_array): New function.
3722 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3724 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3725 before setting STMT_VINFO_TYPE.
3727 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3729 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3730 instead of spu_pass_by_reference.
3732 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3734 * calls.c (emit_library_call_value_1): Invoke
3735 promote_function_mode hook on libcall arguments.
3736 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3737 argument being NULL.
3738 * targhooks.c (default_promote_function_mode): Lisewise.
3739 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3740 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3742 * doc/tm.texi: Document that TYPE argument might be NULL.
3744 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3746 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3748 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3751 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3753 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3755 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3756 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3758 * mips-tfile.c: ... here.
3759 Don't include coretypes.h, tm.h, filenames.h.
3760 (saber_stop): Remove definition and all calls.
3761 [__SABER__]: Remove.
3762 (__LINE__): Remove default.
3763 (Size_t, Ptrdiff_t): Remove definitions.
3764 Replace by size_t, ptrdiff_t.
3765 [!MIPS_DEBUGGING_INFO]: Remove.
3766 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3767 (progname): Add const.
3769 Replace all uses by static.
3770 (ALIGN_SYMTABLE_OFFSET): Remove default.
3771 * mips-tdump.c: Don't include coretypes.h, tm.h.
3772 Remove !MIPS_IS_STAB guard.
3773 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3774 $(TM_H), filenames.h dependencies.
3775 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3777 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3780 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3781 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3783 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3786 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3787 account and save/restore RETS.
3788 (PROFILE_BEFORE_PROLOGUE): Define.
3789 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3790 the push insn to use predecrement.
3792 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3795 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3797 2011-05-04 Nick Clifton <nickc@redhat.com>
3799 * config/mn10300/mn10300.c: Include cfgloop.h.
3801 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3802 Lcc or a FLcc insn into the instruction stream.
3803 (mn10300_block_contains_call): New function. Returns true if the
3804 given basic block contains a CALL insn.
3805 (mn10300_loop_contains_call_insn): New function. Returns true if
3806 the given loop contains a CALL insn.
3807 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3808 to use the SETLB and Lcc or FLcc insns.
3809 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3810 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3811 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3812 disable the SETLB optimization.
3813 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3814 __SETLB__ or __NO_SETLB__.
3815 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3816 (movsf_internal): Handle MDR register.
3817 (cmpsi): Make visible.
3818 (setlb): New pattern.
3820 (FLcc): New pattern.
3822 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3825 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3826 for reg<->xmm moves.
3827 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3828 (vec_concatv2di_rex64_sse): Ditto.
3829 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3830 (*vec_extractv2di_1_rex64): Ditto.
3833 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3835 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3837 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3839 2011-05-04 Richard Guenther <rguenther@suse.de>
3841 * tree.h (int_const_binop): Remove notrunc argument.
3842 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3843 create integer constants that are properly truncated.
3844 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3845 (const_binop): Remove zero notrunc argument to int_const_binop.
3846 (size_binop_loc): Likewise.
3847 (fold_div_compare): Likewise.
3848 (maybe_canonicalize_comparison_1): Likewise.
3849 (fold_comparison): Likewise.
3850 (fold_binary_loc): Likewise.
3851 (multiple_of_p): Likewise.
3852 * expr.c (store_constructor): Likewise.
3853 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3854 (maybe_fold_stmt_addition): Likewise.
3855 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3856 * stor-layout.c (layout_type): Likewise.
3857 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3858 * tree-sra.c (build_ref_for_offset): Likewise.
3859 (build_user_friendly_ref_for_offset): Likewise.
3860 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3861 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3862 * tree-ssa-loop-niter.c (inverse): Likewise.
3863 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3864 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3865 * tree-switch-conversion.c (check_range): Likewise.
3866 (build_constructors): Likewise.
3867 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3868 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3869 (extract_range_from_assert): Likewise.
3870 (vrp_int_const_binop): Likewise.
3871 (extract_range_from_binary_expr): Likewise.
3872 (extract_range_from_unary_expr): Likewise.
3873 (check_array_ref): Likewise.
3874 (find_case_label_range): Likewise.
3875 (simplify_div_or_mod_using_ranges): Likewise.
3876 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3877 comparing case labels for merging.
3879 2011-05-03 Mark Wielaard <mjw@redhat.com>
3881 * dwarf2out.c (debug_str_hash_forced): Removed.
3882 (gen_label_for_indirect_string): Removed.
3883 (get_debug_string_label): Removed.
3884 (AT_string_form): Generate label directly.
3885 (output_indirect_string): Test indirect_string_node for
3886 DW_FORM_strp instead of checking label and refcount.
3887 (prune_indirect_string): Removed.
3888 (prune_unused_types): Don't check debug_str_hash_forced or
3889 call prune_indirect_string.
3891 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3894 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3896 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3900 * combine.c (try_combine): Skip debug insns at m_split tests.
3902 2011-04-26 Mark Wielaard <mjw@redhat.com>
3905 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3906 when info_section_emitted.
3908 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3910 * config/mips/mips-opts.h: New.
3911 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3913 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3914 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3915 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3917 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3919 (mips_abi, mips_code_readable): Don't declare.
3920 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3921 (mabi=): Use Enum and Var.
3922 (mips_abi): New Enum and EnumValue entries.
3923 (mcode-readable=): Use Enum and Var.
3924 (mips_code_readable_setting): New Enum and EnumValue entries.
3925 (mr10k-cache-barrier=): Use Enum and Var.
3926 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3928 2011-05-03 Jan Hubicka <jh@suse.cz>
3930 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3931 replace hash by pointer map.
3932 (cgraph_node_set_element_def, cgraph_node_set_element,
3933 const_cgraph_node_set_element, varpool_node_set_element_def,
3934 varpool_node_set_element, const_varpool_node_set_element): Remove.
3935 (free_cgraph_node_set, free_varpool_node_set): New function.
3936 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3937 * tree-emutls.c: Free varpool node set.
3938 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3939 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3940 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3941 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3942 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3943 Move here from ipa.c; implement using pointer_map
3944 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3945 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3946 debug_cgraph_node_set, varpool_node_set_new,
3947 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3948 dump_varpool_node_set, debug_varpool_node_set):
3949 Move to ipa-uitls.c.
3950 * passes.c (ipa_write_summaries): Update.
3952 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3954 From Mike Frysinger:
3955 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3956 bf542/bf544/bf547/bf548/bf549.
3958 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3960 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3962 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3965 * config/bfin/bfin.md (MOVCC): New mode_macro.
3966 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3967 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3968 comments from generated assembly.
3970 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3973 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3974 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3975 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3976 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3977 * config/bfin/lib1funcs.asm (___muldi3): New function.
3979 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3981 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3982 build_function_type_list instead of build_function_type.
3983 Rearrange initialization of `args' to do so.
3985 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3987 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3988 instead of build_function_type.
3990 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3992 * config/rs6000/rs6000.c (spe_init_builtins): Call
3993 build_function_type_list instead of build_function_type.
3994 (paired_init_builtins, altivec_init_builtins): Likewise.
3995 (builtin_function_type): Likewise.
3997 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3999 * config/sh/sh.c (sh_media_init_builtins): Call
4000 build_function_type_list instead of build_function_type.
4002 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4004 * config/sparc/sparc.c (sparc_file_end): Call
4005 build_function_type_list instead of build_function_type.
4007 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4009 * config/alpha/alpha.c (alpha_init_builtins): Call
4010 build_function_type_list instead of build_function_type.
4012 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4014 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4015 build_function_type_list instead of build_function_type.
4017 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4019 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4020 build_function_type_list instead of build_function_type.
4021 Delete `endlink' variable.
4023 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4025 * config/avr/avr.c (avr_init_builtins): Call
4026 build_function_type_list instead of build_function_type.
4028 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4030 * config/picochip/picochip.c (picochip_init_builtins): Call
4031 build_function_type_list instead of build_function_type.
4032 Delete `endlink' variable.
4034 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4036 * config/bfin/bfin.c (bfin_init_builtins): Call
4037 build_function_type_list instead of build_function_type.
4039 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4042 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4043 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4045 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4048 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4049 libbffastfp overrides libgcc when -mfast-fp.
4051 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4053 Originally from Bernd Schmidt
4054 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4055 * config/bfin/bfin.c (override_options): Test it and error if
4058 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4060 Originally From Bernd Schmidt
4061 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4064 2011-05-03 Jeff Law <law@redhat.com>
4066 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4067 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4068 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4069 than accessing AUX field directly. Free the AUX field before
4071 (thread_block, thread_through_loop_header): Likewise.
4072 (thread_single_edge, mark_threaded_blocks): Likewise.
4073 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4074 (register_jump_thread): Do not attempt to thread to a NULL edge.
4076 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4078 * function.c (init_function_start): Call decide_function_section.
4079 * varasm.c (decide_function_section): New function.
4080 (assemble_start_function): When not using
4081 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4082 or first_function_block_is_cold.
4083 * rtl.h (decide_function_section): Declare.
4085 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4086 Jakub Jelinek <jakub@redhat.com>
4089 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4090 only succeed if req_mode is the same as set_mode.
4092 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4094 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4095 * genemit.c (gen_exp): Handle RETURN.
4096 * emit-rtl.c (verify_rtx_sharing): Likewise.
4097 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4098 * rtl.c (copy_rtx): RETURN is shared.
4099 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4101 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4102 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4103 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4104 * config/cris/cris.c (cris_expand_return): Likewise.
4105 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4106 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4107 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4108 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4109 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4111 * config/v850/v850.c (expand_epilogue): Likewise.
4112 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4113 * config/arm/arm.md (epilogue): Likewise.
4114 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4115 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4116 variable to ret_reg.
4118 2011-05-03 Richard Guenther <rguenther@suse.de>
4121 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4122 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4123 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4125 2011-05-03 Richard Guenther <rguenther@suse.de>
4127 * c-decl.c (grokdeclarator): Instead of looking at
4128 TREE_OVERFLOW check if the constant fits in the index type.
4130 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4132 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4133 (vec_store_lanes<mode><mode>): Likewise.
4135 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4137 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4138 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4139 convert_optab_index values.
4140 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4141 * genopinit.c (optabs): Initialize the new optabs.
4142 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4143 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4144 (expand_STORE_LANES): New functions.
4145 * tree.h (build_array_type_nelts): Declare.
4146 * tree.c (build_array_type_nelts): New function.
4147 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4148 (vect_model_load_cost): Likewise.
4149 (vect_store_lanes_supported, vect_load_lanes_supported)
4150 (vect_record_strided_load_vectors): Declare.
4151 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4152 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4153 (vect_transform_strided_load): Split out statement recording into...
4154 (vect_record_strided_load_vectors): ...this new function.
4155 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4156 (write_vector_array, create_array_ref): New functions.
4157 (vect_model_store_cost): Add store_lanes_p argument.
4158 (vect_model_load_cost): Add load_lanes_p argument.
4159 (vectorizable_store): Try to use store-lanes functions for
4161 (vectorizable_load): Likewise load-lanes and loads.
4162 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4163 to vect_model_store_cost.
4164 (vect_build_slp_tree): Likewise vect_model_load_cost.
4166 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4168 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4169 * hooks.c (hook_bool_mode_uhwi_false): New function.
4170 * target.def (array_mode_supported_p): New hook.
4171 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4172 * doc/tm.texi: Regenerate.
4173 * stor-layout.c (mode_for_array): New function.
4174 (layout_type): Use it.
4175 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4176 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4178 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4181 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4182 for -fstack-check if the size to allocate is negative.
4184 2011-05-02 Lawrence Crowl <crowl@google.com>
4186 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4187 (timevar_cond_start): New for starting a timer only when it is not
4189 (timevar_cond_stop): New for stopping a timer when it was not already
4192 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4193 (timevar_cond_start): New as above.
4194 (timevar_cond_stop): New as above.
4196 * timevar.def: Add start/stop timers for compiler phases,
4197 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4198 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4199 and TV_PHASE_FINALIZE.
4200 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4201 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4202 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4203 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4204 Make unused TV_OVERLOAD into a start/stop timer.
4206 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4207 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4208 to indicate that they are start/stop timers.
4210 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4211 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4212 Move initialization to do_compile.
4213 (do_compile): Add initialization from above.
4214 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4216 * c-decl.c (c_write_global_declarations): Add start/stop of
4217 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4219 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4220 or TV_PARSE_INLINE, as appropriate.
4221 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4222 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4224 2011-05-02 Jason Merrill <jason@redhat.com>
4227 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4229 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4232 * c-decl.c (finish_decl): Only create a composite if the types are
4235 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4237 * config/fr30/fr30-protos.h (Mmode): Don't define.
4238 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4239 definition where used.
4240 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4241 define. Expand definitions where used.
4242 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4243 Expand definitions where used.
4244 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4245 rx_function_arg, rx_function_arg_advance,
4246 rx_function_arg_boundary): Expand definitions of those macros.
4247 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4248 definition where used.
4250 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4252 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4254 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4255 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4256 with *movv2sf_internal_rex64_avx.
4257 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4258 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4259 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4260 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4261 "vex" in "prefix" attribute calculation.
4262 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4264 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4267 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4268 inputs match the output.
4270 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4273 * config/m68k/m68k.c (m68k_expand_prologue): Set
4274 current_function_static_stack_size.
4276 2011-05-02 Jan Hubicka <jh@suse.cz>
4278 * lto-streamer.c (lto_streamer_cache_insert_1,
4279 lto_streamer_cache_lookup, lto_streamer_cache_create,
4280 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4281 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4283 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4285 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4286 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4287 config/m68k/t-opts: New files.
4288 * config/m68k/m68k-tables.opt: New file (generated).
4289 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4290 extra_options and m68k/t-opts to tmake_file.
4291 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4292 (all_isas): Initialize using m68k-isas.def.
4293 (all_microarchs): Initialize using m68k-microarchs.def.
4294 (m68k_find_selection): Remove.
4295 (m68k_handle_option): Don't assert that global structures are in
4296 use. Use error_at. Access variables via opts pointer. Don't
4297 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4298 directly for -m68020-40 and -m68020-60.
4299 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4300 m68k_tune_entry here.
4301 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4303 (m68k_library_id_string): Remove declaration.
4304 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4305 (m68k_library_id_string): New Variable.
4306 (march=, mcpu=, mtune=): Use Enum and Var.
4308 2011-05-02 Richard Guenther <rguenther@suse.de>
4310 * varasm.c (output_constructor_regular_field): Compute zero-based
4311 index with double-ints. Make sure to ICE instead of producing
4313 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4314 in asserts. Properly use a signed type.
4316 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4318 * config/i386/sse.md (V): New mode iterator.
4319 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4321 (V_256): Rename from AVX256MODE.
4322 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4323 condition to all users.
4325 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4326 condition to all users.
4327 (VF_128): Make V4SF mode unconditional.
4328 (VF_256): Rename from AVX256MODEF2P.
4329 (VI4F_128): Rename from SSEMODE4S.
4330 (VI8F_128): Rename from SSEMODE2D.
4331 (VI4F_256): Rename from AVX256MODE8P.
4332 (VI8F_256): Rename from AVX256MODE4P.
4333 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4334 (ssescalarmodesuffix): Remove SF and DF modes.
4335 (SSEMODE124): Remove.
4336 (SSEMODE1248): Ditto.
4337 (SSEMODEF2P): Ditto.
4338 (AVXMODEF2P): Ditto.
4339 (AVXMODEFDP): Ditto.
4340 (AVXMODEFSP): Ditto.
4341 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4343 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4345 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4346 xop_pcmov_<mode>256. Use V mode iterator.
4348 Adjust RTX patterns globally for renamed mode attributes.
4350 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4352 * haifa-sched.c (sched_emit_insn): Emit insn before first
4353 non-scheduled insn. Inform back-end about new insn. Add
4354 new insn to scheduled_insns list.
4356 2011-05-02 Richard Guenther <rguenther@suse.de>
4358 PR tree-optimization/48822
4359 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4360 (process_scc): Indicate which iteration we start.
4362 2011-05-02 Jan Hubicka <jh@suse.cz>
4364 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4365 (lto_section_overrun): New.
4366 * lto-section-out.c (append_block): Rename to ...
4367 (lto_append_block): ... this one; export.
4368 (lto_output_1_stream): Move lto lto-streamer.h
4369 (lto_output_data_stream): Update.
4370 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4371 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4374 2011-05-02 Richard Guenther <rguenther@suse.de>
4376 * tree.c (tree_code_counts): New global array.
4377 (record_node_allocation_statistics): Count individual tree codes.
4378 (dump_tree_statistics): Dump individual code stats.
4380 2011-05-01 Jan Hubicka <jh@suse.cz>
4382 * ipa-inline.c (caller_growth_limits): Fix thinko when
4383 looking for largest stack frame.
4384 * ipa-inline.h (dump_inline_summary): Declare.
4385 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4387 (dump_inline_summary): Export.
4388 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4390 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4392 * reginfo.c (memory_move_cost): Change rclass argument type form
4393 'enum reg_class' to reg_class_t.
4394 * reload.h (memory_move_cost): Update prototype.
4395 * postreload.c reload_cse_simplify_set): Change type dclass var to
4397 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4399 (ira_allocate_and_set_costs): Change aclass argument type form
4400 'enum reg_class' to reg_class_t.
4401 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4402 Change aclass argument type to reg_class_t.
4403 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4405 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4406 memory_move_cost call.
4408 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4409 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4410 Change type tmp var to reg_class_t.
4412 2011-04-30 Jan Hubicka <jh@suse.cz>
4414 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4415 inlining into function with flatten attribute.
4416 (want_inline_small_function_p): Be more realistic about inlining
4417 cold calls where callee size grows.
4419 2011-04-30 Jan Hubicka <jh@suse.cz>
4421 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4424 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4426 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4427 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4428 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4429 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4430 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4431 (print_operand): Rename to...
4432 (sparc_print_operand): ...this. Make static. Adjust
4433 sparc_print_operand function call.
4434 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4437 2011-04-30 Jan Hubicka <jh@suse.cz>
4440 * ipa-inline.c (early_inliner): Disable when doing late
4441 addition of function.
4443 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4445 * dwarf2out.c (get_address_mode): New inline.
4446 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4447 if not dwarf_strict emit
4448 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4449 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4450 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4451 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4452 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4453 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4454 mem_loc_descriptor callers.
4455 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4456 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4457 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4458 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4459 (base_types): New variable.
4460 (get_base_type_offset, calc_base_type_die_sizes,
4461 base_type_for_mode, mark_base_types, base_type_cmp,
4462 move_marked_base_types): New functions.
4463 (calc_die_sizes): Assert that die_offset is 0 or equal to
4465 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4466 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4467 callers. If not dwarf_strict, call mem_loc_descriptor even for
4468 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4469 (gen_subprogram_die): Don't give up on call site parameters
4470 with non-integral or large integral modes. Adjust
4471 mem_loc_descriptor callers.
4472 (prune_unused_types): Call prune_unused_types_mark on base_types
4474 (resolve_addr): Call mark_base_types.
4475 (dwarf2out_finish): Call move_marked_base_types.
4477 PR tree-optimization/48809
4478 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4480 (gen_inbound_check): Don't compute index_expr - range_min in utype
4481 again, instead reuse SSA_NAME initialized in build_arrays.
4482 Remove two useless gsi_for_stmt calls.
4484 2011-04-29 Jeff Law <law@redhat.com>
4486 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4488 2011-04-29 Martin Jambor <mjambor@suse.cz>
4490 * cgraph.h (cgraph_postorder): Remove declaration.
4491 * ipa-utils.h (ipa_free_postorder_info): Declare.
4492 (ipa_reverse_postorder): Likewise.
4493 * cgraphunit.c: Include ipa-utils.h.
4494 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4495 * ipa-inline.c: Include ipa-utils.h.
4496 (ipa_inline): Update call to ipa_reverse_postorder.
4497 * ipa-pure-const.c (propagate_pure_const): Update call to
4498 ipa_reduced_postorder and ipa_print_order. Call
4499 ipa_free_postorder_info to clean up.
4500 (propagate_nothrow): Likewise.
4501 * ipa-reference.c (propagate): Removed a useless call to
4502 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4503 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4504 * ipa.c: Include ipa-utils.h.
4505 (ipa_profile): Update call to ipa_reverse_postorder.
4506 (cgraph_postorder): Moved to...
4507 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4508 (ipa_utils_print_order): Renamed to ipa_print_order.
4509 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4511 (ipa_free_postorder_info): New function.
4512 * passes.c: Include ipa-utils.h.
4513 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4514 (ipa_write_summaries): Likewise.
4515 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4516 (cgraphunit.o): Likewise.
4518 (ipa-inline.o): Likewise.
4520 2011-04-29 Jan Hubicka <jh@suse.cz>
4522 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4523 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4524 * ipa-inline.h (clause_t): Turn into unsigned int.
4525 * ipa-inline-analysis.c (add_clause): Do more simplification.
4526 (and_predicates): Shortcut more cases.
4527 (predicates_equal_p): Move forward; check that clauses are properly
4529 (or_predicates): Shortcut more cases.
4530 (edge_execution_predicate): Rewrite as...
4531 (set_cond_stmt_execution_predicate): ... this function; handle
4532 __builtin_constant_p.
4533 (set_switch_stmt_execution_predicate): New .
4534 (compute_bb_predicates): New.
4535 (will_be_nonconstant_predicate): Update TODO.
4536 (estimate_function_body_sizes): Use compute_bb_predicates
4537 and free them later, always try to estimate if stmt is constant.
4538 (estimate_time_after_inlining, estimate_size_after_inlining):
4539 Gracefully handle optimized out edges.
4540 (read_predicate): Fix off by one error.
4542 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4544 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4546 2011-04-27 Xinliang David Li <davidxl@google.com>
4548 * tree-profile.c (init_ic_make_global_vars): Set
4549 tls attribute on ic vars.
4550 * coverage.c (coverage_end_function): Initialize
4551 function_list with zero.
4553 2011-04-29 Richard Guenther <rguenther@suse.de>
4555 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4556 for the type of the result.
4557 (fold_builtin_isascii): Likewise.
4558 (fold_builtin_toascii): Use integer_type_node where appropriate.
4559 (fold_builtin_logb): Likewise.
4560 (fold_builtin_frexp): Likewise.
4561 (fold_builtin_strstr): Likewise.
4562 (fold_builtin_strpbrk): Likewise.
4563 (fold_builtin_fputs): Likewise.
4564 (fold_builtin_sprintf): Likewise.
4565 (fold_builtin_snprintf): Likewise.
4566 (fold_builtin_printf): Likewise.
4567 (do_mpfr_remquo): Use a proper type for the assigned constant.
4568 (do_mpfr_lgamma_r): Likewise.
4569 * dwarf2out.c (resolve_one_addr): Use size_int.
4570 * except.c (init_eh): Likewise.
4571 (assign_filter_values): Use integer_type_node for filter values.
4572 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4574 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4575 for EH region numbers.
4576 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4577 for the shift amount.
4579 2011-04-29 Richard Guenther <rguenther@suse.de>
4581 * expr.h (expand_shift): Rename to ...
4582 (expand_variable_shift): ... this.
4583 (expand_shift): Take a constant shift amount.
4584 * expmed.c (expand_shift): Rename to ...
4585 (expand_variable_shift): ... this.
4586 (expand_shift): New wrapper around expand_variable_shift.
4587 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4588 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4589 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4590 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4591 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4592 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4593 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4594 emit_store_flag_1, emit_store_flag): Likewise.
4595 * builtins.c (expand_builtin_signbit): Likewise.
4596 * calls.c (load_register_parameters): Likewise.
4597 * function.c (assign_parm_setup_block): Likewise.
4598 * lower-subreg.c (resolve_shift_zext): Likewise.
4599 * optabs.c (widen_bswap, expand_abs_nojump,
4600 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4601 * spu/spu.c (spu_expand_extv): Likewise.
4602 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4604 2011-04-29 Richard Guenther <rguenther@suse.de>
4606 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4607 for the remapped region number.
4608 * predict.c (build_predict_expr): Use integer_type_node for the
4610 * fold-const.c (fold_binary_loc): Use integer_type_node for
4611 the shift amount. Use a proper type for the PLUS_EXPR operand.
4613 2011-04-29 Michael Matz <matz@suse.de>
4615 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4616 other trees that just builtins.
4617 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4619 2011-04-29 Richard Guenther <rguenther@suse.de>
4621 * tree-nested.c (get_trampoline_type): Use size_int.
4622 (get_nl_goto_field): Likewise.
4623 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4625 (lower_eh_constructs_2): Likewise.
4626 (lower_resx): Likewise.
4627 (lower_eh_dispatch): Likewise.
4628 * tree-mudflap.c (mf_build_string): Use size_int.
4629 (mudflap_register_call): Use integer_type_node for the flag.
4630 (mudflap_enqueue_constant): Use size_int.
4631 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4632 instead of rebuilding it.
4634 2011-04-29 Richard Guenther <rguenther@suse.de>
4636 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4637 Handle OBJ_TYPE_REF.
4638 (find_func_aliases_for_call): Use it more consistently.
4640 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4642 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4643 (rank_for_schedule): Use it.
4644 (schedule_block): Set it.
4646 2011-04-28 David Li <davidxl@google.com>
4648 * tree.c (crc32_string): Use crc32_byte.
4649 (crc32_byte): New function.
4650 * tree.h (crc32_byte): New function.
4651 * gcov.c (read_graph_file): Handle new cfg_cksum.
4652 (read_count_file): Ditto.
4653 * profile.c (instrument_values): Ditto.
4654 (get_exec_counts): Ditto.
4655 (read_profile_edge_counts): Ditto.
4656 (compute_branch_probabilities): Ditto.
4657 (compute_value_histograms): Ditto.
4658 (branch_prob): Ditto.
4659 (end_branch_prob): Ditto.
4660 * coverage.c (read_counts_file): Ditto.
4661 (get_coverage_counts): Ditto.
4662 (tree_coverage_counter_addr): Ditto.
4663 (coverage_checksum_string): Ditto.
4664 (coverage_begin_output): Ditto.
4665 (coverage_end_function): Ditto.
4666 (build_fn_info_type): Ditto.
4667 (build_fn_info_value): Ditto.
4668 * libgcov.c (gcov_exit): Ditto.
4669 * gcov-dump.c (tag_function): Ditto.
4670 (compute_checksum): Remove.
4672 2011-04-29 Alan Modra <amodra@gmail.com>
4674 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4675 unspec plus offset. Tidy macho code.
4677 2011-04-29 Martin Jambor <mjambor@suse.cz>
4679 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4680 node instead of a decl. Update all callers.
4681 * cgraph.h: Update declaration.
4683 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4685 PR tree-optimization/48765
4686 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4687 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4688 to indicate if loop aware SLP is being used. Scan the statements
4689 and update the vectorization factor according to the type of
4690 vectorization before statement analysis.
4691 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4692 pass it to vect_analyze_loop_operations.
4693 (vectorizable_reduction): Set number of copies to 1 in case of pure
4695 * tree-vect-stmts.c (vectorizable_conversion,
4696 vectorizable_assignment, vectorizable_shift,
4697 vectorizable_operation, vectorizable_type_demotion,
4698 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4700 (vectorizable_condition): Move the check that it is not SLP
4701 vectorization before the number of copies check.
4702 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4703 to vectorize the loop using SLP.
4705 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4708 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4711 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4713 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4714 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4715 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4716 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4717 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4719 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4720 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4721 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4722 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4723 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4724 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4726 * config/i386/linux.h (REG_NAME): Don't define.
4727 * config/i386/linux64.h (REG_NAME): Don't define.
4728 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4729 Undefine before defining.
4731 2011-04-28 Jan Hubicka <jh@suse.cz>
4733 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4734 nonconstant_names array.
4735 (estimate_function_body_sizes): Build nonconstant_names array; handle
4736 BUILT_IN_CONSTANT_P.
4738 2011-04-28 Richard Guenther <rguenther@suse.de>
4742 2011-04-28 Richard Guenther <rguenther@suse.de>
4744 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4745 as late as possible.
4747 2011-04-28 Richard Guenther <rguenther@suse.de>
4749 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4750 (debug_constraint): Do it here.
4751 (dump_constraints): And here.
4752 (rewrite_constraints): And here.
4753 (dump_constraint_edge): Remove.
4754 (dump_constraint_graph): Rewrite to produce DOT output.
4755 (solve_constraints): Build succ graph as late as possible.
4756 Dump constraint graphs before and after solving.
4758 2011-04-28 Richard Guenther <rguenther@suse.de>
4760 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4761 New function split out from ...
4762 (find_func_aliases): ... here. Call it.
4763 (find_func_aliases_for_call): Likewise.
4765 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4767 * internal-fn.h (internal_fn_name_array): Declare.
4768 (internal_fn_flags_array): Likewise.
4770 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4772 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4773 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4775 (ssemodefsuffix): Remove.
4776 (ssevecmodesuffix): New mode attribute.
4777 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4778 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4779 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4780 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4781 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4782 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4783 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4784 ssemodesuffix mode attribute.
4785 (float splitters): Use ssevecmodesuffix mode attribute.
4786 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4787 (sseinsmode): Rename from avxvecmode.
4788 (avxsizesuffix): Rename from avxmodesuffix.
4789 (sseintvecmode): Rename from avxpermvecmode.
4790 (ssedoublevecmode): Rename from ssedoublesizemode.
4791 (ssehalfvecmode): Rename from avxhalfvecmode.
4792 (ssescalarmode): Rename from avxscalarmode.
4793 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4794 templates for ssemodesuffix mode attribute.
4795 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4798 Adjust RTX patterns globally for renamed mode attributes.
4800 2011-04-27 Jan Hubcika <jh@suse.cz>
4802 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4803 * ipa-inline-analysis.c: Include alloc-pool.h.
4804 (edge_predicate_pool): New.
4805 (trye_predicate_p): New function
4806 (false_predicate_p): New function.
4807 (add_clause): Sanity check that false clauses are "optimized";
4808 never add clauses to predicate that is already known to be false.
4809 (and_predicate): Use flase_predicate_p.
4810 (evaulate_predicate): Rename to ...
4811 (evaluate_predicate): ... this one; update all callers; assert
4812 that false is not listed among possible truths.
4813 (dump_predicate): Use true_predicate_p.
4814 (account_size_time): Use false_predicate_p.
4815 (evaulate_conditions_for_edge): Rename to ...
4816 (evaluate_conditions_for_edge) ... this one.
4817 (edge_set_predicate): New function.
4818 (inline_edge_duplication_hook): Duplicate edge predicates.
4819 (inline_edge_removal_hook): Free edge predicates.
4820 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4821 (dump_inline_summary): Update.
4822 (estimate_function_body_sizes): Set edge predicates.
4823 (estimate_calls_size_and_time): Handle predicates.
4824 (estimate_callee_size_and_time): Update.
4825 (remap_predicate): Add toplev_predicate; update comment.
4826 (remap_edge_predicates): New function.
4827 (inline_merge_summary): Compute toplev predicate; update.
4828 (read_predicate): New function.
4829 (read_inline_edge_summary): Use it.
4830 (inline_read_section): Likewise.
4831 (write_predicate): New function.
4832 (write_inline_edge_summary): Use it.
4833 (inline_write_summary): Likewise.
4834 (inline_free_summary): Free alloc pool and edge summary vec.
4836 2011-04-27 Richard Guenther <rguenther@suse.de>
4838 * tree-ssa-structalias.c (changed_count): Remove.
4839 (changed): Use a bitmap.
4840 (unify_nodes): Adjust.
4841 (do_sd_constraint): Likewise.
4842 (do_ds_constraint): Likewise.
4843 (do_complex_constraint): Likewise.
4844 (solve_graph): Likewise.
4846 2011-04-27 Jan Hubicka <jh@suse.cz>
4848 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4850 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4852 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4853 (avx_vperm2f128_*_operand): Ditto.
4854 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4855 Use avx_vpermilp_parallel in insn condition.
4856 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4857 Use avx_vperm2f128_parallel in insn condition.
4859 2011-04-27 Richard Guenther <rguenther@suse.de>
4861 * Makefile.in (tree-ssa-structalias.o): Remove
4862 gt-tree-ssa-structalias.h dependency.
4863 (GTFILES): Remove tree-ssa-structalias.c.
4864 * tree.c (allocate_decl_uid): New function.
4865 (make_node_stat): Use it.
4866 (copy_node_stat): Likewise.
4867 * tree.h (allocate_decl_uid): Declare.
4868 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4869 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4870 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4871 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4872 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4873 (struct heapvar_map): Likewise.
4874 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4875 heapvar_insert): Likewise.
4876 (make_heapvar_for): Rename to ...
4877 (make_heapvar): ... this. Simplify.
4878 (fake_var_decl_obstack): New global var.
4879 (build_fake_var_decl): New function.
4880 (make_constraint_from_heapvar): Adjust.
4881 (handle_lhs_call): Likewise.
4882 (create_function_info_for): Likewise.
4883 (intra_create_variable_infos): Likewise.
4884 (init_alias_vars): Allocate fake_var_decl_obstack.
4885 (init_alias_heapvars, delete_alias_heapvars): Remove.
4886 (compute_points_to_sets): Do not call init_alias_heapvars.
4887 (ipa_pta_execute): Likewise.
4888 (delete_points_to_sets): Free fake_var_decl_obstack.
4890 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4892 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4893 (si_from_UTItype, si_to_UTItype): New functions.
4894 (__udivmodti4): Use them to implement type-punning.
4895 * config/spu/multi3.c (union qword_TItype): New data type.
4896 (si_from_TItype, si_to_TItype): New functions.
4897 (__multi3): Use them to implement type-punning.
4899 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4901 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4903 2011-04-27 Jan Hubicka <jh@suse.cz>
4905 * ipa-prop.c (function_insertion_hook_holder): New holder.
4906 (ipa_add_new_function): New function.
4907 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4908 Register/deregister holder.
4910 2011-04-27 Richard Guenther <rguenther@suse.de>
4912 PR tree-optimization/48772
4913 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4915 2011-04-27 Richard Guenther <rguenther@suse.de>
4917 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4918 TARGET_MEM_REF handling.
4920 2011-04-27 Nick Clifton <nickc@redhat.com>
4922 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4923 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4924 (REG_CLASS_NAMES): Likewise.
4925 (REG_CLASS_CONTENTS): Likewise.
4926 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4927 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4928 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4929 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4930 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4931 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4932 duplicate register classes.
4933 (frv_class_likely_spilled_p): Likewise.
4934 (frv_register_move_cost): Likewise.
4936 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4937 end of the regno_reg_class array.
4939 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4942 * c-typeck.c (build_binary_op): Don't wrap arguments if
4943 int_operands is true.
4945 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4948 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4949 targetm.calls.must_pass_in_stack for void type.
4951 2011-04-26 Jan Hubicka <jh@suse.cz>
4953 * cgraphbuild.c (build_cgraph_edges): Update call
4954 of cgraph_create_edge and cgraph_create_indirect_edge.
4955 * cgraph.c (cgraph_create_edge_including_clones,
4956 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4957 cgraph_update_edges_for_call_stmt_node): Do not take nest
4958 argument; do not initialize call_stmt_size/time.
4959 (dump_cgraph_node): Do not dump nest.
4960 (cgraph_clone_edge): Do not take loop_nest argument;
4961 do not propagate it; do not clone call_stmt_size/time.
4962 (cgraph_clone_node): Likewise.
4963 (cgraph_create_virtual_clone): Update.
4964 * cgraph.h (struct cgraph_edge): Remove
4965 call_stmt_size/call_stmt_time/loop_nest.
4966 (cgraph_create_edge, cgraph_create_indirect_edge,
4967 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4969 * tree-emutls.c (gen_emutls_addr): Update.
4970 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4971 loop_nest; handle indirect calls, too.
4972 (clone_inlined_nodes): Do not care about updating inline summaries.
4973 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4974 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4975 stream call_stmt_size/call_stmt_time/loop_nest.
4976 * ipa-inline.c (edge_badness): Update.
4977 (ipa_inline): dump summaries after inlining.
4978 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4980 (inline_edge_summary): New function.
4981 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4982 (inline_edge_removal_hook): Handle edge summaries.
4983 (inline_edge_duplication_hook): New hook.
4984 (inline_summary_alloc): Alloc hooks.
4985 (initialize_growth_caches): Do not register removal hooks.
4986 (free_growth_caches); Do not free removal hook.
4987 (dump_inline_edge_summary): New function.
4988 (dump_inline_summary): Use it.
4989 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4990 (inline_update_callee_summaries): New function.
4991 (inline_merge_summary): Use it.
4992 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4993 (read_inline_edge_summary): New function.
4994 (inline_read_section): Use it.
4995 (write_inline_edge_summary): New function.
4996 (inline_write_summary): Use it.
4997 (inline_free_summary): Free edge new holders.
4998 * tree-inline.c (copy_bb): Update.
5000 2011-04-26 Jason Merrill <jason@redhat.com>
5002 * tree-eh.c (lower_try_finally_switch): Create the label along with
5003 the CASE_LABEL_EXPR.
5005 2011-04-26 David S. Miller <davem@davemloft.net>
5006 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5008 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5009 * configure: Regenerate.
5011 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5014 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5016 (VEC_reduc): New code iterator and splitters for vector reduction.
5017 (VEC_reduc_name): Ditto.
5018 (VEC_reduc_rtx): Ditto.
5019 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5020 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5022 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5023 support for extracting SF on VSX.
5025 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5026 generating xscvspdp.
5027 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5028 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5029 double add, minimum, maximum vector reduction.
5030 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5031 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5032 optimize double vector reduction.
5033 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5035 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5037 * config/fr30/fr30.h (inhibit_libc): Don't define.
5038 * config/m32r/m32r-protos.h: Correct comment.
5039 * config/v850/v850.h (GHS_default_section_names,
5040 GHS_current_section_names): Use tree, not union tree_node *.
5042 2011-04-26 Xinliang David Li <davidxl@google.com>
5044 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5045 * c-family/c-opts.c (c_common_handle_option): Set
5046 warn_maybe_uninitialized.
5047 * opts.c (common_handle_option): Ditto.
5048 * common.opt: New option.
5049 * tree-ssa.c (warn_uninit): Add one more parameter.
5050 (warn_uninitialized_var): Pass warning code.
5051 * tree-flow.h: Interface change.
5053 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5055 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5056 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5057 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5059 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5061 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5062 * config/mips/mips.opt (mmips-tfile): Remove.
5064 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5065 mips-tdump reference to ...
5066 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5067 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5068 reference by Tru64 UNIX.
5070 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5073 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5074 is error_mark_node, set value to NULL.
5076 PR tree-optimization/48734
5077 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5078 if return value from maybe_fold_*_comparsions isn't something
5079 the code is prepared to handle.
5081 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5083 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5085 (ext_QIreg_nomode_operands): Remove.
5086 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5090 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5092 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5094 2011-04-26 Richard Guenther <rguenther@suse.de>
5096 * c-typeck.c (build_unary_op): Do not expand array-refs via
5097 pointer arithmetic. Only adjust qualifiers for function types.
5099 2011-04-26 Richard Guenther <rguenther@suse.de>
5102 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5103 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5104 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5105 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5107 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5109 * doc/extend.texi: Document __underlying_type.
5111 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5113 * config/rs6000/titan.md (automata_option "progress"): Remove.
5115 2011-04-25 Jeff Law <law@redhat.com>
5117 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5119 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5121 * system.h (ENUM_BITFIELD): Remove.
5123 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5124 Eric Botcazou <ebotcazou@adacore.com>
5126 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5127 for STORE_FLAG_VALUE==-1 case.
5129 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5132 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5133 LEGITIMATE_PIC_OPERAND_P.
5135 2011-04-24 Jan Hubicka <jh@suse.cz>
5137 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5139 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5140 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5141 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5142 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5143 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5144 Sanity check predicate length.
5145 (remap_predicate): Likewise; sanity check jump functions.
5146 (inline_read_section, inline_write_summary): Sanity check
5149 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5152 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5153 __is_literal_type, and __is_trivial; update throughout about
5154 possibly cv-qualified void types.
5156 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5158 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5159 testsuite and make it version agnostic.
5161 2011-04-22 Jan Hubicka <jh@suse.cz>
5163 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5165 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5168 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5169 to VOID_TYPE even around MODIFY_EXPR.
5171 2011-04-22 Mike Stump <mikestump@comcast.net>
5173 * gensupport.c (read_md_rtx): Fix typo in comment.
5174 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5177 2011-04-22 Jan Hubicka <jh@suse.cz>
5179 * gengtype.c (open_base_files): Add ipa-inline.h include.
5180 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5181 ipa-prop.c; update all uses.
5182 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5183 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5184 merge summary of inlined function into former caller.
5185 * ipa-inline.c (max_benefit): Remove.
5186 (edge_badness): Compensate for removal of benefits.
5187 (update_caller_keys): Use
5188 reset_node_growth_cache/reset_edge_growth_cache.
5189 (update_callee_keys): Likewise.
5190 (update_all_callee_keys): Likewise.
5191 (inline_small_functions): Do not collect max_benefit; do not reset
5192 estimated_growth; call free_growth_caches and initialize_growth_caches.
5193 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5194 struct size_time_entry): New structures.
5195 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5196 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5197 and estimated_growth.
5198 (edge_growth_cache_entry): New structure.
5199 (node_growth_cache, edge_growth_cache): New global vars.
5200 (estimate_growth): Turn into inline.
5201 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5202 initialize_growth_caches, free_growth_caches): Declare.
5203 (estimate_edge_growth): Rewrite.
5204 (estimate_edge_time): Implement as inline cache lookup.
5205 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5207 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5208 (NUM_CONDITIONS): New constant.
5209 (predicate_conditions): New enum.
5210 (IS_NOT_CONSTANT): New constant.
5211 (edge_removal_hook_holder): New var.
5212 (node_growth_cache, edge_growth_cache): New global vars.
5213 (true_predicate, single_cond_predicate, false_predicate,
5214 not_inlined_predicate, add_condition, add_clause, and_predicates,
5215 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5216 dump_clause, dump_predicate, account_size_time,
5217 evaulate_conditions_for_edge): New functions.
5218 (inline_summary_alloc): Move to heap.
5219 (inline_node_removal_hook): Clear condition and entry vectors.
5220 (inline_edge_removal_hook): New function.
5221 (initialize_growth_caches, free_growth_caches): New function.
5222 (dump_inline_summary): Update.
5223 (edge_execution_predicate): New function.
5224 (will_be_nonconstant_predicate): New function.
5225 (estimate_function_body_sizes): Compute BB and constantness predicates.
5226 (compute_inline_parameters): Do not clear estimated_growth.
5227 (estimate_edge_size_and_time): New function.
5228 (estimate_calls_size_and_time): New function.
5229 (estimate_callee_size_and_time): New function.
5230 (remap_predicate): New function.
5231 (inline_merge_summary): New function.
5232 (do_estimate_edge_time): New function based on...
5233 (estimate_edge_time): ... this one.
5234 (do_estimate_edge_growth): New function.
5235 (do_estimate_growth): New function based on....
5236 (estimate_growth): ... this one.
5237 (inline_analyze_function): Analyze after deciding on jump functions.
5238 (inline_read_section): New function.
5239 (inline_read_summary): Use it.
5240 (inline_write_summary): Write all the new data.
5241 * ipa-prop.c (ipa_get_param_decl_index): Export.
5242 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5243 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5245 (ipa_get_lattice): Move here from ipa-cp.c
5246 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5247 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5248 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5249 cgraph_edge_inlinable_p): Remove.
5250 * cgraphunit.c: Include ipainline.h
5251 (cgraph_process_new_functions): Update call of
5252 compute_inline_parameters.
5254 2011-04-22 Richard Guenther <rguenther@suse.de>
5256 * tree.c (build_int_cst): Properly create canonicalized integer
5258 (build_int_cst_type): Remove scary comments.
5260 2011-04-22 Xinliang David Li <davidxl@google.com>
5262 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5263 by default when -Wno-error is not specified.
5264 * opts-global.c (decode_options): Remove call to
5265 control_warning_options.
5267 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5269 PR tree-optimization/48717
5270 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5271 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5273 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5275 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5276 definition where used.
5278 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5281 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5282 TREE_STATIC variables declared inside of some OpenMP construct.
5284 2011-04-22 Martin Jambor <mjambor@suse.cz>
5287 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5289 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5292 * c-typeck.c (pop_init_level): Do not warn about initializing
5295 2011-04-22 Alan Modra <amodra@gmail.com>
5297 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5298 when returning call_cookie.
5299 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5300 pointers, to functions with no more vector args than the current
5301 function, and some non-local calls for ABI_V4.
5302 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5303 sibcall_nonlocal_aix64): Combine to ..
5304 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5305 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5306 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5307 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5308 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5310 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5311 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5312 sibcall_value_symbolic_64): Delete.
5314 2011-04-21 Xinliang David Li <davidxl@google.com>
5316 * cgraph.h: Remove pid.
5317 * cgraph.c: Remove pid.
5318 * value-prof.c (init_node_map): New function.
5319 (del_node_map): New function.
5320 (find_func_by_funcdef_no): New function.
5321 (gimple_ic_transform): Call new function.
5322 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5323 * function.c (get_last_funcdef_no): New function.
5324 * function.h (get_last_funcdef_no): New function.
5325 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5326 to libgcov function.
5327 (tree-profiling): Call node map init and delete function.
5329 2011-04-21 Ian Lance Taylor <iant@google.com>
5331 * godump.c (go_format_type): Use exported Go name for anonymous
5334 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5336 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5337 Call builtin_function_type_list instead of builtin_function_type.
5338 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5340 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5342 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5343 build_function_type_list instead of build_function_type.
5344 Delete variable `endlink'.
5346 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5348 * config/s390/s390.c (s390_init_builtins): Call
5349 build_function_type_list instead of build_function_type.
5351 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5353 * config/ia64/ia64.c (ia64_init_builtins): Call
5354 build_function_type_list instead of builtin_function_type.
5356 2011-04-21 Easwaran Raman <eraman@google.com>
5358 * cfgexpand.c (stack_var): Remove OFFSET...
5359 (add_stack_var): ...and its reference here...
5360 (expand_stack_vars): ...and here.
5361 (stack_var_cmp): Sort by descending order of size.
5362 (partition_stack_vars): Change heuristic.
5363 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5364 (dump_stack_var_partition): Add newline after each partition.
5366 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5367 Jeff Law <law@redhat.com>
5369 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5370 * gengtype.c (matching_file_name_substitute): Likewise.
5372 2011-04-21 Richard Guenther <rguenther@suse.de>
5375 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5377 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5379 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5381 2011-04-21 Richard Guenther <rguenther@suse.de>
5383 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5386 2011-04-21 Richard Guenther <rguenther@suse.de>
5388 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5389 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5390 Use DECL_P, not SSA_VAR_P.
5391 (ptr_derefs_may_alias_p): Likewise.
5392 (ptr_deref_may_alias_ref_p_1): Likewise.
5393 (decl_refs_may_alias_p): Likewise.
5394 (refs_may_alias_p_1): Likewise.
5395 (ref_maybe_used_by_call_p_1): Likewise.
5396 (call_may_clobber_ref_p_1): Likewise.
5397 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5398 are either MEM_REF or TARGET_MEM_REF.
5399 (indirect_refs_may_alias_p): Likewise.
5400 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5401 for MEM_EXPR of indirect calls.
5403 2011-04-21 Tristan Gingold <gingold@adacore.com>
5405 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5406 (dst_file_info_struct): Remove flen field.
5407 (lookup_filename): Remove code that set flen field.
5409 2011-04-21 Tristan Gingold <gingold@adacore.com>
5411 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5413 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5416 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5417 vec_extract and vec_concat for non-SSE4_1 targets.
5419 2011-04-21 Richard Guenther <rguenther@suse.de>
5421 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5424 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5426 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5428 (FILE): Don't undefine.
5430 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5432 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5434 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5436 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5437 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5438 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5440 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5441 definitions where used.
5442 * config/microblaze/microblaze.h (struct microblaze_args): Use
5443 rtx, not struct rtx_def *.
5444 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5446 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5447 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5448 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5449 not struct rtx_def *.
5450 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5452 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5454 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5456 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5458 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5459 operand_equal_p to compare DR_BASE_ADDRESSes.
5460 (vect_check_interleaving): Likewise.
5462 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5465 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5466 for all Neon struct constants.
5468 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5470 * target.def (legitimate_constant_p): New hook.
5471 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5472 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5473 * doc/tm.texi: Regenerate.
5474 * hooks.h (hook_bool_mode_rtx_true): Declare.
5475 * hooks.c (hook_bool_mode_rtx_true): Define.
5476 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5477 * calls.c (precompute_register_parameters): Replace uses of
5478 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5479 (emit_library_call_value_1): Likewise.
5480 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5481 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5482 * ira-costs.c (scan_one_insn): Likewise.
5483 * recog.c (general_operand, immediate_operand): Likewise.
5484 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5485 * reload1.c (init_eliminable_invariants): Likewise.
5487 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5489 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5490 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5492 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5493 * config/alpha/predicates.md (input_operand): Update call to
5494 alpha_legitimate_constant_p.
5496 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5497 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5498 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5499 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5500 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5501 (arm_legitimate_constant_p): New functions.
5502 (arm_cannot_force_const_mem): Make static.
5504 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5506 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5507 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5508 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5509 instead of bfin_legitimate_constant_p.
5510 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5511 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5513 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5515 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5517 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5518 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5519 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5520 (frv_legitimate_constant_p): Make static. Add a mode argument.
5522 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5523 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5524 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5526 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5527 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5528 * config/i386/i386.c (legitimate_constant_p): Rename to...
5529 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5531 (ix86_cannot_force_const_mem): Update accordingly.
5532 (ix86_legitimate_address_p): Likewise.
5533 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5534 * config/i386/i386.md: Update commentary.
5536 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5537 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5538 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5539 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5541 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5543 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5544 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5545 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5546 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5548 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5549 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5550 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5552 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5553 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5554 (m32r_legitimate_constant_p): New function.
5556 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5557 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5558 LEGITIMATE_CONSTANT_P.
5559 (LEGITIMATE_CONSTANT_P): Delete.
5560 * config/m68k/m68k.c (m68k_expand_prologue): Call
5561 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5562 (m68k_legitimate_constant_p): New function.
5563 * config/m68k/m68k.md: Update comments.
5565 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5566 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5567 (mcore_legitimate_constant_p): New function.
5569 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5570 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5571 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5572 Add a mode argument.
5573 (mep_legitimate_address): Update accordingly.
5574 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5576 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5578 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5579 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5580 static. Check OP's mode for VOIDmode.
5581 (microblaze_legitimate_constant_p): New function.
5582 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5584 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5585 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5586 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5587 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5588 * config/mips/predicates.md: Update comments.
5590 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5591 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5592 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5593 (mmix_legitimate_constant_p): Make static, return a bool, and take
5595 (mmix_print_operand_address): Update accordingly.
5597 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5599 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5600 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5601 static. Add a mode argument.
5602 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5604 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5606 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5607 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5608 (pa_legitimate_constant_p): New function.
5610 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5612 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5613 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5614 (pdp11_legitimate_constant_p): New function.
5616 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5617 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5618 (rs6000_legitimate_constant_p): New function.
5620 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5621 (rx_legitimate_constant_p): ...this.
5622 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5623 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5624 (rx_legitimate_constant_p): ...this.
5625 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5626 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5628 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5629 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5630 * config/s390/s390.c (legitimate_constant_p): Rename to...
5631 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5632 and add a mode argument.
5633 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5635 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5637 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5638 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5639 (sh_legitimate_constant_p): New function.
5641 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5642 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5643 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5644 (legitimate_constant_p): Rename to...
5645 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5647 (constant_address_p): Update accordingly.
5649 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5650 argument and return a bool.
5651 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5652 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5653 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5654 (spu_rtx_costs): Update accordingly.
5655 * config/spu/predicates.md (vec_imm_operand): Likewise.
5657 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5659 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5660 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5661 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5663 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5664 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5665 * config/vax/vax.c (legitimate_constant_p): Likewise.
5667 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5668 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5669 (xtensa_legitimate_constant_p): New function.
5671 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5673 * target.def (cannot_force_const_mem): Add a mode argument.
5674 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5675 * doc/tm.texi: Regenerate.
5676 * hooks.h (hook_bool_mode_rtx_false): Declare.
5677 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5678 (hook_bool_mode_const_rtx_true): Likewise.
5679 (hook_bool_mode_rtx_false): New function.
5680 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5681 to be non-VOID. Update call to cannot_force_const_mem.
5682 (find_reloads): Update accordingly.
5683 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5684 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5686 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5687 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5688 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5689 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5690 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5691 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5692 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5693 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5694 (m68k_cannot_force_const_mem): ...this new function.
5695 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5697 (mips_const_insns, mips_legitimize_const_move): Update calls.
5698 (mips_secondary_reload_class): Likewise.
5699 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5700 (pa_cannot_force_const_mem): ...this new function.
5701 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5702 (rs6000_cannot_force_const_mem): ...this new function.
5703 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5705 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5706 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5708 (xtensa_cannot_force_const_mem): ...this new function.
5710 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5712 * config/mips/mips.c (mips16_build_function_stub): Call
5713 build_function_type_list instead of build_function_type.
5714 (mips16_build_call_stub): Likewise.
5716 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5718 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5719 instead of build_function_type.
5721 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5723 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5724 instead of build_function_type.
5726 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5729 * config/i386/i386.md (insv): Change operand 0 constraint to
5730 "register_operand". Change operand 1 and 2 constraint to
5731 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5732 * config/i386/sse.md (sse4_1_pinsrb): Export.
5733 (sse2_pinsrw): Ditto.
5734 (sse4_1_pinsrd): Ditto.
5735 (sse4_1_pinsrq): Ditto.
5736 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5737 * config/i386/i386.c (ix86_expand_pinsr): New.
5739 2011-04-20 Easwaran Raman <eraman@google.com>
5741 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5742 containing union type only with -fstrict-aliasing.
5744 2011-04-20 Jim Meyering <meyering@redhat.com>
5746 Remove useless if-before-free tests.
5747 * calls.c (expand_call, save_area): Likewise.
5748 * cfgcleanup.c (try_forward_edges): Likewise.
5749 * collect2.c (collect_execute): Likewise.
5750 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5751 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5752 * coverage.c (coverage_checksum_string): Likewise.
5753 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5754 * cselib.c (cselib_init): Likewise.
5755 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5756 (df_set_clean_cfg): Likewise.
5757 * function.c (free_after_compilation): Likewise.
5758 * gcc.c (do_spec_1, main): Likewise.
5759 * gcov.c (create_file_names): Likewise.
5760 * gensupport.c (identify_predicable_attribute): Likewise.
5761 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5762 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5763 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5764 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5765 * ipa-pure-const.c (local_pure_const): Likewise.
5766 * ipa-reference.c (propagate): Likewise.
5767 * ira-costs.c (free_ira_costs): Likewise.
5768 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5769 * matrix-reorg.c (mat_free): Likewise.
5770 * prefix.c (get_key_value): Likewise.
5771 * profile.c (compute_value_histograms): Likewise.
5772 * reload1.c (free_reg_equiv): Likewise.
5773 * sched-deps.c (free_deps): Likewise.
5774 * sel-sched-ir.c (fence_clear): Likewise.
5775 * sese.c (set_rename, if_region_set_false_region): Likewise.
5776 * tree-data-ref.c (free_rdg): Likewise.
5777 * tree-eh.c (lower_try_finally): Likewise.
5778 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5779 * tree-ssa-live.c (delete_var_map): Likewise.
5780 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5781 * tree-ssa-pre.c (phi_trans_add): Likewise.
5783 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5785 PR tree-optimization/48611
5786 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5787 beyond ERT_MUST_NOT_THROW region.
5789 2011-04-20 Catherine Moore <clm@codesourcery.com>
5791 * config/mips/mips.opt (mfix-24k): New.
5792 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5793 * config/mips/mips.md (length): Increase by 4 for stores if
5795 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5796 all noreorder if fixing 24K errata.
5797 * doc/invoke.texi: Document mfix-24k.
5799 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5801 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5802 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5804 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5806 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5807 (const_ok_for_op): ... to here.
5809 2011-04-20 Kai Tietz <ktietz@redhat.com>
5811 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5812 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5814 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5816 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5818 2011-04-20 Richard Guenther <rguenther@suse.de>
5820 PR tree-optimization/47892
5821 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5824 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5826 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5828 2011-04-20 Tristan Gingold <gingold@adacore.com>
5830 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5832 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5836 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5837 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5838 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5839 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5840 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5842 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5845 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5846 (avr_asm_named_section, avr_asm_output_aligned_common,
5847 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5848 New functions to update...
5849 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5850 (avr_asm_init_sections): Overwrite section callbacks for
5851 data_section, bss_section.
5852 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5854 (avr_file_end): ...here.
5856 2011-04-20 Richard Guenther <rguenther@suse.de>
5859 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5860 objects and types here. Adjust for their offset before comparing.
5862 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5864 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5867 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5869 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5870 (GIMPLE_H): Include $(INTERNAL_FN_H).
5871 (OBJS-common): Add internal-fn.o.
5872 (internal-fn.o): New rule.
5873 * internal-fn.def: New file.
5874 * internal-fn.h: Likewise.
5875 * internal-fn.c: Likewise.
5876 * gimple.h: Include internal-fn.h.
5877 (GF_CALL_INTERNAL): New gf_mask.
5878 (gimple_statement_call): Put fntype into a union with a new
5880 (gimple_build_call_internal): Declare.
5881 (gimple_build_call_internal_vec): Likewise.
5882 (gimple_call_same_target_p): Likewise.
5883 (gimple_call_internal_p): New function.
5884 (gimple_call_internal_fn): Likewise.
5885 (gimple_call_fntype): Return null for internal calls.
5886 (gimple_call_set_fntype): Assert that the function is not internal.
5887 (gimple_call_set_fn): Likewise.
5888 (gimple_call_set_fndecl): Likewise.
5889 (gimple_call_set_internal_fn): New function.
5890 (gimple_call_addr_fndecl): Handle null functions.
5891 (gimple_call_return_type): Likewise null types.
5892 * gimple.c (gimple_build_call_internal_1): New function.
5893 (gimple_build_call_internal): Likewise.
5894 (gimple_build_call_internal_vec): Likewise.
5895 (gimple_call_same_target_p): Likewise.
5896 (gimple_call_flags): Handle calls to internal functions.
5897 (gimple_call_fnspec): New function.
5898 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5899 (gimple_has_side_effects): Handle null functions.
5900 (gimple_rhs_has_side_effects): Likewise.
5901 (gimple_call_copy_skip_args): Handle calls to internal functions.
5902 * cfgexpand.c (expand_call_stmt): Likewise.
5903 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5904 * gimple-fold.c (gimple_fold_call): Handle null functions.
5905 (gimple_fold_stmt_to_constant_1): Don't fold
5906 calls to internal functions.
5907 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5909 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5910 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5911 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5912 (do_warn_unused_result): Likewise.
5913 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5914 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5915 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5916 the target of a call.
5917 (initialize_hash_element): Update accordingly.
5918 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5919 (iterative_hash_hashable_expr): Handle calls to internal functions.
5920 (print_expr_hash_elt): Likewise.
5921 * tree-ssa-pre.c (can_value_number_call): Likewise.
5922 (eliminate): Handle null functions.
5923 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5924 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5925 (find_func_aliases): Likewise.
5926 * value-prof.c (gimple_ic_transform): Likewise.
5927 (gimple_indirect_call_to_profile): Likewise.
5928 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5929 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5931 2011-04-19 Jan Hubicka <jh@suse.cz>
5933 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5934 * ipa-inline.c (inline_small_functions): Compute summaries first,
5935 populate heap later.
5937 2011-04-19 Jan Hubicka <jh@suse.cz>
5939 * cgraph.h (save_inline_function_body): Remove.
5940 * ipa-inline-transform.c: New file, broke out of...
5941 * ipa-inline.c: ... this one; Update toplevel comment.
5942 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5944 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5945 (cgraph_mark_inline_edge): Rename to inline_call; move to
5946 ipa-inline-transform.c.
5947 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5948 move to ipa-inline-transform.c
5949 (recursive_inlining, inline_small_functions, flatten_function,
5950 ipa_inline, inline_always_inline_functions,
5951 early_inline_small_functions): Update.
5952 (inline_transform): Move to ipa-inline-transform.c.
5953 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5955 * Makefile.in (ipa-inline-transform.o): New file.
5956 * cgraphunit.c (save_inline_function_body): Move to
5957 ipa-inline-transform.c
5959 2011-04-19 DJ Delorie <dj@redhat.com>
5961 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5962 registers if we already know there aren't any.
5963 (m32c_emit_epilogue): Don't emit a barrier here.
5964 (m32c_emit_eh_epilogue): Likewise.
5965 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5966 operands at expand time.
5967 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5969 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5970 duplicates. Provide aliases instead.
5971 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5972 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5975 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5977 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5978 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5979 (general_or_i64_p, sparc_register_move_cost): New function.
5981 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5983 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5984 Add lynx, mipssde. Sort table.
5986 2011-04-19 Xinliang David Li <davidxl@google.com>
5988 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5991 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5994 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5995 is a SUBREG with non-MODE_INT mode inside of it.
5997 2011-04-19 Martin Jambor <mjambor@suse.cz>
5999 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6000 also according to actual contants.
6001 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6002 (gimple_fold_call): Use it.
6003 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6005 2011-04-19 Martin Jambor <mjambor@suse.cz>
6007 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6008 non-pointer assignments.
6010 2011-04-19 Martin Jambor <mjambor@suse.cz>
6012 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6013 account anc_offset and otr_type from the indirect edge info.
6014 * ipa-prop.c (get_ancestor_addr_info): New function.
6015 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6016 get_ancestor_addr_info, call it.
6017 (ipa_note_param_call): Do not initialize information about polymorphic
6018 calls, return the indirect call graph edge. Remove the last
6019 parameter, adjust all callers.
6020 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6021 parameters. Initialize polymorphic information in the indirect edge.
6023 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6026 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6027 the types if they have different enumeration identifiers.
6029 2011-04-19 Jan Hubicka <jh@suse.cz>
6031 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6032 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6033 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6034 (optimize_function_for_size_p) ... here.
6036 2011-04-19 Richard Guenther <rguenther@suse.de>
6039 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6042 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6044 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6045 if DECL_NO_INLINE_WARNING_P is set on the function.
6047 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6050 * reload1.c (inc_for_reload): Return void. All callers changed.
6051 (emit_input_reload_insns): Don't try to delete previous output
6052 reloads to a register, or record spill_reg_store for autoincs.
6054 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6056 * gengtype.h: Updated copyright year.
6057 (struct input_file_st): Add inpisplugin field.
6058 (type_fileloc): New function.
6060 (write_typed_struct_alloc_def): Add gcc_assert.
6061 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6062 (write_typed_alloc_defns): Don't output for plugin files.
6063 (input_file_by_name): Clear inpisplugin field.
6064 (main): Set inpisplugin field for plugin files.
6066 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6068 * gengtype-state.c (string_eq): New.
6069 (read_state): Use string_eq instead of strcmp when creating the
6072 2011-04-19 Wei Guozhi <carrot@google.com>
6075 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6076 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6078 * config/arm/constraints.md (Uu): New constraint.
6079 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6081 2011-04-19 Tristan Gingold <gingold@adacore.com>
6083 * config.gcc (-*-*-*vms): Added.
6084 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6086 * config/vms/vms-ld.c: New file.
6087 * config/vms/vms-ar.c: New file.
6088 * config/vms/t-vmsnative: New file.
6090 2011-04-18 Xinliang David Li <davidxl@google.com>
6092 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6094 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6097 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6098 if TREE_TYPE (v) is non-NULL.
6100 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6101 gimple_get_virt_mehtod_for_binfo.
6102 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6103 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6105 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6107 2011-04-18 Michael Matz <matz@suse.de>
6108 Steve Ellcey <sje@cup.hp.com>
6110 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6111 use its mode as source mode if it isn't VOIDmode.
6113 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6115 * doc/passes.texi: Fill crossref nodes.
6117 2011-04-18 Jim Meyering <meyering@redhat.com>
6119 Fix doubled-word typos in comments and strings
6120 * config/alpha/vms-unwind.h: s/for for/for/
6121 * config/arm/unwind-arm.h: Likewise.
6122 * config/microblaze/microblaze.c: Likewise.
6123 * config/sh/constraints.md: s/in in/in/
6124 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6126 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6128 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6129 (AVX_FLOAT_MODE_P): Ditto.
6130 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6131 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6132 (AVX_VEC_FLOAT_MODE_P): Ditto.
6133 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6134 (UNSPEC_MASKSTORE): Ditto.
6135 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6136 Merge from <sse>_movmsk<ssemodesuffix> and
6137 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6138 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6140 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6141 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6142 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6144 2011-04-18 Jan Hubicka <jh@suse.cz>
6146 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6148 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6149 (want_inline_function_called_once_p): Break out the logic from
6151 (edge_badness): Ensure that profile is not misupdated.
6152 (lookup_recursive_calls): Prioritize by call frequencies.
6153 (inline_small_functions): Move program size estimates here;
6154 actually process whole queue even when unit growth has been
6155 met. (to properly compute inline_failed reasons and for the
6156 case unit size decrease.) Revisit comments on recursive inlining.
6157 (ipa_inline): Remove unit summary code; first inline hot calls
6158 of functions called once, cold calls next.
6159 (order, nnodes): Remove unused variables.
6160 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6161 (GTFILES): Remove ipa-inline.c
6162 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6164 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6166 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6168 2011-04-18 Jie Zhang <jie@codesourcery.com>
6169 Richard Earnshaw <rearnsha@arm.com>
6171 * arm.c (neon_builtin_type_bits): Remove.
6172 (typedef enum neon_builtin_mode): New.
6173 (T_MAX): Don't define.
6174 (typedef enum neon_builtin_datum): Remove bits, codes[],
6175 num_vars and base_fcode. Add mode, code and fcode.
6176 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6177 VAR10): Change accordingly.
6178 (neon_builtin_data[]): Change accordingly
6179 (arm_init_neon_builtins): Change accordingly.
6180 (neon_builtin_compare): Remove.
6181 (locate_neon_builtin_icode): Remove.
6182 (arm_expand_neon_builtin): Change accordingly.
6184 * arm.h (enum arm_builtins): Move to ...
6185 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6187 * arm.c (arm_builtin_decl): Declare.
6188 (TARGET_BUILTIN_DECL): Define.
6189 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6190 (arm_builtin_decls[]): New.
6191 (arm_init_neon_builtins): Store builtin declarations in
6192 arm_builtin_decls[].
6193 (arm_init_tls_builtins): Likewise.
6194 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6195 (arm_builtin_decl): New.
6197 2011-04-18 Richard Guenther <rguenther@suse.de>
6199 * tree.c (upper_bound_in_type): Build properly canonicalized
6201 (lower_bound_in_type): Likewise.
6203 2011-04-18 Richard Guenther <rguenther@suse.de>
6205 * gimple.h (gimple_call_addr_fndecl): New function.
6206 (gimple_call_fndecl): Use it.
6207 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6209 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6210 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6212 2011-04-18 Richard Guenther <rguenther@suse.de>
6215 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6217 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6220 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6221 DECL_IN_CONSTANT_POOL without RTL.
6223 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6224 Ira Rosen <ira.rosen@linaro.org>
6227 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6228 to match neon_vzip/vuzp/vtrn_internal.
6229 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6230 outputs explicitly dependent on both inputs.
6231 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6233 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6235 PR tree-optimization/48616
6236 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6237 whether the shift is by scalar or vector based on whether all SLP
6238 scalar stmts have the same rhs.
6240 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6242 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6245 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6248 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6251 2011-04-17 Jan Hubicka <jh@suse.cz>
6253 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6254 * cgrpahunit.c (cgraph_finalize_function): Do not set
6255 finalized_by_frontend.
6256 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6257 finalized_by_frontend.
6259 2011-04-17 Jan Hubicka <jh@suse.cz>
6261 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6262 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6263 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6264 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6266 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6268 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6270 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6273 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6274 is non-null before accessing it.
6275 (input_cgraph): Remove trailing spaces.
6277 2011-04-17 Revital Eres <revital.eres@linaro.org>
6279 * params.def (sms-min-sc): New param flag.
6280 * modulo-sched.c (sms_schedule): Use it.
6281 * doc/invoke.texi (sms-min-sc): Document it.
6283 2011-04-17 Jan Hubicka <jh@suse.cz>
6285 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6286 present, also set gimple_call_set_cannot_inline.
6287 * ipa-inline.c: Update toplevel comment.
6289 (cgraph_clone_inlined_nodes): Fix linebreaks.
6290 (cgraph_check_inline_limits): Restructure to ...
6291 (caller_growth_limits): ... this one; be more tolerant
6292 on growth in nested inline chains; add explanatory comment;
6293 fix stack accounting thinko introduced by previous patch.
6294 (cgraph_default_inline_p): Remove.
6295 (report_inline_failed_reason): New function.
6296 (can_inline_edge_p): New function.
6297 (can_early_inline_edge_p): New function.
6298 (leaf_node_p): Move upwards in file.
6299 (want_early_inline_function_p): New function.
6300 (want_inline_small_function_p): New function.
6301 (want_inline_self_recursive_call_p): New function.
6302 (cgraph_edge_badness): Rename to ...
6303 (edge_badness) ... this one; fix linebreaks.
6304 (update_edge_key): Update call of edge_baddness; add
6305 detailed dump about queue updates.
6306 (update_caller_keys): Use can_inline_edge_p and
6307 want_inline_small_function_p.
6308 (cgraph_decide_recursive_inlining): Rename to...
6309 (recursive_inlining): Use can_inline_edge_p and
6310 want_inline_self_recursive_call_p; simplify and remove no longer
6312 (cgraph_set_inline_failed): Remove.
6313 (add_new_edges_to_heap): Use can_inline_edge_p and
6314 want_inline_small_function_p.
6315 (cgraph_decide_inlining_of_small_functions): Rename to ...
6316 (inline_small_functions): ... this one; cleanup; use
6317 can/want predicates; cleanup debug ouput; work edges till fibheap
6318 is exhausted and do not stop once unit growth is reached; remove
6319 later loop processing remaining edges.
6320 (cgraph_flatten): Rename to ...
6321 (flatten_function): ... this one; use can_inline_edge_p
6322 and can_early_inline_edge_p predicates.
6323 (cgraph_decide_inlining): Rename to ...
6324 (ipa_inline): ... this one; remove unreachable nodes before
6325 inlining functions called once; simplify the pass.
6326 (cgraph_perform_always_inlining): Rename to ...
6327 (inline_always_inline_functions): ... this one; use
6328 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6329 (cgraph_decide_inlining_incrementally): Rename to ...
6330 (early_inline_small_functions): ... this one; simplify
6331 using new predicates; cleanup; make dumps prettier.
6332 (cgraph_early_inlining): Rename to ...
6333 (early_inliner): newer inline regular functions into always-inlines;
6334 fix updating of call stmt summaries.
6335 (pass_early_inline): Update for new names.
6336 (inline_transform): Fix formating.
6337 (gate_cgraph_decide_inlining): Rename to ...
6338 (pass_ipa_inline): ... this one.
6339 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6340 * ipa-inline-analysis.c (dump_inline_summary): Update.
6341 (compute_inline_parameters): Do not compute disregard_inline_limits;
6342 look for mismatching arguments.
6343 (estimate_growth): Fix handlig of non-trivial self recursion.
6344 (inline_read_summary): Do not read info->disregard_inline_limits.
6345 (inline_write_summary): Do not write info->disregard_inline_limits.
6346 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6347 and move all checks into can_inline_edge_p predicate; re-enable code
6348 comparing optimization levels.
6349 (expand_call_inline): Do not test inline_forbidden_into_p.
6350 * Makefile.in (ipa-inline.o): Update arguments.
6352 2011-04-17 Revital Eres <revital.eres@linaro.org>
6354 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6356 2011-04-17 Revital Eres <revital.eres@linaro.org>
6358 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6360 2011-04-17 Michael Matz <matz@suse.de>
6362 PR tree-optimization/48622
6364 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6365 in same order as they're written.
6367 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6369 * config/pa/predicates.md: Reorganize and simplify predicates.
6370 Eliminate duplicate code checks.
6371 (arith_operand): Rename to arith14_operand
6372 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6373 * config/pa/pa.md: Use renamed operands.
6374 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6375 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6376 arith11_operand, adddi3_operand, indexed_memory_operand,
6377 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6378 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6379 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6380 move_dest_operand, move_src_operand, prefetch_cc_operand,
6381 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6382 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6383 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6384 div_operand, int5_operand, movb_comparison_operator,
6385 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6386 arith_double_operand, ireg_operand, lhs_lshift_operand,
6387 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6388 integer_store_memory_operand): Likewise.
6389 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6390 (integer_store_memory_operand, read_only_operand,
6391 function_label_operand, borx_reg_operand,
6392 non_hard_reg_operand): Likewise.
6393 (eq_neq_comparison_operator): Delete unused operator.
6394 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6395 function_label_operand.
6396 (emit_move_sequence): Likewise.
6398 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6400 * config/i386/sse.md (sseunpackmode): New mode attribute.
6401 (ssepackmode): Ditto.
6402 (vec_pack_trunc_<mode>): Macroize expander from
6403 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6404 (vec_unpacks_lo_<mode>): Macroize expander from
6405 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6406 (vec_unpacks_hi_<mode>): Macroize expander from
6407 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6408 (vec_unpacku_lo_<mode>): Macroize expander from
6409 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6410 (vec_unpacku_hi_<mode>): Macroize expander from
6411 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6412 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6413 ix86_expand_sse4_unpack.
6414 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6416 2011-04-16 Jan Hubicka <jh@suse.cz>
6418 * cgraphbuild.c: Include ipa-inline.h.
6419 (reset_inline_failed): Use initialize_inline_failed.
6420 * cgraph.c: Include ipa-inline.h.
6421 (cgraph_create_node_1): Do not initialize estimated_growth.
6422 (initialize_inline_failed): More to ipa-inline-analysis.c
6423 (dump_cgraph_node): Do not dump inline flags.
6424 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6425 and disregard_inline_limits flags.
6426 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6427 time, size, estimated_growth.
6428 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6430 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6431 DECL_DISREGARD_INLINE_LIMITS.
6432 (cgraph_analyze_function): Do not initialize
6433 node->local.disregard_inline_limits.
6434 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6435 inlinable, versionable and disregard_inline_limits.
6436 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6437 cgraph_check_inline_limits, cgraph_default_inline_p,
6438 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6439 add_new_edges_to_heap): Update.
6440 (cgraph_decide_inlining_of_small_function): Update; set
6441 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6442 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6443 cgraph_decide_inlining_incrementally): Update.
6444 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6445 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6446 time, size and estimated_growth parameters.
6447 (estimate_edge_growth): Update.
6448 (initialize_inline_failed): Declare.
6449 * ipa-split.c: Include ipa-inline.h
6450 (execute_split_functions): Update.
6451 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6452 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6453 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6454 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6455 estimated_growth to INT_MIN.
6456 (inline_node_duplication_hook): Likewise.
6457 (dump_inline_summary): Dump new fields.
6458 (compute_inline_parameters): Update.
6459 (estimate_edge_time, estimate_time_after_inlining,
6460 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6461 inline_write_summary):
6462 (initialize_inline_failed): Move here from cgraph.c.
6463 * tree-sra.c: Include ipa-inline.h.
6464 (ipa_sra_preliminary_function_checks): Update.
6465 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6468 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6470 * config/i386/sse.md (V16): New mode iterator.
6472 (AVXMODEQI, AVXMODEDI): Remove.
6473 (sse2, sse3): New mode attribute.
6474 (mov<mode>): Use V16 mode iterator.
6475 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6476 (push<mode>1): Use V16 mode iterator.
6477 (movmisalign<mode>): Ditto.
6478 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6479 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6480 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6481 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6482 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6483 avx_movdqu<avxmodesuffix>.
6484 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6485 *avx_movdqu<avxmodesuffix>.
6486 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6487 avx_lddqu<avxmodesuffix>.
6488 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6489 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6490 avx_movnt<AVXMODEDI:mode>.
6491 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6492 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6494 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6497 * haifa-sched.c (prune_ready_list, schedule_block): Use
6498 sched_pressure_p rather than flag_sched_pressure.
6500 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6502 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6503 cgraph_get_node instead of cgraph_get_create_node.
6505 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6507 * cfgexpand.c (expand_debug_expr): Use
6508 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6510 2011-04-15 Michael Matz <matz@suse.de>
6512 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6513 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6514 * function.c (gimplify_parameters): Ditto.
6515 * gimplify.c (gimplify_vla_decl): Ditto.
6517 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6518 (gimple_call_set_alloca_for_var): New inline function.
6519 (gimple_call_alloca_for_var_p): Ditto.
6520 * gimple.c (gimple_build_call_from_tree): Remember
6521 CALL_ALLOCA_FOR_VAR_P state.
6522 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6524 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6525 calls if they were for VLA objects.
6527 2011-04-15 Martin Jambor <mjambor@suse.cz>
6529 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6532 2011-04-15 Martin Jambor <mjambor@suse.cz>
6535 * tree-emutls.c (lower_emutls_function_body): Call
6536 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6539 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6541 * c-decl.c (detect_field_duplicates): Call
6542 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6544 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6546 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6547 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6548 * ipa-pure-const.c (check_stmt): Call it.
6549 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6551 2011-04-15 Richard Guenther <rguenther@suse.de>
6553 PR tree-optimization/48290
6554 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6555 Properly decide inhibiting propagation based on the valueized
6556 operand. Do loop-closed SSA form preserving here ...
6557 (init_copy_prop): ... not here.
6559 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6562 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6563 (*ieee_smax<mode>3): Likewise.
6565 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6567 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6568 Replace match_operand with match_dup for the third operand in
6571 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6573 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6574 to track processing of conditionals. Update all callers.
6575 (try_combine, simplify_if_then_else): Update.
6577 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6579 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6582 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6584 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6585 instead of match_operand for operand 3.
6587 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6589 * recog.h (insn_operand_data): Add an "allows_mem" field.
6590 * genoutput.c (output_operand_data): Initialize it.
6591 * optabs.c (maybe_legitimize_operand_same_code): New function.
6592 (maybe_legitimize_operand): Use it when matching the original
6595 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6597 * gimplify.c: Fix issues in comments throughout.
6598 (voidify_wrapper_expr): Fix long line.
6599 (build_stack_save_restore): Likewise.
6600 (gimplify_loop_expr): Likewise.
6601 (gimplify_compound_lval): Likewise.
6602 (gimplify_init_ctor_eval): Likewise.
6603 (gimplify_modify_expr_rhs): Likewise.
6604 (omp_notice_threadprivate_variable): Likewise.
6606 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6608 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6609 original one if this is not a builtin function.
6611 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6614 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6615 offset it as needed based on top 2 bits in operands[3], change
6616 MEM mode to SFmode and mask those 2 bits away from operands[3].
6618 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6620 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6621 change from objc_declare_protocols() to objc_declare_protocol().
6623 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6625 * config/i386/sse.md (sse4_1): New mode attribute.
6626 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6627 avx_blend<ssemodesuffix><avxmodesuffix> and
6628 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6629 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6630 avx_blendv<ssemodesuffix><avxmodesuffix> and
6631 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6632 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6633 avx_dp<ssemodesuffix><avxmodesuffix> and
6634 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6635 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6636 (sse4_1_packusdw): Merge with *avx_packusdw.
6637 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6638 (sse4_1_pblendw): Merge with *avx_pblendw.
6639 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6640 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6641 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6643 (sse4_1_round<ssescalarmodesuffix>): Merge with
6644 *avx_round<ssescalarmodesuffix>.
6645 (aesenc): Merge with *avx_aesenc.
6646 (aesenclast): Merge with *avx_aesenclast.
6647 (aesdec): Merge with *avx_aesdec.
6648 (aesdeclast): Merge with *avx_aesdeclast.
6649 (pclmulqdq): Merge with *pclmulqdq.
6650 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6652 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6654 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6657 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6658 (align_local_variable): This. Update DECL_ALIGN.
6659 (add_stack_var): Updated.
6660 (expand_one_stack_var): Likewise.
6662 2011-04-14 Richard Guenther <rguenther@suse.de>
6664 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6666 (dse_initialize_block_local_data, dse_leave_block,
6667 record_voperand_set, get_stmt_uid): Likewise.
6668 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6669 (dse_optimize_stmt): Remove voperand set handling code.
6670 Simplify and improve to handle any kind of killing stmt.
6671 (dse_record_phi): Remove.
6672 (dse_enter_block): Simplify.
6673 (tree_ssa_dse): Likewise.
6674 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6676 2011-04-14 Jan Hubicka <jh@suse.cz>
6678 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6679 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6680 (cgraph_local_info): Remove inline_summary.
6681 * ipa-cp.c: Include ipa-inline.h.
6682 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6683 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6685 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6686 (input_overwrite_node): Do not set inline summary.
6687 (input_node): Do not stream inline summary.
6688 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6689 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6690 growth; we do not have inline parameters computed for that anyway.
6691 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6692 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6693 (inline_summary_t): New type and VECtor.
6694 (debug_inline_summary, dump_inline_summaries): Declare.
6695 (inline_summary): Use VOCtor.
6696 (estimate_edge_growth): Kill hack computing call stmt size directly.
6697 * lto-section-in.c (lto_section_name): Add inline section.
6698 * ipa-inline-analysis.c: Include lto-streamer.h
6699 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6700 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6701 (inline_summary_vec): Define.
6702 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6703 dump_inline_summaries): New functions.
6704 (estimate_function_body_sizes): Properly compute size/time of outgoing
6706 (compute_inline_parameters): Alloc inline_summary; do not compute
6707 size/time of incomming calls.
6708 (estimate_edge_time): Avoid missing time summary hack.
6709 (inline_read_summary): Read inline summary info.
6710 (inline_write_summary): Write inline summary info.
6711 (inline_free_summary): Free all hooks and inline summary vector.
6712 * lto-streamer.h: Add LTO_section_inline_summary section.
6713 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6714 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6716 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6718 * tree-vectorizer.h (vect_strided_store_supported): Add a
6719 HOST_WIDE_INT argument.
6720 (vect_strided_load_supported): Likewise.
6721 (vect_permute_store_chain): Return void.
6722 (vect_transform_strided_load): Likewise.
6723 (vect_permute_load_chain): Delete.
6724 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6725 count argument. Check that the count is a power of two.
6726 (vect_strided_load_supported): Likewise.
6727 (vect_permute_store_chain): Return void. Update after above changes.
6728 Assert that the access is supported.
6729 (vect_permute_load_chain): Likewise.
6730 (vect_transform_strided_load): Return void.
6731 * tree-vect-stmts.c (vectorizable_store): Update calls after
6732 above interface changes.
6733 (vectorizable_load): Likewise.
6734 (vect_analyze_stmt): Don't check for strided powers of two here.
6736 2011-04-14 Richard Guenther <rguenther@suse.de>
6738 PR tree-optimization/48590
6739 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6740 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6741 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6742 BUILT_IN_STACK_SAVE.
6743 * tree-ssa-dce.c (propagate_necessity): Handle
6744 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6746 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6748 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6751 2011-04-14 Richard Guenther <rguenther@suse.de>
6753 * tree.h (get_object_alignment_1): Declare.
6754 * builtins.c (get_object_alignment_1): Split out worker from ...
6755 (get_object_alignment): ... here.
6756 * fold-const.c (get_pointer_modulus_and_residue): Use
6757 get_object_alignment_1.
6759 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6761 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6763 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6764 parameter. Generalise code to handle arrays as well as vectors.
6765 (vect_setup_realignment): Update accordingly.
6766 * tree-vect-stmts.c (vectorizable_store): Likewise.
6767 (vectorizable_load): Likewise.
6769 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6771 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6772 within the per-copy loop.
6774 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6776 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6779 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6781 * doc/options.texi (Negative): Explicitly mention that the
6782 Negative chain must be circular.
6784 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6786 * function.h (block_chainon): Declare.
6787 * function.c (block_chainon): Define.
6789 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6790 Eric Weddington <eric.weddington@atmel.com>
6791 Georg-Johann Lay <avr@gjlay.de>
6793 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6795 (avr_init_builtins, avr_expand_builtin,
6796 avr_expand_delay_cycles, avr_expand_unop_builtin,
6797 avr_expand_binop_builtin ): New functions.
6798 (avr_builtin_id): New enum
6799 (struct avr_builtin_description): New struct
6800 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6801 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6803 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6804 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6805 UNSPECV_DELAY_CYCLES): new enumeration values
6806 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6807 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6808 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6809 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6810 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6811 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6812 "fmulsu"): New insns
6814 * config/avr/avr-c.c: fix line endings
6815 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6816 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6817 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6818 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6819 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6821 * doc/extend.texi (AVR Built-in Functions): New node
6822 (Target Builtins): Add documentation of AVR
6825 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6828 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6829 alone. Error if non-const data has attribute progmem.
6831 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6833 * tree.h (struct tree_constructor): Include tree_typed instead of
6835 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6836 TS_TYPED instead of TS_COMMON.
6838 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6840 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6841 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6842 (sse2_psadbw): Merge with *avx_psadbw.
6843 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6844 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6845 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6846 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6847 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6848 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6849 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6850 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6851 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6852 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6853 (ssse3_palignrti): Merge with *avx_palignrti.
6855 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6857 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6858 * tree-ssanames.c (fini_ssanames): VEC_free it.
6859 (make_ssa_name_fn): Update for VECness of free_ssanames.
6860 (release_ssa_name, release_dead_ssa_names): Likewise.
6861 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6863 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6864 TS_TYPED instead of TS_COMMON.
6866 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6868 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6869 statistics_counter_event.
6870 * tree-ssa-copyrename.c (stats): Define.
6871 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6872 statistics_counter_event.
6873 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6874 (bswap_stats, widen_mul_stats): Define.
6875 (insert_reciprocals): Increment rdivs_inserted.
6876 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6877 rfuncs_inserted. Add calls to statistics_counter_event.
6878 (execute_cse_sincos_1): Increment inserted.
6879 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6880 statistics_counter_event.
6881 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6882 of bswap_stats. Add calls to statistics_counter_event.
6883 (convert_mult_to_widen): Increment widen_mults_inserted.
6884 (convert_plusminus_to_widen): Increment maccs_inserted.
6885 (convert_mult_to_fma): Increment fmas_inserted.
6886 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6887 calls to statistics_counter_event.
6889 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6891 PR rtl-optimization/48455
6892 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6893 `temp_costs->mem_cost'.
6895 2011-04-13 Jan Hubicka <jh@suse.cz>
6897 * ipa-inline.h: New file.
6898 * ipa-inline-analysis.c: New file. Broken out of ...
6899 * ipa-inline.c: ... this file; update toplevel comment;
6900 include ipa-inline.h
6901 (inline_summary): Move to ipa-inline.h
6902 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6903 ipa-inline-analysis.c.
6904 (cgraph_estimate_time_after_inlining): Rename to
6905 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6906 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6907 to estimate_edge_growth.
6908 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6909 rename to estimate_size_after_inlining.
6910 (cgraph_mark_inline_edge): Update for new naming convention.
6911 (cgraph_check_inline_limits): Likewise.
6912 (cgraph_edge_badness): Likewise.
6913 (cgraph_decide_recursive_inlining): Likewise.
6914 (cgraph_decide_inlining_of_small_functions): Likewise.
6915 (cgraph_decide_inlining_incrementally): Likewise.
6916 (cgraph_estimate_growth): Rename to estimate_growth; move to
6917 ipa-inline-analysis.c.
6918 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6919 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6920 (compute_inline_parameters): Likewise.
6921 (compute_inline_parameters_for_current): Likewise.
6922 (pass_inline_parameters): Likewise.
6923 (inline_indirect_intraprocedural_analysis): Likewise.
6924 (analyze_function): Rename to inline_analyze_function; likewise.
6925 (add_new_function): Move to ipa-inline-analysis.c.
6926 (inline_generate_summary): Likewise.
6927 (inline_read_summary): Likewise.
6928 (inline_write_summary): Likewise.
6929 * Makefile.in (ipa-inline-analysis.c): New file.
6931 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6933 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6934 * configure: Regenerate.
6936 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6938 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6939 instead of tree_common.
6940 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6942 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6943 TS_TYPED rather than TS_COMMON.
6944 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6946 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6949 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6950 r20 around calls of __tablejump_elpm__
6952 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6955 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6957 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6959 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6961 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6962 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6963 (cfi_vec): New typedef.
6964 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6965 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6966 (cie_cfi_vec): New static variable.
6967 (cie_cfi_head): Delete.
6968 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6969 declaration changed. Use vector rather than list operations.
6970 (new_cfi): Don't initialize the dw_cfi_next field.
6971 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6972 rather than list operations.
6973 (lookup_cfa): Use vector rather than list operations.
6974 (output_cfis): New argument upto. Accept a cfi_vec rather than
6975 a dw_cfi_ref list head as argument. All callers changed.
6976 Iterate over the vector using upto as a maximum index.
6977 (output_all_cfis): New static function.
6978 (output_fde): Use vector rather than list operations. Use the
6979 new upto argument for output_cfis rather than manipulating a
6981 (dwarf2out_begin_prologue): Change initializations to match
6983 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6984 from the vector length rather than searching for the end of a list.
6985 Use output_all_cfis.
6986 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6988 2011-04-13 Nick Clifton <nickc@redhat.com>
6990 * config/rx/rx.md (movmemsi): Do not use this pattern when
6991 volatile pointers are involved.
6993 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6995 * config/i386/sse.md (pinsrbits): Remove.
6996 (sse2_packsswb): Merge with *avx_packsswb.
6997 (sse2_packssdw): Merge with *avx_packssdw.
6998 (sse2_packuswb): Merge with *avx_packuswb.
6999 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7000 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7001 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7002 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7003 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7004 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7005 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7006 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7007 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7008 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7009 (sse2_loadld): Merge with *avx_loadld.
7010 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7011 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7012 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7013 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7014 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7016 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7018 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7020 * print-tree.c (print_node): Likewise.
7021 * tree-inline.c (copy_tree_r): Likewise.
7022 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7023 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7024 instead of TS_COMMON.
7025 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7026 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7027 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7028 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7029 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7031 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7033 (TREE_CHAIN): Check for a TS_COMMON structure.
7034 (TREE_TYPE): Check for a TS_TYPED structure.
7036 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7038 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7039 cgraph_get_create_node instead of cgraph_node.
7041 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7043 * c-parser.c (c_parser_initelt): Updated call to
7044 objc_build_message_expr.
7045 (c_parser_postfix_expression): Likewise.
7047 2011-04-12 Kai Tietz <ktietz@redhat.com>
7049 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7050 MASK_MS_BITFIELD_LAYOUT bit.
7052 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7054 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7055 assert it is always true.
7056 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7059 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7061 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7062 compiling Objective-C to be more efficient.
7064 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7066 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7069 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7071 * recog.h, genoutput.c, optabs.c: Revert last patch.
7073 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7076 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7078 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7080 * recog.h (insn_operand_data): Add an "allows_mem" field.
7081 * genoutput.c (output_operand_data): Initialize it.
7082 * optabs.c (maybe_legitimize_operand_same_code): New function.
7083 (maybe_legitimize_operand): Use it when matching the original
7086 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7088 * genpreds.c (process_define_predicate): Move most processing
7089 to gensupport.c. Continue to validate the expression.
7090 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7091 (process_define_predicate): Move processing to gensupport.c.
7092 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7093 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7094 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7096 (valid_predicate_name_p): New function, split out from old
7097 genpreds.c:process_define_predicate.
7098 (process_define_predicate): New function, combining code from
7099 old genpreds.c and genrecog.c functions.
7100 (process_rtx): Call it for DEFINE_PREDICATE and
7101 DEFINE_SPECIAL_PREDICATE.
7103 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7105 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7106 size of a '%A' memory reference.
7107 (T_DREG, T_QREG): New neon_builtin_type_bits.
7108 (arm_init_neon_builtins): Assert that the load and store operands
7109 are neon_struct_operands.
7110 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7111 (NEON_ARG_MEMORY): New builtin_arg.
7112 (neon_dereference_pointer): New function.
7113 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7114 Handle NEON_ARG_MEMORY.
7115 (arm_expand_neon_builtin): Update after above interface changes.
7116 Use NEON_ARG_MEMORY for loads and stores.
7117 * config/arm/predicates.md (neon_struct_operand): New predicate.
7118 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7119 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7120 (V_four_elem): Tweak formatting.
7121 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7122 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7123 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7124 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7125 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7126 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7127 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7128 Use %A in the output template.
7129 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7130 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7131 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7132 the width of the memory access. Remove post-increment.
7133 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7135 2011-04-12 Nick Clifton <nickc@redhat.com>
7137 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7138 instruction for interrupt handlers if the target is the basic V850
7140 (expand_epilogue): Likewise.
7142 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7144 PR rtl-optimization/48549
7145 * combine.c (propagate_for_debug): Also stop after BB_END of
7146 this_basic_block. Process LAST and just stop processing after it.
7147 (combine_instructions): If last_combined_insn has been deleted,
7148 set last_combined_insn to its PREV_INSN.
7150 2011-04-12 Richard Guenther <rguenther@suse.de>
7152 PR tree-optimization/46076
7153 * gimple.h (struct gimple_statement_call): Add fntype field.
7154 (gimple_call_fntype): Adjust.
7155 (gimple_call_set_fntype): New function.
7156 * gimple.c (gimple_build_call_1): Set the call function type.
7157 * gimplify.c (gimplify_call_expr): Preserve the function
7158 type the frontend used for the call.
7159 (gimplify_modify_expr): Likewise.
7160 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7162 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7164 * tree-ssa.c (useless_type_conversion_p): Function pointer
7165 conversions are useless.
7167 2011-04-12 Martin Jambor <mjambor@suse.cz>
7169 * cgraph.h (cgraph_node): Remove function declaration.
7170 (cgraph_create_node): Declare.
7171 (cgraph_get_create_node): Likewise.
7172 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7173 Updated all callers.
7174 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7175 the decl does not already exist. Call cgraph_get_create_node instead
7177 (cgraph_get_create_node): New function.
7178 (cgraph_same_body_alias): Update comment.
7179 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7180 assert it does not return NULL.
7181 (cgraph_update_edges_for_call_stmt): Likewise.
7182 (cgraph_clone_edge): Likewise.
7183 (cgraph_create_virtual_clone): Likewise.
7184 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7185 instead of cgraph_node.
7186 (cgraph_add_new_function): Call cgraph_create_node or
7187 cgraph_get_create_node instead of cgraph_node.
7188 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7189 instead of cgraph_node.
7190 (record_eh_tables): Likewise.
7191 (mark_address): Likewise.
7192 (mark_load): Likewise.
7193 (build_cgraph_edges): Call cgraph_get_create_node instead
7195 (rebuild_cgraph_edges): Likewise.
7196 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7197 instead of cgraph_node.
7198 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7200 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7201 cgraph_create_node instead of cgraph_node.
7202 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7204 * lto-cgraph.c (input_node): Likewise.
7205 * lto-streamer-in.c (input_function): Likewise.
7206 * varasm.c (mark_decl_referenced): Likewise.
7207 (assemble_alias): Likewise.
7209 2011-04-12 Martin Jambor <mjambor@suse.cz>
7211 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7212 instead of cgraph_node and assert it does not return NULL.
7213 * lto-streamer-in.c (lto_read_body): Likewise.
7214 * omp-low.c (new_omp_context): Likewise.
7215 (create_task_copyfn): Likewise.
7216 * tree-emutls.c (lower_emutls_function_body): Likewise.
7217 * matrix-reorg.c (transform_allocation_sites): Likewise.
7219 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7222 * c-typeck.c (build_asm_expr): Error out on attempts to use
7223 void type outputs or inputs for constraints that allow reg or
7226 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7227 Richard Earnshaw <rearnsha@arm.com>
7230 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7231 to use sign-magnitude offsets. Reject unsupported unaligned
7232 cases. Add detailed description in comments.
7233 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7234 condition from TARGET_32BIT to TARGET_ARM.
7236 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7238 * tree.h (struct typed_tree): New.
7239 (struct tree_common): Include it instead of tree_base.
7240 (TREE_TYPE): Update for new location of type field.
7241 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7242 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7243 (union tree_node): Add typed field.
7244 * treestruct.def (TS_TYPED): New.
7245 * lto-streamer.c (check_handled_ts_structures): Handle it.
7246 * tree.c (MARK_TS_TYPED): New macro.
7247 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7249 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7251 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7252 (force_nonfallthru): Do not alter the loop nest if no basic block
7255 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7257 * config/i386/sse.md (VI): New mode iterator.
7259 (AVX256MODEI): Ditto.
7260 (AVXMODEF4P): Ditto.
7261 (avxvecpsmode): Ditto.
7262 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7263 (sse2_andnot<mode>3): New expander.
7264 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7265 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7266 (<any_logic:code><mode>3): Use VI mode iterator.
7267 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7268 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7269 (*andnottf3): Handle AVX three-operand constraints.
7270 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7272 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7273 Robert Millan <rmh@gnu.org>
7275 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7276 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7277 GNU_USER_DYNAMIC_LINKER64): Define.
7278 (REG_NAME): Don't undefine.
7279 (MD_UNWIND_SUPPORT): Undefine.
7280 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7281 (REG_NAME): Don't undefine.
7282 (MD_UNWIND_SUPPORT): Undefine.
7283 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7285 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7287 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7288 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7290 2011-04-11 Xinliang David Li <davidxl@google.com>
7292 * value-profile.c (check_ic_target): New function.
7293 (gimple_ic_transform): Sanity check indirect call target.
7294 * gimple-low.c (gimple_check_call_args): Interface change.
7295 (gimple_check_call_matching_types): New function.
7296 * tree-inline.c (tree_can_inline_p): Call new function.
7298 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7300 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7301 tree-pretty-print.h & realmpfr.h.
7303 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7306 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7307 (setup_allocno_and_important_classes): Ditto.
7309 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7311 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7312 GNU_USER_DYNAMIC_LINKER.
7313 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7314 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7315 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7316 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7317 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7318 GNU_USER_TARGET_OS_CPP_BUILTINS.
7319 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7320 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7321 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7322 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7323 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7324 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7325 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7326 GNU_USER_TARGET_OS_CPP_BUILTINS.
7327 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7328 GNU_USER_DYNAMIC_LINKER.
7329 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7330 GNU_USER_TARGET_OS_CPP_BUILTINS.
7331 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7332 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7333 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7334 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7335 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7336 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7337 GNU_USER_DYNAMIC_LINKER64): Remove.
7338 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7339 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7340 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7341 GNU_USER_DYNAMIC_LINKER.
7342 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7343 GNU_USER_TARGET_OS_CPP_BUILTINS.
7344 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7345 GNU_USER_TARGET_OS_CPP_BUILTINS.
7346 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7347 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7348 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7349 GNU_USER_TARGET_OS_CPP_BUILTINS.
7350 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7351 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7352 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7353 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7354 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7355 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7356 GNU_USER_DYNAMIC_LINKER.
7357 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7358 GNU_USER_TARGET_OS_CPP_BUILTINS.
7359 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7360 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7361 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7362 GNU_USER_DYNAMIC_LINKER.
7363 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7364 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7365 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7366 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7367 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7368 GNU_USER_DYNAMIC_LINKER.
7369 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7370 GNU_USER_DYNAMIC_LINKERN32.
7371 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7372 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7373 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7374 GNU_USER_DYNAMIC_LINKER32.
7375 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7376 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7377 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7378 GNU_USER_DYNAMIC_LINKER.
7379 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7380 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7381 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7382 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7383 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7384 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7385 GNU_USER_DYNAMIC_LINKER32.
7386 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7387 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7388 GNU_USER_DYNAMIC_LINKER.
7389 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7390 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7391 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7392 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7393 GNU_USER_DYNAMIC_LINKER64.
7394 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7395 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7396 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7397 GNU_USER_DYNAMIC_LINKER.
7398 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7399 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7400 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7401 GNU_USER_DYNAMIC_LINKER.
7402 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7403 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7404 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7405 GNU_USER_DYNAMIC_LINKER32.
7406 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7407 GNU_USER_DYNAMIC_LINKER64.
7408 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7409 GNU_USER_DYNAMIC_LINKER64.
7410 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7411 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7412 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7413 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7414 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7416 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7418 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7419 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7420 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7421 GNU_USER_DYNAMIC_LINKER.
7422 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7423 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7424 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7425 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7426 GNU_USER_DYNAMIC_LINKER64.
7427 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7428 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7429 GNU_USER_LINK_EMULATION.
7430 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7431 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7432 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7433 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7434 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7435 CPP_SPEC, CC1_SPEC): Remove.
7436 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7437 (GNU_USER_DYNAMIC_LINKER): Define.
7438 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7439 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7440 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7441 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7442 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7443 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7444 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7445 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7446 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7447 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7448 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7449 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7450 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7451 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7452 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7453 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7454 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7455 GNU_USER_DYNAMIC_LINKER.
7456 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7457 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7458 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7459 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7460 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7461 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7462 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7463 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7464 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7465 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7467 2011-04-11 Kai Tietz <ktietz@redhat.com>
7471 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7472 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7474 (ix86_is_msabi_thiscall): Removed.
7475 (ix86_is_type_thiscall): Likewise.
7476 (ix86_get_callcvt): New function.
7477 (ix86_comp_type_attributes): Simplify check.
7478 (ix86_function_regparm): Use ix86_get_callcvt for calling
7479 convention attribute checks.
7480 (ix86_return_pops_args): Likewise.
7481 (ix86_static_chain): Likewise.
7482 (x86_this_parameter): Likewise.
7483 (x86_output_mi_thunk): Likewise.
7484 (ix86_function_type_abi): Optimize check for types without attributes.
7485 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7486 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7487 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7489 (IX86_BASE_CALLCVT): Helper macro.
7490 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7491 Use ix86_get_callcvt for calling convention attribute checks and avoid
7492 symbol-decoration for stdcall in TARGET_RTD case.
7493 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7495 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7498 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7500 * config/i386/sse.md (VI_128): New mode iterator.
7501 (VI12_128): Rename from SSEMODE12.
7502 (VI14_128): Rename from SSEMODE14.
7503 (VI124_128): New mode iterator.
7504 (VI24_128): Rename from SSEMODE248.
7505 (VI248_128): Rename from SSEMODE248.
7506 (SSEMODE124C8): Remove.
7507 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7508 (*sse2_<plusminus_insn><mode>3): Merge with
7509 *avx_<plusminus_insn><mode>3.
7510 (*mulv8hi3): Merge with *avx_mulv8hi3.
7511 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7512 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7513 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7514 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7515 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7516 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7517 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7518 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7519 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7520 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7521 (*<smaxmin:code>v8hi3): Ditto.
7522 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7523 (*<smaxmin:code>v16qi3): Ditto.
7524 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7525 (*sse2_eq<mode>3): Ditto.
7526 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7527 (*sse2_gt<mode>3): Ditto.
7528 (vcondv2di): Split out of vcond<mode>.
7529 (vconduv2di): Split out of vcondu<mode>.
7531 2011-04-11 Richard Guenther <rguenther@suse.de>
7533 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7534 before calling tree_low_cst.
7536 2011-04-11 Richard Guenther <rguenther@suse.de>
7538 * stor-layout.c (layout_type): Compute all array index size operations
7539 in the original type.
7540 (initialize_sizetypes): Add comment.
7541 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7543 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7545 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7547 2011-04-11 Martin Jambor <mjambor@suse.cz>
7549 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7550 of cgraph_node, handle NULL return value.
7551 (cgraph_global_info): Likewise.
7552 (cgraph_rtl_info): Likewise.
7553 * tree-inline.c (estimate_num_insns): Likewise.
7554 * gimplify.c (unshare_body): Likewise.
7555 (unvisit_body): Likewise.
7556 (gimplify_body): Likewise.
7557 * predict.c (optimize_function_for_size_p): Likewise.
7558 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7559 (call_may_clobber_ref_p_1): Likewise.
7560 * varasm.c (function_section_1): Likewise.
7561 (assemble_start_function): Likewise.
7563 2011-04-11 Martin Jambor <mjambor@suse.cz>
7565 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7567 * final.c (rest_of_clean_state): Likewise.
7568 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7569 * passes.c (pass_init_dump_file): Likewise.
7570 (execute_all_ipa_transforms): Likewise.
7571 (function_called_by_processed_nodes_p): Likewise.
7572 * predict.c (maybe_hot_frequency_p): Likewise.
7573 (probably_never_executed_bb_p): Likewise.
7574 (compute_function_frequency): Likewise.
7575 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7576 (unnest_nesting_tree_1): Likewise.
7577 (lower_nested_functions): Likewise.
7578 * tree-optimize.c (execute_fixup_cfg): Likewise.
7579 (tree_rest_of_compilation): Likewise.
7580 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7581 * tree-sra.c (ipa_early_sra): Likewise.
7582 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7583 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7584 * ipa.c (record_cdtor_fn): Likewise.
7585 * ipa-inline.c (cgraph_early_inlining): Likewise.
7586 (compute_inline_parameters_for_current): Likewise.
7587 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7588 * ipa-pure-const.c (local_pure_const): Likewise.
7589 * ipa-split.c (split_function): Likewise.
7590 (execute_split_functions): Likewise.
7591 * cgraphbuild.c (build_cgraph_edges): Likewise.
7592 (rebuild_cgraph_edges): Likewise.
7593 (cgraph_rebuild_references): Likewise.
7594 (remove_cgraph_callee_edges): Likewise.
7595 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7596 (verify_cgraph_node): Likewise.
7597 (cgraph_analyze_functions): Likewise.
7598 (cgraph_preserve_function_body_p): Likewise.
7599 (save_inline_function_body): Likewise.
7600 (save_inline_function_body): Likewise.
7601 * tree-inline.c (copy_bb): Likewise.
7602 (optimize_inline_calls): Likewise.
7604 2011-04-11 Martin Jambor <mjambor@suse.cz>
7606 PR tree-optimization/48195
7607 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7608 ipa_check_create_edge_args.
7609 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7610 ipa_check_create_edge_args.
7611 * ipa-inline.c (inline_generate_summary): Do not call
7612 ipa_check_create_node_params and ipa_check_create_edge_args.
7613 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7614 ipa_check_create_edge_args.
7616 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7618 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7620 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7621 * function.c (record_hard_reg_sets): Likewise.
7622 * ira.c (compute_regs_asm_clobbered): Likewise.
7623 * sched-deps.c (sched_analyze_1): Likewise.
7624 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7626 2011-04-09 Xinliang David Li <davidxl@google.com>
7628 PR tree-optimization/PR48484
7629 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7630 has_valid_pred lazily
7632 2011-04-09 Duncan Sands <baldrick@free.fr>
7634 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7636 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7638 * combine.c (combine_validate_cost): Adjust comments. Set registered
7639 cost of I0 to zero at the end, if any.
7641 2011-04-08 Xinliang David Li <davidxl@google.com>
7643 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7644 to insane profile data.
7646 2011-04-08 Xinliang David Li <davidxl@google.com>
7648 * ipa-cp.c (ipcp_update_profiling): Correct
7649 negative scale factor due to insane profile data.
7651 2011-04-08 Xinliang David Li <davidxl@google.com>
7653 * final.c (dump_basic_block_info): New function.
7654 (final): Dump basic block.
7655 (final_scan_insn): Remove old dump.
7657 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7660 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7663 2011-04-08 Michael Matz <matz@suse.de>
7666 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7668 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7669 * rtl.h (rebuild_jump_labels_chain): Declare.
7670 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7671 insns inserted on edges.
7673 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7675 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7676 * config/arm/arm-arches.def: New.
7677 * config/arm/arm-opts.h: New.
7678 * config/arm/genopt.sh: New.
7679 * config/arm/arm-tables.opt: New (generated).
7680 * config/arm/arm.c (arm_handle_option, arm_target_help,
7681 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7682 (all_architectures): Get most table contents from arm-arches.def.
7683 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7684 arm_selected_tune here.
7685 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7686 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7687 (march=, mcpu=, mtune=): Use Enum and Var.
7688 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7689 (arm.o): Update dependencies.
7691 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7693 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7695 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7696 (write_typed_alloc_defns): Likewise.
7697 (main): Calls write_typed_alloc_defns with output_header.
7699 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7702 * ira-color.c (setup_profitable_hard_regs): Add comments.
7703 Don't take prohibited hard regs into account.
7704 (setup_conflict_profitable_regs): Rename to
7705 get_conflict_profitable_regs.
7706 (check_hard_reg_p): Check prohibited hard regs.
7708 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7710 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7711 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7712 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7714 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7717 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7718 move from floating point to shift amount register.
7719 (emit_move_sequence): Remove secondary reload support for floating
7720 point to shift amount amount register copies.
7721 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7722 amount register copies.
7723 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7724 register, return false if mode isn't a scalar integer mode.
7725 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7727 2011-04-08 Richard Guenther <rguenther@suse.de>
7729 * gimple.c (gimple_call_flags): Remove kludge.
7731 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7733 * sel-sched.c (sel_region_init): Move call to
7734 sel_setup_region_sched_flags after setup_current_loop_nest.
7736 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7738 PR rtl-optimization/48272
7739 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7740 init_insn_reg_pressure_info. Adjust a caller.
7741 * sched-int.h (init_insn_reg_pressure_info): Declare.
7742 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7743 when sched-pressure is enabled.
7745 2011-04-08 Richard Guenther <rguenther@suse.de>
7747 * gimple.c (gimple_set_modified): Do not queue calls to
7748 MODIFIED_NORETURN_CALLS here ...
7749 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7751 2011-04-08 Richard Guenther <rguenther@suse.de>
7754 * toplev.c (lang_dependent_init): Do not open asm_out_file
7755 in WPA mode, nor perform debug machinery initialization.
7756 (finalize): Do not unlink asm_out_file in WPA mode.
7758 2011-04-08 Richard Guenther <rguenther@suse.de>
7760 * gimple.h (gimple_call_fntype): New function.
7761 (gimple_call_return_type): Use it.
7762 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7763 * gimple-low.c (gimple_check_call_args): Likewise.
7764 * gimple.c (gimple_call_flags): Likewise.
7765 (gimple_call_arg_flags): Likewise.
7766 (gimple_call_return_flags): Likewise.
7767 * tree-cfg.c (verify_gimple_call): Likewise.
7768 (do_warn_unused_result): Likewise.
7769 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7770 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7772 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7774 PR rtl-optimization/48235
7775 * sel-sched.c (code_motion_process_successors): Recompute the last
7776 insn in basic block if control flow changed.
7777 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7778 Update condition for ilist_remove.
7780 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7782 PR rtl-optimization/48302
7783 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7784 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7785 it to record added preheader blocks.
7786 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7787 on to sel_add_loop_preheaders.
7788 (sel_region_init): Move call to setup_current_loop_nest after
7791 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7794 * cfgloop.h (loop_has_exit_edges): New helper.
7795 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7797 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7798 that have no exit edges.
7800 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7802 PR rtl-optimization/48442
7803 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7804 all callers. Adjust assert.
7806 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7808 PR tree-optimization/48377
7809 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7810 is_packed to true even for types with smaller TYPE_ALIGN than
7813 2011-04-08 Richard Guenther <rguenther@suse.de>
7816 * doc/tm.texi: Re-generate.
7818 2011-04-08 Wei Guozhi <carrot@google.com>
7821 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7822 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7823 * config/arm/arm.md (*push_multi): Change the length computation to
7826 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7828 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7829 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7830 * doc/tm.texi: Regenerate.
7831 * system.h (ASM_OUTPUT_BSS): Poison.
7832 * varasm.c (asm_output_bss): Remove function.
7833 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7835 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7836 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7837 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7838 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7840 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7842 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7844 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7846 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7848 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7851 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7853 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7854 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7855 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7857 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7858 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7859 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7860 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7861 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7862 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7863 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7864 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7865 options. Don't map other m68k options manually. Don't handle
7866 old-style options as canonical.
7867 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7868 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7870 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7872 * basic-block.h (force_nonfallthru): Move to...
7873 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7874 (force_nonfallthru): ...here.
7875 * cfghooks.c (force_nonfallthru): New function.
7876 * cfgrtl.c (force_nonfallthru): Rename into...
7877 (rtl_force_nonfallthru): ...this.
7878 (commit_one_edge_insertion): Do not set AUX field.
7879 (commit_edge_insertions): Do not discover new basic blocks.
7880 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7881 (cfg_layout_rtl_cfg_hooks): Likewise.
7882 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7883 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7884 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7886 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7888 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7891 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7893 * config/i386/sse.md: Update copyright year.
7894 (avxcvtvecmode): Remove.
7895 (sse_movhlps): Merge with *avx_movhlps.
7896 (sse_movlhps): Merge with *avx_movlhps.
7897 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7898 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7899 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7900 (sse_loadhps): Merge with *avx_loadhps.
7901 (sse_storelps): Merge with *avx_storelps.
7902 (sse_loadlps): Merge with *avx_loadlps.
7903 (sse_movss): Merge with *avx_movss.
7904 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7905 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7906 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7907 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7908 (vec_set<mode>_0): Ditto.
7909 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7910 (sse4_1_insertps): Merge with *avx_insertps.
7911 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7912 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7913 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7914 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7915 (sse2_storehpd): Merge with *avx_storehpd.
7916 (sse2_loadhpd): Merge with *avx_loadhpd.
7917 (sse2_loadlpd): Merge with *avx_loadlpd.
7918 (sse2_movsd): Merge with *avx_movsd.
7919 (*vec_concatv2df): Merge with *vec_concatv2df.
7921 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7924 * combine.c (combine_instructions): Add last_combined_insn,
7925 update it if insn is after it, pass it to all try_combine calls.
7926 (try_combine): Add last_combined_insn parameter, pass it instead of
7927 i3 to propagate_for_debug.
7929 2011-04-07 Nick Clifton <nickc@redhat.com>
7931 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7932 to handle MDR <-> data register transfers.
7933 (movhi_internal): Likewise.
7935 2011-04-07 Alan Modra <amodra@gmail.com>
7937 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7938 previous stack info.
7940 2011-04-07 Tom de Vries <tom@codesourcery.com>
7943 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7944 flow_find_cross_jump. Swap variables to implement backward replacement.
7945 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7947 2011-04-07 Tom de Vries <tom@codesourcery.com>
7950 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7951 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7953 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7954 src1 or src2. Redirect edges to the last basic block. Update
7955 frequency and count on multiple basic blocks in case of fallthru.
7957 2011-04-07 Tom de Vries <tom@codesourcery.com>
7960 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7962 (old_insns_match_p): Change return type. Replace return false/true
7963 with return dir_none/dir_both. Use can_replace_by.
7964 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7965 direction from dir_p. Register replacement direction in dir, last_dir
7966 and afterlast_dir. Handle new return type of old_insns_match_p using
7967 merge_dir. Return replacement direction in dir_p.
7968 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7969 return type of old_insns_match_p.
7970 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7971 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7972 flow_find_cross_jump.
7973 * basic-block.h (enum replace_direction): New type.
7974 (flow_find_cross_jump): Add parameter to declaration.
7976 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7978 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7979 (AVXMODEDCVTPS2DQ): Ditto.
7980 (VEC_FLOAT_MODE): Ditto.
7981 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7982 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7983 (<any_logic:code><mode>3): Use VF mode iterator.
7984 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7985 Use VF mode iterator.
7986 (copysign<mode>3): Use VF mode iterator.
7987 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7988 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7989 (*<any_logic:code><MODEF:mode>3): Merge with
7990 *avx_<any_logic:code><MODEF:mode>3.
7991 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7992 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7993 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7994 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7995 (sse2_cvtdq2ps): Use %v modifier.
7996 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7997 (avx_cvtps2dq<avxmodesuffix>): Remove.
7998 (sse2_cvtps2dq): Use %v modifier.
7999 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8000 (avx_cvttps2dq<avxmodesuffix>): Remove.
8001 (sse2_cvttps2dq): Use %v modifier.
8002 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8003 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8004 (sse2_cvtsd2siq): Fix insn template.
8005 (sse2_cvtsd2siq_2): Ditto.
8006 (sse2_cvttsd2siq): Ditto.
8007 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8008 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8010 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8012 * gcov-io.c: Use GCC Runtime Library Exception.
8014 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8017 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8018 as base_reg whatever register reg has been eliminated to, instead
8019 of hardcoding STACK_POINTER_REGNUM.
8021 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8023 * doc/tm.texi.in: Document C target hooks as separate from general
8025 * doc/tm.texi: Regenerate.
8026 * genhooks.c (struct hook_desc): Add docname field.
8027 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8029 (hook_array): Include c-target.def.
8030 (emit_documentation): Use docname field in output.
8031 (emit_init_macros): Take docname argument. Only emit definitions
8032 for hooks matching docname.
8033 (main): Expect additional arguments in all cases. Pass argument
8034 to emit_init_macros.
8035 * target.def: Move initial macro definitions and comments to
8036 target-hooks-macros.h.
8037 (gcc_targetcm): Move to c-family/c-target.def.
8038 * target.h (targetcm): Move declaration to c-family/c-target.h.
8039 * targhooks.c (default_handle_c_option): Move to
8041 * targhooks.h (default_handle_c_option): Move declaration to
8042 c-family/c-common.h.
8043 * target-hooks-macros.h: New file.
8044 * config.gcc (target_has_targetcm): Define and use to add to
8045 c_target_objs and cxx_target_objs.
8046 * config/default-c.c: New file.
8047 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8048 of target.h and target-def.h.
8049 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8050 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8051 darwin_check_cfstring_format_arg): Make static.
8052 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8053 TARGET_STRING_OBJECT_REF_TYPE_P,
8054 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8055 * config/darwin-protos.h (darwin_objc_construct_string,
8056 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8058 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8059 TARGET_STRING_OBJECT_REF_TYPE_P,
8060 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8061 * config/t-darwin (darwin-c.o): Update dependencies.
8062 * system.h (TARGET_HAS_TARGETCM): Poison.
8063 * Makefile.in (TARGET_H): Update.
8064 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8065 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8066 (default-c.o): New target.
8067 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8068 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8069 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8071 (build/genhooks.o): Update dependencies.
8073 2011-04-06 Richard Guenther <rguenther@suse.de>
8075 * ipa-inline.c (enum inlining_mode): Remove.
8076 (cgraph_flatten): Use some other token.
8077 (cgraph_edge_early_inlinable_p): New function, split out from ...
8078 (cgraph_perform_always_inlining): New function, split out from ...
8079 (cgraph_decide_inlining_incrementally): ... here.
8080 (cgraph_mark_inline_edge): Adjust.
8081 (cgraph_early_inlining): Re-structure.
8082 (pass_early_inline): Require SSA form.
8084 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8085 Julian Brown <julian@codesourcery.com>
8086 Mark Shinwell <shinwell@codesourcery.com>
8088 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8089 LO_REGS only for Thumb-1.
8090 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8091 be used in short instructions when optimising for size on Thumb-2.
8093 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8095 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8096 associated with user returns to be preserved.
8098 2011-04-06 Tristan Gingold <gingold@adacore.com>
8100 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8101 symbol_queue_size, DBXOUT_DECR_NESTING,
8102 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8103 if XCOFF_DEBUGGING_INFO.
8105 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8107 * config/i386/i386.md (attribute isa): New.
8108 (attribute enabled): New.
8109 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8110 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8111 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8112 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8113 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8114 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8115 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8116 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8118 * config/i386/sse.md (VF): New mode iterator.
8122 (SSEMODEF4): Remove.
8123 (attribute sse): Handle V8SF and V4DF modes.
8124 (<absneg:code><mode>2): Use VF mode iterator.
8125 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8127 (<plusminus_insn><mode>3): Use VF mode iterator.
8128 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8129 Use VF mode iterator.
8130 (<sse>_vm<plusminus_insn><mode>3): Merge with
8131 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8132 (mul<mode>3): Use VF mode iterator.
8133 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8134 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8136 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8137 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8138 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8139 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8141 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8142 Use VF1 mode iterator.
8143 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8144 (sqrt<VF2:mode>2): New expander.
8145 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8146 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8147 and sqrtv2df2. Use VF mode iterator.
8148 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8150 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8151 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8152 Use VF1 mode iterator.
8153 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8154 (<smaxmin:code><mode>3): Use VF mode iterator.
8155 (*<smaxmin:code><mode>3_finite): Merge with
8156 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8157 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8158 (<sse>_vm<smaxmin:code><mode>2): Merge with
8159 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8160 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8162 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8164 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8165 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8166 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8167 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8168 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8170 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8171 Use VF_128 mode iterator.
8172 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8174 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8175 VF_128 mode iterator.
8176 (vcond<mode>): Use VF mode iterator.
8177 * config/i386/predicates.md (sse_comparison_operator): Merge with
8178 avx_comparison_float_operator. Do not declare as special_predicate.
8179 * config/i386/i386.c (struct builtin_description): Update for renamed
8181 (ix86_expand_args_builtin): Ditto.
8182 (ix86_expand_sse_compare_mask): Ditto.
8184 2011-04-06 Richard Guenther <rguenther@suse.de>
8186 * tree-inline.c (estimate_num_insns): For calls simply account
8187 for all passed arguments and a used return value.
8189 2011-04-06 Richard Guenther <rguenther@suse.de>
8191 PR tree-optimization/47663
8192 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8193 call_stmt_time fields.
8194 (cgraph_edge_inlinable_p): Declare.
8195 (cgraph_edge_recursive_p): New inline function.
8196 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8197 (cgraph_clone_edge): Copy it.
8198 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8199 Account for call stmt time.
8200 (cgraph_estimate_time_after_inlining): Take edge argument.
8201 (cgraph_estimate_edge_growth): Account call stmt size.
8202 (cgraph_estimate_size_after_inlining): Take edge argument.
8203 (cgraph_mark_inline_edge): Adjust.
8204 (cgraph_check_inline_limits): Likewise.
8205 (cgraph_recursive_inlining_p): Remove.
8206 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8207 (cgraph_decide_recursive_inlining): Take edge argument and
8209 (cgraph_decide_inlining_of_small_functions): Do not avoid
8210 diags for recursive inlining here.
8211 (cgraph_flatten): Adjust.
8212 (cgraph_decide_inlining_incrementally): Likewise.
8213 (estimate_function_body_sizes): Remove call cost handling.
8214 (compute_inline_parameters): Initialize caller edge call costs.
8215 (cgraph_estimate_edge_growth): New function.
8216 (cgraph_estimate_growth): Use it.
8217 (cgraph_edge_badness): Likewise.
8218 (cgraph_check_inline_limits): Take an edge argument.
8219 (cgraph_decide_inlining_of_small_functions): Adjust.
8220 (cgraph_decide_inlining): Likewise.
8221 * tree-inline.c (estimate_num_insns): Only account for call
8222 return value if it is used.
8223 (expand_call_inline): Avoid diagnostics on recursive inline
8225 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8226 (input_edge): Input edge call costs.
8228 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8230 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8232 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8234 * doc/invoke.texi (Spec Files): Fix typo.
8236 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8238 * profile.c (branch_prob): Move declaration of local variable. Remove
8239 obsolete ??? comment. Expand the location explicitly instead of using
8240 the LOCATION_FILE and LOCATION_LINE macros.
8242 2011-04-06 Wei Guozhi <carrot@google.com>
8245 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8246 (arm_cond_branch): Likewise.
8247 (arm_cond_branch_reversed): Likewise.
8248 (arm_jump): Likewise.
8249 (push_multi): Likewise.
8250 * config/arm/constraints.md (Py): New constraint.
8252 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8255 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8257 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8258 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8259 #ifdef DBX_DEBUGGING_INFO.
8261 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8264 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8265 if old and new states differ.
8267 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8269 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8270 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8271 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8272 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8273 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8275 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8276 ColdFire options to -mcpu= options.
8278 2011-04-05 Jeff Law <law@redhat.com>
8280 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8281 check if BB is a successor of LOOP->header and return
8282 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8284 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8286 * cprop.c (struct reg_use): Remove.
8287 (reg_use_table): Make an array of RTX.
8288 (find_used_regs, constprop_register, local_cprop_pass,
8289 bypass_block): Simplify users of reg_use_table.
8290 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8291 on one of the uses found by find_used_regs.
8293 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8296 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8299 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8301 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8303 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8305 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8308 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8310 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8312 * combine.c: Include obstack.h.
8313 (struct insn_link): Define.
8314 (uid_log_links): Adjust type.
8315 (FOR_EACH_LOG_LINK): New macro.
8316 (insn_link_obstack): Declare.
8317 (alloc_insn_link): Define.
8318 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8319 type of link variables.
8320 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8321 (try_combine, record_promoted_values, distribute_notes): Likewise.
8322 (distribute_links): Likewise. Tweak prototype.
8323 (clear_log_links): Delete.
8324 (adjust_for_new_dest): Call alloc_insn_link.
8325 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8327 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8329 * gcse.c (modify_mem_list): Convert to an array of VECs.
8330 (canon_modify_mem_list, compute_transp): Tweak formatting.
8331 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8332 (load_killed_in_block_p): Likewise.
8333 (record_last_mem_set_info): Likewise.
8334 (clear_modify_mem_tables): Likewise.
8336 2011-04-05 Tom de Vries <tom@codesourcery.com>
8339 * function.c (emit_use_return_register_into_block): Only define if
8342 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8344 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8346 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8348 * config/rx/rx-opts.h: New.
8349 * config/rx/rx.c (rx_cpu_type): Remove.
8350 (rx_handle_option): Don't assert that global structures are in
8351 use. Access variables via opts pointer. Defer most handling of
8352 OPT_mint_register_. Use error_at.
8353 (rx_option_override): Handle deferred OPT_mint_register_ here.
8354 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8355 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8356 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8357 (rx_cpu_types): New Enum and EnumValue entries.
8358 (mint-register=): Use Defer and use Var accordingly.
8360 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8362 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8363 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8364 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8366 (debug_free_queue, debug_nesting, symbol_queue_index):
8368 * dbxout.c: ...to here. Make static.
8370 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8372 * gcse.c (modify_pair): Define. Define a VEC of it.
8373 (canon_modify_mem_list): Convert to an array of VECs.
8374 (free_insn_expr_list_list): Delete.
8375 (clear_modify_mem_tables): Call VEC_free instead.
8376 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8377 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8378 (canon_list_insert, compute_transp): Likewise.
8380 2011-04-05 Tom de Vries <tom@codesourcery.com>
8383 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8386 2011-04-05 Tom de Vries <tom@codesourcery.com>
8389 * function.c (emit_use_return_register_into_block): New function.
8390 (thread_prologue_and_epilogue_insns): Use
8391 emit_use_return_register_into_block.
8393 2011-04-05 Tom de Vries <tom@codesourcery.com>
8396 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8399 2011-04-05 Tom de Vries <tom@codesourcery.com>
8401 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8403 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8405 * config/arm/arm.md (define_constants for unspec): Replace with
8407 (define_constants for unspecv): Replace with define_c_enum.
8408 * config/arm/neon.md (define_constants for unspec): Replace with
8411 2011-04-04 Richard Henderson <rth@redhat.com>
8414 * dwarf2out.c (output_line_info): Always emit line info from
8415 at least one section.
8416 (dwarf2out_init): Create text_section_line_info here ...
8417 (set_cur_line_info_table): ... not here.
8419 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8422 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8425 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8427 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8429 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8430 (expr_equiv_p): Remove.
8431 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8432 (hash_scan_set): Update call to insert_set_in_table.
8433 (dump_hash_table): Dump <dest, src> pair.
8434 (lookup_set): Simplify. Lookup <dest, src> pair.
8435 (compute_transp): Remove, fold heavily simplified code into...
8436 (compute_local_properties): ...here. Expect COMP and TRANSP
8438 (find_avail_set): Take set directly from struct expr.
8439 (find_bypass-set): Likewise.
8440 (bypass_block): Likewise.
8441 (cprop_insn): Likewise. Remove redundant INSN_P test.
8443 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8444 checks on form of COND from find_implicit_sets to here.
8445 (find_implicit_sets): Cleanup control flow. Split critical edges
8446 if it exposes implicit sets. Allocate/resize implicit_sets as
8448 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8449 changed something. Run df_analyze after find_implicit_sets if any
8450 edges were split. Do not allocate implicit_sets here.
8452 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8453 (gcse_obstack): Renamed to cprop_obstack.
8454 (GNEW, GNEWVEC, GNEWVAR): Remove.
8456 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8457 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8458 (gcse_alloc): Likewise, and rename to cprop_alloc.
8459 (alloc_gcse_men, free_gcse_mem): Remove.
8460 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8461 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8462 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8464 * cprop.c (oprs_not_set_p): Remove.
8465 (mark_set, mark_clobber): Remove.
8466 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8467 (reg_not_set_p): New function.
8468 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8469 (cprop_insn): Likewise.
8470 (cprop_jump): Use FOR_EACH_EDGE.
8472 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8475 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8476 (rank_for_schedule): Use scheduled_insns vector instead of
8477 last_scheduled_insn.
8478 (ok_for_early_queue_removal): Likewise.
8479 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8481 (choose_ready): Likewise.
8482 (commit_schedule): Use VEC_iterate.
8483 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8484 a dbg_cnt, use it and ensure the first insn is in the ready list.
8485 (haifa_sched_init): Allocate scheduled_insns.
8486 (sched_extend_ready_list): Don't allocate it; reserve space.
8487 (haifa_sched_finish): Free it.
8489 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8491 * optc-gen.awk: Always remove type from Variable entry before
8492 recording in var_seen.
8494 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8496 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8497 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8498 call to tidy_fallthru_edges.
8500 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8502 * doc/options.texi (ToLower): Document.
8503 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8504 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8505 * opts.h (cl_option): Add cl_tolower field.
8506 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8507 arguments with lowercase strings.
8508 * config/rx/rx.opt (mcpu=): Add ToLower.
8509 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8512 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8514 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8516 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8518 * config/vax/vax.c: Include reload.h.
8520 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8522 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8523 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8524 (sparc_preferred_reload_class): New function.
8526 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8529 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8530 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8532 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8534 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8535 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8537 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8539 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8540 (ASM_OUTPUT_ALIGNED_BSS): Define.
8542 2011-04-03 Michael Matz <matz@suse.de>
8544 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8545 and next_slot members.
8546 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8547 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8548 (lto_streamer_cache_append): Declare.
8549 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8550 unsigned index, remove offset parameter, ensure that we append
8551 or update existing entries.
8552 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8553 parameter, update next_slot for append.
8554 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8556 (lto_streamer_cache_insert_at): Likewise.
8557 (lto_streamer_cache_append): New function.
8558 (lto_streamer_cache_lookup): Use unsigned index.
8559 (lto_streamer_cache_get): Likewise.
8560 (lto_record_common_node): Don't test tree_node_can_be_shared.
8561 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8562 (lto_streamer_cache_delete): Don't free offsets member.
8563 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8564 (lto_output_string_with_length): Use lto_output_data_stream.
8565 (lto_output_tree_header): Remove ix parameter, don't write it.
8566 (lto_output_builtin_tree): Likewise.
8567 (lto_write_tree): Adjust callers to above, don't track and write
8568 offset, write unsigned index.
8569 (output_unreferenced_globals): Don't emit all global vars.
8570 (write_global_references): Use unsigned indices.
8571 (lto_output_decl_state_refs): Likewise.
8572 (write_symbol): Likewise.
8573 * lto-streamer-in.c (lto_input_chain): Move earlier.
8574 (input_function): Use unsigned index.
8575 (input_alias_pairs): Don't read and then ignore all global vars.
8576 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8577 don't pass it back, use lto_streamer_cache_append.
8578 (lto_register_var_decl_in_symtab): Use unsigned index.
8579 (lto_register_function_decl_in_symtab): Likewise.
8580 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8582 (lto_get_builtin_tree): Don't read index, use
8583 lto_streamer_cache_append.
8584 (lto_read_tree): Adjust call to lto_materialize_tree.
8586 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8587 don't use function calls in arguments to MIN.
8589 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8592 * gimple.c (gimple_type_leader_entry): Mark deletable.
8594 2011-04-03 Alan Modra <amodra@gmail.com>
8596 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8598 2011-04-03 Michael Matz <matz@suse.de>
8600 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8602 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8604 2011-04-03 Michael Matz <matz@suse.de>
8606 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8607 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8608 without function context.
8609 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8610 current_function_decl and cfun.
8612 2011-04-03 Michael Matz <matz@suse.de>
8614 * tree.c (decl_init_priority_insert): Don't create entry for
8616 (decl_fini_priority_insert): Ditto.
8617 (fields_compatible_p, find_compatible_field): Remove.
8618 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8619 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8621 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8623 * combine.c (try_combine): Remove useless local variable.
8625 2011-04-03 Richard Guenther <rguenther@suse.de>
8626 Ira Rosen <ira.rosen@linaro.org>
8628 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8629 non-variable offsets and compare the remaining bases of the two
8630 accesses instead of looking for exact same data-ref.
8632 2011-04-02 Kai Tietz <ktietz@redhat.com>
8635 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8637 * i386.c (ix86_is_msabi_thiscall): New helper function.
8638 (ix86_is_type_thiscall): New helper function.
8639 (ix86_comp_type_attributes): Handle thiscall for method-functions
8641 (init_cumulative_args): Likewise.
8642 (find_drap_reg): Likewise.
8643 (ix86_static_chain): Likewise.
8644 (x86_this_parameter): Likewise.
8645 (x86_output_mi_thunk): Likewise.
8647 2011-04-01 Olivier Hainque <hainque@adacore.com>
8648 Nicolas Setton <setton@adacore.com>
8649 Eric Botcazou <ebotcazou@adacore.com>
8651 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8652 (add_gnat_descriptive_type_attribute): New function.
8653 (gen_array_type_die): Call it.
8654 (gen_enumeration_type_die): Likewise.
8655 (gen_struct_or_union_type_die): Likewise.
8656 (modified_type_die): Likewise.
8657 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8658 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8659 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8661 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8664 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8665 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8668 2011-03-17 Richard Guenther <rguenther@suse.de>
8671 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8672 origin for decls in other ltrans units.
8673 (input_varpool_node): Likewise.
8675 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8678 * expr.c (expand_assignment): Handle all possibilities
8679 if TO_RTX is CONCAT.
8680 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8681 (store_split_bit_field): If SUBREG_REG (op0) or
8682 op0 itself has smaller mode than word, return it
8683 for offset 0 and const0_rtx for out-of-bounds stores.
8684 If word is const0_rtx, skip it.
8686 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8688 * config/h8300/h8300.c (print_operand_address): Rename to...
8689 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8690 Call h8300_print_operand and h8300_print_operand_address instead of
8691 print_operand and print_operand_address. Declare.
8692 (print_operand): Renake to...
8693 (h8300_print_operand): ...this. Make static. Adjust comments.
8694 Call h8300_print_operand instead of print_operand. Declare.
8695 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8696 (h8300_register_move_cost): Likewise.
8697 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8698 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8699 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8700 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8701 * config/h8300/h8300-protos.h (print_operand): Delete.
8702 (print_operand_address): Delete.
8704 2011-04-01 Richard Henderson <rth@redhat.com>
8707 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8708 in strict mode before dwarf4. Re-order tests to early out
8709 before switching sections.
8711 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8713 * config/h8300/constraints.md: New file.
8714 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8715 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8716 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8717 * config/h8300/predicates.md (bit_operand): Likewise.
8718 (incdec_operand): Use satisfies_constraint_M and
8719 satisfies_constraint_O. Don't use C code block.
8720 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8721 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8722 (compute_mov_length): Use satisfies_constraint_G.
8723 (fix_bit_operand): Use satisfies_constraint_U.
8724 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8725 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8726 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8727 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8728 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8729 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8730 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8731 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8732 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8733 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8734 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8735 (EXTRA_MEMORY_CONSTRAINT): Delete.
8737 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8738 Michael Meissner <meissner@linux.vnet.ibm.com>
8741 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8742 operands, as per the specifications.
8744 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8745 (vec_extract_evenv4sf): Ditto.
8746 (vec_extract_evenv8hi): Ditto.
8747 (vec_extract_evenv16qi): Ditto.
8748 (vec_extract_oddv4si): Ditto.
8750 2011-03-31 Mark Wielaard <mjw@redhat.com>
8752 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8753 high_pc attribute if the CU has no associated code. Only output
8754 DW_AT_entry_pc for CU if not generating strict dwarf and
8757 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8759 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8760 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8762 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8763 * final.c (final_start_function): Call the new function rather
8764 than using a NULL argument for dwarf2out_frame_debug.
8766 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8767 that contains the prologue.
8769 * haifa-sched.c (queue_insn): New arg REASON. All callers
8770 changed. Print it in debugging output.
8772 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8774 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8775 Split most of the code into...
8776 (begin_move_insn): ... here. New function.
8777 (ebb_sched_info): Add a pointer to it.
8778 * haifa-sched.c (scheduled_insns): New static variable.
8779 (sched_extend_ready_list): Allocate it.
8780 (schedule_block): Use it to record the order of scheduled insns.
8781 Perform RTL changes to move insns only after all scheduling
8782 decisions have been made.
8783 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8784 begin_move_insn field.
8785 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8786 * sched-int.h (struct haifa_sched_info): Remove second argument
8787 from begin_schedule_ready hook. Add new member begin_move_insn.
8788 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8789 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8791 * haifa-sched.c (prune_ready_list): New function, broken out of
8793 (schedule_block): Use it.
8795 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8797 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8799 2011-04-01 Kai Tietz <ktietz@redhat.com>
8801 * config.gcc (*-*-mingw*): Allow as option the
8802 posix threading model.
8803 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8804 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8806 (CPP_SPEC): Add pthread/no-pthread handling.
8807 (LIB_SPEC): Likewise.
8808 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8809 (LIB_SPEC): Likewise.
8810 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8811 flag to pass -pthread option for shared libgcc build.
8812 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8813 for shared libgcc build.
8814 * config/i386/t-mingw-pthread: New file.
8815 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8816 New define to enable use of library pthread by default.
8817 * config/i386/mingw.opt (pthread): New driver option.
8818 (no-pthread): New driver option.
8819 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8820 * config/i386/mingw-w64.opt: Likewise.
8822 2011-04-01 Gary Funck <gary@intrepid.com>
8824 * c-decl.c (grokdeclarator): Fix formatting.
8826 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8828 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8829 instead of n_operands.
8830 (set_storage_via_setmem): Likewise.
8831 * optabs.c (maybe_gen_insn): Likewise.
8832 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8833 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8834 (mips_expand_builtin_direct): Likewise.
8835 * config/spu/spu.c (expand_builtin_args): Likewise.
8837 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8839 * recog.h (insn_data_d): Add n_generator_args.
8840 * genoutput.c (data): Likewise.
8841 (output_insn_data): Print it.
8842 (max_opno, num_dups): Delete.
8843 (scan_operands): Just fill in "d->operand[...]".
8844 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8846 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8848 * gensupport.h (pattern_stats): New structure.
8849 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8850 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8851 (max_operand_1, max_operand_vec): Delete.
8852 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8854 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8856 * emit-rtl.c (emit_pattern_after_setloc): New function.
8857 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8858 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8859 (emit_pattern_after): New function.
8860 (emit_insn_after, emit_jump_insn_after): Call it.
8861 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8862 (emit_pattern_before_setloc): New function.
8863 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8864 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8866 (emit_pattern_before): New function.
8867 (emit_insn_before, emit_jump_insn_before): Call it.
8868 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8870 2011-03-31 Richard Henderson <rth@redhat.com>
8872 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8873 (dw_separate_line_info_entry): Remove.
8874 (enum dw_line_info_opcode): New.
8875 (dw_line_info_entry): Use it.
8876 (dw_line_info_table, dw_line_info_table_p): New.
8877 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8878 (line_info_table, line_info_label_num): Remove.
8879 (line_info_table_in_use): Remove.
8880 (separate_line_info_table): Remove.
8881 (separate_line_info_table_allocated): Remove.
8882 (separate_line_info_table_in_use): Remove.
8883 (LINE_INFO_TABLE_INCREMENT): Remove.
8884 (line_info_label_num): New.
8885 (cur_line_info_table): New.
8886 (text_section_line_info, cold_text_section_line_info): New.
8887 (separate_line_info): New.
8888 (SEPARATE_LINE_CODE_LABEL): Remove.
8889 (print_dwarf_line_table): Remove.
8890 (debug_dwarf): Don't dump it.
8891 (output_one_line_info_table): New.
8892 (output_line_info): Use it.
8893 (new_line_info_table): New.
8894 (set_cur_line_info_table): New.
8895 (dwarf2out_switch_text_section): Use it.
8896 (dwarf2out_begin_function): Likewise.
8897 (push_dw_line_info_entry): New.
8898 (dwarf2out_source_line): Rewrite for new line info tables.
8899 (dwarf2out_init): Remove dead initailizations.
8901 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8903 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8905 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8906 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8907 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8908 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8909 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8910 * opt-functions.awk (flag_init, switch_bit_fields): New.
8911 (switch_flags): Don't handle flags moved to bit-fields. Don't
8912 generate CL_MISSING_OK or CL_SAVE.
8913 * optc-gen.awk: Update to generate bit-field output as well as
8915 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8916 bit-field instead of CL_REJECT_DRIVER flag.
8917 * opts-common.c (generate_canonical_option,
8918 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8919 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8920 instead of CL_REJECT_NEGATIVE flag.
8921 * toplev.c (print_switch_values): Use cl_report bit-field instead
8924 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8926 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8927 a zero minimum index only if it is redundant.
8929 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8931 PR rtl-optimization/48381
8932 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8933 instead of ira_class_hard_reg_index for calculating conflicting
8936 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8938 * cprop.c: Clean up hash table building.
8939 (reg_avail_info): Remove.
8940 (oprs_available_p): Remove.
8941 (record_last_reg_set_info): Remove.
8942 (record_last_set_info): Remove.
8943 (reg_available_p): New function.
8944 (gcse_constant_p): Do not treat unfolded conditions as constants.
8945 (make_set_regs_unavailable): New function.
8946 (hash_scan_set): Simplify with new reg_available_p.
8947 (compute_hash_table_work): Traverse insns stream only once.
8948 Do not compute reg_avail_info. Traverse insns in reverse order.
8949 Record implicit sets after recording explicit sets from the block.
8951 2011-03-31 Michael Matz <matz@suse.de>
8953 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8955 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8957 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8958 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8959 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8960 (h8300_mode_dependent_address_p): New function.
8961 (h8300_get_index): Make static.
8963 2011-03-31 Jeff Law <law@redhat.com>
8965 * reload1.c (elimination_effects): Fix typo in recent change.
8967 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8968 typo potentially leading to null pointer dereference.
8970 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8971 (setup_save_areas): Corresponding changes to avoid useless
8974 * jump.c (reversed_comparison_code_parts): Avoid successive return
8975 statements when REVERSE_CONDITION is defined.
8977 * expr.c (expand_assignment): Avoid useless assignments.
8978 (expand_expr_real_1): Likewise.
8979 (expand_expr_real_2): Avoid useless statements.
8981 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8983 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8985 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8988 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8990 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8993 * doc/tm.texi.in (TARGET_VERSION): Remove.
8994 * doc/tm.texi: Regenerate.
8995 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8996 * collect2.c (main): Don't use TARGET_VERSION.
8997 * mips-tdump.c (main): Don't use TARGET_VERSION.
8998 * mips-tfile.c (main): Don't use TARGET_VERSION.
8999 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9000 * config/rs6000/vxworksae.h: Remove.
9001 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9002 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9003 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9004 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9005 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9006 * config/arm/arm.h (TARGET_VERSION): Remove.
9007 * config/arm/coff.h (TARGET_VERSION): Remove.
9008 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9009 * config/arm/elf.h (TARGET_VERSION): Remove.
9010 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9011 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9012 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9013 * config/arm/pe.h (TARGET_VERSION): Remove.
9014 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9015 * config/arm/semi.h (TARGET_VERSION): Remove.
9016 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9017 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9018 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9019 * config/avr/avr.h (TARGET_VERSION): Remove.
9020 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9021 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9022 * config/frv/frv.h (TARGET_VERSION): Remove.
9023 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9024 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9025 * config/i386/darwin.h (TARGET_VERSION): Remove.
9026 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9027 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9028 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9029 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9030 * config/i386/gnu.h (TARGET_VERSION): Remove.
9031 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9032 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9033 * config/i386/linux.h (TARGET_VERSION): Remove.
9034 * config/i386/linux64.h (TARGET_VERSION): Remove.
9035 * config/i386/lynx.h (TARGET_VERSION): Remove.
9036 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9037 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9038 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9039 * config/i386/netware.h (TARGET_VERSION): Remove.
9040 * config/i386/nto.h (TARGET_VERSION): Remove.
9041 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9042 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9043 * config/ia64/elf.h (TARGET_VERSION): Remove.
9044 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9045 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9046 * config/ia64/linux.h (TARGET_VERSION): Remove.
9047 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9048 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9049 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9050 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9051 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9052 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9053 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9054 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9055 * config/m68k/linux.h (TARGET_VERSION): Remove.
9056 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9057 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9058 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9059 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9060 * config/mep/mep.h (TARGET_VERSION): Remove.
9061 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9062 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9063 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9064 * config/mips/linux.h (TARGET_VERSION): Remove.
9065 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9066 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9067 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9068 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9069 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9070 * config/pa/pa.h (TARGET_VERSION): Remove.
9071 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9072 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9073 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9074 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9075 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9076 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9077 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9078 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9079 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9080 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9081 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9082 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9083 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9084 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9085 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9086 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9087 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9088 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9089 * config/s390/linux.h (TARGET_VERSION): Remove.
9090 * config/s390/s390.h (TARGET_VERSION): Remove.
9091 * config/s390/tpf.h (TARGET_VERSION): Remove.
9092 * config/score/score.h (TARGET_VERSION): Remove.
9093 * config/sh/linux.h (TARGET_VERSION): Remove.
9094 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9095 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9096 * config/sh/sh.h (TARGET_VERSION): Remove.
9097 * config/sh/sh64.h (TARGET_VERSION): Remove.
9098 * config/sh/superh.h (TARGET_VERSION): Remove.
9099 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9100 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9101 * config/sparc/linux.h (TARGET_VERSION): Remove.
9102 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9103 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9104 TARGET_NAME32, TARGET_NAME): Remove.
9105 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9106 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9107 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9108 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9109 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9110 * config/spu/spu.h (TARGET_VERSION): Remove.
9111 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9112 * config/v850/v850.h (TARGET_VERSION): Remove.
9113 * config/vax/linux.h (TARGET_VERSION): Remove.
9114 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9115 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9116 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9118 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9121 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9122 frame-related from frame-unrelated adjustments to the stack pointer.
9124 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9126 * common.opt (fdebug-types-section): Move earlier.
9127 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9129 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9131 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9134 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9136 * tree.h (CASE_CHAIN): Define.
9137 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9138 (gimple_redirect_edge_and_branch): Likewise.
9140 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9143 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9146 2011-03-30 Jeff Law <law@redhat.com>
9148 * PR bootstrap/48371
9149 * reload1.c (reload): Fix botch in last change.
9151 * reload.h (struct reload): Fix typo introduced in last change.
9153 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9155 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9156 Undocumented. Remove help text.
9157 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9160 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9162 * doc/options.texi (NegativeAlias): Document.
9163 (Alias): Mention NegativeAlias.
9164 * opt-functions.awk: Handle NegativeAlias.
9165 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9166 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9167 * opts.h (CL_NEGATIVE_ALIAS): Define.
9168 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9169 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9171 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9173 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9174 mno-spe and mno-isel instead of mspe=no and -misel=no.
9176 2011-03-29 Mark Wielaard <mjw@redhat.com>
9178 * common.opt (fdebug-types-section): New flag.
9179 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9180 * dwarf2out.c (use_debug_types): New define.
9181 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9182 (print_die): Guard output of type unit signatures using
9184 (build_abbrev_table): Replace assert of dwarf_version >= 4
9185 with assert on use_debug_types.
9186 (size_of_die): Likewise.
9187 (unmark_dies): Likewise.
9188 (value_format): Decide AT_ref_external form on use_debug_types.
9189 (output_die): Replace dwarf_version version check guard with
9190 use_debug_types where appropriate.
9191 (modified_type_die): Likewise.
9192 (gen_reference_type_die): Likewise.
9193 (dwarf2out_start_source_file): Likewise.
9194 (dwarf2out_end_source_file): Likewise.
9195 (prune_unused_types_walk_attribs): Likewise.
9196 (dwarf2out_finish): Likewise.
9198 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9200 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9202 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9204 PR rtl-optimization/48332
9205 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9206 mode of input operand N and modeN to its actual mode.
9208 2011-03-30 Jeff Law <law@redhat.com>
9210 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9211 define accessor macro.
9212 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9213 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9214 (reg_equiv_init): Likewise.
9215 (reg_equivs_size): New variable.
9216 (reg_equiv_init_size): Remove.
9217 (allocate_initial_values): Move prototype to here from....
9218 * integrate.h (allocate_initial_values): Remove prototype.
9219 * integrate.c: Include reload.h.
9220 (allocate_initial_values): Corresponding changes.
9221 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9222 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9223 (update_equiv_regs): Corresponding changes.
9224 (ira): Corresponding changes.
9225 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9226 (push_secondary_reload): Corresponding changes.
9227 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9228 (make_memloc, find_reloads_address): Corresponding changes.
9229 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9230 (find_reloads_address_1): Corresponding changes.
9231 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9232 (refers_to_regno_for_reload_p): Corresponding changes.
9233 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9234 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9235 * reload1.c: Include ggc.h.
9236 (grow_reg_equivs): New function.
9237 (replace_pseudos_in, reload): Corresponding changes.
9238 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9239 (eliminate_regs_1, elimination_effects): Corresponding changes.
9240 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9241 (delete_output_reload): Likewise.
9242 * caller-save.c (mark_referenced_regs): Corresponding changes.
9243 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9244 * frv/predicates.md (frv_load_operand): Corresponding changes.
9245 * microblaze/microblaze.c (double_memory_operand): Corresponding
9247 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9248 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9249 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9250 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9251 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9253 * pa/pa.c (emit_move_sequence): Corresponding changes.
9254 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9256 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9259 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9260 structure modes. Don't check neon_vector_mem_operand for
9261 vector or structure modes.
9263 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9264 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9267 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9268 operand 1 and reshuffle the operands to match.
9269 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9271 2011-03-30 Christian Schüler <cschueler@gmx.de>
9274 * config/c.opt (F): Added 'Driver' to -F option.
9277 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9279 * config/darwin.opt: Added '-arch' option.
9281 2011-03-30 Nick Clifton <nickc@redhat.com>
9283 * config/rx/rx.md: Add peepholes and patterns to combine
9284 extending loads and simple arithmetic instructions.
9285 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9286 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9287 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9288 modes to use pre-decrement and post-increment addressing.
9289 (rx_is_restricted_memory_address): Add range checking of REG+INT
9291 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9292 (rx_memory_move_cost): Adjust cost of stores.
9293 (rx_adjust_insn_length): New function.
9295 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9298 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9299 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9300 matching arg00/arg01 types.
9302 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9304 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9305 last_location to UNKNOWN_LOCATION.
9307 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9310 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9313 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9314 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9317 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9319 (sparc_cpu): Likewise.
9320 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9323 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9327 PR rtl-optimization/48345
9328 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9329 hard regs for given mode from profitable regs when doing secondary
9332 2011-03-29 Jeff Law <law@redhat.com>
9335 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9336 do_not_duplicate field.
9337 (lookup_redirection_data): Corresponding changes.
9338 (create_duplicates): Always create a template block.
9339 (redirect_edges): Remove code which reused the original block
9340 when it was going to become unreachable code.
9341 (thread_block): Don't set do_not_duplicate field.
9343 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9345 * lto-opts.c (register_user_option_p, lto_register_user_option):
9346 Make type argument unsigned.
9347 * lto-streamer.h (lto_register_user_option): Make type argument
9349 * opth-gen.awk: Make CL_* macros unsigned.
9350 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9351 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9352 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9353 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9354 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9355 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9356 (find_opt): Make lang_mask argument unsigned.
9358 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9360 PR rtl-optimization/48331
9361 PR rtl-optimization/48334
9362 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9363 for any used algorithm.
9365 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9367 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9370 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9372 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9373 (alpha_option_override): Don't set alpha_sr_alias_set.
9374 (emit_frame_store_1): Use gen_frame_mem rather than calling
9376 (alpha_expand_epilogue): Ditto.
9378 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9380 PR tree-optimization/48290
9381 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9382 vectorization, check that relevant phis in the basic block after
9383 the inner loop are really inner loop's exit phis.
9385 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9388 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9389 (cached_dw_loc_list_def): New structure.
9390 (cached_dw_loc_list): New typedef.
9391 (cached_dw_loc_list_table): New variable.
9392 (cached_dw_loc_list_table_hash): New function.
9393 (cached_dw_loc_list_table_eq): Likewise.
9394 (add_location_or_const_value_attribute): Take a bool cache_p.
9395 Cache the list when the parameter is true.
9396 (gen_formal_parameter_die): Update caller.
9397 (gen_variable_die): Likewise.
9398 (dwarf2out_finish): Likewise.
9399 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9400 while generating debug info for the decl.
9401 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9402 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9403 (resolve_addr): Cache the result of resolving a chain of
9406 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9408 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9409 conflict object hard regset nodes have intersecting hard reg sets.
9411 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9412 after regstat_init_n_sets_and_refs.
9414 * ira.c: Add more comments at the top.
9415 (setup_stack_reg_pressure_class, setup_pressure_classes):
9416 Add comments how we compute the register pressure classes.
9417 (setup_allocno_and_important_classes): Add more comments.
9418 (setup_class_translate_array, reorder_important_classes)
9419 (setup_reg_class_relations): Add comments.
9421 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9424 * ira-color.c: Add 2011 to the Copyright line.
9425 (assign_hard_reg): Add more comments.
9426 (improve_allocation): Ditto.
9428 * ira-costs.c: Add 2011 to the Copyright line.
9429 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9431 (setup_regno_cost_classes_by_mode): Ditto.
9433 Initial patches from ira-improv branch:
9435 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9437 * ira-build.c (ira_create_object): Remove initialization of
9438 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9439 (ira_create_allocno): Remove initialization of
9440 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9441 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9442 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9443 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9444 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9445 Initialize ALLOCNO_ADD_DATA.
9446 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9447 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9449 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9450 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9452 * ira.c (ira_reallocate): Remove.
9453 (setup_pressure_classes): Call
9454 ira_init_register_move_cost_if_necessary. Use
9455 ira_register_move_cost instead of ira_get_register_move_cost.
9456 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9457 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9459 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9460 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9461 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9462 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9463 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9464 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9466 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9467 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9468 (struct allocno_color_data): New.
9469 (allocno_color_data_t): New typedef.
9470 (allocno_color_data): New definition.
9471 (ALLOCNO_COLOR_DATA): New macro.
9472 (struct object_color_data): New.
9473 (object_color_data_t): New typedef.
9474 (object_color_data): New definition.
9475 (OBJECT_COLOR_DATA): New macro.
9476 (update_copy_costs, calculate_allocno_spill_cost): Call
9477 ira_init_register_move_cost_if_necessary. Use
9478 ira_register_move_cost instead of ira_get_register_move_cost.
9479 (move_spill_restore, update_curr_costs): Ditto.
9480 (allocno_spill_priority): Make it inline.
9481 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9482 (struct coalesce_data, coalesce_data_t): New.
9483 (allocno_coalesce_data): New definition.
9484 (ALLOCNO_COALESCE_DATA): New macro.
9485 (merge_allocnos, coalesced_allocno_conflict_p): Use
9486 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9487 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9488 (coalesce_allocnos): Ditto.
9489 (setup_coalesced_allocno_costs_and_nums): Ditto.
9490 (collect_spilled_coalesced_allocnos): Ditto.
9491 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9492 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9493 (coalesce_spill_slots): Ditto.
9494 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9495 free allocno_coalesce_data.
9497 * ira-conflicts.c: Fix formatting.
9498 (process_regs_for_copy): Call
9499 ira_init_register_move_cost_if_necessary. Use
9500 ira_register_move_cost instead of ira_get_register_move_cost.
9501 (build_object_conflicts): Optimize.
9503 * ira-costs.c (record_reg_classes): Optimize. Call
9504 ira_init_register_move_cost_if_necessary. Use
9505 ira_register_move_cost, ira_may_move_in_cost, and
9506 ira_may_move_out_cost instead of ira_get_register_move_cost and
9507 ira_get_may_move_cost.
9508 (record_address_regs): Ditto.
9509 (scan_one_insn): Optimize.
9510 (find_costs_and_classes): Optimize.
9511 (process_bb_node_for_hard_reg_moves): Call
9512 ira_init_register_move_cost_if_necessary. Use
9513 ira_register_move_cost instead of ira_get_register_move_cost.
9515 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9516 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9517 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9518 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9520 (ira_initiate_emit_data, ira_finish_emit_data)
9521 (create_new_allocno): New functions.
9522 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9523 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9524 Use ira_register_move_cost instead of ira_get_register_move_cost.
9526 * ira-int.h: Fix some comments.
9527 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9528 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9529 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9530 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9532 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9533 bitfield after mode. Make hard_regno a short int. Make
9534 hard_regno short. Remove first_coalesced_allocno and
9535 next_coalesced_allocno. Move mem_optimized_dest_p,
9536 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9537 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9538 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9539 temp, colorable_p. Add new member add_data.
9540 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9541 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9542 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9543 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9544 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9545 (ALLOCNO_ADD_DATA): New macro.
9546 (ira_emit_data_t): New typedef.
9547 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9548 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9549 from struct ira_allocno.
9550 (ALLOCNO_EMIT_DATA): New macro.
9551 (ira_allocno_emit_data, allocno_emit_reg): New.
9552 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9553 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9554 (OBJECT_ADD_DATA): New macro.
9555 (ira_reallocate): Remove.
9556 (ira_initiate_emit_data, ira_finish_emit_data): New.
9557 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9558 (ira_init_register_move_cost_if_necessary): New.
9559 (ira_object_conflict_iter_next): Merge into
9560 ira_object_conflict_iter_cond.
9561 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9563 * ira-live.c (process_single_reg_class_operands): Call
9564 ira_init_register_move_cost_if_necessary. Use
9565 ira_register_move_cost instead of ira_get_register_move_cost.
9567 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9569 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9571 * ira-costs.c: Fix formatting.
9572 (cost_classes, cost_classes_num): Remove.
9573 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9574 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9575 (cost_classes_del, cost_classes_htab): New.
9576 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9577 (initiate_regno_cost_classes, setup_cost_classes): New.
9578 (setup_regno_cost_classes_by_aclass): New.
9579 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9580 (record_reg_classes): Use regno_cost_classes instead of
9581 cost_classes. Move checking opposite operand up.
9582 (record_address_regs): Use regno_cost_classes
9583 instead of cost_classes.
9584 (scan_one_insn): Ditto. Use always general register.
9585 (print_allocno_costs): Use regno_cost_classes instead of
9587 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9588 (find_costs_and_classes): Set up cost classes for each registers.
9589 Use also their mode for this. Use regno_cost_classes instead of
9591 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9593 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9594 (ira_costs, ira_set_pseudo_classes): Call
9595 initiate_regno_cost_classes and finish_regno_cost_classes.
9597 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9599 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9601 * target.def (ira_cover_classes): Remove.
9603 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9605 * doc/tm.texi.in: Ditto.
9607 * ira-conflicts.c: Remove mentioning cover classes from the file.
9608 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9609 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9611 * targhooks.c (default_ira_cover_classes): Remove.
9613 * targhooks.h (default_ira_cover_classes): Ditto.
9615 * haifa-sched.c: Remove mentioning cover classes from the file.
9616 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9617 ira_pressure_classes and ira_pressure_classes_num instead of
9618 ira_reg_class_cover_size and ira_reg_class_cover. Use
9619 sched_regno_pressure_class instead of sched_regno_cover_class.
9620 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9621 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9623 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9624 classes from the file.
9625 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9626 (struct object_hard_regs, struct object_hard_regs_node): New.
9627 (struct ira_object): New members profitable_hard_regs,
9628 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9629 (struct ira_allocno): Rename cover_class to aclass. Rename
9630 cover_class_cost and updated_cover_class_cost to class_cost and
9631 updated_class_cost. Remove splay_removed_p and
9632 left_conflict_size. Add new members colorable_p.
9633 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9634 (ALLOCNO_COLORABLE_P): New macro.
9635 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9636 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9637 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9638 (OBJECT_...): Rename parameter C to O.
9639 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9640 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9641 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9642 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9643 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9644 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9645 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9646 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9647 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9648 x_ira_reg_class_subunion.
9649 (ira_max_memory_move_cost, ira_max_register_move_cost)
9650 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9651 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9652 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9653 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9654 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9655 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9656 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9657 (ira_tune_allocno_costs_and_cover_classes): Rename to
9658 ira_tune_allocno_costs.
9659 (ira_debug_hard_regs_forest): New.
9660 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9661 (ira_object_conflict_iter_next): Fix comments.
9662 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9663 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9664 cover_class to aclass.
9665 (ira_allocate_and_accumulate_costs): Ditto.
9666 (ira_allocate_and_set_or_copy_costs): Ditto.
9668 * opts.c (decode_options): Remove ira_cover_class check.
9670 * ira-color.c: Remove mentioning cover classes from the file. Use
9671 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9672 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9673 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9674 (splay-tree.h): Remove include.
9675 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9676 before copy_freq_compare_func.
9677 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9678 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9680 (hard_regs_roots, hard_regs_node_vec): Ditto.
9681 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9682 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9683 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9684 (create_new_object_hard_regs_node): Ditto.
9685 (add_new_object_hard_regs_node_to_forest): Ditto.
9686 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9687 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9689 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9690 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9691 (remove_unused_object_hard_regs_nodes): Ditto.
9692 (enumerate_object_hard_regs_nodes): Ditto.
9693 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9694 (object_hard_regs_subnode_t): Ditto.
9695 (struct object_hard_regs_subnode): Ditto.
9696 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9697 (setup_object_hard_regs_subnode_index): Ditto.
9698 (get_object_hard_regs_subnodes_num): Ditto.
9699 (form_object_hard_regs_nodes_forest): Ditto.
9700 (finish_object_hard_regs_nodes_tree): Ditto.
9701 (finish_object_hard_regs_nodes_forest): Ditto.
9702 (allocnos_have_intersected_live_ranges_p): Rename to
9703 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9704 (pseudos_have_intersected_live_ranges_p): Rename to
9705 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9706 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9707 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9708 (update_copy_costs): Remove assert. Skip cost update if the hard
9709 reg does not belong the class.
9710 (assign_hard_reg): Process only profitable hard regs.
9711 (uncolorable_allocnos_num): Make it scalar.
9712 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9713 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9714 and ira_reg_class_max_nregs.
9715 (bucket_allocno_compare_func): Check frequency first.
9716 (sort_bucket): Add compare function as a parameter.
9717 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9718 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9719 (push_allocno_to_stack): Rewrite for checking new allocno
9721 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9722 (push_only_colorable): Pass new parameter to sort_bucket.
9723 (push_allocno_to_spill): Remove.
9724 (allocno_spill_priority_compare): Make it inline and rewrite.
9725 (splay_tree_allocate, splay_tree_free): Remove.
9726 (allocno_spill_sort_compare): New function.
9727 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9728 build and use splay tree. Choose first allocno in uncolorable
9729 allocno bucket to spill. Remove setting spill cost.
9730 (all_conflicting_hard_regs): Remove.
9731 (setup_allocno_available_regs_num): Check only profitable hard
9732 regs. Print info about hard regs nodes.
9733 (setup_allocno_left_conflicts_size): Remove.
9734 (put_allocno_into_bucket): Don't call
9735 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9736 (improve_allocation): New.
9737 (color_allocnos): Call setup_profitable_hard_regs,
9738 form_object_hard_regs_nodes_forest, improve_allocation,
9739 finish_object_hard_regs_nodes_forest. Setup spill cost.
9740 (print_loop_title): Use pressure classes.
9741 (color_allocnso): Ditto.
9742 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9743 and allocnos_for_spilling.
9744 (ira_sort_regnos_for_alter_reg): Don't setup members
9745 {first,next}_coalesced_allocno.
9746 (color): Remove allocating and freeing removed_splay_allocno_vec.
9747 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9748 prohibited_class_mode_regs.
9750 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9752 (update_allocno_pressure_excess_length): Use pressure classes.
9753 (inc_register_pressure, dec_register_pressure): Check for pressure
9755 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9756 pressure class. Use ira_reg_class_nregs instead of
9757 ira_reg_class_max_nregs.
9758 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9759 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9760 (single_reg_class): Use ira_reg_class_nregs instead of
9761 ira_reg_class_max_nregs.
9762 (process_bb_node_lives): Use pressure classes.
9764 * ira-emit.c: Remove mentioning cover classes from the file. Use
9765 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9766 (change_loop): Use pressure classes.
9767 (modify_move_list): Call ira_set_allocno_class instead of
9768 ira_set_allocno_cover_class.
9770 * ira-build.c: Remove mentioning cover classes from the file. Use
9771 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9772 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9773 ALLOCNO_UPDATED_CLASS_COST instead of
9774 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9775 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9776 (ira_create_allocno): Remove initialization of
9777 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9778 ALLOCNO_COLORABLE_P.
9779 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9780 Update conflict regs for the objects.
9781 (create_cap_allocno): Remove assert. Don't propagate
9782 ALLOCNO_AVAILABLE_REGS_NUM.
9783 (ira_free_allocno_costs): New function.
9784 (finish_allocno): Change a part of code into call of
9785 ira_free_allocno_costs.
9786 (low_pressure_loop_node_p): Use pressure classes.
9787 (object_range_compare_func): Don't compare classes.
9788 (setup_min_max_conflict_allocno_ids): Ditto.
9790 * loop-invariant.c: Remove mentioning cover classes from the file.
9791 Use ira_pressure_classes and ira_pressure_classes_num instead of
9792 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9793 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9794 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9795 Use reg_allocno_class instead of reg_cover_class.
9796 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9797 STACK_REG_COVER_CLASS.
9798 (get_regno_cover_class): Rename to get_regno_pressure_class.
9799 (move_loop_invariants): Initialize and finalize regstat.
9801 * ira.c: Remove mentioning cover classes from the file. Add
9802 comments about coloring without cover classes. Use ALLOCNO_CLASS
9803 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9804 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9805 setup_class_subset_and_memory_move_costs.
9806 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9807 (setup_cover_and_important_classes): Rename to
9808 setup_allocno_and_important_classes.
9809 (setup_class_translate_array): New.
9810 (setup_class_translate): Call it for allocno and pressure classes.
9811 (cover_class_order): Rename to allocno_class_order.
9812 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9813 of ira_class_translate.
9814 (reorder_important_classes): Set up ira_important_class_nums.
9815 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9816 (print_class_cover): Rename to print_classes. Add parameter.
9817 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9818 Print pressure classes too.
9819 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9820 setup_reg_subclasses.
9821 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9822 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9823 (setup_prohibited_class_mode_regs): Use
9824 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9825 (clarify_prohibited_class_mode_regs): New function.
9826 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9827 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9828 (ira_init_once): Initialize them.
9829 (free_register_move_costs): Process them.
9830 (ira_init): Move calls of find_reg_classes and
9831 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9832 Call clarify_prohibited_class_mode_regs.
9833 (ira_no_alloc_reg): Remove.
9834 (too_high_register_pressure_p): Use pressure classes.
9836 * sched-deps.c: Remove mentioning cover classes from the file.
9837 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9838 ira_pressure_classes and ira_pressure_classes_num instead of
9839 ira_reg_class_cover_size and ira_reg_class_cover.
9840 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9841 sched_regno_pressure_class instead of sched_regno_cover_class.
9842 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9843 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9845 * ira.h: Add 2010 to Copyright.
9846 (ira_no_alloc_reg): Remove external.
9847 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9848 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9849 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9850 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9851 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9852 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9853 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9854 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9855 x_ira_no_alloc_regs.
9856 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9857 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9858 ira_allocno_classes_num and ira_allocno_classes.
9859 (ira_class_translate): Rename to ira_allocno_class_translate.
9860 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9861 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9862 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9863 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9864 (ira_no_alloc_regs): New.
9866 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9867 classes from the file. Use ALLOCNO_CLASS instead of
9868 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9869 ALLOCNO_COVER_CLASS_COST.
9870 (regno_cover_class): Rename to regno_aclass.
9871 (record_reg_classes): Use ira_reg_class_subunion instead of
9872 ira_reg_class_union.
9873 (record_address_regs): Check overflow.
9874 (scan_one_insn): Ditto.
9875 (print_allocno_costs): Print total mem cost fore regional allocation.
9876 (print_pseudo_costs): Use REG_N_REFS.
9877 (find_costs_and_classes): Use classes intersected with them on the
9878 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9879 ira_reg_class_union. Use ira_allocno_class_translate and
9880 regno_aclass instead of ira_class_translate and regno_cover_class.
9881 Modify code for finding regno_aclass. Setup preferred classes for
9883 (setup_allocno_cover_class_and_costs): Rename to
9884 setup_allocno_class_and_costs. Use regno_aclass instead of
9885 regno_cover_class. Use ira_set_allocno_class instead of
9886 ira_set_allocno_cover_class.
9887 (init_costs, finish_costs): Use regno_aclass instead of
9889 (ira_costs): Use setup_allocno_class_and_costs instead of
9890 setup_allocno_cover_class_and_costs.
9891 (ira_tune_allocno_costs_and_cover_classes): Rename to
9892 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9893 by processing objects. Use ira_reg_class_max_nregs instead of
9894 ira_reg_class_nregs.
9896 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9898 * sched-int.h: Remove mentioning cover classes from the file.
9899 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9901 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9902 classes from the file.
9903 (struct reg_pref): Rename coverclass into allocnoclass.
9904 (reg_cover_class): Rename to reg_allocno_class.
9906 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9908 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9910 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9912 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9914 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9916 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9918 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9920 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9922 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9924 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9926 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9927 (i386_ira_cover_classes): Ditto.
9929 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9931 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9933 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9935 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9937 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9939 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9941 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9942 (mips_ira_cover_classes): Ditto.
9944 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9946 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9948 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9950 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9952 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9954 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9955 (IRA_COVER_CLASSES_VSX): Ditto.
9957 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9958 (rs6000_ira_cover_classes): Ditto.
9960 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9962 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9964 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9966 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9968 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9970 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9972 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9974 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9976 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9978 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9980 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9983 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9984 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9985 dw_fde_unlikely_section_end_label, cold_in_std_section,
9986 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9987 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9989 (output_fde): Use dw_fde_second_{begin,end} if second is
9990 true, otherwise dw_fde_{begin,end}.
9991 (output_call_frame_info): Test dw_fde_second_begin != NULL
9992 instead of dw_fde_switched_sections.
9993 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9994 fields, initialize new fields. Initialize in_std_section
9995 unconditionally from the first partition.
9996 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9997 dw_fde_second_begin is non-NULL.
9998 (dwarf2out_switch_text_section): Stop initializing removed
9999 dw_fde_struct fields, initialize new fields, initialize
10000 also dw_fde_end here. Set dw_fde_switch_cfi even when
10001 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10002 (struct var_loc_list_def): Add last_before_switch field.
10003 (arange_table, arange_table_allocated, arange_table_in_use,
10004 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10005 (size_of_aranges): Count !in_std_section and !second_in_std_section
10006 hunks in fdes, instead of looking at arange_table_in_use.
10007 (output_aranges): Add aranges_length argument, don't call
10008 size_of_aranges here. Instead of using aranges_table*
10009 emit ranges for fdes when !in_std_section resp.
10010 !second_in_std_section.
10011 (dw_loc_list): Break ranges crossing section switch.
10012 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10013 use dw_fde_second_end instead of dw_fde_end as end of last range.
10014 (gen_subprogram_die): Don't call add_arange. Use
10015 dw_fde_{begin,end} for first partition and if switched
10016 section dw_fde_second_{begin,end} for the second.
10017 (var_location_switch_text_section_1,
10018 var_location_switch_text_section): New functions.
10019 (dwarf2out_begin_function): Initialize cold_text_section even
10020 when function_section () isn't text_section.
10021 (prune_unused_types): Don't walk arange_table.
10022 (dwarf2out_finish): Don't needlessly test
10023 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10024 If info_section_emitted, call size_of_aranges and if it indicates
10025 non-empty .debug_aranges, call output_aranges with the computed
10026 size. Stop using removed dw_fde_struct fields, use
10027 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10031 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10032 create ENTRY_VALUE if incoming or address of incoming's MEM
10034 * dwarf2out.c (mem_loc_descriptor): Don't emit
10035 DW_OP_GNU_entry_value of DW_OP_fbreg.
10036 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10037 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10038 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10039 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10041 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10042 is a REG_P or MEM_P with REG_P address, compute hash directly
10043 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10044 (preserve_only_constants): Don't clear VALUES forwaring
10045 ENTRY_VALUE to some other VALUE.
10047 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10049 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10050 instead of GEN_INT.
10052 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10054 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10055 block before expanding the statement.
10056 (expand_gimple_stmt_1): Likewise. Set them here...
10057 (expand_gimple_stmt): ...and not here. Tidy.
10058 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10061 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10063 * Makefile.in: New rule for cprop.o.
10064 * gcse.c: Move constant/copy propagation to cprop.c.
10065 (compute_local_properties): Only handle expression tables.
10066 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10067 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10068 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10069 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10070 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10071 compute_cprop_data, find_used_regs, try_replace_reg,
10072 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10073 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10074 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10075 find_bypass_set, reg_killed_on_edge, bypass_block,
10076 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10077 execute_rtl_cprop, pass_rtl_cprop): Move to...
10078 * cprop.c: ...here. New file, constant/copy propagation for RTL
10079 moved from gcse.c to here with minor cleanups in duplicated code.
10081 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10083 * config/i386/i386.c (flag_opts): Fix a typo in
10084 -mavx256-split-unaligned-store.
10086 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10088 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10089 LIBCALL_VALUE): Remove macros.
10090 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10091 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10092 (h8300_function_value, h8300_libcall_value,
10093 h8300_function_value_regno_p): New functions.
10095 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10097 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10099 2011-03-28 Jeff Law <law@redhat.com>
10101 * tree-ssa-threadupdate.c (redirect_edges): Call
10102 create_edge_and_update_destination_phis as needed.
10103 (create_edge_and_update_destination_phis): Accept new BB argument.
10104 All callers updated.
10105 (thread_block): Do not update the profile when threading around
10106 intermediate blocks.
10107 (thread_single_edge): Likewise.
10108 (determine_bb_domination_status): If BB is not a successor of the
10109 loop header, return NONDOMINATING.
10110 (register_jump_thread): Note when we register a jump thread around
10111 an intermediate block.
10112 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10113 (thread_across_edge): Use it.
10115 2011-03-28 Tristan Gingold <gingold@adacore.com>
10117 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10118 when for_return is 2.
10120 2011-03-28 Jeff Law <law@redhat.com>
10122 * var-tracking.c (canonicalize_values_mark): Delete unused
10124 (canonicalize_values_star, set_variable_part): Likewise.
10125 (clobber_variable_part, delete_variable_part): Likewise.
10127 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10129 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10131 2011-03-28 Martin Jambor <mjambor@suse.cz>
10133 * tree-inline.c (expand_call_inline): Do not check that destination
10135 (optimize_inline_calls): Assert that destination node is analyzed.
10136 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10137 not call tree_lowering_passes.
10138 * cgraph.h (cgraph_analyze_function): Declare.
10139 * cgraphunit.c (cgraph_analyze_function): Make public.
10141 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10143 * config/sparc/sparc-opts.h: New.
10144 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10145 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10146 (sparc_option_override): Store processor_type enumeration rather
10147 than string in cpu_default. Remove name and enumeration from
10148 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10149 without using sparc_select. Use target_flags_explicit instead of
10151 * config/sparc/sparc.h (enum processor_type): Move to
10153 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10154 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10155 HeaderInclude entry.
10156 (mcpu=, mtune=): Use Var and Enum.
10157 (sparc_processor_type): New Enum and EnumValue entries.
10159 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10160 Iain Sandoe <iains@gcc.gnu.org>
10163 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10165 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10167 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10168 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10169 Insert new statements at it in lieu of STMT.
10170 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10171 * tree-vect-stmts.c (vectorizable_store): Likewise.
10172 (vectorizable_load): Likewise.
10174 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10176 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10181 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10183 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10184 unaligned 256bit load/store.
10185 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10186 (*avx_movdqu<avxmodesuffix>): Likewise.
10188 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10191 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10192 * config/pa/pa.md (iordi3): Use new predicate in expander.
10193 (iorsi3): Likewise.
10195 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10197 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10198 FUNCTION_VALUE_REGNO_P): Remove macros.
10199 * config/mips/mips-protos.h (mips_function_value): Remove.
10200 * config/mips/mips.c (mips_function_value): Rename to...
10201 (mips_function_value_1): ... this. Make static. Handle receiving
10202 the function type in 'fn_decl_or_type' argument.
10203 (mips_function_value, mips_libcall_value,
10204 mips_function_value_regno_p): New function.
10205 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10206 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10208 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10210 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10211 and -mavx256-split-unaligned-store.
10212 (ix86_option_override_internal): Split 32-byte AVX unaligned
10213 load/store by default.
10214 (ix86_avx256_split_vector_move_misalign): New.
10215 (ix86_expand_vector_move_misalign): Use it.
10217 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10218 -mavx256-split-unaligned-store.
10220 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10221 256bit load/store. Generate unaligned store on misaligned memory
10223 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10225 (*avx_movdqu<avxmodesuffix>): Likewise.
10227 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10228 -mavx256-split-unaligned-store.
10230 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10233 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10236 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10238 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10239 opno arguments with an expand_operand. Use create_input_operand.
10240 (mips_prepare_builtin_target): Delete.
10241 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10243 (mips_expand_builtin_direct): Use create_output_operand and
10244 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10245 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10246 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10248 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10250 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10252 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10254 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10256 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10257 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10258 basic blocks and call commit_edge_insertions directly.
10259 (fixup_abnormal_edges): Move from here to...
10260 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10261 on the edges and return whether some have actually been inserted.
10262 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10265 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10267 PR rtl-optimization/48144
10268 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10269 (merge_expr_data): ... here.
10270 (av_set_intersect): Rename to av_set_code_motion_filter.
10271 Update all callers. Call merge_history_vect when an expression
10272 is found in both sets.
10273 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10275 2011-03-26 Alan Modra <amodra@gmail.com>
10277 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10278 cmodel medium addresses.
10279 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10280 64-bit gpr loads and stores.
10281 (rs6000_secondary_reload_ppc64): New function.
10282 * config/rs6000/rs6000-protos.h: Declare it.
10283 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10285 2011-03-26 Alan Modra <amodra@gmail.com>
10288 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10289 GNU Go in traceback table.
10291 2011-03-25 Richard Henderson <rth@redhat.com>
10293 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10294 if there are exactly 6 operands.
10295 (set_storage_via_setmem): Similarly.
10297 2011-03-25 Kai Tietz <ktietz@redhat.com>
10299 * collect2.c (write_c_file_stat): Handle backslash
10300 as right-hand directory separator.
10301 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10302 checking just for slash.
10303 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10304 instead of checking for trailing slash.
10305 * gcc.c (record_temp_file): Use filename_cmp instead
10307 (do_spec_1): Likewise.
10308 (replace_outfile_spec_function): Likewise.
10309 (is_directory): Use filename_ncmp instead of strncmp.
10310 (print_multilib_info): Likewise.
10311 * gcov.c (find_source): Use filename_cmp instead
10313 (make_gcov_file_name): Fix order of slash/backslash
10315 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10316 (add_standard_paths): Likewise.
10317 * mips-tfile.c (saber_stop): Handle backslash.
10318 * prefix.c (update_path): Use filename_ncmp instead of
10320 * profile.c (output_location): Use filename_cmp instead
10322 * read-md.c (handle_toplevel_file): Handle backslash.
10323 * tlink.c (frob_extension): Likewise.
10324 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10326 * tree-dump.c (dequeue_and_dump): Handle backslash.
10327 * tree.c (get_file_function_name): Likewise.
10328 * gengtype.c (read_input_list): Likewise.
10329 (get_file_realbasename): Likewise.
10330 (get_output_file_with_visibility): Use filename_cmp
10333 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10335 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10338 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10340 * fold-const.c (expr_location_or): New function.
10341 (fold_truth_not_expr): Call it.
10343 2011-03-25 Jeff Law <law@redhat.com>
10345 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10347 * c-family/c-common.c (def_fn_type): Likewise.
10348 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10349 * emit-rtl.c (gen_rtvec): Likewise.
10350 * lto/lto-lang.c (def_fn_type): Likewise.
10352 2011-03-25 Richard Guenther <rguenther@suse.de>
10354 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10355 also generate copies.
10356 (fini_copy_prop): Handle constant values properly.
10358 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10360 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10361 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10362 (hash_loc_operands, compare_loc_operands): Handle
10363 DW_OP_GNU_entry_value.
10365 2011-03-25 Kai Tietz <ktietz@redhat.com>
10367 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10368 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10369 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10370 comment and use macro TARGET_64BIT_MS_ABI instead.
10371 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10372 and change default behavior for 32-bit MS_ABI.
10373 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10374 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10376 (ix86_cfun_abi): Likewise.
10377 (ix86_maybe_switch_abi): Adjust comment.
10378 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10379 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10380 instead of checking for SYSV_ABI.
10381 (ix86_nsaved_sseregs): Likewise.
10382 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10384 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10385 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10386 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10387 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10388 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10390 2011-03-25 Richard Guenther <rguenther@suse.de>
10392 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10393 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10394 (verify_gimple): Remove.
10395 * tree-cfg.c (verify_gimple_call): Merge verification
10397 (verify_gimple_phi): Merge verification from verify_stmts.
10398 (verify_gimple_label): New function.
10399 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10400 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10401 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10402 (verify_stmts): Rename to verify_gimple_in_cfg.
10403 (verify_gimple_in_cfg): New function.
10404 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10405 * tree-ssa.c (verify_ssa): Likewise.
10406 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10408 2011-03-25 Richard Guenther <rguenther@suse.de>
10410 * passes.c (init_optimization_passes): Add FRE pass after
10413 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10414 Andrew Stubbs <ams@codesourcery.com>
10416 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10418 (arm_movdi_vfp_cortexa8): New pattern.
10419 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10420 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10421 instructions when tuning for Cortex-A8. Set attribute "arch".
10422 * config/arm/arm.md: Move include arm-tune.md up a bit.
10423 (define_attr "arch"): Add "onlya8" and "nota8" values.
10424 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10426 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10430 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10432 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10433 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10434 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10435 * passes.c (init_optimization_passes): Move
10436 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10438 2011-03-25 Kai Tietz <ktietz@redhat.com>
10440 * c-typeck.c (comptypes_internal): Replace target
10441 hook call of comp_type_attributes by version in tree.c file.
10442 * gimple.c (gimple_types_compatible_p_1): Likewise.
10443 * tree-ssa.c (useless_type_conversion_p): Likewise.
10444 * tree.c (build_type_attribute_qual_variant): Likewise.
10445 (attribute_value_equal): New static helper function.
10446 (comp_type_attributes): New function.
10447 (merge_attributes): Use attribute_value_equal for comparison.
10448 (attribute_list_contained): Likewise.
10449 * tree.h (comp_type_attributes): New prototype.
10451 2011-03-25 Richard Guenther <rguenther@suse.de>
10453 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10454 of complex types at -O0.
10455 (verify_gimple_assign_binary): Likewise.
10456 (verify_gimple_assign_ternary): Likewise.
10458 2011-03-24 Mark Wielaard <mjw@redhat.com>
10460 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10461 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10463 2011-03-24 Mark Wielaard <mjw@redhat.com>
10466 * dwarf2out.c (output_abbrev_section): Only write table when
10467 abbrev_die_table_in_use > 1.
10469 2011-02-24 Richard Henderson <rth@redhat.com>
10471 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10472 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10473 (alpha_expand_unaligned_load_words): Use extql.
10474 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10475 (emit_insxl): Handle all modes for consistency.
10477 2011-02-24 Richard Henderson <rth@redhat.com>
10479 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10480 (alpha_expand_unaligned_load): Likewise.
10481 (alpha_expand_unaligned_store): Likewise.
10482 (alpha_expand_unaligned_load_words): Likewise.
10483 (alpha_expand_unaligned_store_words): Likewise.
10484 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10485 (alpha_split_lock_test_and_set_12): Likewise.
10486 (print_operand, alpha_fold_builtin_extxx): Likewise.
10487 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10488 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10489 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10490 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10491 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10492 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10493 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10494 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10495 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10496 (extwl, extll, extql): Similarly.
10497 (inswh, inslh, insqh): Similarly.
10498 (mskbl, mskwl, mskll, mskql): Similarly.
10499 (mskwh, msklh, mskqh): Similarly.
10501 2011-02-24 Richard Henderson <rth@redhat.com>
10503 * config/alpha/alpha.md (attribute isa): Add er, ner.
10504 (attribute enabled): Handle them.
10505 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10507 2011-02-24 Richard Henderson <rth@redhat.com>
10509 * config/alpha/alpha.md (attribute isa): Add vms.
10510 (attribute enabled): Handle it.
10511 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10512 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10513 (*movtf): Rename from *movtf_internal for consistency.
10514 (*movsi): Merge with *movsi_nt_vms.
10515 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10516 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10517 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10518 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10520 2011-02-24 Richard Henderson <rth@redhat.com>
10522 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10523 (extendqisi2, extendhisi2): Likewise.
10524 (extendqidi2): Simplify BWX/non-BWX expansions.
10525 (extendhidi2): Similarly.
10527 2011-02-24 Richard Henderson <rth@redhat.com>
10529 * config/alpha/alpha.md (attribute isa): New.
10530 (attribute enabled): New.
10531 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10532 (zero_extendqisi2, zero_extendqidi2): Similarly.
10533 (zero_extendhisi2, zero_extendhidi2): Similarly.
10534 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10536 2011-02-24 Richard Henderson <rth@redhat.com>
10538 * config/alpha/predicates.md (input_operand): Revert last change;
10539 update comment to mention 32-bit VMS rather than Windows.
10541 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10543 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10544 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10545 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10546 * passes.c (init_optimization_passes): Move
10547 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10549 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10551 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10553 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10555 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10558 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10561 * simplify-rtx.c (simplify_const_unary_operation): Call
10562 real_convert when changing mode class with FLOAT_EXTEND.
10564 2011-03-24 Nick Clifton <nickc@redhat.com>
10566 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10567 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10568 * config/rx/rx.c (rx_option_override): Set align_jumps,
10569 align_loops and align_labels if not set by the user.
10570 (rx_align_for_label): New function.
10571 (rx_max_skip_for_label): New function.
10572 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10573 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10574 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10575 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10576 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10578 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10580 PR rtl-optimization/48263
10581 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10582 and original commutative_p handling. Use maybe_gen_insn.
10584 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10586 * reload.c (find_reloads_subreg_address): Add address_reloaded
10587 parameter and return true there if the full address has been
10589 (find_reloads_toplev): Pass address_reloaded flag.
10590 (find_reloads_address_1): Don't use address_reloaded parameter.
10592 2011-03-24 Jeff Law <law@redhat.com>
10594 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10595 unused variable "ann".
10596 (remove_unused_locals): Likewise.
10598 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10601 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10604 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10606 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10607 for invalid symbolic addresses.
10608 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10611 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10613 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10614 the argument in calls to fold_truth_not_expr.
10616 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10618 * tree.c (record_node_allocation_statistics): New function.
10619 (make_node_stat, copy_node_stat, build_string): Call it.
10620 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10621 (build1_stat, build_omp_clause): Likewise.
10623 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10625 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10628 2011-03-24 Richard Guenther <rguenther@suse.de>
10630 PR tree-optimization/48271
10631 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10632 blocks that still exist.
10634 2011-03-24 Richard Guenther <rguenther@suse.de>
10636 PR tree-optimization/48270
10637 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10638 not free datarefs before ddrs.
10640 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10642 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10643 from the address built for a reference with variable offset.
10645 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10648 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10649 alternatives that can be handled with movq or movabsq insn.
10650 (*movdf_internal): Disable for !TARGET_64BIT.
10651 (*movdf_internal_nointeger): Ditto.
10652 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10654 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10656 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10657 (FUNCTION_ARG_ADVANCE): Likewise.
10658 * tm.texi.in: Change references to them to hook references.
10659 * tm.texi: Regenerate.
10660 * targhooks.c (default_function_arg): Eliminate check for target macro.
10661 (default_function_incoming_arg): Likewise.
10662 (default_function_arg_advance): Likewise.
10663 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10664 (function_arg_advance): Likewise.
10665 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10667 2011-03-24 Richard Guenther <rguenther@suse.de>
10669 PR middle-end/48269
10670 * tree-object-size.c (addr_object_size): Do not double-account
10671 for MEM_REF offsets.
10673 2011-03-24 Diego Novillo <dnovillo@google.com>
10675 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10676 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10677 (lto_input_data_block): Move from lto-opts.c. Make extern.
10679 (lto_input_string): Rename from input_string. Make extern.
10681 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10682 output_string_with_length.
10683 Output 0 to indicate a non-NULL string. Update all callers to
10685 (lto_output_string): Rename from output_string. Make extern.
10687 (lto_output_decl_state_streams): Make extern.
10688 (lto_output_decl_state_refs): Make extern.
10689 * lto-streamer.h (lto_input_string): Declare.
10690 (lto_input_data_block): Declare.
10691 (lto_output_string): Declare.
10692 (lto_output_string_with_length): Declare.
10693 (lto_output_decl_state_streams): Declare.
10694 (lto_output_decl_state_refs): Declare.
10696 2011-03-24 Richard Guenther <rguenther@suse.de>
10698 PR tree-optimization/46562
10699 * tree.c (build_invariant_address): New function.
10700 * tree.h (build_invariant_address): Declare.
10701 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10702 a renamed function moved ...
10703 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10704 Take valueization callback parameter.
10705 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10706 * gimple-fold.h: New file.
10707 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10708 (ccp_fold, fold_const_aggregate_ref,
10709 fold_ctor_reference, fold_nonarray_ctor_reference,
10710 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10711 get_base_constructor): Move ...
10712 * gimple-fold.c: ... here.
10713 (gimple_fold_stmt_to_constant_1): New function
10714 split out from ccp_fold. Take a valueization callback parameter.
10715 Valueize all operands.
10716 (gimple_fold_stmt_to_constant): New wrapper function.
10717 (fold_const_aggregate_ref_1): New function split out from
10718 fold_const_aggregate_ref. Take a valueization callback parameter.
10719 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10720 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10721 invariant POINTER_PLUS_EXPRs to invariant form.
10722 (vn_valueize): New function.
10723 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10724 * tree-vrp.c (vrp_valueize): New function.
10725 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10726 to fold statements to constants.
10727 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10728 function declarations.
10729 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10730 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10732 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10734 * config/h8300/predicates.md (jump_address_operand): Fix register
10737 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10739 * doc/invoke.texi (max-stores-to-sink): Document.
10740 * params.h (MAX_STORES_TO_SINK): Define.
10741 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10742 if either vectorization or if-conversion is disabled.
10743 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10744 tree-vect-data-refs.c vect_equal_offsets.
10745 (dr_equal_offsets_p): New function.
10746 (find_data_references_in_bb): Remove static.
10747 * tree-data-ref.h (find_data_references_in_bb): Declare.
10748 (dr_equal_offsets_p): Likewise.
10749 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10750 (vect_drs_dependent_in_basic_block): Update calls to
10751 vect_equal_offsets.
10752 (vect_check_interleaving): Likewise.
10753 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10754 (cond_if_else_store_replacement): Rename to...
10755 (cond_if_else_store_replacement_1): ... this. Change arguments and
10757 (cond_if_else_store_replacement): New function.
10758 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10759 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10761 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10764 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10765 to subtract lower bound instead of GEN_INT().
10767 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10772 * doc/extend.texi (Alignment): Move section to match order in TOC.
10773 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10774 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10776 2011-03-23 Jeff Law <law@redhat.com>
10778 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10779 before removing the edge.
10781 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10782 it may have been freed by redirect_branch_edge or
10783 redirect_edge_succ_nodup.
10785 2011-03-23 Richard Guenther <rguenther@suse.de>
10787 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10788 (check_va_list_escapes): Likewise.
10789 (check_all_va_list_escapes): Likewise.
10791 2011-03-23 Richard Guenther <rguenther@suse.de>
10793 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10794 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10795 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10796 (alias.o): Likewise.
10797 (ipa-type-escape.o): Remove.
10798 (ipa-struct-reorg.o): Likewise.
10799 (GTFILES): Remove ipa-struct-reorg.c.
10800 * alias.c: Do not include ipa-type-escape.h.
10801 * tree-ssa-alias.c: Likewise.
10802 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10803 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10804 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10805 and ipa-type-escape passes.
10806 * tree-pass.h (pass_ipa_type_escape): Remove.
10807 (pass_ipa_struct_reorg): Likewise.
10808 * ipa-struct-reorg.h: Remove.
10809 * ipa-struct-reorg.c: Likewise.
10810 * ipa-type-escape.h: Likewise.
10811 * ipa-type-escape.c: Likewise.
10812 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10813 (--param struct-reorg-cold-struct-ratio): Likewise.
10814 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10815 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10816 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10818 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10820 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10821 cpu attribute value.
10822 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10823 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10824 * config/s390/s390.c (processor_flags_table): New constant array.
10825 (s390_handle_arch_option): Remove.
10826 (s390_handle_option): Remove s390_handle_arch_option invocations
10827 and OPT_mwarn_framesize_ handling.
10828 (s390_option_override): Remove s390_handle_arch_option invocation.
10829 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10831 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10832 * config/s390/s390.opt (s390_tune, s390_arch)
10833 (march=): Replace s390_arch_option enum and values with
10834 processor_type. Set variable name to s390_arch. Set
10835 initialization value.
10836 (mtune=): Replace s390_arch_option with processor_type. Set
10837 variable name to s390_tune. Set initialization value.
10839 2011-03-23 Julian Brown <julian@codesourcery.com>
10841 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10842 accesses which are not naturally aligned.
10844 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10847 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10849 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10851 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10852 parameter from "int" to "enum insn_code".
10853 (expand_operand_type): New enum.
10854 (expand_operand): New structure.
10855 (create_expand_operand): New function.
10856 (create_fixed_operand, create_output_operand): Likewise
10857 (create_input_operand, create_convert_operand_to): Likewise.
10858 (create_convert_operand_from, create_address_operand): Likewise.
10859 (create_integer_operand): Likewise.
10860 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10861 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10862 (expand_insn, expand_jump_insn): Likewise.
10863 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10864 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10865 (expand_movstr, expand_builtin___clear_cache): Likewise.
10866 (expand_builtin_lock_release): Likewise.
10867 * explow.c (allocate_dynamic_stack_space): Likewise.
10868 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10869 and use the default handling in that case.
10870 * expmed.c (check_predicate_volatile_ok): Delete.
10871 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10872 (emit_cstore): Likewise.
10873 * expr.c (emit_block_move_via_movmem): Likewise.
10874 (set_storage_via_setmem, expand_assignment): Likewise.
10875 (emit_storent_insn, try_casesi): Likewise.
10876 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10877 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10878 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10879 (expand_twoval_unop, expand_twoval_binop): Likewise.
10880 (expand_unop_direct, emit_indirect_jump): Likewise.
10881 (emit_conditional_move, vector_compare_rtx): Likewise.
10882 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10883 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10884 (expand_sync_lock_test_and_set): Likewise.
10885 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10886 (emit_unop_insn): Likewise.
10887 (expand_copysign_absneg): Change icode to an insn_code.
10888 (create_convert_operand_from_type): New function.
10889 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10890 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10891 (expand_insn, expand_jump_insn): Likewise.
10892 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10893 than const_int_operand for operand 2.
10895 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10897 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10900 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10902 * emit-rtl.c (emit_pattern_before_noloc): New function.
10903 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10904 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10905 (emit_pattern_after_noloc): New function.
10906 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10907 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10909 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10911 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10912 (__ffsDI2): Likewise.
10914 2011-03-22 Richard Henderson <rth@redhat.com>
10916 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10917 of !TARGET_ABI_OPEN_VMS.
10918 (alpha_trampoline_init, alpha_start_function): Likewise.
10919 (alpha_expand_epilogue, alpha_file_start): Likewise.
10920 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10921 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10922 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10923 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10924 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10926 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10928 * config/s390/s390-opts.h: New.
10929 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10930 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10931 s390_stack_guard): Remove.
10932 (s390_handle_arch_option): Return void. Take enum
10933 s390_arch_option value instead of string and searching array.
10934 (s390_handle_option): Don't assert that global structures are in
10935 use. Access variables via opts pointer. Use error_at. Don't use
10936 sscanf for -mstack-guard= or -mstack-size=. Update call to
10937 s390_handle_arch_option.
10938 (s390_option_override): Update call to s390_handle_arch_option.
10939 (s390_emit_prologue): Use %d format for s390_stack_size in
10940 diagnostic. Use %wd for HOST_WIDE_INT.
10941 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10942 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10943 * config/s390/s390.opt (config/s390/s390-opts.h): New
10944 HeaderInclude entry.
10945 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10946 s390_arch_flags, s390_warn_framesize): New Variable entries.
10947 (s390_arch_option): New Enum and EnumValue entries.
10948 (march=): Use Enum instead of Var.
10949 (mstack-guard=, mstack-size=): Use UInteger and Var.
10950 (mtune=): Use Enum.
10952 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10954 * config/score/score.c (score_handle_option): Don't assert that
10955 global structures are in use. Access target_flags via opts
10956 pointer. Use value of -march= option to determine target_flags
10958 * config/score/score.opt (march=): Use Enum.
10959 (score_arch): New Enum and EnumValue entries.
10961 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10963 * config/mep/mep.c (option_mtiny_specified): Remove.
10964 (mep_option_override): Move register handling for -mivc2 from
10965 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10966 instead of option_mtiny_specified.
10967 (mep_handle_option): Access target_flags via opts pointer. Don't
10968 assert that global structures are in use. Defer part of -mivc2
10969 handling and move it to mep_option_override.
10970 * config/mep/mep.opt (IVC2): New Mask entry.
10971 (mivc2): Use Var and Defer instead of Mask.
10973 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10975 * config/v850/v850-opts.h: New.
10976 * config/v850/v850.c (small_memory): Replace with
10977 small_memory_physical_max array. Make that array static const.
10978 (v850_handle_memory_option): Take integer value of argument. Take
10979 gcc_options pointer, option text and location. Return void.
10980 Update for changes to small memory structures.
10981 (v850_handle_option): Access target_flags via opts pointer. Don't
10982 assert that global structures are in use. Update calls to
10983 v850_handle_memory_option.
10984 (v850_encode_data_area): Update references to small memory settings.
10985 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10986 (enum small_memory_type): Move to v850-opts.h.
10987 * config/v850/v850.opt (config/v850/v850-opts.h): New
10988 HeaderInclude entry.
10989 (small_memory_max): New Variable entry.
10990 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10991 (mtda, mzda): Likewise.
10993 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10995 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10996 pointer. Don't assert that global structures are in use.
10998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11000 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11001 via opts pointer. Don't assert that global structures are in use.
11003 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11005 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11006 (munix=93): Use Var.
11007 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11008 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11009 * config/pa/pa-opts.h: New.
11010 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11011 (pa_handle_option): Don't assert that global structures are in
11012 use. Access target_flags via opts pointer. Don't handle
11013 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11015 (pa_option_override): Handle deferred OPT_mfixed_range_.
11017 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11019 * config/mn10300/mn10300-opts.h: New.
11020 * config/mn10300/mn10300.c (mn10300_processor,
11021 mn10300_tune_string): Remove.
11022 (mn10300_handle_option): Don't assert that global structures are
11023 in use. Access mn10300_processor via opts pointer. Don't handle
11025 * config/mn10300/mn10300.h (enum processor_type): Move to
11027 (mn10300_processor): Remove.
11028 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11029 HeaderInclude entry.
11030 (mn10300_processor): New Variable entry.
11033 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11035 * config/microblaze/microblaze.c: Don't include opts.h.
11036 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11037 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11038 (mno-clearbss): Use Var and Warn.
11040 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11042 * config/m32r/m32r-opts.h: New.
11043 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11044 (m32r_handle_option): Don't assert that global structures are in
11045 use. Access target_flags and m32r_cache_flush_func via opts
11046 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11047 OPT_mno_flush_trap here.
11048 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11049 include of m32r-opts.h.
11050 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11051 HeaderInclude entry.
11052 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11053 (mmodel=): Use Enum and Var.
11054 (m32r_model): New Enum and EnumValue entries.
11055 (mno-flush-trap): Use Var.
11056 (msdata=): Use Enum and Var.
11057 (m32r_sdata): New Enum and EnumValue entries.
11059 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11061 * config/m32c/m32c.c: Don't include opts.h.
11062 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11063 m32c_handle_option): Remove.
11064 (m32c_option_override): Check global_options_set.x_target_memregs
11065 instead of target_memregs_set.
11066 * config/m32c/m32c.h (target_memregs): Remove.
11067 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11070 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11072 * config/iq2000/iq2000-opts.h: New.
11073 * config/iq2000/iq2000.c: Don't include opts.h.
11074 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11075 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11076 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11077 HeaderInclude entry.
11078 (iq2000_tune): New Variable entry.
11079 (march=): Add comment. Use Enum.
11080 (iq2000_arch): New Enum and EnumValue entries.
11081 (mcpu=): Use Enum and Var.
11082 (iq2000_tune): New Enum and EnumValue entries.
11084 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11086 * config/ia64/ia64-opts.h: New.
11087 * config/ia64/ia64.c (ia64_tune): Remove.
11088 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11089 here. Use error_at.
11090 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11091 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11092 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11093 HeaderInclude entry.
11094 (ia64_tune): New Variable entry.
11095 (mfixed-range=): Use Defer and Var.
11096 (mtune=): Use Enum and Var.
11097 (ia64_tune): New Enum and EnumValue entries.
11099 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11101 * config/frv/frv-opts.h: New.
11102 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11104 (frv_cpu_type): Remove.
11105 * config/frv/frv.c: Don't include opts.h.
11106 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11107 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11108 (frv_cpu_type): New Variable entry.
11109 (frv_cpu): New Enum and EnumValue entries.
11111 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11113 * config/cris/cris.c (cris_handle_option): Access target_flags via
11114 opts pointer. Don't assert that global structures are in use.
11115 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11116 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11118 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11120 * config/bfin/bfin-opts.h: New.
11121 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11122 bfin_si_revision, bfin_workarounds): Remove.
11123 (bfin_cpus): Make static const.
11124 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11125 not bfin_lib_id_given.
11126 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11127 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11128 pointer. Use error_at. Don't assert that global structures are in use.
11129 * config/bfin/bfin.h: Include bfin-opts.h.
11130 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11131 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11132 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11133 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11138 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11139 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11140 or -msoft-float here.
11141 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11142 -msoft-float and -mhard-float.
11143 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11144 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11146 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11148 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11149 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11151 (LIBGCC_SPEC): Don't handle -msoft-float.
11152 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11154 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11156 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11157 -mfloat-abi=*, not -msoft-float and -mhard-float.
11158 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11160 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11161 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11162 mhard-float and msoft-float.
11163 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11164 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11165 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11166 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11168 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11169 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11171 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11173 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11176 2011-03-22 Richard Henderson <rth@redhat.com>
11178 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11179 TARGET_ABI_WINDOWS_NT.
11180 (alpha_output_function_end_prologue): Likewise.
11181 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11182 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11183 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11184 (trap, *movsi_nt_vms): Likewise.
11185 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11186 (*tablejump_osf_nt_internal): Remove.
11187 * config/alpha/predicates.md (input_operand): Only test Pmode.
11189 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11191 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11192 via opts pointer. Use error_at. Don't assert that global
11193 structures are in use.
11195 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11197 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11198 (ix86_handle_option): Access ix86_isa_flags and
11199 ix86_isa_flags_explicit via opts pointer. Don't assert that
11200 global structures are in use.
11201 (ix86_function_specific_save, ix86_function_specific_restore):
11202 Update ix86_isa_flags_explicit field name.
11203 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11204 (ix86_isa_flags_explicit): Rename TargetSave entry to
11205 x_ix86_isa_flags_explicit.
11207 2011-03-22 Richard Henderson <rth@redhat.com>
11209 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11210 (alpha_option_override, direct_return): Likewise.
11211 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11212 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11213 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11214 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11215 (alpha_expand_epilogue, alpha_end_function): Likewise.
11216 (alpha_init_libfuncs): Likewise.
11217 (struct machine_function): Remove unicosmk members.
11218 (print_operand) ['t']: Remove.
11219 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11220 unicosmk_output_module_name, unicosmk_output_common,
11221 current_section_align, unicosmk_output_text_section_asm_op,
11222 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11223 unicosmk_section_type_flags, unicosmk_unique_section,
11224 unicosmk_asm_named_section, unicosmk_insert_attributes,
11225 unicosmk_output_align, unicosmk_defer_case_vector,
11226 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11227 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11228 unicosmk_output_ssib, unicosmk_add_call_info_word,
11229 unicosmk_extern_head, unicosmk_output_default_externs,
11230 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11231 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11232 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11233 * config/alpha/alpha-protos.h: Update.
11234 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11235 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11236 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11237 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11238 (*mulsi_se, mulvsi3): Likewise.
11239 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11240 (*divmodsi_internal, call, call_value, realign): Likewise.
11241 (moddi3, umoddi3): Likewise; remove duplicate expander.
11242 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11243 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11244 (*movdi_nofix): Remove r/U alternative.
11245 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11246 * config/alpha/constraints.md ("U"): Remove.
11247 * config/alpha/predicates.md (call_operand"): Don't test
11248 TARGET_ABI_UNICOSMK.
11250 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11252 * target.def (handle_option): Take gcc_options and
11253 cl_decoded_option pointers and location_t.
11254 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11255 * doc/tm.texi: Regenerate.
11256 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11257 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11258 * lto-opts.c (lto_reissue_options): Generate option structure for
11259 targetm.handle_option call.
11260 * opts.c (target_handle_option): Update call to
11261 targetm.handle_option. Remove assertions about values now passed
11263 * targhooks.c (default_target_handle_option): New.
11264 * targhooks.h (default_target_handle_option): Declare.
11265 * config/alpha/alpha.c: Include opts.h.
11266 (alpha_handle_option): Update to new hook interface.
11267 * config/arm/arm.c: Include opts.h.
11268 (arm_handle_option): Update to new hook interface.
11269 * config/arm/t-arm (arm.o): Update dependencies.
11270 * config/bfin/bfin.c: Include opts.h.
11271 (bfin_handle_option): Update to new hook interface.
11272 * config/cris/cris.c: Include opts.h.
11273 (cris_handle_option): Update to new hook interface.
11274 * config/frv/frv.c: Include opts.h.
11275 (frv_handle_option): Update to new hook interface.
11276 * config/i386/i386.c: Include opts.h.
11277 (ix86_handle_option): Update to new hook interface.
11278 (ix86_valid_target_attribute_inner_p): Generate option structure
11279 for call to ix86_handle_option.
11280 * config/i386/t-i386 (i386.o): Update dependencies.
11281 * config/ia64/ia64.c: Include opts.h.
11282 (ia64_handle_option): Update to new hook interface.
11283 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11284 * config/iq2000/iq2000.c: Include opts.h.
11285 (iq2000_handle_option): Update to new hook interface.
11286 * config/m32c/m32c.c: Include opts.h.
11287 (m32c_handle_option): Update to new hook interface.
11288 * config/m32r/m32r.c: Include opts.h.
11289 (m32r_handle_option): Update to new hook interface.
11290 * config/m68k/m68k.c: Include opts.h.
11291 (m68k_handle_option): Update to new hook interface.
11292 * config/mep/mep.c: Include opts.h.
11293 (mep_handle_option): Update to new hook interface.
11294 * config/microblaze/microblaze.c: Include opts.h.
11295 (microblaze_handle_option): Update to new hook interface.
11296 * config/mips/mips.c: Include opts.h.
11297 (mips_handle_option): Update to new hook interface.
11298 * config/mn10300/mn10300.c: Include opts.h.
11299 (mn10300_handle_option): Update to new hook interface.
11300 * config/pa/pa.c: Include opts.h.
11301 (pa_handle_option): Update to new hook interface.
11302 * config/pdp11/pdp11.c: Include opts.h.
11303 (pdp11_handle_option): Update to new hook interface.
11304 * config/rs6000/rs6000.c: Include opts.h.
11305 (rs6000_handle_option): Update to new hook interface.
11306 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11307 * config/rx/rx.c: Include opts.h.
11308 (rx_handle_option): Update to new hook interface.
11309 * config/s390/s390.c: Include opts.h.
11310 (s390_handle_option): Update to new hook interface.
11311 * config/score/score.c: Include opts.h.
11312 (score_handle_option): Update to new hook interface.
11313 * config/sh/sh.c: Include opts.h.
11314 (sh_handle_option): Update to new hook interface.
11315 * config/sparc/sparc.c: Include opts.h.
11316 (sparc_handle_option): Update to new hook interface.
11317 * config/v850/v850.c: Include opts.h.
11318 (v850_handle_option): Update to new hook interface.
11320 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11322 * gcc.c (driver_unknown_option_callback): Only permit and save
11323 unknown -Wno- options.
11324 (driver_wrong_lang_callback): Save options directly instead of via
11325 driver_unknown_option_callback.
11327 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11329 * combine.c (simplify_set): Try harder to find the best CC mode when
11330 simplifying a nested COMPARE on the RHS.
11332 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11334 * config/alpha/gnu.h: Remove.
11335 * config/arc: Remove directory.
11336 * config/arm/netbsd.h: Remove.
11337 * config/arm/t-pe: Remove.
11338 * config/crx: Remove directory.
11339 * config/i386/netbsd.h: Remove.
11340 * config/m68hc11: Remove directory.
11341 * config/m68k/uclinux-oldabi.h: Remove.
11342 * config/mcore/mcore-pe.h: Remove.
11343 * config/mcore/t-mcore-pe: Remove.
11344 * config/netbsd-aout.h: Remove.
11345 * config/rs6000/gnu.h: Remove.
11346 * config/sh/sh-symbian.h: Remove.
11347 * config/sh/symbian-base.c: Remove.
11348 * config/sh/symbian-c.c: Remove.
11349 * config/sh/symbian-cxx.c: Remove.
11350 * config/sh/symbian-post.h: Remove.
11351 * config/sh/symbian-pre.h: Remove.
11352 * config/sh/t-symbian: Remove.
11353 * config/svr3.h: Remove.
11354 * config/vax/netbsd.h: Remove.
11355 * config.build: Don't handle i[34567]86-*-pe.
11356 * config.gcc: Remove handling of deprecations for most deprecated
11358 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11359 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11360 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11361 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11362 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11363 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11365 * config.host: Don't handle i[34567]86-*-pe.
11366 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11367 (ASM_SPEC32): Don't handle -mcall-gnu.
11368 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11370 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11371 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11372 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11373 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11374 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11375 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11376 conditional on SYMBIAN.
11377 * configure.ac: Don't handle powerpc*-*-gnu*.
11378 * configure: Regenerate.
11379 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11380 * doc/install-old.texi (m6811, m6812): Don't mention.
11381 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11382 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11383 (m68k-uclinuxoldabi): Don't mention.
11384 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11386 (-mcall-gnu): Remove.
11387 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11388 families): Remove constraint documentation.
11390 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11392 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11393 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11394 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11396 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11399 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11400 vector when peeking at the next token for vector, don't expand the
11403 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11405 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11406 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11407 * config/avr/avr.c (init_cumulative_args)
11408 (avr_function_arg_advance): Use it.
11409 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11411 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11412 (avr_function_ok_for_sibcall): ...this new function.
11413 (avr_lookup_function_attribute1): New static Function.
11414 (avr_naked_function_p, interrupt_function_p)
11415 (signal_function_p, avr_OS_task_function_p)
11416 (avr_OS_main_function_p): Use it.
11417 * config/avr/avr.md ("sibcall", "sibcall_value")
11418 ("sibcall_epilogue"): New expander.
11419 ("*call_insn", "*call_value_insn"): New insn.
11420 ("call_insn", "call_value_insn"): Remove
11421 ("call", "call_value", "epilogue"): Change expander to handle
11424 2011-03-21 Nick Clifton <nickc@redhat.com>
11426 * doc/invoke.texi (Overall Options): Move closing brace to end of
11428 (Optimization Options): Add missing @gol.
11429 (Directory Options): Likewise.
11430 (i386 and x86-64 Options): Likewise.
11431 (RS6000 and PowerPC Options): Likewise.
11432 (i386 and x86-64 Windows Options): Likewise.
11433 (V850 Options): Add text missing from descriptions.
11435 2011-03-22 Richard Henderson <rth@redhat.com>
11437 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11438 (avr_incoming_return_addr_rtx): New.
11439 (emit_push_byte): New.
11440 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11441 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11442 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11443 (emit_pop_byte): New.
11444 (expand_epilogue): Use it. Pop frame pointer by bytes.
11445 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11446 (INCOMING_RETURN_ADDR_RTX): New.
11447 (INCOMING_FRAME_SP_OFFSET): New.
11448 (ARG_POINTER_CFA_OFFSET): New.
11449 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11450 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11453 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11455 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11457 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11458 (FUNCTION_ARG_ADVANCE): Likewise.
11459 * tm.texi.in: Change references to them to hook references.
11460 * tm.texi: Regenerate.
11461 * targhooks.c (default_function_arg): Eliminate check for target
11463 (default_function_incoming_arg): Likewise.
11464 (default_function_arg_advance): Likewise.
11465 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11466 (function_arg_advance): Likewise.
11467 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11469 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11471 * tree.c (build_call_1): New function.
11472 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11474 2011-03-22 Richard Guenther <rguenther@suse.de>
11476 PR tree-optimization/48228
11477 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11478 for single-arg PHIs.
11480 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11482 PR rtl-optimization/48143
11483 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11484 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11485 sse2_cvtps2pd): Likewise.
11487 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11489 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11491 2011-03-22 Richard Guenther <rguenther@suse.de>
11493 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11494 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11495 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11496 and REALIGN_LOAD_EXPR.
11497 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11498 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11499 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11500 DOT_PROD_EXPR case ...
11501 (expand_expr_real_2): ... here.
11502 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11503 and REALIGN_LOAD_EXPR.
11504 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11505 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11506 (vect_create_epilog_for_reduction): Likewise.
11507 (vectorizable_reduction): Likewise.
11508 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11509 * tree-vect-stmts.c (vectorizable_load): Likewise.
11511 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11513 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11515 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11517 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11518 handling for PLTOFF/GOTOFF.
11520 2011-03-22 Nick Clifton <nickc@redhat.com>
11522 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11523 trailing backslash from the end of the macro definition.
11525 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11527 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11530 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11532 * expr.h (prepare_operand): Move to...
11533 * optabs.h (prepare_operand): ...here and change the insn code
11534 parameter from "int" to "enum insn_code".
11535 (insn_operand_matches): Declare.
11536 * expr.c (init_expr_target): Use insn_operand_matches.
11537 (compress_float_constant): Likewise.
11538 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11539 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11540 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11541 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11543 (gen_cond_trap): Likewise.
11544 (prepare_operand): Likewise. Change icode to an insn_code.
11545 (insn_operand_matches): New function.
11546 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11547 * reload1.c (gen_reload): Likewise.
11548 * targhooks.c (default_secondary_reload): Likewise.
11550 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11552 * config/alpha/alpha.md (unspec): New define_c_enum.
11555 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11558 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11559 between a call and its CALL_ARG_LOCATION note.
11561 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11563 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11565 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11569 * c-common.c (shorten_compare): If primopN is first sign-extended
11570 to opN and then zero-extended to result type, set primopN to opN.
11572 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11574 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11575 for barrier handlers.
11577 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11579 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11580 UNSPEC constants to be in the unspec enumeration, and redefine
11581 all UNSPECV constants to be in the unspecv enumeration, so that
11582 dumps print which unspec/unspec_volatile this is.
11583 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11584 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11585 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11586 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11587 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11589 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11590 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11591 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11592 * config/rs6000/sync.md (isync, lwsync): Ditto.
11594 2011-03-21 Richard Guenther <rguenther@suse.de>
11596 * params.def (lto-min-partition): Fix typo.
11598 2011-03-21 Richard Guenther <rguenther@suse.de>
11601 * c-decl.c (grokdeclarator): Drop to the main variant only
11602 for array types. Drop flag_gen_aux_info check.
11604 2011-03-21 Richard Guenther <rguenther@suse.de>
11606 PR translation/47911
11607 * params.def (lto-partitions): Fix typo.
11608 (lto-min-partition): Fix wording.
11610 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11612 * config/rs6000/t-freebsd: Remove duplication from file.
11614 2011-03-21 Richard Guenther <rguenther@suse.de>
11616 PR middle-end/47661
11617 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11619 2011-03-21 Richard Guenther <rguenther@suse.de>
11622 * params.def (lto-partitions): Require at least 1 partition.
11624 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11626 * gthr-solaris.h: Remove.
11627 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11628 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11629 (LIB_SPEC): Likewise.
11630 * config/sol2.opt (threads): Remove.
11631 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11632 (sparc*-*-solaris2*): Likewise.
11633 * configure.ac (enable_threads): Enable solaris support.
11634 * configure: Regenerate.
11635 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11636 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11639 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11641 * config.gcc: Obsolete *-*-solaris2.8*.
11642 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11644 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11647 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11648 reference. Solaris 8 perl works.
11650 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11653 * doc/install.texi (Prerequisites): Move jar etc. up.
11654 Explain support library version requirements.
11656 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11659 * doc/install.texi (Prerequisites): Move Perl to build
11660 requirements. Always necessary on Solaris 2 with Sun ld.
11662 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11664 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11666 (Specific, i?86-*-solaris2.[89]): Likewise.
11667 (Specific, i?86-*-solaris2.10): Likewise.
11668 (Specific, mips-sgi-irix6): Likewise.
11669 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11670 Update for binutils 2.21.
11672 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11674 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11675 Allow -fuse-linker-plugin for non-default plugin linker.
11676 * configure: Regenerate.
11678 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11681 * gengtype.c (files_rules): Added rule for cp/parser.h.
11683 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11686 * config/s390/s390.c (s390_delegitimize_address): Don't call
11687 lowpart_subreg if orig_x has BLKmode.
11689 2011-03-21 Kai Tietz <ktietz@redhat.com>
11692 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11693 * tree.h (attribute_spec): Add new member affects_type_identity.
11694 * attribs.c (empty_attribute_table): Adjust attribute_spec
11696 * config/alpha/alpha.c: Likewise.
11697 * config/arc/arc.c: Likewise.
11698 * config/arm/arm.c: Likewise.
11699 * config/avr/avr.c: Likewise.
11700 * config/bfin/bfin.c: Likewise.
11701 * config/crx/crx.c: Likewise.
11702 * config/darwin.h: Likewise.
11703 * config/h8300/h8300.c: Likewise.
11704 * config/i386/cygming.h: Likewise.
11705 * config/i386/i386.c: Likewise.
11706 * config/ia64/ia64.c: Likewise.
11707 * config/m32c/m32c.c: Likewise.
11708 * config/m32r/m32r.c: Likewise.
11709 * config/m68hc11/m68hc11.c: Likewise.
11710 * config/m68k/m68k.c: Likewise.
11711 * config/mcore/mcore.c: Likewise.
11712 * config/mep/mep.c: Likewise.
11713 * config/microblaze/microblaze.c: Likewise.
11714 * config/mips/mips.c: Likewise.
11715 * config/rs6000/rs6000.c: Likewise.
11716 * config/rx/rx.c: Likewise.
11717 * config/sh/sh.c: Likewise.
11718 * config/sol2.h: Likewise.
11719 * config/sparc/sparc.c: Likewise.
11720 * config/spu/spu.c: Likewise.
11721 * config/stormy16/stormy16.c: Likewise.
11722 * config/v850/v850.c: Likewise.
11724 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11726 * simplify-rtx.c (simplify_binary_operation_1): Handle
11727 (xor (and A B) C) case when B and C are both constants.
11729 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11731 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11733 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11736 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11738 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11740 PR rtl-optimization/48156
11741 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11742 assume df and df_lr are not NULL.
11744 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11747 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11748 between a call and its CALL_ARG_LOCATION note.
11750 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11753 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11754 between a call and its corresponding CALL_ARG_LOCATION note.
11756 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11758 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11759 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11760 * haifa-sched.c (setup_ref_regs): Ditto.
11761 * caller-save.c (add_used_regs_1): Ditto.
11762 * dse.c (look_for_hardregs): Ditto.
11763 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11764 * sched-rgn.c (check_live_1): Ditto.
11766 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11768 * c-decl.c (diagnose_mismatched_decls): Give an error for
11769 redefining a typedef with variably modified type.
11771 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11773 * c-decl.c (grokfield): Don't allow typedefs for structures or
11774 unions with no tag by default.
11775 * doc/extend.texi (Unnamed Fields): Update.
11777 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11779 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11780 Rewrite using indirect functions.
11781 (lwp_slwpcb): Ditto.
11782 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11783 (avx_vinsertf128<mode>): Ditto.
11785 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11787 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11790 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11792 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11793 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11795 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11797 PR rtl-optimization/48170
11798 * gcse.c (hoist_code): Remove bogus asserts.
11800 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11802 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11803 computation for prologue/epilogue.
11805 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11807 * Makefile.in (check-consistency): Remove.
11809 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11812 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11813 arange_table_in_use is 0, but either text_section_used or
11814 cold_text_section_used is true. Don't call it if
11815 !info_section_emitted.
11817 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11819 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11820 FUNCTION_VALUE_REGNO_P): Remove.
11821 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11823 * config/avr/avr.c (avr_ret_register): Make static inline.
11824 (avr_function_value_regno_p): New function.
11825 (avr_libcall_value): Make static. Add 'func' argument.
11826 (avr_function_value): Make static. Rename 'func' argument to
11827 'fn_decl_or_type', forward it to avr_libcall_value. Call
11828 avr_ret_register function instead of RET_REGISTER macro.
11829 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11831 2011-03-18 Jason Merrill <jason@redhat.com>
11834 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11836 2011-03-18 Richard Guenther <rguenther@suse.de>
11838 * doc/install.texi (--enable-gold): Remove.
11839 (--with-plugin-ld): Document.
11840 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11842 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11844 PR middle-end/47790
11845 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11846 again after expansion changes.
11848 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11850 * combine.c (try_combine): Do simplification only call of
11851 subst() on i2 even when i1 is present. Update comments.
11853 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11855 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11856 and UNSPEC_PCREL_SYMOFF.
11858 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11860 * config/s390/s390.md: Use define_c_enum for the unspec constant
11863 2011-03-18 Richard Henderson <rth@redhat.com>
11864 Jakub Jelinek <jakub@redhat.com>
11867 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11868 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11870 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11872 PR middle-end/47725
11873 * combine.c (cant_combine_insn_p): Don't check zero/sign
11874 extended hard registers.
11876 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11878 PR middle-end/47725
11879 * combine.c (cant_combine_insn_p): Check zero/sign extended
11882 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11884 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11885 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11886 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11887 Change return type to bool.
11888 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11890 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11893 * var-tracking.c (prepare_call_arguments): If CALL target
11894 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11895 pc instead of looking it up using cselib_lookup and use
11896 Pmode for it if x has VOIDmode.
11897 * dwarf2out.c (gen_subprogram_die): If also both first and
11898 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11901 * function.c (assign_parms): For data.passed_pointer parms
11902 use MEM of data.entry_parm instead of data.entry_parm itself
11903 as DECL_INCOMING_RTL.
11904 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11905 also when passed and declared mode is the same, DECL_RTL
11906 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11909 2011-03-16 Jeff Law <law@redhat.com>
11911 PR rtl-optimization/37273
11912 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11913 handle them like argument loads from stack slots. Do not double
11914 count memory for memory constants and argument loads from stack slots.
11916 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11919 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11921 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11924 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11926 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11929 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11931 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11932 Clear call_arg_locations and call_arg_loc_last always.
11934 PR middle-end/48152
11935 * var-tracking.c (prepare_call_arguments): If argument needs to be
11936 passed by reference, adjust argtype and mode.
11938 2011-03-17 Richard Guenther <rguenther@suse.de>
11940 PR middle-end/48134
11941 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11942 a value make sure to fold the statement.
11944 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11947 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11948 return condition with !cfun->calls_alloca.
11950 2011-03-17 Richard Guenther <rguenther@suse.de>
11953 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11954 origin for decls in other ltrans units.
11955 (input_varpool_node): Likewise.
11957 2011-03-17 Richard Guenther <rguenther@suse.de>
11959 PR middle-end/48165
11960 * tree-object-size.c (compute_object_offset): Properly return
11961 the offset operand of MEM_REFs as sizetype.
11963 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11965 PR rtl-optimization/48141
11966 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11967 * dse.c: Include params.h.
11968 (active_local_stores_len): New variable.
11969 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11971 (record_store, check_mem_read_rtx): Decrease it when removing
11973 (scan_insn): Likewise. Increase it when adding to chain, if it
11974 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11975 set active_local_stores to NULL before the addition.
11976 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11978 PR rtl-optimization/48141
11979 * dse.c (record_store): If no positions are needed in an insn
11980 that cannot be deleted, at least unchain it from active_local_stores.
11982 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11985 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11986 (lookup_type_die_strip_naming_typedef): ... here.
11987 (get_context_die): Use it.
11988 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11989 the anonymous struct named by the naming typedef.
11991 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11994 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11995 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11997 2011-03-16 Jeff Law <law@redhat.com>
11999 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12000 check for operands of conditional. Allow type to be a pointer.
12002 2011-03-16 Richard Guenther <rguenther@suse.de>
12004 PR tree-optimization/48149
12005 * fold-const.c (fold_binary_loc): Fold
12006 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12008 2011-03-16 Richard Guenther <rguenther@suse.de>
12010 PR tree-optimization/26134
12011 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12012 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12013 (non_rewritable_mem_ref_base): Handle complex type component
12014 accesses, constrain offsets for vector and complex extracts
12017 2011-03-16 Richard Guenther <rguenther@suse.de>
12019 PR tree-optimization/48146
12020 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12021 operands avoiding the need for renaming.
12023 2011-03-16 Richard Guenther <rguenther@suse.de>
12025 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12026 constant folding. Move MEM_REF canonicalization first.
12027 Rely on fold_const_aggregate_ref for initializer folding.
12028 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12030 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12032 PR middle-end/48136
12033 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12034 arg0/arg1 or their arguments are always fold converted to matching
12037 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12040 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12043 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12044 Handle in-tree gold.
12045 (ld_vers): Extract binutils version for gold.
12046 (gcc_cv_ld_hidden): Handle gold here.
12047 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12048 * configure: Regenerate.
12049 * config.in: Regenerate.
12050 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12051 -fuse-linker-plugin otherwise.
12052 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12053 (LINK_COMMAND_SPEC): Use it.
12054 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12056 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12058 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12059 * calls.c: Remove debug.h include.
12060 (emit_call_1): Don't call virtual_call_token debug hook.
12061 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12062 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12063 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12064 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12065 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12066 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12067 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12068 dwarf2out_virtual_call): Remove.
12069 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12070 copy_call_info and virtual_call hooks.
12071 (dwarf2out_init): Don't initialize vcall_insn_table,
12072 debug_dcall_section and debug_vcall_section.
12073 (prune_unused_types): Don't mark nodes from dcall_table.
12074 (dwarf2out_finish): Don't output dcall or vcall tables.
12075 * final.c (final_scan_insn): Don't call direct_call or
12076 virtual_call debug hooks.
12077 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12078 virtual_call_token, copy_call_info and virtual_call hooks.
12079 (debug_nothing_uid): Remove prototype.
12080 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12081 copy_call_info and virtual_call hooks.
12082 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12083 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12084 * debug.c (do_nothing_debug_hooks): Likewise.
12085 (debug_nothing_uid): Remove.
12086 * doc/invoke.texi (-fenable-icf-debug): Remove.
12087 * common.opt (-fenable-icf-debug): Likewise.
12089 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12090 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12091 call's MEM. Handle functions returning aggregate through a hidden
12092 first pointer. For virtual calls add clobbered pc to call arguments
12094 * dwarf2out.c (gen_subprogram_die): Emit
12095 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12099 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12100 * rtl.h (ENTRY_VALUE_EXP): Define.
12101 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12102 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12103 * print-rtl.c (print_rtx): Likewise.
12104 * gengtype.c (adjust_field_rtx_def): Likewise.
12105 * var-tracking.c (vt_add_function_parameter): Adjust
12106 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12107 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12108 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12109 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12110 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12112 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12113 Call var_location debug hook even on CALL_INSNs.
12114 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12115 * rtl.def (ENTRY_VALUE): New.
12116 * dwarf2out.c: Include cfglayout.h.
12117 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12118 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12119 (struct call_arg_loc_node): New type.
12120 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12121 tail_call_site_count): New variables.
12122 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12123 DW_TAG_GNU_call_site_parameter.
12124 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12125 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12126 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12127 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12128 and DW_AT_GNU_all_source_call_sites.
12129 (mem_loc_descriptor): Handle ENTRY_VALUE.
12130 (add_src_coords_attributes): Don't add enything if
12131 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12132 (dwarf2out_abstract_function): Save and clear call_arg_location,
12133 call_site_count and tail_call_site_count around dwarf2out_decl call.
12134 (gen_call_site_die): New function.
12135 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12136 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12137 (dwarf2out_function_decl): Clear call_arg_locations,
12138 call_arg_loc_last, set call_site_count and tail_call_site_count
12139 to -1 and free block_map.
12140 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12141 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12142 followed by any real instructions.
12143 (dwarf2out_begin_function): Set call_site_count and
12144 tail_call_site_count to 0.
12145 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12146 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12147 attempt to force a DIE for it and worst case remove the attribute.
12148 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12149 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12151 * var-tracking.c: Include tm_p.h.
12152 (vt_stack_adjustments): For calls call note_register_arguments.
12153 (argument_reg_set): New variable.
12154 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12155 ensure the VALUE is resolved.
12156 (call_arguments): New variable.
12157 (prepare_call_arguments): New function.
12158 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12159 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12160 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12161 always use the best expression.
12162 (vt_expand_loc): Add ignore_cur_loc argument.
12163 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12164 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12165 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12166 note for all calls.
12167 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12168 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12169 argument. Don't call cselib_preserve_only_values and
12170 cselib_reset_table.
12171 (note_register_arguments): New function.
12172 (vt_initialize): Compute argument_reg_set. Call
12173 vt_add_function_parameters before processing basic blocks instead of
12174 afterwards. For calls call prepare_call_arguments before calling
12175 cselib_process_insn.
12176 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12177 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12178 (var-tracking.o): Depend on $(TM_P_H).
12179 * cfglayout.h (insn_scope): New prototype.
12180 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12181 * cfglayout.c (insn_scope): No longer static.
12182 * insn-notes.def (CALL_ARG_LOCATION): New.
12183 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12184 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12185 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12186 nothing for DECL_EXTERNAL BLOCK_VARS.
12188 2011-03-16 Alan Modra <amodra@gmail.com>
12191 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12192 create invalid offset address for vsx splat insn.
12193 * config/rs6000/predicates.md (splat_input_operand): New.
12194 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12196 2011-03-15 Xinliang David Li <davidxl@google.com>
12199 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12200 (normalize_preds): New function.
12201 (is_use_properly_guarded): Normalize def predicates.
12203 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12206 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12207 in the output template.
12209 2011-03-15 Richard Guenther <rguenther@suse.de>
12211 PR middle-end/47650
12212 * tree-pretty-print.c (dump_function_declaration): Properly
12213 dump unprototyped and varargs function types.
12215 2011-03-15 Richard Guenther <rguenther@suse.de>
12217 PR tree-optimization/13954
12218 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12221 2011-03-15 Richard Guenther <rguenther@suse.de>
12223 PR tree-optimization/48037
12224 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12225 selects into BIT_FIELD_REFs.
12226 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12229 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12231 PR tree-optimization/48129
12232 * builtins.c (fold_builtin_snprintf): Convert to type of
12233 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12234 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12236 2011-03-15 Richard Guenther <rguenther@suse.de>
12238 PR tree-optimization/41490
12239 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12240 value but with VUSE.
12241 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12243 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12244 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12245 * tree-tailcall.c (find_tail_calls): Ignore returns.
12247 2011-03-15 Richard Guenther <rguenther@suse.de>
12249 PR middle-end/48031
12250 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12251 or variable-indexed array accesses when in gimple form.
12253 2011-03-15 Richard Guenther <rguenther@suse.de>
12255 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12257 2011-03-15 Alan Modra <amodra@gmail.com>
12260 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12261 presume symbol_refs without a symbol_ref_decl are suitably
12262 aligned, nor other trees we may see here. Handle anchor symbols.
12263 (legitimate_constant_pool_address_p): Comment. Add mode param.
12264 Check cmodel=medium addresses. Adjust all calls.
12265 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12266 creating cmodel=medium optimized access to locals.
12267 * config/rs6000/constraints.md (R): Pass QImode to
12268 legitimate_constant_pool_address_p.
12269 * config/rs6000/predicates.md (input_operand): Pass mode to
12270 legitimate_constant_pool_address_p.
12271 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12274 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12277 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12278 64-bit constants being loaded into registers other than GPRs such
12279 as loading 0 into a VSX register.
12281 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12283 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12285 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12287 PR middle-end/47917
12288 * builtins.c (fold_builtin_snprintf): New function.
12289 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12290 (fold_builtin_4): Likewise.
12292 PR middle-end/38878
12293 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12294 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12295 and C - X == X also strip nops from +/-/p+ operand.
12296 When optimizing -X == C, fold C to arg0's type.
12299 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12300 emit it as add_AT_int instead of add_AT_unsigned.
12302 2011-03-14 Tom Tromey <tromey@redhat.com>
12304 * unwind-dw2.c: Include sys/sdt.h if it exists.
12305 (_Unwind_DebugHook): Use STAP_PROBE2.
12306 * config.in, configure: Rebuild.
12307 * configure.ac: Check for sys/sdt.h.
12309 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12311 * config/i386/i386.md (ROUND_FLOOR): New constant.
12312 (ROUND_CEIL): Ditto.
12313 (ROUND_TRUNC): Ditto.
12314 (ROUND_MXCSR): Ditto.
12315 (ROUND_NO_EXC): Ditto.
12316 (rint<mode>2): Use new defines instead of numerical constants.
12317 (floor<mode>2): Ditto.
12318 (ceil<mode>2): Ditto.
12319 (btrunc<mode>2): Ditto.
12320 * config/i386/i386-builtin-types.def: Define ROUND function type
12322 * config/i386/i386.c (enum ix86_builtins): Add
12323 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12324 (struct builtin_description): Add
12325 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12326 (ix86_expand_sse_round): New static function.
12327 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12329 (ix86_builtin_vectorized_function): Handle
12330 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12332 2011-03-14 Tom Tromey <tromey@redhat.com>
12334 * c-parser.c (c_parser_asm_string_literal): Clear
12335 warn_overlength_strings.
12337 2011-03-14 Tom Tromey <tromey@redhat.com>
12339 * c-parser.c (disable_extension_diagnostics): Save
12340 warn_overlength_strings.
12341 (restore_extension_diagnostics): Restore warn_overlength_strings.
12343 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12345 * BASE-VER: Change to 4.7.0.
12347 2011-03-14 Richard Guenther <rguenther@suse.de>
12349 PR middle-end/48098
12350 * tree.c (build_vector_from_val): Adjust assert to requirements
12353 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12356 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12358 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12360 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12361 terms of target_flags_explicit. Adjust copyright year.
12363 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12364 * config/rs6000/t-freebsd: New file. Add override for
12367 2011-03-13 Chris Demetriou <cgd@google.com>
12369 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12370 (-fno-diagnostics-show-option): this, to reflect current default.
12371 (-Werror=): Update text about -fno-diagnostics-show-option.
12373 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12376 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12377 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12378 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12379 mode is not V2DImode or V2DFmode.
12380 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12381 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12382 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12384 (movdi_internal64): Likewise.
12386 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12388 PR tree-optimization/47127
12389 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12391 (set_cloog_options): Same.
12392 (scop_to_clast): Same.
12393 (print_clast_stmt): Do not call cloog_state_malloc and
12395 (print_generated_program): Same.
12397 * graphite-clast-to-gimple.h (cloog_state): Declared.
12398 (scop_to_clast): Adjust declaration.
12399 * graphite.c (cloog_state): Defined here.
12400 (graphite_initialize): Call cloog_state_malloc.
12401 (graphite_finalize): Call cloog_state_free.
12403 2011-03-11 Jason Merrill <jason@redhat.com>
12405 * attribs.c (lookup_attribute_spec): Take const_tree.
12408 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12410 * config/sparc/sparc.c (sparc_option_override): Use
12411 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12413 2011-03-11 Richard Guenther <rguenther@suse.de>
12415 PR tree-optimization/48067
12416 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12417 multiplication result will be only used once on the target
12420 2011-03-11 Richard Guenther <rguenther@suse.de>
12422 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12424 2011-03-11 Richard Guenther <rguenther@suse.de>
12427 * tree.c (find_decls_types_r): Do not walk types only reachable
12428 from IDENTIFIER_NODEs.
12430 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12432 PR middle-end/48044
12433 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12434 all vnode->force_output nodes as needed.
12436 2011-03-11 Jason Merrill <jason@redhat.com>
12439 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12440 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12442 2011-03-11 Martin Jambor <mjambor@suse.cz>
12444 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12447 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12449 PR tree-optimization/48063
12450 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12451 inline functions called once if !tree_can_inline_p (node->callers).
12453 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12455 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12457 * config/score/score3.c: Delete.
12458 * config/score/score3.h: Delete.
12459 * config/score/mul-div.S: Delete.
12460 * config/score/sfp-machine.h: Add new file.
12461 * config/score/constraints.md: Add new file.
12462 * config/score/t-score-softfp: Add new file.
12463 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12464 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12465 (score7_extra_constraint): Delete.
12466 (score7_option_override): Remove unused code.
12467 * config/score/score.c: Remove score3 and score5 define and code.
12468 * config/score/score.h: Remove score3 and score5 define and code.
12469 * config/score/score.md: Remove score3 template and unusual insn.
12470 * config/score/score.opt: Remove score3 and score5 options.
12472 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12474 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12475 when _HPUX_SOURCE is defined.
12476 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12478 2011-03-10 Jason Merrill <jason@redhat.com>
12481 * stor-layout.c (layout_type): Don't set structural equality
12482 on arrays of incomplete type.
12483 * tree.c (type_hash_eq): Handle comparing them properly.
12485 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12488 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12489 result mode matches original rtl mode.
12491 2011-03-10 Nick Clifton <nickc@redhat.com>
12493 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12494 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12496 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12498 PR rtl-optimization/47866
12499 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12500 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12501 if target wasn't scalar.
12502 * function.c (assign_stack_temp_for_type): Assert that neither
12503 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12504 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12506 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12508 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12510 * config/s390/s390-protos.h (s390_label_align): New prototype.
12511 * config/s390/s390.c (s390_label_align): New function.
12512 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12514 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12517 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12518 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12519 (output_vec_const_move): Ditto.
12521 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12523 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12524 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12525 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12526 Change 'rclass' argument and result type to reg_class_t.
12527 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12529 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12531 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12532 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12533 (TARGET_MEMORY_MOVE_COST): Define.
12534 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12536 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12539 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12542 PR tree-optimization/48022
12543 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12546 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12549 * var-tracking.c (find_use_val): Return NULL for
12550 cui->sets && cui->store_p BLKmode MEMs.
12552 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12554 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12556 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12557 xstormy16_print_operand_address): Remove.
12558 * config/stormy16/stormy16.c (xstormy16_print_operand,
12559 xstormy16_print_operand_address): Make static.
12560 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12562 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12565 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12566 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12569 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12572 * cfgloopmanip.c (fix_bb_placements): Return immediately
12573 if FROM is BASE_LOOP's header.
12575 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12577 * gimplify.c (gimplify_function_tree): Fix building calls
12578 to __builtin_return_address.
12580 2011-03-07 Alan Modra <amodra@gmail.com>
12582 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12583 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12584 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12585 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12587 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12588 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12589 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12590 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12591 * config/rs6000/rs6000.c
12592 (rs6000_elf_end_indicate_exec_stack): Rename to..
12593 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12594 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12595 (rs6000_file_start): ..here.
12596 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12597 file scope variables.
12598 (call_ABI_of_interest): New function.
12599 (init_cumulative_args): Set above vars when function return value
12600 is a float, vector, or small struct.
12601 (rs6000_function_arg_advance_1): Likewise for function args.
12602 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12603 references float args.
12605 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12607 * doc/cfg.texi: Remove "See" before @ref.
12608 * doc/invoke.texi: Likewise.
12610 2011-03-05 Jason Merrill <jason@redhat.com>
12612 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12614 2011-03-05 Anthony Green <green@moxielogic.com>
12616 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12618 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12620 PR rtl-optimization/47899
12621 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12622 to flow_loop_nested_p when moving the loop upward.
12624 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12627 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12629 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12631 PR tree-optimization/47967
12632 * ipa-cp.c (build_const_val): Return NULL instead of creating
12633 VIEW_CONVERT_EXPR for mismatching sizes.
12634 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12635 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12636 give up on versioning.
12638 2011-03-05 Alan Modra <amodra@gmail.com>
12641 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12642 full cmodel medium/large lo_sum + high addresses.
12644 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12646 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12647 pool references in UNSPEC_LTREL_OFFSET.
12649 2011-03-04 Jan Hubicka <jh@suse.cz>
12652 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12653 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12654 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12656 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12657 cgraph_add_thunk): Add node pointers.
12658 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12659 associated to right node.
12660 (input_node): Update use of cgraph_same_body_alias
12661 and cgraph_add_thunk.
12663 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12665 * config/i386/i386.opt (mprefer-avx128): New flag.
12666 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12667 modes when the flag -mprefer-avx128 is on.
12669 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12671 * dwarf2out.c (compare_loc_operands): Fix address handling.
12673 2011-03-04 Alan Modra <amodra@gmail.com>
12675 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12677 2011-03-04 Richard Guenther <rguenther@suse.de>
12679 PR middle-end/47968
12680 * expmed.c (extract_bit_field_1): Prefer vector modes that
12681 vec_extract patterns can handle.
12683 2011-03-04 Richard Guenther <rguenther@suse.de>
12685 PR middle-end/47975
12686 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12688 2011-03-04 Richard Henderson <rth@redhat.com>
12690 * explow.c (emit_stack_save): Remove 'after' parameter.
12691 (emit_stack_restore): Likewise.
12692 * expr.h: Update to match.
12693 * builtins.c, calls.c, stmt.c: Likewise.
12694 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12695 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12696 * function.c (expand_function_end): Insert the emit_stack_save
12697 sequence before parm_birth_insn instead of after.
12699 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12701 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12702 (ssse3_pmaddubsw128): Ditto.
12703 (ssse3_pmaddubsw): Ditto.
12705 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12707 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12709 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12712 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12713 on TYPE_SIZE_UNIT if it is a DECL.
12716 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12717 first operand is not is_gimple_mem_ref_addr, try to fold it.
12718 If the operand still isn't is_gimple_mem_ref_addr, clear
12721 2011-03-03 Richard Guenther <rguenther@suse.de>
12723 PR middle-end/47283
12724 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12726 (refs_may_alias_p_1): For release branches return true if
12727 we are confused by our input.
12729 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12731 * config/s390/s390.c (s390_function_value): Rename to ...
12732 (s390_function_and_libcall_value): ... this.
12733 (s390_function_value): New function.
12734 (s390_libcall_value): New function.
12735 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12736 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12737 target macro definitions.
12738 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12740 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12742 * config/i386/freebsd64.h (CC1_SPEC): Define.
12743 * config/i386/linux64.h (CC1_SPEC): Define.
12744 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12746 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12748 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12750 * config/stormy16/stormy16.c: Include reload.h.
12751 (xstormy16_memory_move_cost): New function.
12752 (TARGET_MEMORY_MOVE_COST): Define.
12754 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12756 PR rtl-optimization/47925
12757 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12758 with side effects. Remove the more-specific check for volatile asms.
12760 2011-03-02 Alan Modra <amodra@gmail.com>
12763 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12764 toc relative addresses for valid offsets.
12766 2011-03-01 Richard Guenther <rguenther@suse.de>
12768 PR tree-optimization/47890
12769 * tree-vect-loop.c (get_initial_def_for_induction): Set
12770 related stmt properly.
12772 2011-03-01 Richard Guenther <rguenther@suse.de>
12775 * lto-streamer.c (lto_record_common_node): Also register
12776 the canonical type.
12778 2011-03-01 Richard Guenther <rguenther@suse.de>
12781 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12782 Do not stream DECL_ABSTRACT_ORIGIN.
12783 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12784 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12785 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12786 Do not stream DECL_ABSTRACT_ORIGIN.
12787 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12788 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12790 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12792 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12793 FUNCTION_VALUE_REGNO_P): Remove.
12794 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12795 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12796 Add 'outgoing' argument.
12797 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12799 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12800 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12802 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12805 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12806 (lookup_filename): Likewise.
12807 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12809 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12810 Jakub Jelinek <jakub@redhat.com>
12812 PR middle-end/47893
12813 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12814 (assign_stack_local_1): Change last argument type to int.
12815 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12816 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12817 don't record padding space into frame_space_list nor use those areas.
12818 (assign_stack_local): Adjust caller.
12819 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12820 of assign_stack_local, pass 0 as last argument.
12821 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12824 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12827 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12828 Use target address_mode and pointer_mode hooks instead of hardcoded
12829 Pmode and ptr_mode. Handle some simple cases of extending if
12830 POINTERS_EXTEND_UNSIGNED < 0.
12831 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12832 Call convert_debug_memory_address.
12833 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12834 convert_debug_memory_address.
12836 PR middle-end/46790
12837 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12838 * configure: Regenerated.
12839 * config.in: Regenerated.
12840 * varasm.c (default_function_section): Return NULL
12841 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12843 2011-02-28 Martin Jambor <mjambor@suse.cz>
12845 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12846 the description to match the printed values.
12848 2011-02-28 Richard Guenther <rguenther@suse.de>
12850 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12851 of the copied scope tree.
12853 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12855 * doc/extend.texi (Function Attributes): Avoid deeply (and
12856 wrongly) nested tables.
12858 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12860 PR middle-end/47903
12861 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12862 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12863 r isn't op0 nor op1.
12865 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12867 * config/avr/avr.md: Remove magic comment for emacs.
12869 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12872 * config/avr/avr.c (avr_option_override): Use error on bad options.
12873 (avr_help): New function.
12874 (TARGET_HELP): Define.
12876 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12879 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12880 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12882 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12884 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12885 (ARM Options): Ditto.
12886 (i386 and x86-64 Options): Ditto.
12887 (RX Options): Ditto.
12888 (SPARC Options): Ditto.
12890 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12892 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12893 FreeBSD 6 and later. Generally use cpu generic.
12895 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12897 * doc/cpp.texi: Update copyright years.
12899 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12902 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12904 2011-02-25 Jon Beniston <jon@beniston.com>
12907 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12908 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12909 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12910 (lm32_block_move_inline): Add type cast to remove warning.
12911 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12912 (gen_int_relational): Move declarations to start of function.
12914 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12916 PR tree-optimization/45470
12917 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12918 can throw internally only.
12919 * tree-vect-stmts.c (vectorizable_call): Likewise.
12921 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12923 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12924 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12925 * config/stormy16/stormy16-protos.h
12926 (xstormy16_preferred_reload_class): Remove.
12927 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12928 static. Change 'rclass' argument and return type to reg_class_t.
12929 (TARGET_PREFERRED_RELOAD_CLASS,
12930 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12932 2011-02-24 Richard Guenther <rguenther@suse.de>
12934 * lto-streamer-in.c (input_bb): Do not find referenced vars
12935 in debug statements.
12937 2011-02-23 Jason Merrill <jason@redhat.com>
12939 * common.opt (fabi-version): Document v5 and v6.
12941 2011-02-23 Richard Guenther <rguenther@suse.de>
12943 PR tree-optimization/47849
12944 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12946 2011-02-23 Jie Zhang <jie@codesourcery.com>
12948 * opts-common.c (decode_cmdline_option): Print empty string
12949 argument as "" in decoded->orig_option_with_args_text.
12950 * gcc.c (execute): Print empty string argument as ""
12951 in the verbose output.
12952 (do_spec_1): Keep empty string argument.
12954 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12956 * config.gcc: Declare score-* and crx-* obsolete.
12958 2011-02-23 Jie Zhang <jie@codesourcery.com>
12960 PR rtl-optimization/47763
12961 * web.c (web_main): Ignore naked clobber when replacing register.
12963 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12965 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12968 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12971 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12973 2011-02-22 Mike Stump <mikestump@comcast.net>
12975 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12977 * configure: Regenerate.
12979 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12981 PR rtl-optimization/46002
12982 * ira-color.c (update_copy_costs): Change class intersection
12983 test to reg_class_contents[] test of 'hard_regno'.
12985 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12987 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12988 than Driver option.
12989 * config/hpux11.opt (mt): Likewise.
12990 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12991 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12992 * config/vax/elf.opt (mno-asm-pic): Likewise.
12993 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12995 2011-02-21 Mike Stump <mikestump@comcast.net>
12998 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12999 tree so we can get save the type.
13000 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13001 for CFString instead of trying to use past the end of the builtins.
13002 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13003 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13004 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13005 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13006 Rename to darwin_builtin_cfstring.
13007 (darwin_init_cfstring_builtins): Return the built type.
13009 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13012 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13013 (_mm256_insert_epi64): Use _mm_insert_epi64.
13015 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13017 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13018 * config/stormy16/stormy16-protos.h
13019 (xstormy16_mode_dependent_address_p): Remove.
13020 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13021 Make static. Change return type to bool. Change argument type to
13022 const_rtx. Remove dead code.
13023 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13025 2011-02-21 Richard Guenther <rguenther@suse.de>
13028 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13029 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13030 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13032 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13033 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13035 2011-02-20 Richard Guenther <rguenther@suse.de>
13038 * tree.c (free_lang_data_in_decl): Clean builtins from
13039 the TU decl BLOCK_VARS.
13041 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13045 * haifa-sched.c (fix_tick_ready): Skip tick computation
13048 2011-02-19 Richard Guenther <rguenther@suse.de>
13051 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13052 Remove lazy BLOCK_VARS streaming.
13053 (lto_input_ts_block_tree_pointers): Likewise.
13054 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13056 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13058 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13060 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13062 * config/i386/biarch32.h, config/i386/mach.h,
13063 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13065 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13068 * config/i386/i386.md (peephole2 for shift and plus): Use
13069 operands[1] original mode in the first insn.
13071 2011-02-18 Mike Stump <mikestump@comcast.net>
13073 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13075 2011-02-18 Jan Hubicka <jh@suse.cz>
13077 PR middle-end/47788
13078 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13079 to zero when the function is not inlinable at all.
13081 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13083 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13084 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13085 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13086 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13087 * config/pa/t-pa64: Likewise.
13088 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13090 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13093 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13095 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13098 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13100 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13102 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13103 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13104 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13105 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13106 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13107 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13108 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13109 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13110 m32r_legitimate_address_p): New functions.
13111 * config/m32r/constraints.md (constraint "S"): Don't use
13112 STORE_PREINC_PREDEC_P.
13113 (constraint "U"): Don't use LOAD_POSTINC_P.
13115 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13117 PR rtl-optimization/46178
13118 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13119 compute ira_hard_regno_cover_class[].
13121 2011-02-18 Richard Guenther <rguenther@suse.de>
13124 * lto-streamer.h (lto_global_var_decls): Declare.
13125 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13126 statics for global var processing.
13128 2011-02-18 Richard Guenther <rguenther@suse.de>
13130 PR tree-optimization/47737
13131 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13132 edge dominance check.
13134 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13137 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13138 avoid invalid rtx sharing.
13140 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13142 * doc/cpp.texi (Obsolete Features): Add background on the
13143 origin of assertions.
13145 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13147 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13149 * config/darwin.c (output_objc_section_asm_op): Added support for
13151 (is_objc_metadata): New.
13152 (darwin_objc2_section): New.
13153 (darwin_objc1_section): New.
13154 (machopic_select_section): Added support for ABI v1 and v2.
13155 (darwin_emit_objc_zeroed): New.
13156 (darwin_output_aligned_bss): Detect objc metadata and treat it
13158 (darwin_asm_output_aligned_decl_common): Same.
13159 (darwin_asm_output_aligned_decl_local): Same.
13160 * config/darwin-sections.def: Updated for ABI v1 and v2.
13161 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13162 compiling Objective-C code for the NeXT runtime, default to using
13163 ABI version 0 for 32-bit, and version 2 for 64-bit.
13165 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13167 * common.opt (optimize_fast): New Variable.
13168 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13169 instead of local variable ofast.
13171 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13173 * doc/invoke.texi (fobjc-abi-version): Documented.
13174 (fobjc-nilcheck): Documented.
13175 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13178 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13181 * common.opt (export-dynamic): New Driver option.
13182 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13184 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13186 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13188 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13189 Jan Hubicka <jh@suse.cz>
13193 * cfgexpand.c (account_used_vars_for_block): Remove.
13194 (estimated_stack_frame_size): Use referenced vars.
13195 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13196 that were referenced in the original function. Test src_fn
13197 rather than cfun. Drop redundant get_var_ann.
13198 (setup_one_parameter): Drop redundant get_var_ann.
13199 (declare_return_variable): Likewise.
13200 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13201 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13202 * ipa-inline.c (compute_inline_parameters): Do not compute
13203 disregard_inline_limits here.
13204 (compute_inlinable_for_current, pass_inlinable): New.
13205 (pass_inline_parameters): Require PROP_referenced_vars.
13206 * cgraphunit.c (cgraph_process_new_functions): Don't run
13207 compute_inline_parameters explicitly unless function is in SSA form.
13208 (cgraph_analyze_function): Set .disregard_inline_limits.
13209 * tree-sra.c (convert_callers): Compute inliner parameters
13210 only for functions already in SSA form.
13212 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13214 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13215 -mlittle-endian-data.
13217 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13219 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13220 -mno-fpu, not -fpu and -no-fpu.
13221 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13222 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13224 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13227 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13228 input reload with PLUS RTX.
13230 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13232 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13233 of InverseVar(MDMX).
13235 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13237 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13240 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13242 * config/mn10300/mn10300.opt (mno-crt0): New.
13244 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13246 * config/m68k/uclinux.opt (static-libc): New Driver option.
13248 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13250 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13252 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13254 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13255 %{muser-extend-enabled}.
13257 2011-02-16 Richard Guenther <rguenther@suse.de>
13259 PR tree-optimization/47738
13260 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13261 the TODO from tree_predictive_commoning.
13263 2011-02-15 Jeff Law <law@redhat.com>
13266 2011-01-25 Jeff Law <law@redhat.com>
13268 PR rtl-optimization/37273
13269 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13270 handle them like argument loads from stack slots. Do not double
13271 count memory for memory constants and argument loads from stack slots.
13273 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13275 PR middle-end/47725
13276 * combine.c (cant_combine_insn_p): Revert the last change.
13278 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13281 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13282 mode for vector constants. Remove code that checks for TImode.
13284 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13288 * cgraph.h (compute_inline_parameters): Return void.
13289 * ipa-inline.c (compute_inline_parameters): Adjust.
13291 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13295 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13297 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13298 * ipa-inline.c (compute_inline_parameters): Adjust.
13300 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13304 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13305 Adjust all users. Pass FN to...
13306 * tree-flow-inline.h (first_referenced_var): ... this. Add
13308 * ipa-struct-reorg.c: Adjust.
13309 * tree-dfa.c: Adjust.
13310 * tree-into-ssa.c: Adjust.
13311 * tree-sra.c: Adjust.
13312 * tree-ssa-alias.c: Adjust.
13313 * tree-ssa-live.c: Adjust.
13314 * tree-ssa.c: Adjust.
13315 * tree-ssanames.c: Adjust.
13316 * tree-tailcall.c: Adjust.
13318 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13322 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13323 Adjust all callers.
13324 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13325 * tree-flow-inline.h: Adjust.
13326 * gimple-pretty-print.c: Adjust.
13327 * tree-into-ssa.c: Adjust.
13328 * tree-ssa.c: Adjust.
13329 * cfgexpand.c: Adjust.
13331 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13333 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13334 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13335 (EXTRA_CONSTRAINT): Delete.
13336 * config/iq2000/constraints.md: New file.
13337 * config/iq2000/iq2000.md: Include it.
13338 (define_insn ""): Delete.
13339 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13340 unsupported constraint letters from patterns.
13341 (call_value, call_value_internal1): Likewise.
13342 (call_value_multiple_internal1): Likewise.
13344 2011-02-15 Nick Clifton <nickc@redhat.com>
13346 * config/mn10300/mn10300.c: Include tm-constrs.h.
13347 (struct liw_data): New data structure describing an LIW candidate
13349 (extract_bundle): Use struct liw_data. Allow small integer
13350 operands for some instructions.
13351 (check_liw_constraints): Use struct liw_data. Remove swapped
13352 parameter. Add comments describing the checks. Fix bug when
13353 assigning the source of liw1 to the source of liw2.
13354 (liw_candidate): Delete. Code moved into extract_bundle.
13355 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13357 * config/mn10300/predicates.md (liw_operand): New predicate.
13358 Allows registers and small integer constants.
13359 * config/mn10300/constraints.md (O): New constraint. Accetps
13360 integers in the range -8 to +7 inclusive.
13361 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13362 for moving a small integer into a register. Give this alternative
13364 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13365 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13366 using the J,K,L and M constraints,
13367 (liw): Remove SI mode on second operands to allow for HI and QI
13369 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13372 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13374 PR middle-end/47725
13375 * combine.c (cant_combine_insn_p): Check zero/sign extended
13378 2011-02-15 Richard Guenther <rguenther@suse.de>
13380 PR tree-optimization/47743
13381 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13382 for a non-type-compatible VN lookup bail out.
13384 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13386 * config/fr30/constraints.md: New file.
13387 * config/fr30/fr30.md: Include it.
13388 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13389 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13390 (EXTRA_CONSTRAINT): Delete.
13392 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13394 * config/frv/constraints.md: New file.
13395 * config/frv/predicates.md: Include it.
13396 * config/frv/frv.c (reg_class_from_letter): Delete.
13397 (frv_option_override): Don't initialize it.
13398 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13399 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13400 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13401 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13402 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13403 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13404 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13405 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13406 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13407 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13408 (REG_CLASS_FROM_CONSTRAINT): Delete.
13410 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13412 PR middle-end/47581
13413 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13414 if frame size is 0 in a leaf function.
13416 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13419 * config/alpha/host-osf.c: New file.
13420 * config/alpha/x-osf: New file.
13421 * config.host (alpha*-dec-osf*): Use it.
13423 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13425 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13426 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13427 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13428 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13430 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13432 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13434 * config/stormy16/constraints.md: New file.
13435 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13436 Use satisfies_constraint_Q and satisfies_constraint_R.
13437 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13439 (xstormy16_legitiamte_address_p): Declare.
13440 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13441 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13442 (EXTRA_CONSTRAINT): Delete.
13443 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13445 (xstormy16_extra_constraint_p): Delete.
13447 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13449 PR tree-optimization/46494
13450 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13451 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13452 (pass_rtl_loop_done): Add TODO_verify_flow.
13453 * fwprop.c (pass_rtl_fwprop): Likewise.
13454 * modulo-sched.c (pass_sms): Likewise.
13455 * tree-ssa-dom.c (pass_dominator): Likewise.
13456 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13457 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13458 (pass_tree_loop_done): Likewise.
13459 * tree-ssa-pre.c (execute_pre): Likewise.
13460 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13461 * tree-ssa-sink.c (pass_sink_code): Likewise.
13462 * tree-vrp.c (pass_vrp): Likewise.
13464 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13466 * config/v850/constraints.md: New file.
13467 * config/v850/v850.md: Include it.
13468 * config/v850/predicates.md (reg_or_0_operand): Use
13469 satisfies_constraint_G.
13470 (special_symbolref_operand): Use satisfies_constraint_K.
13471 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13472 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13473 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13474 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13475 (EXTRA_CONSTRAINT): Delete.
13476 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13477 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13478 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13480 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13483 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13486 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13488 * config/mcore/constraints.md: New file.
13489 * config/mcore/mcore.md: Include it.
13490 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13491 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13492 (REG_CLASS_FROM_LETTER): Delete.
13493 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13494 insn_const_int_ok_for_constraint.
13495 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13496 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13497 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13498 (EXTRA_CONSTRAINT): Delete.
13500 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13503 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13504 (IS_SIGHANDLER): Define.
13505 (sparc64_is_sighandler): New function, split off from
13506 sparc64_fallback_frame_state.
13507 (sparc_is_sighandler): New function, split off from
13508 sparc_fallback_frame_state.
13509 (sparc64_fallback_frame_state): Merge with ...
13510 (sparc_fallback_frame_state): ... this into ...
13511 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13512 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13513 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13514 stack instead of hardcoded offsets.
13516 2011-02-14 Andriy Gapon <avg@freebsd.org>
13519 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13521 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13523 * configure: Regenerate.
13525 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13528 * gcc.c (asm_options): Correct spec matching --target-help.
13530 2011-02-12 Martin Jambor <mjambor@suse.cz>
13532 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13533 to gimple call error.
13535 2011-02-12 Mike Stump <mikestump@comcast.net>
13537 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13538 comments in backslash regions.
13540 2011-02-12 Mike Stump <mikestump@comcast.net>
13541 Jakub Jelinek <jakub@redhat.com>
13542 Iain Sandoe <iains@gcc.gnu.org>
13545 * dwarf2out.c (output_cfa_loc): When required, apply the
13546 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13547 (output_loc_sequence): Likewise.
13548 (output_loc_operands_raw): Likewise.
13549 (output_loc_sequence_raw): Likewise.
13550 (output_cfa_loc): Likewise.
13551 (output_loc_list): Suppress register number adjustment when
13552 calling output_loc_sequence()
13553 (output_die): Likewise.
13555 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13557 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13559 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13560 xtensa_memory_move_cost): New functions.
13561 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13563 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13566 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13567 in the current directory.
13568 * configure: Rebuilt.
13570 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13572 * config/darwin.c (darwin_override_options): Add a hunk missed
13573 from the commit of r168571. Trim comment line lengths and
13574 correct indents of the preceding block.
13576 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13578 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13581 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13583 * common.opt (nostartfiles): New Driver option.
13585 2011-02-11 Xinliang David Li <davidxl@google.com>
13587 PR tree-optimization/47707
13588 * tree-chrec.c (convert_affine_scev): Keep type precision.
13590 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13592 PR tree-optimization/47420
13593 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13595 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13597 PR rtl-optimization/47614
13598 * rtl.h (check_for_inc_dec): Declare.
13599 * dse.c (check_for_inc_dec): Externalize...
13600 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13601 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13603 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13606 * gcc.c (main): Do not compile inputs if there were errors in
13608 * opts-common.c (read_cmdline_option): Check for wrong language
13609 after other error checks.
13611 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13613 * cgraph.c: Fix comment typos.
13614 * cgraph.h: Likewise.
13615 * cgraphunit.c: Likewise.
13616 * ipa-cp.c: Likewise.
13617 * ipa-inline.c: Likewise.
13618 * ipa-prop.c: Likewise.
13619 * ipa-pure-const.c: Likewise.
13620 * ipa-ref.c: Likewise.
13621 * ipa-reference.c: Likewise.
13623 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13626 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13628 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13631 * doc/sourcebuild.texi (Require Support): Document
13632 dg-require-ascii-locale.
13634 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13636 * doc/lto.texi (Write summary): Fix missing parentheses.
13638 2011-02-10 DJ Delorie <dj@redhat.com>
13640 * config/m32c/m32c.c (m32c_option_override): Disable
13641 -fcombine-stack-adjustments until flag value tracking and compare
13642 optimization can be rewritten.
13644 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13646 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13648 (PROCESSOR_DEFAULT64): Likewise.
13650 2011-02-10 Richard Henderson <rth@redhat.com>
13652 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13653 change from 2011-02-03.
13654 * config/rx/rx.c (flags_from_code): Likewise.
13655 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13656 is valid, n/pz otherwise.
13657 (rx_select_cc_mode): Return CCmode if Y is not zero.
13659 2011-02-10 Richard Guenther <rguenther@suse.de>
13661 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13663 2011-02-10 Richard Guenther <rguenther@suse.de>
13665 PR tree-optimization/47677
13666 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13668 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13671 * combine.c (make_compound_operation): Only change shifts into
13672 multiplication for SCALAR_INT_MODE_P.
13674 2011-02-10 Jie Zhang <jie@codesourcery.com>
13678 2011-02-05 Jie Zhang <jie@codesourcery.com>
13680 * web.c (entry_register): Don't clobber the number of the
13681 first uninitialized reference in used[].
13683 2011-02-09 Richard Guenther <rguenther@suse.de>
13685 PR tree-optimization/47664
13686 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13689 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13693 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13695 (PROCESSOR_DEFAULT64): Same.
13696 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13698 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13700 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13702 2011-02-09 Martin Jambor <mjambor@suse.cz>
13704 PR middle-end/45505
13705 * tree-sra.c (struct access): New flags grp_scalar_read and
13706 grp_scalar_write. Changed description of assignment read and write
13708 (dump_access): Dump new flags, reorder all of them.
13709 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13710 to detect multiple scalar reads.
13711 (analyze_access_subtree): Use the new scalar read write flags instead
13712 of the old flags. Adjusted comments.
13714 2011-02-08 DJ Delorie <dj@redhat.com>
13717 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13720 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13722 * config/m68k/uclinux.opt: New.
13723 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13725 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13727 * config/cris/elf.opt (sim): New Driver option.
13729 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13731 * config/xtensa/elf.opt: New.
13732 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13734 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13736 * config/vax/elf.opt: New.
13737 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13739 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13741 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13743 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13745 * config/gnu-user.opt: New.
13746 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13747 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13748 *-*-uclinux*): Use gnu-user.opt.
13750 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13752 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13753 * config/i386/gnu.h (CPP_SPEC): Likewise.
13755 2011-02-08 Ian Lance Taylor <iant@google.com>
13757 * common.opt (fcx-limited-range): Add SetByCombined flag.
13758 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13759 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13760 (fassociative-math, freciprocal-math): Likewise.
13761 (funsafe-math-optimizations): Likewise.
13762 * opth-gen.awk: Handle SetByCombined.
13763 * optc-gen.awk: Likewise.
13764 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13765 (set_unsafe_math_optimizations_flags): Likewise.
13766 * doc/options.texi (Option properties): Document SetByCombined.
13768 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13770 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13771 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13772 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13773 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13774 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13776 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13778 PR tree-optimization/46834
13779 PR tree-optimization/46994
13780 PR tree-optimization/46995
13781 * graphite-sese-to-poly.c (used_outside_reduction): New.
13782 (detect_commutative_reduction): Call used_outside_reduction.
13783 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13784 translate_scalar_reduction_to_array only when at least one
13785 loop-phi/close-phi tuple has been detected.
13787 2011-02-08 Richard Guenther <rguenther@suse.de>
13789 PR middle-end/47639
13790 * tree-vect-generic.c (expand_vector_operations_1): Update
13792 (expand_vector_operations): ... not here. Cleanup EH info
13793 and the CFG if required.
13795 2011-02-08 Richard Guenther <rguenther@suse.de>
13797 PR tree-optimization/47641
13798 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13799 require type compatibility.
13801 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13803 * gimple-low.c (lower_function_body): Don't remove the location of
13804 the return statement here.
13805 (lower_gimple_return): Do it here instead but only if the return
13806 statement is actually used twice.
13808 2011-02-08 Richard Guenther <rguenther@suse.de>
13810 PR tree-optimization/47632
13811 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13812 unused up_to_stmt parameter, return whether cfg-cleanup is
13813 necessary, remove EH info properly.
13814 (forward_propagate_into_gimple_cond): Adjust caller.
13815 (forward_propagate_into_cond): Likewise.
13816 (forward_propagate_comparison): Likewise.
13817 (tree_ssa_forward_propagate_single_use_vars): Make
13818 forward_propagate_comparison case similar to the two others.
13820 2011-02-08 Nick Clifton <nickc@redhat.com>
13822 * config/mn10300/mn10300.opt (mliw): New command line option.
13823 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13824 (liw_bundling): New automaton.
13825 (liw): New attribute.
13826 (liw_op): New attribute.
13827 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13828 (movsi_internal): Add LIW attributes.
13829 (andsi3): Likewise.
13830 (iorsi3): Likewise.
13831 (xorsi3): Likewise.
13832 (addsi3): Separate register and immediate alternatives.
13833 Add LIW attributes.
13834 (subsi3): Likewise.
13836 (aslsi3): Likewise.
13837 (lshrsi3): Likewise.
13838 (ashrsi3): Likewise.
13839 (liw): New pattern.
13840 * config/mn10300/mn10300.c (liw_op_names): New
13841 (mn10300_print_operand): Handle 'W' operand descriptor.
13842 (extract_bundle): New function.
13843 (check_liw_constraints): New function.
13844 (liw_candidate): New function.
13845 (mn10300_bundle_liw): New function.
13846 (mn10300_reorg): New function.
13847 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13848 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13849 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13850 __LIW__ or __NO_LIW__.
13851 * doc/invoke.texi: Describe the -mliw command line option.
13853 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13855 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13856 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13857 pthread_mutex_unlock): Remove.
13858 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13859 * config/pa/t-pa64: Likewise.
13860 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13861 shared libc if not linking against libpthread.
13862 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13864 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13867 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13868 on 10.6 and later to ensure that we always use the unwinder from
13869 the system. Only add -no_compact_unwind when tarteting darwin
13872 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13875 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13876 (vec_interleave_lowv2sf): Ditto.
13877 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13878 (vec_extract_oddv2sf): Ditto.
13880 2011-02-07 Mike Stump <mikestump@comcast.net>
13883 Add __ieee_divdc3 entry point.
13884 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13886 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13887 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13888 * config/darwin.c (darwin_rename_builtins): Add.
13889 * config/darwin-protos.h (darwin_rename_builtins): Add.
13891 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13894 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13897 2011-02-07 Mike Stump <mikestump@comcast.net>
13899 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13901 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13904 * config/avr/libgcc.S (exit): Move .endfunc
13906 2011-02-07 Richard Guenther <rguenther@suse.de>
13908 PR tree-optimization/47615
13909 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13910 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13911 (run_scc_vn): Initialize it.
13912 (visit_reference_op_load): Use it.
13913 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13915 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13917 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13918 DImode trapping arithmetic libfuncs.
13920 2011-02-07 Richard Guenther <rguenther@suse.de>
13922 PR tree-optimization/47621
13923 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13925 (execute_update_addresses_taken): ... here. Make it more
13926 conservative in what we accept.
13928 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13930 * config/sparc/freebsd.h (ASM_SPEC): Define.
13931 * config/sparc/vxworks.h (ASM_SPEC): Define.
13933 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13935 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13937 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13939 * doc/invoke.texi: Remove reference to compiler internals from
13940 user documentation.
13942 * reg-notes.def: Remove REG_VALUE_PROFILE.
13943 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13945 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13947 PR middle-end/47610
13948 * varasm.c (default_section_type_flags): If decl is NULL,
13949 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13951 2011-02-05 Jie Zhang <jie@codesourcery.com>
13954 * web.c (entry_register): Don't clobber the number of the
13955 first uninitialized reference in used[].
13957 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13959 PR tree-optimization/46194
13960 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13961 (build_classic_dist_vector_1): Do not represent classic distance
13962 vectors when the access functions are variating in different loops.
13964 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13966 * config/mips/iris6.opt: New.
13967 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13969 2011-02-04 Richard Henderson <rth@redhat.com>
13970 Steve Ellcey <sje@cup.hp.com>
13973 * config/ia64/predicates.md (mux1_brcst_element): New.
13974 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13975 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13976 (ia64_unpack_sign): New.
13977 (ia64_expand_unpack): Rewrite using new routines.
13978 (ia64_expand_widen_sum): Ditto.
13979 (ia64_expand_dot_prod_v8qi): Ditto.
13980 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13981 routines, add endian check.
13982 (pmpy2_even): Rename from pmpy2_r, add endian check.
13983 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13984 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13985 (vec_widen_smult_hi_v4hi): Ditto.
13986 (vec_widen_umult_lo_v4hi): Ditto.
13987 (vec_widen_umult_hi_v4hi): Ditto.
13988 (mulv2si3): Change endian checks.
13989 (sdot_prodv4hi): Rewrite with new calls.
13990 (udot_prodv4hi): New.
13991 (vec_pack_ssat_v4hi): Add endian check.
13992 (vec_pack_usat_v4hi): Ditto.
13993 (vec_pack_ssat_v2si): Ditto.
13994 (max1_even): Rename from max1_r, add endian check.
13995 (max1_odd): Rename from max1_l, add endian check.
13996 (*mux1_rev): Format change.
13997 (*mux1_mix): Ditto.
13998 (*mux1_shuf): Ditto.
13999 (*mux1_alt): Ditto.
14000 (*mux1_brcst_v8qi): Use new predicate.
14001 (vec_extract_evenv8qi): Remove endian check.
14002 (vec_extract_oddv8qi): Ditto.
14003 (vec_interleave_lowv4hi): Format change.
14004 (vec_interleave_highv4hi): Ditto.
14005 (mix2_even): Rename from mix2_r, add endian check.
14006 (mix2_odd): Rename from mux2_l, add endian check.
14007 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14008 (vec_extract_evenodd_helper): Format change.
14009 (vec_extract_evenv4hi): Remove endian check.
14010 (vec_extract_oddv4hi): Remove endian check.
14011 (vec_interleave_lowv2si): Format change.
14012 (vec_interleave_highv2si): Format change.
14013 (vec_initv2si): Remove endian check.
14014 (vecinit_v2si): Add endian check.
14015 (reduc_splus_v2sf): Add endian check.
14016 (reduc_smax_v2sf): Ditto.
14017 (reduc_smin_v2sf): Ditto.
14018 (vec_initv2sf): Remove endian check.
14019 (fpack): Add endian check.
14020 (fswap): Add endian check.
14021 (vec_interleave_highv2sf): Add endian check.
14022 (vec_interleave_lowv2sf): Add endian check.
14023 (fmix_lr): Add endian check.
14024 (vec_setv2sf): Format change.
14025 (*vec_extractv2sf_0_be): Use shift to extract operand.
14026 (*vec_extractv2sf_1_be): New.
14027 (vec_pack_trunc_v4hi): Add endian check.
14028 (vec_pack_trunc_v2si): Format change.
14030 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14032 PR inline-asm/23200
14033 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14034 do bb, locus and block comparison and disallow loads if it is not set.
14035 (stmt_is_replaceable_p): New function.
14036 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14038 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14039 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14041 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14043 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14045 * config/rs6000/xilinx.opt: New.
14046 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14048 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14050 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14052 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14054 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14055 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14056 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14057 secondary_reload_info, xtensa_secondary_reload): Remove.
14058 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14059 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14060 (xtensa_preferred_reload_class): Make static. Change return and
14061 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14062 Use CONST_DOUBLE_P predicate.
14063 (xtensa_preferred_output_reload_class): New function.
14064 (xtensa_secondary_reload): Make static.
14066 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14068 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14069 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14070 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14072 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14074 PR middle-end/31490
14075 * output.h (SECTION_RELRO): Define.
14076 (SECTION_MACH_DEP): Adjust.
14077 (get_variable_section): New prototype.
14078 * varpool.c (varpool_finalize_named_section_flags): New function.
14079 (varpool_assemble_pending_decls): Call it.
14080 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14081 * cgraphunit.c (cgraph_output_in_order): Call
14082 varpool_finalize_named_section_flags.
14083 * varasm.c (get_section): Allow section flags conflicts between
14084 relro and read-only sections if the section hasn't been declared yet.
14085 Set SECTION_OVERRIDE after diagnosing section type conflict.
14086 (get_variable_section): No longer static.
14087 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14088 readonly sections that need relocations.
14089 (decl_readonly_section_1): New function.
14090 (decl_readonly_section): Use it.
14093 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14094 Steve Ellcey <sje@cup.hp.com>
14096 PR middle-end/31490
14097 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14098 if section attribute used.
14100 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14102 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14103 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14104 (darwin_init_sections): Remove assertion.
14106 2011-02-03 Nick Clifton <nickc@redhat.com>
14108 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14110 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14111 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14112 instead of "n" and "pz".
14113 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14116 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14119 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14120 fma, expand FMA_EXPR as fma{,f,l} call.
14123 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14124 copy them into a unsigned char variable and pass address of it to
14125 lto_output_data_stream.
14128 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14129 around backend_init_target and lang_dependent_init_target calls.
14130 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14131 (verify_cgraph_node): Don't call set_cfun here. Use
14132 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14133 Set error_found for incorrectly represented calls to thunks.
14135 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14138 PR rtl-optimization/43494
14139 * rtl.h (for_each_inc_dec_fn): New type.
14140 (for_each_inc_dec): Declare.
14141 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14142 (for_each_inc_dec_find_inc_dec): New fn.
14143 (for_each_inc_dec_find_mem): New fn.
14144 (for_each_inc_dec): New fn.
14145 * dse.c (struct insn_size): Remove.
14146 (replace_inc_dec, replace_inc_dec_mem): Remove.
14147 (emit_inc_dec_insn_before): New fn.
14148 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14149 (canon_address): Pass mem modes to cselib_lookup.
14150 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14151 (cselib_lookup_from_insn): Likewise.
14152 (cselib_subst_to_values): Likewise.
14153 * cselib.c (find_slot_memmode): New var.
14154 (cselib_find_slot): New fn. Use it instead of
14155 htab_find_slot_with_hash everywhere.
14156 (entry_and_rtx_equal_p): Use find_slot_memmode.
14157 (autoinc_split): New fn.
14158 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14159 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14160 Deal with autoinc. Special-case recursion into MEMs.
14161 (cselib_hash_rtx): Likewise.
14162 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14163 address and MEM modes.
14164 (cselib_subst_to_values): Add memmode, pass it on.
14166 (cselib_lookup): Add memmode argument, pass it on.
14167 (cselib_lookup_from_insn): Add memmode.
14168 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14169 (struct cselib_record_autoinc_data): New.
14170 (cselib_record_autoinc_cb): New fn.
14171 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14172 mode to cselib_lookup. Reset autoinced REGs here instead of...
14173 (cselib_process_insn): ... here.
14174 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14176 (add_uses): Likewise, also to cselib_subst_to_values.
14177 (add_stores): Likewise.
14178 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14179 cselib_subst_to_values.
14180 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14181 * gcse.c (do_local_cprop): Adjusted.
14182 * postreload.c (reload_cse_simplify_set): Adjusted.
14183 (reload_cse_simplify_operands): Adjusted.
14184 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14186 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14188 PR tree-optimization/45122
14189 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14190 unsafe assumptions when there's more than one loop exit.
14192 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14195 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14196 Document using vector double with the load/store builtins, and
14197 that the load/store builtins always use Altivec instructions.
14199 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14200 to use altivec memory instructions, even on VSX.
14201 (vector_altivec_store_<mode>): Ditto.
14203 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14206 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14207 V2DF, V2DI support to load/store overloaded builtins.
14209 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14210 altivec load/store builtins for V2DF/V2DI types.
14212 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14213 set avoid indexed addresses on power6 if -maltivec.
14214 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14215 vector_altivec_load/vector_altivec_store builtins.
14216 (altivec_expand_st_builtin): Ditto.
14217 (altivec_expand_builtin): Add VSX memory builtins.
14218 (rs6000_init_builtins): Add V2DI types to internal types.
14219 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14220 load/store builtins.
14221 (rs6000_address_for_altivec): Insure memory address is appropriate
14224 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14225 vec_vsx_ld and vec_vsx_st.
14226 (vsx_store_<mode>): Ditto.
14228 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14229 variables to hold long long types for VSX vector memory builtins.
14230 (RS6000_BTI_unsigned_long_long): Ditto.
14231 (long_long_integer_type_internal_node): Ditti.
14232 (long_long_unsigned_type_internal_node): Ditti.
14234 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14235 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14236 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14238 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14240 (vec_vsx_st): Ditto.
14242 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14244 * config/pa/pa-hpux10.opt: New.
14245 * config/hpux11.opt (pthread): New Driver option.
14246 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14247 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14249 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14251 * config/ia64/vms.opt: New.
14252 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14254 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14257 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14258 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14259 generator functions.
14260 (vsx_floatuns<VSi><mode>2): Ditto.
14261 (vsx_fix_trunc<mode><VSi>2): Ditto.
14262 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14264 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14266 * config/i386/djgpp.opt (posix): New Driver option.
14268 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14270 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14271 Move to the unsupported targets list.
14273 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14275 PR rtl-optimization/47525
14276 * df-scan.c: Update copyright years.
14277 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14278 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14280 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14282 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14283 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14284 (ASM_OUTPUT_ASCII): Remove.
14285 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14287 2011-02-02 Jeff Law <law@redhat.com>
14289 PR middle-end/47543
14290 * reload.c (find_reloads_address): Handle reg+d address where both
14291 components are invalid by reloading the entire address.
14293 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14294 Richard Guenther <rguenther@suse.de>
14296 PR tree-optimization/40979
14298 * passes.c (init_optimization_passes): After LIM call copy_prop
14299 and DCE to clean up.
14300 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14302 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14304 PR tree-optimization/47576
14305 PR tree-optimization/47555
14306 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14307 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14308 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14309 * tree-scalar-evolution.c (follow_ssa_edge): Use
14310 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14312 2011-02-02 Richard Guenther <rguenther@suse.de>
14314 PR tree-optimization/47566
14315 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14317 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14321 * tree-inline.c (declare_return_variable): Remove unused caller
14326 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14327 * cfgexpand.c (account_used_vars_for_block): Use them.
14328 * tree-nrv.c (tree_nrv): Likewise.
14329 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14330 (dump_scope_block): Likewise.
14331 (remove_unused_locals): Likewise.
14335 * tree-inline.c (declare_return_variable): Add result decl to
14336 local decls only once.
14337 * gimple-low.c (record_vars_into): Mark newly-created variables
14340 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14346 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14348 (no_real_insns_p, schedule_block, set_priorities): Drop special
14349 treatment of boundary debug insns.
14350 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14351 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14352 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14353 (BOUNDARY_DEBUG_INSN_P): Likewise.
14354 (SCHEDULE_DEBUG_INSN_P): Likewise.
14355 * sched-rgn.c (init_ready_list): Drop special treatment of
14356 boundary debug insns.
14357 * final.c (rest_of_clean_state): Clear notes' BB.
14359 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14361 * config/openbsd.opt (assert=): New Driver option.
14363 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14365 * config/i386/nto.opt: New.
14366 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14368 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14370 * config/i386/netware.opt: New.
14371 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14373 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14375 * config/interix.opt (posix): New Driver option.
14377 2011-02-01 DJ Delorie <dj@redhat.com>
14379 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14381 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14384 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14386 PR tree-optimization/47561
14387 * toplev.c (process_options): Print the Graphite flags. Add
14388 flag_loop_flatten to the list of options requiring Graphite.
14390 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14392 * config/i386/cygming.opt (posix): New Driver option.
14394 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14396 * config/arm/vxworks.opt: New.
14397 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14399 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14401 * config/alpha/elf.opt: New.
14402 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14403 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14405 2011-02-01 Richard Guenther <rguenther@suse.de>
14407 PR tree-optimization/47559
14408 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14409 store-motion on references that can throw.
14411 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14413 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14414 * tree-pass.h (TDF_CSELIB): New macro.
14415 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14416 cselib_lookup): Check for it rather than for TDF_DETAILS.
14418 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14421 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14422 is HOST_BIT_BUCKET.
14424 * opts.c (finish_options): Don't add x_aux_base_name if it is
14427 2011-02-01 Richard Guenther <rguenther@suse.de>
14429 PR tree-optimization/47555
14431 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14433 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14435 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14438 * config/lm32/t-lm32: Add multilib for all CPU options.
14440 2011-02-01 Richard Guenther <rguenther@suse.de>
14442 PR tree-optimization/47541
14443 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14444 sure to have a field at offset zero.
14446 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14448 * config/arc/arc.opt (EB, EL): New Driver options.
14450 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14452 * config/alpha/osf5.opt: New.
14453 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14455 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14457 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14459 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14461 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14462 -floop-interchange.
14463 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14464 is an alias of -floop-interchange and that it requires the
14465 Graphite infrastructure.
14466 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14467 flag_loop_interchange based on the value of flag_tree_loop_linear.
14469 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14470 Richard Guenther <rguenther@suse.de>
14472 PR tree-optimization/47538
14473 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14474 type instead of r1type, except for comparisons. For right
14475 shifts and comparisons punt if there are mismatches in
14476 sizetype vs. non-sizetype types.
14478 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14480 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14483 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14485 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14487 * configure: Regenerate.
14489 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14491 * configure.ac (gcc_cv_ld_static_option): Define.
14492 (gcc_cv_ld_dynamic_option): Define.
14493 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14495 (HAVE_LD_STATIC_DYNAMIC): Update message.
14496 (LD_STATIC_OPTION): Define.
14497 (LD_DYNAMIC_OPTION): Define.
14498 * configure: Regenerate.
14499 * config.in: Regenerate.
14500 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14501 HAVE_LD_STATIC_DYNAMIC]: Use them.
14503 2011-01-31 Nick Clifton <nickc@redhat.com>
14505 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14506 registers inside interrupt handlers if the handler is not a leaf
14509 2011-01-31 Nick Clifton <nickc@redhat.com>
14511 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14512 reg_renumber returning an INVALID_REGNUM.
14514 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14517 * doc/install.texi: Document host options discarded when cross
14518 configuring target libraries.
14520 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14523 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14526 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14528 (no_real_insns_p, schedule_block, set_priorities): Drop special
14529 treatment of boundary debug insns.
14530 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14531 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14532 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14533 (BOUNDARY_DEBUG_INSN_P): Likewise.
14534 (SCHEDULE_DEBUG_INSN_P): Likewise.
14535 * sched-rgn.c (init_ready_list): Drop special treatment of
14536 boundary debug insns.
14537 * final.c (rest_of_clean-state): Clear notes' BB.
14539 2011-01-31 Alan Modra <amodra@gmail.com>
14541 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14542 toc relative expressions as we do in print_operand_address.
14544 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14546 * doc/extend.texi: Follow spelling conventions.
14547 * doc/invoke.texi: Fix a typo.
14549 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14551 * config/hpux11.opt: New.
14552 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14553 ia64*-*-hpux*): Use hpux11.opt.
14555 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14557 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14560 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14562 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14565 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14567 * doc/install.texi (Binaries): Remove outdated reference for
14568 Motorola 68HC11/68HC12 downloads.
14570 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14572 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14575 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14578 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14581 2011-01-28 Ahmad Sharif <asharif@google.com>
14583 * value-prof.c (check_counter): Corrected error message.
14585 2011-01-29 Jie Zhang <jie@codesourcery.com>
14587 * config/arm/arm.c (arm_legitimize_reload_address): New.
14588 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14589 arm_legitimize_reload_address.
14590 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14592 2011-01-28 Ian Lance Taylor <iant@google.com>
14594 * godump.c (go_define): Ignore macros whose definitions include
14595 two adjacent operands.
14597 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14600 * varasm.c (force_const_mem): Store copy of x in desc->constant
14601 instead of x itself.
14602 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14603 itself into REG_EQUAL note.
14605 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14607 * config/freebsd.opt (posix, rdynamic): New Driver options.
14609 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14611 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14612 -Bstatic/-Bdynamic.
14613 * configure: Regenerate.
14615 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14617 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14618 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14620 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14622 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14623 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14624 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14625 (s390_preferred_reload_class): Make static. Change return and
14626 'rclass' argument type to reg_class_t.
14628 2011-01-27 Jan Hubicka <jh@suse.cz>
14630 PR middle-end/46949
14631 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14632 (process_function_and_variable_attributes): Check defined weakrefs.
14634 2011-01-27 Martin Jambor <mjambor@suse.cz>
14636 PR tree-optimization/47228
14637 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14638 build_ref_for_offset.
14640 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14642 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14644 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14646 PR rtl-optimization/46856
14647 * postreload.c (reload_combine_recognize_const_pattern): Do not
14648 separate cc0 setter and user on cc0 targets.
14650 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14653 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14654 passed a VOID_TYPE expression, immediately emit an error and
14655 return error_mark_node.
14657 2011-01-26 Jeff Law <law@redhat.com>
14659 PR rtl-optimization/47464
14660 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14661 rather than may_trap_p as needed.
14663 2011-01-26 DJ Delorie <dj@redhat.com>
14665 PR rtl-optimization/46878
14666 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14667 setter/user dependency as well.
14669 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14671 PR rtl-optimization/44469
14672 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14673 after removing trivially dead basic blocks.
14675 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14677 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14678 * config/frv/frv.h (LINK_SPEC): Likewise.
14679 * config/i386/netware.h (LINK_SPEC): Likewise.
14680 * config/m68k/linux.h (ASM_SPEC): Likewise.
14681 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14682 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14683 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14684 * config/sparc/linux.h (ASM_SPEC): Likewise.
14685 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14686 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14688 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14690 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14691 * config/frv/frv.h (ASM_SPEC): Likewise.
14692 * config/m68k/linux.h (ASM_SPEC): Likewise.
14693 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14694 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14695 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14696 * config/sparc/linux.h (ASM_SPEC): Likewise.
14697 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14698 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14700 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14702 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14703 * config/frv/frv.h (LINK_SPEC): Likewise.
14704 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14706 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14708 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14709 * config/frv/frv.h (ASM_SPEC): Likewise.
14710 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14711 * config/m68k/linux.h (ASM_SPEC): Likewise.
14712 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14713 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14714 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14715 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14716 * config/sparc/linux.h (ASM_SPEC): Likewise.
14717 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14718 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14719 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14721 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14724 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14726 (vec_extract_evenodd_help): Ditto.
14727 (vec_extract_evenv4hi): Ditto.
14728 (vec_extract_oddv4hi): Ditto.
14729 (vec_interleave_lowv2si): Ditto.
14730 (vec_interleave_highv2si): Ditto.
14731 (vec_extract_evenv2si): Ditto.
14732 (vec_extract_oddv2si: Ditto.
14733 (vec_pack_trunc_v2si): Ditto.
14735 2011-01-22 Jan Hubicka <jh@suse.cz>
14738 * cgraph.h (cgraph_local_info): New field can_change_signature.
14739 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14740 signature can change.
14741 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14743 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14744 (cgraph_function_versioning): We can not change signature of functions
14745 that don't allow that.
14746 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14747 (lto_input_node): Likewise.
14748 * ipa-inline.c (compute_inline_parameters): Compute
14749 local.can_change_signature.
14750 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14751 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14752 functions that can not change signature.
14753 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14754 init_cumulative_args): Do not use local calling conventions
14755 for functions that can not change signature.
14757 2011-01-22 Jan Hubicka <jh@suse.cz>
14759 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14761 2011-01-26 Richard Guenther <rguenther@suse.de>
14763 PR tree-optimization/47190
14764 * cgraphunit.c (process_common_attributes): New function.
14765 (process_function_and_variable_attributes): Use it.
14767 2011-01-26 Richard Guenther <rguenther@suse.de>
14770 * cgraphbuild.c (record_eh_tables): Record reference to personality
14773 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14776 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14777 non-debug insns from moving up.
14779 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14782 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14783 t-dlldir{,-x} fragment for build and add it to tmake_file.
14784 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14785 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14786 * config/i386/t-dlldir: New file.
14787 (SHLIB_DLLDIR): Define.
14788 * config/i386/t-dlldir-x: New file.
14789 (SHLIB_DLLDIR): Define.
14790 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14791 (SHLIB_INSTALL): Use it.
14793 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14796 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14797 lower bound of the allowed Thumb-2 coprocessor load/store
14798 index range to -256. Add explaining comment.
14800 2011-01-25 Ian Lance Taylor <iant@google.com>
14802 * godump.c (go_define): Improve lexing of macro expansion to only
14803 accept expressions which match Go spec.
14805 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14808 * tree.c (handle_dll_attribute): Handle it.
14809 * doc/extend.texi (@item dllexport): Mention it.
14810 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14812 2011-01-25 Ian Lance Taylor <iant@google.com>
14814 PR tree-optimization/26854
14815 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14816 (decl_jump_unsafe): Move higher in file, with no other change.
14817 (bind): Set has_jump_unsafe_decl if appropriate.
14818 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14819 (check_earlier_gotos): Likewise.
14820 (c_check_switch_jump_warnings): Likewise.
14822 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14824 * doc/invoke.texi (Warning Options): Add missing hyphen.
14825 (-fprofile-dir): Minor grammatical fixes.
14826 (-fbranch-probabilities): Likewise.
14828 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14832 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14834 (no_real_insns_p, schedule_block, set_priorities): Drop special
14835 treatment of boundary debug insns.
14836 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14837 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14838 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14839 (BOUNDARY_DEBUG_INSN_P): Likewise.
14840 (SCHEDULE_DEBUG_INSN_P): Likewise.
14841 * sched-rgn.c (init_ready_list): Drop special treatment of
14842 boundary debug insns.
14843 * final.c (rest_of_clean-state): Clear notes' BB.
14845 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14847 * Makefile.in (LAMBDA_H): Removed.
14848 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14849 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14850 lambda-trans.o, and tree-loop-linear.o.
14851 (lto-symtab.o): Remove dependence on LAMBDA_H.
14852 (tree-loop-linear.o): Remove rule.
14853 (lambda-mat.o): Same.
14854 (lambda-trans.o): Same.
14855 (lambda-code.o): Same.
14856 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14857 (tree-vect-slp.o): Same.
14858 * hwint.h (gcd): Moved here.
14859 (least_common_multiple): Same.
14860 * lambda-code.c: Removed.
14861 * lambda-mat.c: Removed.
14862 * lambda-trans.c: Removed.
14863 * lambda.h: Removed.
14864 * tree-loop-linear.c: Removed.
14865 * lto-symtab.c: Do not include lambda.h.
14866 * omega.c (gcd): Removed.
14867 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14868 * tree-data-ref.c (print_lambda_vector): Moved here.
14869 (lambda_vector_copy): Same.
14870 (lambda_matrix_copy): Same.
14871 (lambda_matrix_id): Same.
14872 (lambda_vector_first_nz): Same.
14873 (lambda_matrix_row_add): Same.
14874 (lambda_matrix_row_exchange): Same.
14875 (lambda_vector_mult_const): Same.
14876 (lambda_vector_negate): Same.
14877 (lambda_matrix_row_negate): Same.
14878 (lambda_vector_equal): Same.
14879 (lambda_matrix_right_hermite): Same.
14880 * tree-data-ref.h: Do not include lambda.h.
14881 (lambda_vector): Moved here.
14882 (lambda_matrix): Same.
14883 (dependence_level): Same.
14884 (lambda_transform_legal_p): Removed declaration.
14885 (lambda_collect_parameters): Same.
14886 (lambda_compute_access_matrices): Same.
14887 (lambda_vector_gcd): Same.
14888 (lambda_vector_new): Same.
14889 (lambda_vector_clear): Same.
14890 (lambda_vector_lexico_pos): Same.
14891 (lambda_vector_zerop): Same.
14892 (lambda_matrix_new): Same.
14893 * tree-flow.h (least_common_multiple): Removed declaration.
14894 * tree-parloops.c (lambda_trans_matrix): Moved here.
14895 (LTM_MATRIX): Same.
14896 (LTM_ROWSIZE): Same.
14897 (LTM_COLSIZE): Same.
14898 (LTM_DENOMINATOR): Same.
14899 (lambda_trans_matrix_new): Same.
14900 (lambda_matrix_vector_mult): Same.
14901 (lambda_transform_legal_p): Same.
14902 * tree-pass.h (pass_linear_transform): Removed declaration.
14903 * tree-ssa-loop.c (tree_linear_transform): Removed.
14904 (gate_tree_linear_transform): Removed.
14905 (pass_linear_transform): Removed.
14906 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14907 flag_loop_interchange.
14909 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14911 PR tree-optimization/47265
14912 PR tree-optimization/47443
14913 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14914 if name still has some uses.
14916 2011-01-25 Martin Jambor <mjambor@suse.cz>
14918 PR tree-optimization/47382
14919 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14920 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14922 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14924 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14925 sjlj_except_unwind_info.
14927 2011-01-25 Richard Guenther <rguenther@suse.de>
14929 PR tree-optimization/47426
14930 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14931 visible functions results escape.
14933 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14936 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14937 (arm_get_frame_offsets): Use it.
14939 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14940 Jakub Jelinek <jakub@redhat.com>
14942 PR tree-optimization/47271
14943 * tree-if-conv.c (bb_postdominates_preds): New.
14944 (if_convertible_bb_p): Call bb_postdominates_preds.
14945 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14946 (predicate_scalar_phi): Call bb_postdominates_preds.
14948 2011-01-25 Nick Clifton <nickc@redhat.com>
14950 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14951 * config/rx/rx.c (rx_function_value): Likewise.
14952 (rx_promote_function_mode): Likewise.
14953 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14954 in order to make it legitimate.
14955 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14956 make sure that the first operand is the same as the result register.
14957 (addsi3_unspec): Delete.
14958 (subdi3): Do not accept immediate operands.
14959 (subdi3_internal): Likewise.
14961 2011-01-25 Jeff Law <law@redhat.com>
14963 PR rtl-optimization/37273
14964 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14965 handle them like argument loads from stack slots. Do not double
14966 count memory for memory constants and argument loads from stack slots.
14968 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14970 PR tree-optimization/47427
14971 PR tree-optimization/47428
14972 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14973 coalesce if the new root var would be TREE_READONLY.
14975 2011-01-25 Richard Guenther <rguenther@suse.de>
14977 PR middle-end/47414
14978 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14979 correct type for TBAA.
14981 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14983 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14984 (close_phi_written_to_memory): Call for_each_index with
14985 dr_indices_valid_in_loop.
14987 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14989 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14990 when it is initialized.
14992 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14994 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14995 call to graphite_find_data_references_in_stmt.
14996 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14997 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14998 call to graphite_find_data_references_in_stmt.
14999 (analyze_drs_in_stmts): Same.
15000 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15001 in which the scalar analysis of indices is performed.
15002 (create_data_ref): Same. Update call to dr_analyze_indices.
15003 (find_data_references_in_stmt): Update call to create_data_ref.
15004 (graphite_find_data_references_in_stmt): Same.
15005 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15007 (create_data_ref): Same.
15008 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15009 call to create_data_ref.
15011 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15013 * graphite-sese-to-poly.c (build_poly_scop): Move
15014 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15018 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15019 VAR_DECL, PARM_DECL, and RESULT_DECL.
15021 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15023 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15024 in a reduction PBB.
15025 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15026 that have already been marked as PBB_IS_REDUCTION.
15028 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15030 * graphite-scop-detection.c (same_close_phi_node): New.
15031 (remove_duplicate_close_phi): New.
15032 (make_close_phi_nodes_unique): New.
15033 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15035 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15037 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15038 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15039 of both data references to be the same.
15041 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15043 * graphite-dependences.c (build_lexicographical_constraint): Remove
15044 the gdim parameter.
15045 (build_lexicographical_constraint): Adjust call to
15046 ppl_powerset_is_empty.
15047 (dependence_polyhedron): Same.
15048 (graphite_legal_transform_dr): Same.
15049 (graphite_carried_dependence_level_k): Same.
15050 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15052 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15054 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15056 * graphite-sese-to-poly.c
15057 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15058 (close_phi_written_to_memory): New.
15059 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15062 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15064 * doc/install.texi: Update the expected version number of PPL to 0.11.
15065 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15066 #if PPL_VERSION_MINOR < 11.
15068 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15070 * graphite-dependences.c: Include graphite-cloog-util.h.
15071 (new_poly_ddr): Inlined into dependence_polyhedron.
15072 (free_poly_ddr): Moved close by new_poly_ddr.
15073 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15074 Early return NULL when ppl_powerset_is_empty returns true.
15075 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15076 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15077 (graphite_legal_transform_dr): Call new_poly_ddr.
15078 (graphite_carried_dependence_level_k): Same.
15079 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15080 (dot_transformed_deps_stmt_1): Removed.
15081 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15082 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15083 (dot_deps_1): Call dot_deps_2.
15084 * Makefile.in (graphite-dependences.o): Add missing dependence on
15085 graphite-cloog-util.h.
15087 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15089 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15090 (build_lexicographical_constraint): Same.
15091 (dependence_polyhedron_1): Same.
15092 (graphite_legal_transform_dr): Same.
15093 (graphite_carried_dependence_level_k): Same.
15094 * graphite-ppl.c (ppl_powerset_is_empty): New.
15095 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15096 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15098 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15100 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15101 the "a followed by b" relation and document it.
15103 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15105 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15106 iteration when the bag of constraints is empty.
15108 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15110 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15112 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15114 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15115 nest and two loop depths as parameters.
15116 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15117 lst_perfect_nestify.
15119 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15121 * graphite-dependences.c (print_pddr): Call
15122 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15124 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15126 * graphite-ppl.c (debug_gmp_value): New.
15127 * graphite-ppl.h (debug_gmp_value): Declared.
15129 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15131 * doc/install.texi: Document availability of cloog-0.16.
15133 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15135 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15136 invalid postdominance info.
15138 2011-01-24 Jan Hubicka <jh@suse.cz>
15141 * doc/extend.texi (weak pragma): Drop claim that it must
15142 appear before definition.
15143 * varasm.c (merge_weak, declare_weak): Only sanity check
15144 that DECL is not output at a time it is declared weak.
15146 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15148 * machmode.def: Fixed comments.
15150 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15152 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15154 2011-01-24 Paul Koning <ni1d@arrl.net>
15156 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15159 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15162 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15163 (block_info): Add scanned and prev.
15164 (move_or_delete_vzeroupper_2): Return if the basic block
15165 has been scanned and the upper 128bit state is unchanged
15166 from the last scan.
15167 (move_or_delete_vzeroupper_1): Return true if the exit
15169 (move_or_delete_vzeroupper): Visit basic blocks using the
15170 work-list based algorithm based on vt_find_locations in
15173 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15175 2011-01-24 Nick Clifton <nickc@redhat.com>
15177 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15178 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15179 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15180 then define __v850e1__.
15181 * doc/invoke.texi: Document -mv850es.
15183 2011-01-24 Richard Henderson <rth@redhat.com>
15185 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15186 compound unordered comparisons.
15187 * config/rx/rx.c (rx_split_fp_compare): Remove.
15188 * config/rx/rx-protos.h: Update.
15189 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15190 (cbranchsf4): Don't call rx_split_fp_compare.
15191 (*cbranchsf4): Use rx_split_cbranch.
15192 (*cmpsf): Don't accept "i" constraint.
15193 (*conditional_branch): Only valid after reload.
15194 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15196 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15199 * config/rs6000/altivec.md (vector constant splitters): Add
15200 support for creating vector single precision constants if -mvsx is
15201 used and we would create the constant using Altivec primitives.
15203 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15204 Richard Sandiford <rdsandiford@googlemail.com>
15206 PR rtl-optimization/47166
15207 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15208 mechanism for PRE_MODIFY and POST_MODIFY.
15209 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15212 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15214 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15216 2011-01-22 Jan Hubicka <jh@suse.cz>
15219 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15221 2011-01-22 Jan Hubicka <jh@suse.cz>
15223 PR tree-optimization/43884
15225 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15226 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15228 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15230 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15231 * config/s390/s390.c (s390_register_move_cost,
15232 s390_memory_move_cost): New.
15233 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15235 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15237 PR middle-end/47401
15238 * except.c (sjlj_assign_call_site_values): Move setting the
15239 crtl->uses_eh_lsda flag to ...
15240 (sjlj_mark_call_sites): ... here.
15241 (sjlj_emit_function_enter): Support NULL dispatch label.
15242 (sjlj_build_landing_pads): In a function with no landing pads
15243 that still has must-not-throw regions, generate code to register
15244 a personality function with empty LSDA.
15246 2011-01-21 Richard Henderson <rth@redhat.com>
15248 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15250 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15252 * compare-elim.c: New file.
15253 * Makefile.in (OBJS-common): Add it.
15254 (compare-elim.o): New.
15255 * common.opt (fcompare-elim): New.
15256 * opts.c (default_options_table): Add OPT_fcompare_elim.
15257 * tree-pass.h (pass_compare_elim_after_reload): New.
15258 * passes.c (init_optimization_passes): Add it.
15259 * recog.h: Protect against re-inclusion.
15260 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15261 * doc/invoke.texi (-fcompare-elim): Document it.
15262 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15263 * doc/tm.texi: Rebuild.
15265 2011-01-22 Nick Clifton <nickc@redhat.com>
15267 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15268 rx_split_fp_compare.
15270 2011-01-22 Nick Clifton <nickc@redhat.com>
15272 * config/rx/rx.md (UNSPEC_CONST): New.
15273 (deallocate_and_return): Wrap the amount popped off the stack in
15274 an UNSPEC_CONST in order to stop it being rejected by
15275 -mmax-constant-size.
15276 (pop_and_return): Add a "(return)" rtx.
15277 (call): Drop the immediate operand.
15278 (call_internal): Likewise.
15279 (call_value): Likewise.
15280 (call_value_internal): Likewise.
15281 (sibcall_internal): Likewise.
15282 (sibcall_value_internal): Likewise.
15283 (sibcall): Likewise. Generate an explicit call using
15285 (sibcall_value): Likewise.
15286 (mov<>): FAIL if a constant operand is not legitimate.
15287 (addsi3_unpsec): New pattern.
15289 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15290 (ok_for_max_constant): New function.
15291 (gen_safe_add): New function.
15292 (rx_expand_prologue): Use gen_safe_add.
15293 (rx_expand_epilogue): Likewise.
15294 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15297 2011-01-21 Jeff Law <law@redhat.com>
15299 PR tree-optimization/47053
15300 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15301 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15302 statements are deleted.
15303 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15304 is nonempty, then purge dead edges and cleanup the CFG.
15306 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15309 Temporarily revert:
15310 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15312 * tree-dfa.c (create_var_ann): Mark variable as used.
15314 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15316 PR middle-end/45566
15317 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15318 notes from other section in hot/cold partitioning even if
15319 last_action is -3. Increment call_site_base.
15321 PR rtl-optimization/47366
15322 * fwprop.c (forward_propagate_into): Return bool. If
15323 any changes are made, -fnon-call-exceptions is used and
15324 REG_EH_REGION note is present, call purge_dead_edges
15325 and return true if it purged anything.
15326 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15327 any EH edges were purged.
15329 2011-01-21 Jeff Law <law@redhat.com>
15331 PR rtl-optimization/41619
15332 * caller-save.c (setup_save_areas): Break out code to determine
15333 which hard regs are live across calls by examining the reload chains
15334 so that it is always used.
15335 Eliminate code which checked REG_N_CALLS_CROSSED.
15337 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15339 PR tree-optimization/47355
15340 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15341 NOP has non-debug uses beyond PHIs in new_bb.
15343 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15346 * cfgexpand.c (account_used_vars_for_block): Only account vars
15347 that are annotated as used.
15348 (estimated_stack_frame_size): Don't set TREE_USED.
15349 * tree-dfa.c (create_var_ann): Mark variable as used.
15351 2011-01-21 Richard Guenther <rguenther@suse.de>
15353 PR middle-end/47395
15354 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15356 2011-01-21 Richard Guenther <rguenther@suse.de>
15358 PR tree-optimization/47365
15359 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15360 (vn_reference_lookup_pieces): Adjust.
15361 (vn_reference_lookup): Likewise.
15362 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15363 (vn_reference_lookup_3): Only look through kills if in
15364 VN_WALKREWRITE mode.
15365 (vn_reference_lookup_pieces): Adjust.
15366 (vn_reference_lookup): Likewise.
15367 (visit_reference_op_load): Likewise.
15368 (visit_reference_op_store): Likewise.
15369 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15370 (compute_avail): Likewise.
15371 (eliminate): Likewise.
15373 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15375 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15376 DECL_IGNORED_P non-reg vars if they are used.
15378 PR tree-optimization/47391
15379 * varpool.c (const_value_known_p): Return false if
15382 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15385 * config/i386/i386.c (ix86_local_alignment): Handle
15386 case for va_list_type_node is nil.
15387 (ix86_canonical_va_list_type): Likewise.
15389 2011-01-21 Alan Modra <amodra@gmail.com>
15391 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15392 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15394 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15396 * config/arm/arm.md (define_attr type): Rename f_load
15397 and f_store to f_fpa_load and f_fpa_store. Update.
15398 (write_conflict): Deal with rename fallout.
15399 (*push_fp_multi): Likewise.
15400 * config/arm/fpa.md (f_load): Use f_fpa_load.
15401 (f_store): Use f_fpa_store.
15402 (*movsf_fpa): Likewise.
15403 (*movdf_fpa): Likewise.
15404 (*movxf_fpa): Likewise.
15405 (*thumb2_movsf_fpa): Likewise.
15406 (*thumb2_movdf_fpa): Likewise.
15407 (*thumb2_movxf_fpa): Likewise.
15408 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15409 f_loadd and f_stored.
15410 (*thumb2_movdi_vfp): Likewise.
15411 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15412 (*thumb2_movsi_vfp): Likewise.
15413 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15414 Use f_loads instead of f_load.
15415 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15417 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15419 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15420 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15421 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15422 (xtensa_mode_dependent_address_p): New function.
15423 (constantpool_address_p): Make static. Change return type to bool.
15424 Change argument type to const_rtx. Use CONST_INT_P predicate.
15426 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15429 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15431 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15434 * cfgexpand.c (expand_debug_expr): Instead of generating
15435 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15438 2011-01-20 Richard Guenther <rguenther@suse.de>
15440 PR middle-end/47370
15441 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15442 the pointer operand of MEM_REFs.
15444 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15446 PR tree-optimization/46130
15447 * ipa-split.c (consider_split): If return_bb contains non-virtual
15448 PHIs other than for retval or if split_function would not adjust it,
15451 2011-01-20 Richard Guenther <rguenther@suse.de>
15453 PR tree-optimization/47167
15454 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15455 Revert previous change, only avoid enumeral type changes.
15457 2011-01-19 Mike Stump <mikestump@comcast.net>
15459 * doc/tm.texi.in (BRANCH_COST): Englishify.
15460 * doc/tm.texi (BRANCH_COST): Likewise.
15462 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15465 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15466 (gen_scheduled_generic_parms_dies): New functions.
15467 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15468 generation for the end of CU compilation.
15469 (dwarf2out_finish): Generate template parameters DIEs here.
15471 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15474 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15475 debug bind stmt on merge edges.
15477 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15481 * function.c (instantiate_expr): Instantiate incoming rtl of
15482 implicit arguments, and recurse on VALUE_EXPRs.
15483 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15484 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15486 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15488 * c-parser.c (c_parser_for_statement): Initialize
15489 collection_expression.
15491 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15493 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15495 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15497 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15498 (LINK_SHLIB_SPEC): Don't use %(link_path).
15499 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15501 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15503 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15504 (NO_SHARED_LIB_SUPPORT): Remove.
15505 (LINK_SHLIB_SPEC): Remove one conditional definition.
15507 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15509 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15511 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15512 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15513 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15514 %{call_shared} and conditionals on these options not being passed.
15515 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15518 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15520 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15523 * ipa-split.c: Spelling fixes.
15525 2011-01-19 Richard Henderson <rth@redhat.com>
15527 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15528 (*mulsi3): Likewise.
15530 * longlong.h [__mn10300__] (count_leading_zeros): New.
15531 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15532 [__mn10300__] (add_ssaaaa, subddmmss): New.
15533 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15534 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15536 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15538 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15540 2011-01-19 Richard Henderson <rth@redhat.com>
15542 * config/mn10300/mn10300.md (addsi3_flags): New.
15543 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15544 (subsi3_flags, subc_internal, subdi3): New.
15545 (subdi3_internal, *subdi3_degenerate): New.
15546 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15548 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15549 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15550 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15551 * config/mn10300/mn10300-protos.h: Update.
15552 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15553 (return_ret): Likewise. Rename from return_internal_regs.
15554 (return_internal): Remove.
15556 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15557 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15558 (mn10300_legitimate_constant_p): Likewise.
15559 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15560 (mn10300_frame_size): New.
15561 (mn10300_expand_prologue): Use it.
15562 (mn10300_expand_epilogue): Likewise.
15563 (mn10300_initial_offset): Likewise.
15564 * config/mn10300/mn10300-protos.h: Update.
15565 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15566 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15567 (prologue, epilogue, return_internal): Tidy output code.
15568 (mn10300_store_multiple_operation, return): Likewise.
15569 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15570 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15571 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15572 (load_pic, am33_load_pic): New.
15573 (mn10300_load_pic0, mn10300_load_pic1): New.
15575 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15576 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15577 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15578 (cc_flags_for_mode, cc_flags_for_code): New.
15579 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15580 overflow flag is not valid. Validate that the flags we need
15581 for the comparison are valid.
15582 (mn10300_output_cmp): Remove.
15583 (mn10300_output_add): New.
15584 (mn10300_select_cc_mode): Use cc_flags_for_code.
15585 (mn10300_split_cbranch): New.
15586 (mn10300_match_ccmode): New.
15587 (mn10300_split_and_operand_count): New.
15588 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15590 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15591 (addsi3): ... here. Use mn10300_output_add.
15592 (*addsi3_flags): New.
15593 (*am33_subsi3, *mn10300_subsi3): Merge...
15594 (subsi3): ... here. Use attribute isa.
15595 (*subsi3_flags): New.
15596 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15598 (*am33_andsi3, *mn10300_andsi3): Merge...
15599 (andsi3): ... here.
15600 (*andsi3_flags): New.
15601 (andsi3 splitters): New.
15602 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15603 (iorsi3): ... here.
15604 (*iorsi3_flags): New.
15605 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15606 (xorsi3): ... here.
15607 (*xorsi3_flags): New.
15608 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15609 (one_cmplsi2): ... here.
15610 (*one_cmplsi2_flags): New.
15611 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15612 instead of "dax" in constraints. Use mn10300_split_cbranch.
15613 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15614 use matching constraints to eliminate a self-comparison.
15615 (*integer_conditional_branch): Rename from integer_conditional_branch.
15616 Use int_mode_flags to match CC_REG.
15617 (*cbranchsi4_btst, *btstsi): New.
15618 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15619 mn10300_split_cbranch.
15620 (*am33_cmpsf): Rename from am33_cmpsf.
15621 (*float_conditional_branch): Rename from float_conditional_branch.
15622 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15623 (zero_extendqisi2): ... here.
15624 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15625 (zero_extendhisi2): ... here.
15626 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15627 (extendqisi2): ... here.
15628 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15629 (extendhisi2): ... here.
15630 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15631 (ashlsi3): ... here.
15632 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15633 (lshrsi3): ... here.
15634 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15635 (ashrsi3): ... here.
15636 (consecutive add peephole): Remove.
15637 * config/mn10300/predicates.md (label_ref_operand): New.
15638 (int_mode_flags): New.
15639 (CCZN_comparison_operator): New.
15641 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15642 (throughput_42_latency_43): New reservation.
15643 (mulsidi3, umulsidi3): New expanders.
15644 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15645 the MDR register to allocation; separately allocate the low and
15646 high parts of the DImode result.
15647 (umulsidi3_internal): Similarly.
15648 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15649 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15650 (udivsi3, umodsi3): Remove.
15651 (udivmodsi4, divmodsi4): New expanders.
15652 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15653 (*divmodsi4): Simiarly.
15654 (ext_internal): New.
15656 * config/mn10300/constraints.md ("z"): New constraint.
15657 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15658 (FIXED_REGISTERS): Don't fix MDR.
15659 (CALL_USED_REGSITERS): Reformat nicely.
15660 (REG_ALLOC_ORDER): Add MDR.
15661 (enum regclass): Add MDR_REGS.
15662 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15663 (IRA_COVER_CLASSES): Add MDR_REGS.
15664 (REGNO_REG_CLASS): Handle MDR_REG.
15665 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15666 (mn10300_register_move_cost): Likewise.
15667 * config/mn10300/mn10300.md (MDR_REG): New.
15668 (*movsi_internal): Handle moves to/from MDR_REGS.
15670 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15672 (mn10300_secondary_reload): Tidy combination reload classes.
15673 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15674 addresses for AM33. Allow symbolic offsets for reg+imm.
15675 (mn10300_regno_in_class_p): New.
15676 (mn10300_legitimize_reload_address): New.
15677 * config/mn10300/mn10300.h (enum reg_class): Remove
15678 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15679 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15680 SP_OR_GENERAL_REGS.
15681 (REG_CLASS_NAMES): Update to match.
15682 (REG_CLASS_CONTENTS): Likewise.
15683 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15684 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15685 (REGNO_IN_RANGE_P): Remove.
15686 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15687 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15688 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15689 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15690 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15691 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15692 (REGNO_GENERAL_P): New.
15693 (HAVE_POST_MODIFY_DISP): New.
15694 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15695 (LEGITIMIZE_RELOAD_ADDRESS): New.
15696 * config/mn10300/mn10300-protos.h: Update.
15698 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15699 DATA_REGS for AM33 stack-pointer destination.
15700 (mn10300_preferred_output_reload_class): Likewise.
15701 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15702 into a form appropriate for ...
15703 (TARGET_SECONDARY_RELOAD): New.
15704 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15705 * config/mn10300/mn10300-protos.h: Update.
15706 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15707 reload_insi; use the "A" constraint for the scratch; handle AM33
15708 moves of sp to non-address registers.
15710 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15711 (*movqi_internal): ... here.
15712 (*am33_movhi, *mn10300_movhi): Merge into...
15713 (*movhi_internal): ... here.
15714 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15715 as the source/destination of moves from/to SP.
15716 (movsf): Only allow for AM33-2.
15717 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15718 any integer constant constraint. Only allow for AM33-2. Tidy
15719 all of the alternative outputs.
15720 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15721 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15723 (udivsi3, umodsi3): New patterns for MN103 only.
15725 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15727 * doc/tm.texi.in: Spell out that a lack of register class unions
15729 * doc/tm.texi: Regenerate.
15731 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15733 PR rtl-optimization/47337
15734 * dce.c (check_argument_store): New function.
15735 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15737 PR tree-optimization/47290
15738 * tree-eh.c (infinite_empty_loop_p): New function.
15739 (cleanup_empty_eh): Use it.
15741 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15744 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15745 (a64_expand_widen_sum): Ditto.
15746 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15747 (vec_extract_evenodd_help): Ditto.
15748 (vec_extract_evenv4hi): Ditto.
15749 (vec_extract_oddv4hi): Ditto.
15750 (vec_extract_evenv2si): Ditto.
15751 (vec_extract_oddv2si): Ditto.
15752 (vec_extract_evenv2sf): Ditto.
15753 (vec_extract_oddv2sf): Ditto.
15754 (vec_pack_trunc_v4hi: Ditto.
15755 (vec_pack_trunc_v2si): Ditto.
15756 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15757 (vec_interleave_highv8qi): Ditto.
15759 (vec_extract_oddv8qi): Ditto.
15760 (vec_interleave_lowv4hi): Ditto.
15761 (vec_interleave_highv4hi): Ditto.
15762 (vec_interleave_lowv2si): Ditto.
15763 (vec_interleave_highv2si): Ditto.
15765 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15767 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15768 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15769 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15770 (pa_c_mode_for_suffix): New.
15771 (TARGET_EXPAND_BUILTIN): Define.
15772 (TARGET_C_MODE_FOR_SUFFIX): Define.
15773 (pa_builtins): Define.
15774 (pa_init_builtins): Register __float128 type and init new support
15776 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15777 * config/pa/quadlib.c (_U_Qfcopysign): New.
15779 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15781 PR middle-end/46894
15782 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15783 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15786 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15788 PR tree-optimization/47179
15789 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15790 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15792 2011-01-18 Richard Guenther <rguenther@suse.de>
15794 PR rtl-optimization/47216
15795 * emit-rtl.c: Include tree-flow.h.
15796 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15797 of replicating it with different semantics.
15798 * Makefile.in (emit-rtl.o): Adjust.
15800 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15802 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15803 (cortex_a9_dp): Handle neon types correctly.
15805 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15807 PR rtl-optimization/47299
15808 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15809 subtarget. Use normal multiplication if both operands are constants.
15810 * expmed.c (expand_widening_mult): Don't try to optimize constant
15811 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15814 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15816 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15817 spacing after 'e.g.', typos, comma, hyphenation.
15819 2011-01-17 Richard Henderson <rth@redhat.com>
15821 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15822 (rx_restricted_mem_operand): New.
15823 (rx_shift_operand): Use register_operand.
15824 (rx_source_operand, rx_compare_operand): Likewise.
15825 * config/rx/rx.md (addsi3_flags): New expander.
15826 (adddi3): Rewrite as expander.
15827 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15828 (subsi3_flags): New expander.
15829 (subdi3): Rewrite as expander.
15830 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15832 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15833 (rx_init_builtins): Remove sat builtin.
15834 (rx_expand_builtin): Likewise.
15835 * config/rx/rx.md (ssaddsi3): New.
15836 (*sat): Rename from sat. Represent the CC_REG input.
15838 * config/rx/predicates.md (rshift_operator): New.
15839 * config/rx/rx.c (rx_expand_insv): Remove.
15840 * config/rx/rx-protos.h: Update.
15841 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15842 operand to the canonical position.
15843 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15844 (*bitclr, *bitclr_in_memory): Similarly.
15845 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15846 (insv): Retain the zero_extract in the expansion.
15848 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15849 (bswaphi2, bitinvert, revw): Likewise.
15851 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15852 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15853 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15854 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15855 (bitset, bitset_in_memory): Likewise.
15856 (bitinvert, bitinvert_in_memory): Likewise.
15857 (bitclr, bitclr_in_memory): Likewise.
15858 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15859 (rx_strend, rx_cmpstrn): Likewise.
15860 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15861 (bitop peep2 patterns): Remove.
15863 * config/rx/rx.c (rx_match_ccmode): New.
15864 * config/rx/rx-protos.h: Update.
15865 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15866 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15867 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15868 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15869 (fix_truncsfsi2, floatsisf2): Likewise.
15870 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15871 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15872 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15873 (*subsi3_flags, *xorsi3_flags): New.
15875 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15877 * config/rx/rx.c (rx_print_operand): Remove workaround for
15878 unsplit comparison operations.
15880 * config/rx/rx.md (movsicc): Split after reload.
15881 (*movsicc): Merge *movsieq and *movsine via match_operator.
15882 (*stcc): New pattern.
15884 * config/rx/rx.c (rx_float_compare_mode): Remove.
15885 * config/rx/rx.h (rx_float_compare_mode): Remove.
15886 * config/rx/rx.md (cstoresi4): Split after reload.
15887 (*sccc): New pattern.
15889 * config/rx/predicates.md (label_ref_operand): New.
15890 (rx_z_comparison_operator): New.
15891 (rx_zs_comparison_operator): New.
15892 (rx_fp_comparison_operator): New.
15893 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15894 Validate that the flags are set properly for the comparison.
15895 (rx_gen_cond_branch_template): Remove.
15896 (rx_cc_modes_compatible): Remove.
15897 (mode_from_flags): New.
15898 (flags_from_code): Rename from flags_needed_for_conditional.
15899 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15900 (rx_select_cc_mode): Likewise.
15901 (rx_split_fp_compare): New.
15902 (rx_split_cbranch): New.
15903 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15904 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15905 (*cbranchsf4): Similarly.
15906 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15907 match_operator and rx_split_cbranch.
15908 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15909 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15910 (*cmpsi): Rename from cmpsi.
15911 (*tstsi): Rename from tstsi.
15912 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15913 (*conditional_branch): Rename from conditional_branch.
15914 (*reveresed_conditional_branch): Remove.
15915 (b<code>): Remove expander.
15916 * config/rx/rx-protos.h: Update.
15918 * config/rx/rx.c (rx_compare_redundant): Remove.
15919 * config/rx/rx.md (cmpsi): Don't use it.
15920 * config/rx/rx-protos.h: Update.
15922 * config/rx/rx-modes.def (CC_F): New mode.
15923 * config/rx/rx.c (rx_select_cc_mode): New.
15924 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15925 * config/rx/rx-protos.h: Update.
15927 2011-01-17 Richard Henderson <rth@redhat.com>
15929 * except.c (dump_eh_tree): Fix stray ; after for statement.
15931 2011-01-17 Richard Guenther <rguenther@suse.de>
15933 PR tree-optimization/47313
15934 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15935 handling before copying the body. Properly deal with
15936 by-reference result in SSA form.
15938 2011-01-17 Ian Lance Taylor <iant@google.com>
15941 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15942 (struct_value_alias_set): Don't define.
15943 (sparc_option_override): Don't set sparc_sr_alias_set and
15944 struct_value_alias_set.
15945 (save_or_restore_regs): Use gen_frame_mem rather than calling
15947 (sparc_struct_value_rtx): Likewise.
15949 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15952 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15953 (_mm_maskstore_pd): Likewise.
15954 (_mm_maskload_ps): Likewise.
15955 (_mm_maskstore_ps): Likewise.
15956 (_mm256_maskload_pd): Change mask to __m256i.
15957 (_mm256_maskstore_pd): Likewise.
15958 (_mm256_maskload_ps): Likewise.
15959 (_mm256_maskstore_ps): Likewise.
15961 * config/i386/i386-builtin-types.def: Updated.
15962 (ix86_expand_special_args_builtin): Likewise.
15964 * config/i386/i386.c (bdesc_special_args): Update
15965 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15966 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15967 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15968 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15970 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15971 Use <avxpermvecmode> on mask register.
15972 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15974 2011-01-17 Olivier Hainque <hainque@adacore.com>
15975 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15976 Eric Botcazou <ebotcazou@adacore.com>
15979 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15980 if <= USHRT_MAX in 32-bit mode.
15982 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15984 * doc/install.texi (Configuration, Specific): Wrap long
15985 lines in examples. Allow line wrapping in long options
15986 and URLs where beneficial for PDF output.
15988 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15990 * config/mips/mips.c (mips_classify_symbol): Don't return
15991 SYMBOL_PC_RELATIVE for nonlocal labels.
15993 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15995 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15997 2011-01-15 Jan Hubicka <jh@suse.cz>
15999 PR tree-optimization/47276
16000 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16001 declarations as needed.
16003 2011-01-15 Martin Jambor <mjambor@suse.cz>
16005 * common.opt (fdevirtualize): New flag.
16006 * doc/invoke.texi (Option Summary): Document it.
16007 * opts.c (default_options_table): Add devirtualize flag.
16008 * ipa-prop.c (detect_type_change): Return immediately if
16009 devirtualize flag is not set.
16010 (detect_type_change_ssa): Likewise.
16011 (compute_known_type_jump_func): Likewise.
16012 (ipa_analyze_virtual_call_uses): Likewise.
16014 2011-01-14 Martin Jambor <mjambor@suse.cz>
16016 PR tree-optimization/45934
16017 PR tree-optimization/46302
16018 * ipa-prop.c (type_change_info): New type.
16019 (stmt_may_be_vtbl_ptr_store): New function.
16020 (check_stmt_for_type_change): Likewise.
16021 (detect_type_change): Likewise.
16022 (detect_type_change_ssa): Likewise.
16023 (compute_complex_assign_jump_func): Check for dynamic type change.
16024 (compute_complex_ancestor_jump_func): Likewise.
16025 (compute_known_type_jump_func): Likewise.
16026 (compute_scalar_jump_functions): Likewise.
16027 (ipa_analyze_virtual_call_uses): Likewise.
16028 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16030 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16032 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16033 * config/i386/i386.opt (msse5): New Alias.
16035 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16037 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16038 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16039 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16040 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16042 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16044 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16046 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16047 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16048 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16049 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16051 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16053 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16055 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16057 2011-01-14 Mike Stump <mikestump@comcast.net>
16059 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16060 * config/fr30/fr30.md: Likweise
16061 (movsi_push): Likewise.
16062 (movsi_pop): Likewise.
16063 (enter_func): Likewise.
16064 * config/moxie/moxie.md (movsi_push): Likewise.
16065 (movsi_pop): Likewise.
16067 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16069 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16070 %{no_archive} %{exact_version}.
16071 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16072 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16073 %{no_archive} %{exact_version}.
16074 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16075 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16076 * config/mips/vxworks.h: Likewise.
16078 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16080 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16082 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16084 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16085 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16087 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16089 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16092 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16094 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16096 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16097 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16099 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16100 Don't handle -shlib.
16102 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16104 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16105 (CC1_SPEC): Don't handle -profile.
16107 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16109 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16110 * config/mips/mips.h (CC1_SPEC): Likewise.
16112 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16114 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16115 * config/mips/mips.h (CC1_SPEC): Likewise.
16117 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16119 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16120 * config/m32r/linux.h (LINK_SPEC): Likewise.
16121 * config/mips/linux.h (LINK_SPEC): Likewise.
16122 * config/mips/linux64.h (LINK_SPEC): Likewise.
16123 * config/sparc/linux.h (LINK_SPEC): Likewise.
16124 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16125 LINK_SPEC): Likewise.
16126 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16128 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16130 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16132 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16134 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16136 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16137 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16139 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16141 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16143 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16145 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16146 supports -Bstatic/-Bdynamic.
16147 * configure: Regenerate.
16149 2011-01-14 Jan Hubicka <jh@suse.cz>
16150 Jack Howarth <howarth@bromo.med.uc.edu>
16153 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16154 when checking debug_info_level. Test write_symbols instead of
16155 debug_hooks->var_location when setting flag_var_tracking_uninit.
16157 2011-01-14 Richard Guenther <rguenther@suse.de>
16159 PR tree-optimization/47179
16160 * target.def (ref_may_alias_errno): New target hook.
16161 * targhooks.h (default_ref_may_alias_errno): Declare.
16162 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16163 (default_ref_may_alias_errno): New function.
16164 * target.h (struct ao_ref_s): Declare.
16165 * tree-ssa-alias.c: Include target.h.
16166 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16167 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16168 (targhooks.o): Likewise.
16169 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16170 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16172 2011-01-14 Richard Guenther <rguenther@suse.de>
16174 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16176 2011-01-14 Richard Guenther <rguenther@suse.de>
16178 PR tree-optimization/47280
16179 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16180 return CFG changes.
16181 (tree_ssa_forward_propagate_single_use_vars): Deal with
16182 CFG changes from associate_plusminus.
16184 2011-01-14 Richard Guenther <rguenther@suse.de>
16186 PR middle-end/47281
16188 2011-01-11 Richard Guenther <rguenther@suse.de>
16190 PR tree-optimization/46076
16191 * tree-ssa.c (useless_type_conversion_p): Conversions from
16192 unprototyped to empty argument list function types are useless.
16194 2011-01-14 Richard Guenther <rguenther@suse.de>
16196 PR tree-optimization/47286
16197 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16199 2011-01-14 Martin Jambor <mjambor@suse.cz>
16201 PR middle-end/46823
16202 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16204 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16206 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16207 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16208 * config/xtensa/xtensa.c (xtensa_libcall_value,
16209 xtensa_function_value_regno_p): New functions.
16210 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16212 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16215 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16217 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16218 New function prototype.
16219 * config/i386/winnt.c (i386_pe_assemble_visibility):
16220 Warn only if attribute was specified by user.
16222 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16225 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16227 (floatunsdidf2_fcfidu): Ditto.
16229 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16231 * config/s390/s390.c (print_operand_address): Replace 'error' with
16232 'output_operand_lossage'.
16233 (print_operand): Likewise.
16235 2011-01-13 Jeff Law <law@redhat.com>
16237 PR rtl-optimization/39077
16238 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16239 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16240 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16241 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16242 * gcse.c (prune_insertions_deletions): New function.
16243 (compute_pre_data): Use it.
16245 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16248 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16250 (prune_unused_types_mark): Use it.
16252 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16254 PR rtl-optimization/45352
16255 * sel-sched.c: Update copyright years.
16256 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16257 in the advancing loop when we have issued issue_rate insns.
16259 2011-01-12 Richard Henderson <rth@redhat.com>
16261 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16262 (TARGET_MD_ASM_CLOBBERS): New.
16264 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16265 (TARGET_DELEGITIMIZE_ADDRESS): New.
16267 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16268 (clzsi2, *bsch): New patterns.
16270 * config/mn10300/mn10300.md (INT): New mode iterator.
16271 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16273 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16274 flag_split_wide_types.
16276 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16277 (mn10300_trampoline_init): Rewrite without a template, an immediate
16278 load and a direct branch.
16279 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16281 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16283 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16284 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16285 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16286 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16288 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16291 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16294 2011-01-12 Jan Hubicka <jh@suse.cz>
16297 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16298 (PLUGIN_COND_CLOSE): New macro.
16299 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16301 2011-01-12 Richard Guenther <rguenther@suse.de>
16304 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16305 register variables in a MEM_REF.
16307 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16309 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16310 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16311 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16312 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16313 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16314 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16315 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16316 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16317 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16318 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16319 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16320 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16321 * config/gnu-user.h: New. Copied from linux.h.
16322 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16323 GNU_USER_TARGET_STARTFILE_SPEC.
16324 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16325 GNU_USER_TARGET_ENDFILE_SPEC.
16326 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16327 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16328 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16329 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16330 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16331 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16332 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16333 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16334 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16335 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16336 * config/arm/linux-eabi.h (CC1_SPEC): Use
16337 GNU_USER_TARGET_CC1_SPEC.
16338 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16339 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16340 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16341 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16342 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16343 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16344 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16345 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16347 2011-01-12 Richard Guenther <rguenther@suse.de>
16350 * doc/invoke.texi (ffast-math): Document it is turned on
16353 2011-01-12 Jan Hubicka <jh@suse.cz>
16355 PR tree-optimization/47233
16356 * opts.c (common_handle_option): Disable ipa-reference with profile
16359 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16361 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16364 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16366 * c-parser.c (c_lex_one_token): Updated and reindented some
16367 comments. No changes in code.
16369 2011-01-11 Ian Lance Taylor <iant@google.com>
16371 * godump.c (go_output_var): Don't output the variable if there is
16372 already a type with the same name.
16374 2011-01-11 Ian Lance Taylor <iant@google.com>
16376 * godump.c (go_format_type): Don't generate float80.
16378 2011-01-11 Richard Henderson <rth@redhat.com>
16380 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16381 declaration. Rewrite for both speed and size.
16382 (mn10300_address_cost_1): Remove.
16383 (mn10300_register_move_cost): New.
16384 (mn10300_memory_move_cost): New.
16385 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16386 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16387 extensions, shifts, BSWAP, CLZ.
16388 (mn10300_wide_const_load_uses_clr): Remove.
16389 (TARGET_REGISTER_MOVE_COST): New.
16390 (TARGET_MEMORY_MOVE_COST): New.
16391 * config/mn10300/mn10300-protos.h: Update.
16392 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16394 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16395 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16396 * config/mn10300/mn10300-protos.h: Update.
16397 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16398 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16399 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16400 (*test_int_bitfield, *test_byte_bitfield): Remove.
16401 (*bit_test, *subreg_bit_test): Remove.
16402 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16404 * config/mn10300/constraints.md ("c"): Rename from "A".
16405 ("A", "D"): New constraint letters.
16406 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16407 (fmssf4, fnmasf4, fnmssf4): Likewise.
16409 * config/mn10300/mn10300.md (isa): New attribute.
16410 (enabled): New attribute.
16412 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16413 (abssf2, negsf2): Define only for hardware fp.
16414 (sqrtsf2): Reformat.
16415 (addsf3, subsf3, mulsf3): Merge expander and insn.
16417 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16418 (DEBUGGER_AUTO_OFFSET): Remove.
16419 (DEBUGGER_ARG_OFFSET): Remove.
16421 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16422 Emit register stores with the same offsets as the hardware.
16423 (mn10300_store_multiple_operation): Don't check that the register
16424 save offsets are monotonic.
16425 * config/mn10300/mn10300-protos.h: Update.
16427 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16429 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16430 in terms of the value on the stack, not the MDR register.
16432 2011-01-11 Jan Hubicka <jh@suse.cz>
16436 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16437 (symbol_alias_set_destroy, symbol_alias_set_contains,
16438 propagate_aliases_backward): Declare.
16439 * lto-streamer-out.c (struct sets): New sturcture.
16440 (trivally_defined_alias): New function.
16441 (output_alias_pair_p): Rewrite.
16442 (output_unreferenced_globals): Fix output of alias pairs.
16443 (produce_symtab): Likewise.
16444 * ipa.c (function_and_variable_visibility): Set weak alias destination
16446 * varasm.c (symbol_alias_set_t): Remove.
16447 (symbol_alias_set_destroy): Export.
16448 (propagate_aliases_forward, propagate_aliases_backward): New functions
16450 (compute_visible_aliases): ... this one; remove.
16451 (trivially_visible_alias): New
16452 (trivially_defined_alias): New.
16453 (remove_unreachable_alias_pairs): Rewrite.
16454 (finish_aliases_1): Reorganize code checking if alias is defined.
16455 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16458 2011-01-11 Richard Guenther <rguenther@suse.de>
16460 PR tree-optimization/46076
16461 * tree-ssa.c (useless_type_conversion_p): Conversions from
16462 unprototyped to empty argument list function types are useless.
16464 2011-01-11 Richard Guenther <rguenther@suse.de>
16466 PR middle-end/45235
16467 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16468 volatile MEMs as MEM_READONLY_P.
16470 2011-01-11 Richard Guenther <rguenther@suse.de>
16472 PR tree-optimization/47239
16473 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16475 2011-01-11 Jeff Law <law@redhat.com>
16477 PR tree-optimization/47086
16478 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16479 IVs from statements that might throw.
16481 2011-01-10 Jan Hubicka <jh@suse.cz>
16484 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16486 2011-01-10 Jan Hubicka <jh@suse.cz>
16489 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16490 when correcting profile.
16492 2011-01-10 Jan Hubicka <jh@suse.cz>
16495 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16496 DECL_FINI_PRIORITY.
16497 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16498 Restore DECL_FINI_PRIORITY.
16500 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16502 * doc/gimple.texi: Fix quoting of multi-word return values in
16503 @deftypefn statements. Ensure presence of return value. Wrap
16504 overlong @deftypefn lines.
16505 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16506 descriptions of removed functions.
16507 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16508 of multi-word return value in @deftypefn statement.
16510 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16512 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16513 (Conditional Expressions, Logical Operators)
16514 (Statement and operand traversals): Do not indent smallexample
16515 code. Fix duplicate function argument in example.
16517 2011-01-10 Jeff Law <law@redhat.com>
16519 PR tree-optimization/47141
16520 * ipa-split.c (split_function): Handle case where we are
16521 returning a value and the return block has a virtual operand phi.
16523 2011-01-10 Jan Hubicka <jh@suse.cz>
16525 PR tree-optimization/47234
16526 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16527 (pass_feedback_split_functions): Declare.
16528 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16530 * ipa-split.c (gate_split_functions): Update comments; disable
16531 split-functions for profile_arc_flag and branch_probabilities.
16532 (gate_feedback_split_functions): New function.
16533 (execute_feedback_split_functions): New function.
16534 (pass_feedback_split_functions): New global var.
16536 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16539 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16540 calling gimple_call_set_cannot_inline.
16542 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16544 * config/darwin-sections.def: Remove unused section.
16546 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16549 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16551 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16554 * c-parser.c (c_parser_declaration_or_fndef): Improved
16557 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16559 * config/i386/winnt.c (i386_pe_start_function): Make sure
16560 to switch back to function's section.
16562 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16566 * plugin.c: Move include of dlfcn.h from here...
16567 * system.h: ... to here.
16569 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16571 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16573 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16574 two extra empty pages in PDF output.
16576 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16579 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16580 for error recovery purposes behave as if it was not specified so
16581 that the default type is usd.
16583 2011-01-07 Jan Hubicka <jh@suse.cz>
16585 PR tree-optmization/46469
16586 * ipa.c (function_and_variable_visibility): Clear needed flags on
16587 nodes with external decls; handle weakrefs merging correctly.
16589 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16591 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16594 2011-01-07 Jan Hubicka <jh@suse.cz>
16596 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16597 and no longer claim that gold is required for linker plugin.
16598 * configure: Regenerate.
16599 * gcc.c (PLUGIN_COND): New macro.
16600 (LINK_COMMAND_SPEC): Use it.
16601 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16602 * config.in (HAVE_LTO_PLUGIN): New.
16603 * configure.ac (--with-lto-plugin): New parameter; autodetect
16606 2011-01-07 Jan Hubicka <jh@suse.cz>
16608 PR tree-optimization/46367
16609 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16610 when we can update original.
16611 (cgraph_mark_inline_edge): Sanity check.
16612 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16614 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16616 * config/spu/spu.h (ASM_COMMENT_START): Define.
16618 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16621 * gcc.c (%>S): New.
16622 (SWITCH_KEEP_FOR_GCC): Likewise.
16623 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16624 (do_spec_1): Handle "%>".
16626 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16628 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16631 * config/i386/i386.c (ix86_delegitimize_address): If
16632 simplify_gen_subreg fails, return orig_x.
16635 * value-prof.c (gimple_stringop_fixed_value): Handle
16636 lhs of the call properly.
16638 2011-01-07 Jan Hubicka <jh@suse.cz>
16641 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16643 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16645 * target.def (function_switched_text_sections): New hook.
16646 * doc/tm.texi: Regenerated.
16647 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16648 * final.c (default_function_switched_text_sections): New.
16649 (final_scan_insn): Call function_switched_text_sections when a
16650 mid-function section change occurs.
16651 * output.h (default_function_switched_text_sections): Declare.
16652 * config/darwin-protos.h (darwin_function_switched_text_sections):
16654 * config/darwin.c (darwin_function_switched_text_sections): New.
16655 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16657 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16659 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16660 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16661 the secondary code fragment when outputting for DWARF == 2.
16663 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16665 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16666 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16668 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16669 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16671 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16674 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16675 when it is not empty.
16677 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16680 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16681 (case ${target}): Add btver1.
16682 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16683 -march=native recognize btver1 processors.
16684 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16685 btver1 def_and_undef
16686 * config/i386/i386.c (struct processor_costs btver1_cost): New
16688 (m_BTVER1): New definition.
16689 (m_AMD_MULTIPLE): Includes m_BTVER1.
16690 (initial_ix86_tune_features): Add btver1 tune.
16691 (processor_target_table): Add btver1 entry.
16692 (static const char *const cpu_names): Add btver1 entry.
16693 (software_prefetching_beneficial_p): Add btver1.
16694 (ix86_option_override_internal): Add btver1 instruction sets.
16695 (ix86_issue_rate): Add btver1.
16696 (ix86_adjust_cost): Add btver1.
16697 * config/i386/i386.h (TARGET_BTVER1): New definition.
16698 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16699 (enum processor_type): Add PROCESSOR_BTVER1.
16700 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16702 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16705 * config/i386/i386.c (legitimize_tls_address)
16706 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16707 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16708 (tls_initial_exec_64_sun): New pattern.
16710 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16712 * doc/invoke.texi (Overall Options): Improve wording and markup
16713 of the description of -wrapper.
16715 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16717 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16718 rdynamic, threads): New Driver options.
16720 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16723 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16724 if coming from .tdata.
16725 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16727 2011-01-06 Jan Hubicka <jh@suse.cz>
16730 * collect2.c (main): Do not enable LTOmode when plugin is active.
16732 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16735 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16736 --version output if supported.
16737 * configure: Regenerate.
16739 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16741 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16744 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16747 * c-convert.c (convert): When converting a complex expression
16748 other than COMPLEX_EXPR to a different complex type, ensure
16749 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16750 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16751 when converting COMPLEX_TYPE.
16753 2011-01-06 Ira Rosen <irar@il.ibm.com>
16755 PR tree-optimization/47139
16756 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16757 only the last reduction value is used outside the loop. Update
16760 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16762 * config/rtems.opt: New.
16763 * config.gcc (*-*-rtems*): Use rtems.opt.
16765 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16767 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16768 processors do not support 3DNow instructions.
16770 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16772 * config/spu/spu.c (spu_option_override): Set parameter
16773 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16775 2011-01-05 Jan Hubicka <jh@suse.cz>
16777 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16778 at the command line.
16780 2011-01-05 Martin Jambor <mjambor@suse.cz>
16783 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16784 deltas on streamed outgoing edges.
16785 (output_node_opt_summary): Output info for outgoing edges only when
16786 the node is in new parameter set.
16787 (output_cgraph_opt_summary): New parameter set, passed to the two
16788 aforementioned functions. Update its forward declaration and its
16791 2011-01-05 Tom Tromey <tromey@redhat.com>
16793 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16794 operator to c_finish_omp_atomic.
16795 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16796 (build_unary_op): Update.
16797 (build_modify_expr): Update.
16798 (build_asm_expr): Update.
16800 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16802 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16803 newly inserted insns.
16804 (pad_bb): Likewise.
16805 (spu_emit_branch_hint): Likewise.
16806 (insert_hbrp_for_ilb_runout): Likewise.
16807 (spu_machine_dependent_reorg): Call df_finish_pass after
16808 schedule_insns returns.
16810 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16812 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16814 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16816 PR tree-optimization/47005
16817 * tree-sra.c (struct access): Add 'non_addressable' bit.
16818 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16819 (decide_one_param_reduction): Return 0 if the parameter is passed by
16820 reference and one of the accesses in the group is non_addressable.
16822 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16824 PR tree-optimization/47056
16825 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16826 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16827 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16829 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16831 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16832 initializer. Skip view conversions from aggregate types.
16834 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16837 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16839 2011-01-04 Philipp Thomas <pth@suse.de>
16841 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16844 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16846 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16847 on empty epilogue sequences.
16849 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16851 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16852 non-static): New Driver options.
16854 2011-01-04 Jie Zhang <jie@codesourcery.com>
16857 * gcc.c (default_compilers[]): Set combinable field to 0
16858 for all assembly languages.
16860 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16862 * config/mips/loongson3a.md: New file.
16863 * config/mips/mips.md: Include loongson3a.md.
16864 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16867 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16869 PR middle-end/47017
16870 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16871 instead of convert_memory_address_addr_space on the base expression.
16873 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16875 * config/spu/spu.c (spu_option_override): Update error text
16876 for bad -march= / -mtune= values.
16878 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16880 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16881 if branch-hint optimization will be performed.
16883 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16885 PR tree-optimization/47148
16886 * ipa-split.c (split_function): Convert arguments to
16887 DECL_ARG_TYPE if possible.
16889 PR tree-optimization/47155
16890 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16891 when computing uns.
16893 PR rtl-optimization/47157
16894 * combine.c (try_combine): If undobuf.other_insn becomes
16895 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16896 and set *new_direct_jump_p too.
16898 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16900 PR tree-optimization/47021
16901 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16903 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16905 * gcc.c (process_command): Update copyright notice dates.
16906 * gcov.c (print_version): Likewise.
16907 * gcov-dump.c (print_version): Likewise.
16908 * mips-tfile.c (main): Likewise.
16909 * mips-tdump.c (main): Likewise.
16911 2011-01-03 Martin Jambor <mjambor@suse.cz>
16913 PR tree-optimization/46801
16914 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16915 aggregate fields start at byte boundary instead of the bit-field flag.
16917 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16920 * gcc.c (main): Revert revision 168407.
16922 2011-01-03 Martin Jambor <mjambor@suse.cz>
16924 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16926 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16928 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16929 vector optab to expand vector/scalar shift, update gimple to vector.
16931 2011-01-03 Martin Jambor <mjambor@suse.cz>
16933 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16936 2011-01-03 Martin Jambor <mjambor@suse.cz>
16938 PR tree-optimization/46984
16939 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16941 (cgraph_create_indirect_edge): Fixed line length.
16942 (cgraph_indirect_call_info): Declare.
16943 (cgraph_make_edge_direct) Update declaration.
16944 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16945 (cgraph_create_indirect_edge): Use it.
16946 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16948 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16949 the new thunk_delta representation.
16950 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16952 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16953 (ipa_read_indirect_edge_info): Likewise.
16954 * lto-cgraph.c (output_edge_opt_summary): New function.
16955 (output_node_opt_summary): Call it on all outgoing edges.
16956 (input_edge_opt_summary): New function.
16957 (input_node_opt_summary): Call it on all outgoing edges.
16959 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16962 * gcc.c (main): Don't check have_o when settting combine_inputs.
16964 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16966 * regrename.c: Add general comment describing the pass.
16967 (struct du_head): Remove 'length' field.
16968 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16969 (regrename_optimize): Do not sort chains. Rework comments, add others.
16970 Force renaming to the preferred class (if any) in the first pass and do
16971 not consider registers that belong to it in the second pass.
16972 (create_new_chain): Do not set 'length' field.
16973 (scan_rtx_reg): Likewise.
16975 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16977 PR tree-optimization/47140
16978 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16979 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16980 to bit_value_binop.
16982 PR rtl-optimization/47028
16983 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16984 parm_birth_insn instead of at the beginning of first bb.
16986 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16988 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16989 Remove the word "see" before "@pxref".
16990 * doc/rtl.texi: Remove the word "see" before "@pxref".
16992 2011-01-01 Jan Hubicka <jh@suse.cz>
16994 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16997 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17000 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17003 Copyright (C) 2011 Free Software Foundation, Inc.
17005 Copying and distribution of this file, with or without modification,
17006 are permitted in any medium without royalty provided the copyright
17007 notice and this notice are preserved.