1 2011-06-08 Nick Clifton <nickc@redhat.com>
3 * doc/invoke.texi (ARM Options): Update description of
6 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
8 * config/i386/driver-i386.c (host_detect_local_cpu): Support
9 unknown Intel family 0x6 CPUs.
11 2011-06-08 Martin Jambor <mjambor@suse.cz>
13 * tree-sra.c (mark_rw_status): Removed.
14 (analyze_access_subtree): New parameter parent instead of
15 mark_read and mark_write, propagate from that.
17 2011-06-08 Julian Brown <julian@codesourcery.com>
19 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
20 for double-precision helper functions in hard-float mode if only
21 single-precision arithmetic is supported in hardware.
23 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
25 PR rtl-optimization/49303
26 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
27 code_motion_path_driver returned 0 or 1.
28 (sel_region_finish): Clear h_d_i_d.
30 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
32 * config/sh/sh.c (prepare_move_operands): Set pic register
33 appropriately for global and local dynamic tls models even
36 2011-06-07 Jason Merrill <jason@redhat.com>
38 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
40 2011-06-07 Xinliang David Li <davidxl@google.com>
41 * passes.c (enable_disable_pass): Handle assembler name.
42 (is_pass_explicitly_enabled_or_disabled): Ditto.
44 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
46 PR tree-optimization/48497
47 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
49 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
51 PR tree-optimization/46728
52 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
53 to use gimple_val_nonnegative_real_p.
54 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
55 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
57 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
59 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
61 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
63 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
66 2011-06-07 Richard Guenther <rguenther@suse.de>
68 * stor-layout.c (initialize_sizetypes): Initialize all
69 sizetypes based on target definitions.
70 (set_sizetype): Remove.
71 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
72 * tree.h (set_sizetype): Remove.
74 2011-06-07 Nick Clifton <nickc@redhat.com>
76 * config.gcc: Unify V850 architecture options and add support for
77 newer V850 architectures.
78 * config/v850/t-v850e: Delete.
80 2011-06-07 Richard Guenther <rguenther@suse.de>
82 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
83 Call set_sizetype from here.
85 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
87 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
88 (*maddhisi4tb, *maddhisi4tt): New define_insns.
90 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
91 Andrew Stubbs <ams@codesourcery.com>
93 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
95 * doc/md.texi (Canonicalization of Instructions): Document widening
96 multiply canonicalization.
98 2011-06-07 Jakub Jelinek <jakub@redhat.com>
100 PR gcov-profile/49299
101 * value-prof.c (gimple_ic): Don't assume icall has
104 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
106 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
108 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
109 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
110 vect_recog_pow_pattern): Likewise.
111 (vect_pattern_recog_1): Remove declaration.
112 (widened_name_p): Remove declaration. Add new argument to specify
113 whether to check that both types are either signed or unsigned.
114 (vect_recog_widen_mult_pattern): Update documentation. Handle
115 unsigned patterns and multiplication by constants.
116 (vect_pattern_recog_1): Update vect_recog_func references. Use
117 statement information from the statement returned from pattern
119 (vect_pattern_recog): Update vect_recog_func reference.
120 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
121 multiplication by a constant use the type of the other operand.
123 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
125 PR rtl-optimization/49145
126 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
128 2011-06-06 Jakub Jelinek <jakub@redhat.com>
131 * dwarf2out.c (native_encode_initializer): Decrement count in each
135 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
139 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
140 if stmt folded into nothing.
141 * tree-inline.c (fold_marked_statements): If a builtin at the
142 end of a bb folded into nothing, just update cgraph edges
144 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
145 to be NULL. Don't compute count and frequency if new_call is NULL.
147 2011-06-04 Diego Novillo <dnovillo@google.com>
149 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
150 (cgraph.o): Likewise.
151 (cgraphunit.o): Likewise.
152 * cgraphunit.c: Include lto-streamer.h
153 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
155 * lto-streamer-in.c (unpack_value_fields): Call
156 streamer_hooks.unpack_value_fields if set.
157 (lto_materialize_tree): For unhandled nodes, first try to
158 call lto_streamer_hooks.alloc_tree, if it exists.
159 (lto_input_ts_decl_common_tree_pointers): Move reading of
160 DECL_INITIAL to lto_streamer_read_tree.
161 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
162 (lto_streamer_read_tree): New.
163 (lto_reader_init): Rename from lto_init_reader.
164 Move initialization code to lto/lto.c.
165 * lto-streamer-out.c (pack_value_fields): Call
166 streamer_hooks.pack_value_fields if set.
167 (lto_output_tree_ref): For tree nodes that are not
168 normally indexable, call streamer_hooks.indexable_with_decls_p
170 (lto_output_ts_decl_common_tree_pointers): Move handling
171 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
172 lto_streamer_write_tree.
173 (lto_output_tree_header): Call streamer_hooks.is_streamable
174 instead of lto_is_streamable.
175 Call lto_streamer_hooks.output_tree_header if set.
176 (lto_write_tree): Call lto_streamer_hooks.write_tree if
178 (lto_streamer_write_tree): New.
179 (lto_output): Call lto_streamer_init directly.
180 (lto_writer_init): Remove.
181 * lto-streamer.c (streamer_hooks): New.
182 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
183 instead of lto_preload_common_nodes.
184 (lto_is_streamable): Move from lto-streamer.h
185 (lto_streamer_hooks_init): New.
186 (streamer_hooks): New.
187 (streamer_hooks_init): New.
188 * lto-streamer.h (struct output_block): Forward declare.
189 (struct lto_input_block): Likewise.
190 (struct data_in): Likewise.
191 (struct bitpack_d): Likewise.
192 (struct streamer_hooks): Declare.
193 (streamer_hooks): Declare.
194 (lto_streamer_hooks_init): Declare.
195 (lto_streamer_write_tree): Declare.
196 (lto_streamer_read_tree): Declare.
197 (streamer_hooks_init): Declare.
198 (lto_is_streamable): Move to lto-streamer.c
200 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
202 * longlong.h (smul_ppmm): The resulting register pair contains the
203 higher order word first.
205 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
207 PR tree-optimization/46728
208 * builtins.c (powi_table): Remove.
209 (powi_lookup_cost): Remove.
211 (expand_powi_1): Remove.
212 (expand_powi): Remove.
213 (expand_builtin_pow_root): Remove.
214 (expand_builtin_pow): Remove.
215 (expand_builtin_powi): Eliminate handling of constant exponent.
216 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
218 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
220 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
222 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
224 * dce.c (reset_unmarked_insns_debug_uses): New.
225 (delete_unmarked_insns): Skip debug insns.
226 (prescan_insns_for_dce): Likewise.
227 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
228 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
229 active reg can be found.
230 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
231 (convert_regs_1): Use it.
233 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
235 * tree-pretty-print.c (dump_function_header): Add flags.
236 Don't dump decl_uid with nouid.
237 * tree-pretty-print.h (dump_function_header): Adjust.
238 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
239 * passes.c (pass_init_dump_file): Pass dump_flags on.
240 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
242 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
245 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
247 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
249 PR tree-optimization/49243
250 * calls.c (setjmp_call_p): Also check if fndecl has the
251 returns_twice attribute.
253 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
255 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
258 2011-06-06 Richard Henderson <rth@redhat.com>
259 Georg-Johann Lay <avr@gjlay.de>
262 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
264 * config/avr/avr.md ("insv"): New insn expander.
265 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
266 "*insv.not.io", "*insv.reg"): New insns.
268 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
271 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
272 predicate to nonimmediate_operand from memory_operand for the
273 operand that is to be forced to memory by the expander. Lose
276 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
278 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
279 EH return when delayed branches are disabled.
281 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
283 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
284 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
286 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
287 Simplify MODE_V1DF and MODE_V2SF handling.
288 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
289 Simplify MODE_SF handling.
291 2011-06-04 Jan Hubicka <jh@suse.cz>
293 PR tree-optimization/48893
294 PR tree-optimization/49091
295 PR tree-optimization/49179
296 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
299 2011-06-04 Jan Hubicka <jh@suse.cz>
302 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
304 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
306 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
308 2011-06-04 Jakub Jelinek <jakub@redhat.com>
311 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
312 to be strictly smaller than 1 << shiftcount.
314 2011-06-04 Jan Hubicka <jh@suse.cz>
316 PR tree-optimize/48929
317 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
320 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
323 * calls.c (emit_call_1): Prefer the __builtin declaration of
326 2011-06-03 Diego Novillo <dnovillo@google.com>
328 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
329 (lto_input_tree_pointers): Likewise.
330 * lto-streamer-out.c (pack_value_fields): Likewise.
331 (lto_output_tree_pointers): Likewise.
332 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
333 and OPTIMIZATION_NODE.
335 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
337 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
338 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
339 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
340 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
341 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
342 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
343 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
344 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
345 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
346 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
347 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
348 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
349 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
350 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
351 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
352 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
353 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
354 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
355 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
356 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
357 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
358 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
359 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
360 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
361 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
362 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
363 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
364 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
365 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
366 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
367 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
368 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
369 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
370 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
371 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
372 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
373 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
374 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
375 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
376 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
377 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
378 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
379 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
380 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
381 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
382 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
383 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
384 * system.h (MD_UNWIND_SUPPORT): Poison.
385 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
386 * doc/tm.texi: Regenerate.
387 * unwind-dw2.c: Include md-unwind-support.h instead of
389 * config/ia64/unwind-ia64.c: Likewise.
390 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
392 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
394 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
396 2011-06-03 Richard Henderson <rth@redhat.com>
397 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
399 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
400 (sigill_hdlr): Correct insn, insn size.
401 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
403 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
405 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
407 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
408 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
409 * config/mips/t-iris: Remove.
410 * config/mips/t-irix6: New file.
411 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
413 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
415 * Makefile.in (LIB2ADDEHDEP): Remove.
416 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
417 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
418 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
419 * config/t-darwin (LIB2ADDEHDEP): Remove.
420 * config/t-freebsd (LIB2ADDEHDEP): Remove.
421 * config/t-linux (LIB2ADDEHDEP): Remove.
423 2011-06-03 Diego Novillo <dnovillo@google.com>
425 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
426 (lto_register_var_decl_in_symtab): Likewise.
427 (lto_register_function_decl_in_symtab): Likewise.
428 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
429 logic to uniquify_nodes.
431 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
433 * config/alpha/t-osf5: Remove.
434 * config/alpha/t-osf-pthread: Remove.
435 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
436 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
438 2011-06-03 Julian Brown <julian@codesourcery.com>
440 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
441 (strongarm1110): Use strongarm tuning.
442 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
443 * config/arm/arm.c (arm_strongarm_tune): New.
444 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
445 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
446 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
447 setting, using previous defaults or 1 for Cortex-A5.
448 (arm_option_override): Set max_insns_skipped from current tuning.
450 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
452 * doc/install.texi (Options specification): Document --with-specs.
454 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
456 * config/arm/neon.md (orndi3_neon): Actually split it.
458 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
460 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
461 * var-tracking.c (reverse_op): Limite recurse depth to 5.
463 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
466 * target.def (delay_sched2, delay_vartrack): New.
467 * doc/tm.texi.in: Update.
468 * doc/tm.texi: Rebuild.
469 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
470 * var-tracking.c (gate_handle_var_tracking): Likewise.
471 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
472 (bfin_flag_var_tracking): Drop.
473 (output_file_start): Don't save and override flag_var_tracking.
474 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
475 (bfin_reorg): Test original variables.
476 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
477 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
478 (ia64_flag_var_tracking): Drop.
479 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
480 (ia64_file_start): Don't save and override flag_var_tracking.
481 (ia64_override_options_after_change): Ditto
482 flag_schedule_insns_after_reload.
483 (ia64_reorg): Test original variables.
484 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
485 (picochip_flag_var_tracking): Drop.
486 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
487 (picochip_option_override): Don't save and override
488 flag_schedule_insns_after_reload.
489 (picochip_asm_file_start): Ditto flag_var_tracking.
490 (picochip_reorg): Test original variables.
491 * config/spu/spu.c (spu_flag_var_tracking): Drop.
492 (TARGET_DELAY_VARTRACK): Define.
493 (spu_var_tracking): New.
494 (spu_machine_dependent_reorg): Call it.
495 (asm_file_start): Don't save and override flag_var_tracking.
497 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
500 * config/sh/predicates.md (general_movsrc_operand): Return 0
501 for memory and memory subreg of which address is an invalid
502 indexed address for QI and HImode.
503 (general_movdst_operand): Likewise.
505 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
507 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
508 edges only, when there is a non-local label in the function.
509 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
511 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
513 * config/i386/constraints.md (Y3): New register constraint.
514 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
515 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
516 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
517 *sse2_interleave_lowv2df.
519 2011-06-02 Julian Brown <julian@codesourcery.com>
521 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
522 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
523 (arm_cortex_a5_tune): New.
525 2011-06-02 Julian Brown <julian@codesourcery.com>
527 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
528 * config/arm/arm.c (arm_default_branch_cost): New.
529 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
530 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
531 (arm_fa726_tune): Set branch_cost field using
532 arm_default_branch_cost.
533 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
534 current_tune structure.
535 * dojump.c (tm_p.h): Include file.
537 2011-06-02 Julian Brown <julian@codesourcery.com>
539 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
541 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
542 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
543 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
545 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
546 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
547 (arm_fa726te_tune): Add prefer_constant_pool setting.
548 (arm_v6t2_tune, arm_cortex_tune): New.
549 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
550 prefer_constant_pool setting.
552 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
554 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
556 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
557 (*movdf_internal) <case 6,7,8>: Ditto.
559 * config/i386/constraints.md (Y4): New register constraint.
560 * config/i386/sse.md (vec_set<mode>_0): Merge with
561 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
562 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
563 *vec_extractv2di_1_sse.
564 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
565 and *vec_concatv2di_rex64_sse.
567 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
570 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
571 of cgraph_local_info for null before attempting to use it.
573 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
575 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
576 (current_function_dynamic_alloc_count): Delete.
577 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
578 (expand_builtin_nonlocal_goto): Remove obsolete comment.
579 (expand_builtin_update_setjmp_buf): Remove dead code.
580 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
581 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
583 * function.c (instantiate_virtual_regs): Likewise.
584 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
585 for a block with a single abnormal incoming edge.
586 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
587 (SETJMP_VIA_SAVE_AREA): Delete.
588 * config/sparc/sparc-protos.h (load_got_register): Declare.
589 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
590 (load_got_register): Make global.
591 (sparc_frame_pointer_required): Add 'static'.
592 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
593 (sparc_builtin_setjmp_frame_value): New function.
594 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
595 (save_stack_nonlocal): New expander.
596 (restore_stack_nonlocal): Likewise.
597 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
598 (nonlocal_goto_internal): New insn.
599 (goto_handler_and_restore): Delete.
600 (builtin_setjmp_setup): Likewise.
601 (do_builtin_setjmp_setup): Likewise.
603 (builtin_setjmp_receiver): New expander.
605 2011-06-01 David Li <davidxl@google.com>
608 * tree-pretty-print.c (dump_function_header): Format cleanup.
610 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
613 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
614 needed when original operands are used for msw_skip comparison.
616 2011-06-01 Jakub Jelinek <jakub@redhat.com>
619 * var-tracking.c (add_uses, add_stores): Don't call
620 cselib_subst_to_values on ENTRY_VALUE.
622 2011-06-01 Diego Novillo <dnovillo@google.com>
624 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
625 output_record_start with LTO_null instead of output_zero.
626 (lto_output_ts_binfo_tree_pointers): Likewise.
627 (lto_output_tree): Likewise.
628 (output_eh_try_list): Likewise.
629 (output_eh_region): Likewise.
630 (output_eh_lp): Likewise.
631 (output_eh_regions): Likewise.
632 (output_bb): Likewise.
633 (output_function): Likewise.
634 (output_unreferenced_globals): Likewise.
635 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
636 instead of NUM_TREE_CODES.
637 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
638 (lto_output_int_in_range): Change << to >> when shifting VAL.
640 2011-06-01 Diego Novillo <dnovillo@google.com>
642 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
643 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
645 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
648 * optabs.h (valid_multiword_target_p): Declare.
649 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
650 doing multi-word operations.
651 * optabs.c (expand_binop): Likewise.
652 (expand_doubleword_bswap): Likewise.
653 (expand_absneg_bit): Likewise.
654 (expand_unop): Likewise.
655 (expand_copysign_bit): Likewise.
656 (multiword_target_p): New function.
658 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
660 PR rtl-optimization/48830
661 PR rtl-optimization/48808
662 PR rtl-optimization/48792
663 * reload.c (push_reload): Check contains_reg_of_mode.
664 * reload1.c (strip_paradoxical_subreg): New function.
665 (gen_reload_chain_without_interm_reg_p): Use it to handle
667 (emit_output_reload_insns, gen_reload): Likewise.
669 2011-06-01 David Li <davidxl@google.com>
671 * predict.c : Change pass name
674 * tree-profile.c: Ditto.
677 2011-06-01 David Li <davidxl@google.com>
679 * tree-pretty-print.c (dump_function_header): New function.
680 * final.c (rest_of_clean_state): Use header dumper.
681 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
682 * passes.c (pass_init_dump_file): Use header dumper.
684 2011-06-01 Jakub Jelinek <jakub@redhat.com>
686 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
687 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
688 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
690 (mem_loc_descriptor): Use them.
692 * var-tracking.c (create_entry_value): New function.
693 (vt_add_function_parameter): Use it.
695 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
697 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
698 Include <signal.h>, <ucontext.h>.
699 (sigill_caught): Define.
700 (sigill_hdlr): New function.
701 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
702 insns can be executed.
703 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
704 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
706 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
708 * config/t-slibgcc-darwin: Move to ...
709 * config/t-slibgcc-dummy: ... this. Clarify comments.
710 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
711 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
712 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
713 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
714 Remove i386/t-crtstuff from tmake_file.
715 (i[34567]86-*-solaris2*): Remove t-svr4,
716 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
718 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
719 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
720 sparc/t-crtfm from tmake_file.
721 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
722 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
724 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
725 * config/i386/t-nwld (SHLIB_LINK): Remove.
726 * config/i386/t-rtems-i386: Rename to ...
727 * config/i386/t-rtems: ... this.
728 ($(T)crti.o, $(T)crtn.o): Remove.
729 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
730 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
731 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
732 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
733 EXTRA_MULTILIB_PARTS): Remove.
734 * config/sparc/t-sol2-64: Likewise.
735 * config/sparc/t-sol2: Remove.
736 * config/sparc/t-crtin: Remove.
737 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
738 * config/i386/gmon-sol2.c: Remove.
739 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
740 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
741 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
742 * config/i386/sol2-gc1.asm: Remove.
743 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
744 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
745 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
746 * config/t-slibgcc-sld: Remove.
748 2011-06-01 Jakub Jelinek <jakub@redhat.com>
750 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
751 base_type_for_mode with op_mode instead of mode.
753 2011-06-01 Paul Brook <paul@cpodesourcery.com>
755 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
757 * config/arm/arm-tune.md: Regenerate.
758 * config/arm/arm-tables.opt: Regenerate.
759 * config/arm/arm.c (FL_DIV): Rename...
760 (FL_THUMB_DIV): ... to this.
761 (FL_ARM_DIV): Define.
762 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
763 (arm_arch_hwdiv): Remove.
764 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
765 (arm_issue_rate): Add cortexr5.
766 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
767 __ARM_ARCH_EXT_IDIV__.
768 (TARGET_IDIV): Define.
769 (arm_arch_hwdiv): Remove.
770 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
771 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
772 (divsi3, udivsi3): New patterns.
773 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
774 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
776 2011-06-01 Martin Jambor <mjambor@suse.cz>
778 * ipa-utils.c (ipa_dfs_info): New field scc_no.
779 * ipa-utils.c (searchc): Set scc_no.
781 2011-06-01 Martin Jambor <mjambor@suse.cz>
783 * ipa-utils.c (searchc_env): New field allow_overwritable.
784 (searchc): do not ignore edges to overwritable nodes if indicated
785 by env->allow_overwritable.
786 (ipa_reduced_postorder): Set env.allow_overwritable.
788 2011-06-01 Richard Guenther <rguenther@suse.de>
790 * tree.c (free_lang_data): Do not reset boolean_type_node nor
792 * lto-streamer.c (lto_record_common_node): Take node pointer,
793 do not register types.
794 (lto_preload_common_nodes): Explicitly skip preloading nodes
795 that differ between frontends.
797 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
799 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
802 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
804 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
805 parameter value for dump. Dump cost on outermost call only.
806 (rs6000_memory_move_cost): Dump cost on outermost call only.
808 2011-05-31 Jakub Jelinek <jakub@redhat.com>
810 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
811 DW_OP_GNU_convert ops.
813 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
814 cselib_preserve_constants.
815 (cselib_lookup_1): If cselib_preserve_constants,
816 a new VALUE is being created for REG and there is a VALUE for the
817 same register in wider mode, add another loc with lowpart SUBREG of
819 (cselib_subst_to_values): Handle ENTRY_VALUE.
820 * var-tracking.c (replace_expr_with_values): Return NULL for
822 * dwarf2out.c (convert_descriptor_to_signed): New function.
823 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
824 instead of two shifts.
825 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
826 the right mode if needed.
827 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
828 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
829 convert_descriptor_to_signed.
830 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
831 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
834 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
836 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
838 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
839 of X87MODEI12 and SWI48x instead of SSEMODEI24.
840 (SWI248x): New mode iterator, rename from X87MODEI.
841 (X87MODEI): Remove mode iterator.
845 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
847 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
848 * doc/invoke.texi: Document max-vartrack-expr-depth.
849 * var-tracking.c (EXPR_DEPTH): New.
850 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
852 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
854 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
855 * config/i386/sse.md: Add n to negated FMA pattern names.
857 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
859 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
861 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
863 * gengtype-state.c (read_state_params_structs): Initialize previous.
865 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
867 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
868 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
870 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
872 * config/i386/i386.md (*movtf_internal): Avoid allocating general
873 registers. Penalize F*r->o alternative to prevent partial memory
874 stalls. Slightly penalize *roF->*r alternative. Generate SSE
875 CONST_DOUBLE immediates when optimizing function for size. Do not move
876 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
877 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
878 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
879 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
881 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
883 (fp_register_operand splitters): Use fp_register_operand
884 constraint. Do not use FP_REG_P in insn condition.
885 (any_fp_register_operand splitters): Use any_fp_register_operand
886 constraint. Do not use ANY_FP_REG_P in insn condition.
888 2011-05-31 Jan Hubicka <jh@suse.cz>
890 * cgraph.h (cgraph_inline_failed_t): Give enum a name
891 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
892 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
893 (lto_output_edge): Use output_enum and var_len_unsigned.
894 (lto_output_varpool_node): Likewise.
895 (input_overwrite_node): Do not take resolution parameter;
896 extract it from a bitpack.
897 (input_node): Do not read resolution; use input_enum and
899 (input_varpool_node): Likewise.
900 (input_edge): Likewise.
901 (input_cgraph_1): Likewise.
903 2011-05-31 Richard Guenther <rguenther@suse.de>
905 * gimple.c (gimple_register_canonical_type): Do not register
906 any types via gimple_register_type.
908 2011-05-31 Jan Hubicka <jh@suse.cz>
910 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
913 2011-05-31 Jakub Jelinek <jakub@redhat.com>
915 PR rtl-optimization/49235
916 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
917 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
919 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
921 PR tree-optimization/49093
922 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
925 2011-05-31 Dodji Seketeli <dodji@redhat.com>
928 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
929 for concrete functions containing the code of cloned functions.
931 2011-05-31 Richard Guenther <rguenther@suse.de>
933 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
935 (forward_propagate_into_comparison_1): ... this.
936 (forward_propagate_comparison): Rename to ...
937 (forward_propagate_into_comparison): ... this. Split out
938 real forward propagation code to ...
939 (forward_propagate_comparison): ... this.
940 (forward_propagate_into_gimple_cond): Remove looping.
941 (forward_propagate_into_cond): Likewise.
942 (simplify_not_neg_expr): Return whether we have done something.
943 (simplify_gimple_switch): Likewise.
944 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
945 (ssa_forward_propagate_and_combine): ... this. Re-structure
946 to do a forward forward-propagation walk on BBs and a backward
947 stmt combining walk on BBs. Consistently re-scan changed statements.
948 (pass_forwprop): Adjust.
950 2011-05-30 Ian Lance Taylor <iant@google.com>
952 * godump.c (go_format_type): Correct length of name added to
953 obstack for anonymous field.
955 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
958 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
959 part of the second operand is 0.
961 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
963 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
964 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
965 to memory for !TARGET_MEMORY_MISMATCH_STALL.
966 (*movdf_internal_rex64): Do not penalize F->r alternative.
967 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
968 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
969 when optimizing function for size. Do not move CONST_DOUBLEs
970 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
971 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
972 SUBREGs. Do not check for MEM_P operands in the insn condition,
973 check for ANY_FP_REGNO_P instead.
974 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
975 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
977 * config/i386/i386.c (ix86_option_override_internal): Do not
978 set TARGET_INTEGER_DFMODE_MOVES here.
980 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
983 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
985 2011-05-30 Jakub Jelinek <jakub@redhat.com>
987 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
988 DW_TAG_rvalue_reference_type even for
989 -gdwarf-4 -fno-debug-types-section.
991 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
993 PR tree-optimization/46728
994 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
995 (build_and_insert_binop): New.
996 (gimple_expand_builtin_pow): Reorder args for
997 build_and_insert_call; use build_and_insert_binop; add more
998 optimizations for fractional exponents.
1000 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1005 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1007 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1009 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1010 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1011 TS_BASE instead of TS_COMMON.
1012 * varasm.c (assemble_name): Remove assert.
1014 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1016 * config.gcc: Keep obselete list sorted.
1018 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1019 Eric Botcazou <ebotcazou@adacore.com>
1021 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1022 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1023 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1024 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1025 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1027 2011-05-30 Richard Guenther <rguenther@suse.de>
1029 * gimple.c (gimple_types_compatible_p_1): Compare record
1030 and union type members properly.
1032 2011-05-30 Richard Guenther <rguenther@suse.de>
1034 PR tree-optimization/49210
1035 * ipa-split.c (split_function): Care for the case where the call
1036 result is not trivially convertible to the result holding variable.
1038 2011-05-30 Richard Guenther <rguenther@suse.de>
1040 PR tree-optimization/49218
1041 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1044 2011-05-30 Richard Guenther <rguenther@suse.de>
1046 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1047 New function split out from ...
1048 (forward_propagate_into_gimple_cond): ... here. Adjust.
1049 (forward_propagate_into_cond): Likewise.
1050 (forward_propagate_comparison): Also propagate into
1051 comparisons on assignment RHS. Change return value to
1052 behave similar to forward_propagate_into_cond.
1053 (tree_ssa_forward_propagate_single_use_vars): Handle
1054 strict-overflow warnings properly for forward_propagate_comparison.
1056 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1058 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1060 * configure: Regenerate.
1062 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1064 PR tree-optimization/49199
1065 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1066 non-reduction operands are either defined in the loop or by induction.
1068 2011-05-29 Xinliang David Li <davidxl@google.com>
1070 * opts-global.c (handle_common_deferred_options): Handle new options.
1071 * passes.c (register_one_dump_file): Call register_pass_name.
1072 (execute_one_pass): Check explicit enable/disable flag.
1073 (passr_hash): New function.
1075 (register_pass_name): Ditto.
1076 (get_pass_by_name): Ditto.
1079 (enable_pass): Ditto.
1080 (disable_pass): Ditto.
1081 (is_pass_explicitly_enabled_or_disabled): Ditto.
1083 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1085 * config/i386/i386.md (*movoi_internal_avx): Use
1086 standard_sse_constant_opcode for alternative 0.
1087 (*movti_internal_sse): Ditto.
1088 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1090 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1092 (*movsi_internal): Ditto.
1093 (*movdi_internal): Ditto. Add ssecvt type moves.
1095 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1098 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1100 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1102 PR rtl-optimization/49095
1103 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1104 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1106 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1109 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1110 recurse_p argument. Only follow register copies if it is set,
1111 and prevent mips_find_pic_call_symbol from recursing.
1112 (mips_find_pic_call_symbol): Add a recurse_p argument.
1113 Pass it to mips_pic_call_symbol_from_set.
1114 (mips_annotate_pic_calls): Update accordingly.
1116 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1118 * emit-rtl.c (try_split): Use a loop to search for
1119 NOTE_INSN_CALL_ARG_LOCATIONs.
1121 2011-05-29 Richard Guenther <rguenther@suse.de>
1123 PR tree-optimization/49217
1124 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1126 2011-05-28 Jan Hubicka <jh@suse.cz>
1128 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1130 (string_slot_free): Remove
1131 (create_output_block): Initialize obstack.
1132 (destroy_output_block): Free obstack.
1133 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1134 the string unless it needs to be added into the hash.
1135 (lto_output_string_with_length): Add persistent attribute;
1136 handle NULL strings.
1137 (lto_output_string): Add PERSISTENT parameter.
1138 (output_string_cst, output_identifier): Simplify.
1139 (lto_output_location_bitpack): Update.
1140 (lto_output_builtin_tree): Update.
1141 * lto-streamer.h (struct output_block): Add obstack.
1142 (lto_output_string, lto_output_string_with_length): Remove
1143 declarations; functions are static now.
1145 2011-05-28 Jan Hubicka <jh@suse.cz>
1147 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1148 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1149 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1150 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1151 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1152 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1153 unpack_ts_decl_with_vis_value_fields,
1154 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1155 lto_get_builtin_tree): Use enum and variable length i/o.
1156 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1157 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1159 (bp_pack_enum, bp_unpack_enum): New macros.
1161 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1163 * genrecog.c: Remove redundant forward declarations.
1165 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1167 * config.gcc: Deprecate mips*-*-openbsd*.
1169 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1172 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1175 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1178 * gengtype.c (vec_prefix_type): New function.
1179 (note_def_vec): Use vec_prefix_type and change the length
1180 attribute to be based on the prefix.
1181 * vec.c: Include coretypes.h before vec.h.
1182 (struct vec_prefix): Remove.
1183 (vec_gc_p_reserve): Change the offsetof to sizeof.
1184 (vec_gc_p_reserve_exact): Likewise.
1185 (vec_heap_p_reserve): Likewise.
1186 (vec_heap_p_reserve_exact): Likewise.
1187 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1188 (vec_stack_p_reserve): Change the offsetof to sizeof.
1189 (vec_stack_p_reserve_exact): Likewise.
1190 * vec.h (struct vec_prefix): New struct definition.
1191 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1192 (VEC_T_GTY(T,B)): Likewise.
1193 (DEF_VEC_FUNC_P(T)): Use prefix field.
1194 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1195 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1197 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1199 PR tree-optimization/46728
1200 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1201 (powi_as_mults): Add gimple_set_location.
1202 (build_and_insert_call): New.
1203 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1204 0.5, 0.25, 0.75, 1./3., or 1./6.
1206 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1208 * doc/contrib.texi: Update copyright years.
1209 (Contributors): Add Zdenek Sojka.
1211 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1213 * c-decl.c (c_push_function_context): Copy the current statement
1215 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1216 (finish_struct): Call building_stmt_list_p instead of checking
1218 * c-parser.c (c_parser_postfix_expression): Likewise.
1219 * c-typeck.c (c_end_compound_stmt): Likewise.
1220 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1221 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1222 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1223 (free_stmt_list): Likewise.
1224 * tree.h (struct tree_statement_list): Include typed_tree instead
1226 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1227 as TS_TYPED instead of TS_COMMON.
1229 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1230 Uros Bizjak <ubizjak@gmail.com>
1232 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1233 (HAVE_AS_IX86_TLSGDPTL): Define.
1234 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1235 (HAVE_AS_IX86_TLSLDMPLT): Define.
1236 * configure: Regenerate.
1237 * config.in: Regenerate.
1238 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1239 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1240 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1241 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1242 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1244 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1246 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1248 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1250 (INSN_COND, INSN_REVERSE_COND): New macros.
1251 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1253 (sched_get_condition_with_rev): Cache the results, and look them up
1255 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1256 are clobbered by the current insn.
1257 * target.def (exposed_pipline): New sched data hook.
1258 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1259 * doc/tm.texi: Regenerate.
1261 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1263 PR tree-optimization/49170
1264 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1267 2011-05-27 Richard Guenther <rguenther@suse.de>
1270 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1273 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1275 * haifa-sched.c (sched_scan_info): Remove.
1276 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1278 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1280 (sched_scan): Remove.
1281 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1282 static. All callers changed.
1283 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1284 static. All callers changed.
1285 (sched_init_luids): Remove all arguments except the first. All
1286 callers changed. Don't use sched_scan.
1287 (haifa_init_h_i_d): Likewise.
1288 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1289 manually rather than using sched_init_luids. Likewise with
1290 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1291 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1292 rather than sched_init_luids with NULL args.
1293 * sel-sched-ir.c (new_insns): Remove variable.
1294 (sched_scan): New static function, previously in haifa-sched.c. Remove
1295 all arguments but the first two; all callers changed.
1296 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1297 rather than sched_init_luids.
1298 (sel_init_bbs): Remove second argument. All callers changed.
1299 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1300 with NULL arguments.
1301 (create_insn_rtx_from_pattern): Likewise.
1302 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1303 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1304 (sched_init_insn_luid, sched_extend_luids): Declare.
1305 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1308 2011-05-27 Richard Guenther <rguenther@suse.de>
1311 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1312 A CMP B ? (T) true : (T) false for non-integral types T again.
1314 2011-05-27 Jan Hubicka <jh@suse.cz>
1316 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1317 so 0 means NULL string.
1318 (lto_output_string_with_length): ... here.
1319 (lto_output_string, output_string_cst, output_identifier): Update
1320 handling of NULL strings.
1321 (lto_output_location_bitpack): New function.
1322 (lto_output_location): Use it.
1323 (lto_output_tree_ref): Use output_record_start.
1324 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1326 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1328 (input_string_internal): ... here;
1329 (input_string_cst, input_identifier, lto_input_string): Update handling
1331 (lto_input_location_bitpack): New function
1332 (lto_input_location): Use it.
1333 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1335 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1336 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1337 (bp_pack_value): Sanity check the value range.
1338 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1340 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1343 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1345 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1346 call_arg_location instructions down the floor.
1348 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1350 PR rtl-optimization/49154
1351 * ira.c (setup_pressure_classes): Process class without sublcasses
1352 as a candidate for pressure classes.
1354 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1356 PR rtl-optimization/48575
1357 * genrecog.c (position_type): New enum.
1358 (position): New structure.
1359 (decision): Use position structure instead of a string.
1360 (root_pos, peep2_insn_pos_list): New variables.
1361 (next_position, compare_positions): New functions.
1362 (new_decision): Use position structures instead of strings.
1363 (maybe_both_true): Likewise.
1364 (change_state): Likewise.
1365 (write_tree): Likewise.
1366 (make_insn_sequence): Likewise.
1368 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1370 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1371 TS_BASE instead of TS_COMMON.
1372 (find_decls_types_r): Check for TS_TYPED structure before looking at
1374 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1376 (BLOCK_CHAIN): Use new chain field.
1378 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1380 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1381 moves expensive on Power7 also.
1383 2011-05-26 Richard Guenther <rguenther@suse.de>
1385 * fold-const.c (fold_unary_loc): Remove bogus code.
1387 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1389 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1391 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1392 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1393 TS_BASE instead of TS_COMMON.
1394 * varasm.c (assemble_name): Remove assert.
1396 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1398 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1400 * libgcc-std.ver: Delete file.
1402 2011-05-26 Richard Guenther <rguenther@suse.de>
1404 PR tree-optimization/48702
1405 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1406 only when we know the base address is within bounds.
1407 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1408 assume the base address of TARGET_MEM_REFs is in bounds.
1410 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1413 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1414 declaration in TARGET_SOLARIS.
1416 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1418 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1419 The instruction is then expanded explicitly.
1420 (supported_compare): Callable instruction.
1421 (compare): Likewise.
1423 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1426 * gimplify.c (shortcut_cond_r): Don't special case
1427 COND_EXPRs if they have void type on one of their arms.
1429 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1431 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1432 to reduce duplication, and to achieve a slightly more logical order
1435 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1437 PR tree-optimization/49161
1438 * tree-vrp.c (struct case_info): New type.
1439 (compare_case_labels): Sort case_info structs instead of
1440 trees, and not primarily by CASE_LABEL uids but by
1441 label_for_block indexes.
1442 (find_switch_asserts): Put case labels into struct case_info
1443 array instead of TREE_VEC, adjust sorting, compare label_for_block
1444 values instead of CASE_LABELs.
1446 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1448 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1449 ("orndi3_neon"): Likewise.
1450 ("bic<mode>3_neon"): Likewise.
1452 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1454 PR tree-optimization/49038
1455 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1456 Ensure at least one epilogue iteration if required by data
1458 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1459 to mark loops that require peeling for gaps.
1460 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1461 (vect_get_known_peeling_cost): Take peeling for gaps into
1463 (vect_transform_loop): Generate epilogue if required by data
1465 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1466 loop as requiring an epilogue if there are gaps in the end of
1469 2011-05-25 Ian Lance Taylor <iant@google.com>
1471 * godump.c (go_format_type): Output the first field with a usable
1474 2011-05-25 Ian Lance Taylor <iant@google.com>
1476 * godump.c (go_format_type): Check for invalid type names, pointer
1477 target types, and struct field types.
1479 2011-05-25 Jason Merrill <jason@redhat.com>
1481 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1483 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1485 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1487 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1489 * config/i386/i386.md (*movqi_extv_1)): Put back
1490 "register_operand" check in "type" calculation.
1491 (*movqi_extzv_2): Likewise.
1493 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1495 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1497 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1500 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1501 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1502 __divxc3, __divtc3): Wrap definitions in #ifndef.
1504 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1507 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1508 "register_operand" check and replace q_regs_operand with
1509 QIreg_operand in "type" calculation.
1510 (*movqi_extv_1): Likewise.
1511 (*movqi_extzv_2_rex64): Likewise.
1512 (*movqi_extzv_2): Likewise.
1514 * config/i386/predicates.md (QIreg_operand): New.
1516 2011-05-25 Richard Guenther <rguenther@suse.de>
1518 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1519 type-based offset disambiguation, streamline MEM_REF and
1520 TARGET_MEM_REF handling.
1522 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1524 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1525 (bdesc_special_args): Add pause intrinsic.
1527 * config/i386/i386.md (UNSPEC_PAUSE): New.
1530 * config/i386/ia32intrin.h (__pause): Likewise.
1532 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1535 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1537 PR tree-optimization/46728
1538 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1539 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1541 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1543 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1544 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1545 instead of TS_COMMON.
1547 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1549 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1550 LIBGCC2_GNU_PREFIX is defined.
1552 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1553 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1554 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1555 __clz_tab): Define using __N.
1556 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1557 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1558 * target.def (libfunc_gnu_prefix): New hook.
1559 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1560 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1561 * doc/tm.texi: Regenerate.
1562 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1563 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1565 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1566 (init_optabs): Likewise for the bswap libfuncs.
1567 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1569 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1570 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1571 * libgcc-std.ver: Remove.
1572 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1573 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1575 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1576 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1577 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1578 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1579 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1580 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1581 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1582 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1583 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1584 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1586 2011-05-25 Jan Hubicka <jh@suse.cz>
1588 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1589 (lto_output_tree): Use output_record_start.
1590 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1591 (lto_get_pickled_tree): Use input_record_start.
1592 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1593 (lto_value_range_error): New function.
1594 * lto-streamer.h (lto_value_range_error): Declare.
1595 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1596 (lto_output_enum, lto_input_enum): New macros.
1598 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1600 * common.opt (flag_stack_usage_info): New variable.
1601 (-Wstack-usage): New option.
1602 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1603 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1604 <OPT_fstack_usage>: Likewise.
1605 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1606 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1607 of flag_stack_usage.
1608 (emit_library_call_value_1): Likewise.
1609 * explow.c (allocate_dynamic_stack_space): Likewise.
1610 * function.c (instantiate_virtual_regs ): Likewise.
1611 (prepare_function_start): Likewise.
1612 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1613 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1614 * config/arm/arm.c (arm_expand_prologue): Likewise.
1615 (thumb1_expand_prologue): Likewise.
1616 * config/avr/avr.c (expand_prologue): Likewise.
1617 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1618 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1619 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1620 * config/mips/mips.c (mips_expand_prologue): Likewise.
1621 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1622 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1623 * config/s390/s390.c (s390_emit_prologue): Likewise.
1624 * config/sh/sh.c (sh_expand_prologue): Likewise.
1625 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1626 * config/spu/spu.c (spu_expand_prologue): Likewise.
1628 2011-05-25 Richard Guenther <rguenther@suse.de>
1630 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1631 (gimple_canonical_types_compatible_p): Likewise.
1633 2011-05-25 Jan Hubicka <jh@suse.cz>
1636 * ipa.c (function_and_variable_visibility): Only add to same
1637 comdat group list if DECL_ONE_ONLY.
1639 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1641 PR rtl-optimization/49014
1642 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1644 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1647 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1649 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1651 PR rtl-optimization/48757
1652 * ira-build.c (loop_with_eh_edge_p): Rename to
1653 loop_with_complex_edge_p, check edges on complexity, make function
1655 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1658 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1660 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1661 force flag_ira_share_save_slots to 0.
1663 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1665 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1666 (vt_initialize): Set PROLOGUE_BB unconditionally.
1667 Add block comment about CFA_BASE_RTX machinery.
1668 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1669 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1671 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1674 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1675 parsing of syntax error in ObjC instance variable lists. In
1676 particular, avoid an infinite loop if there is a stray ']'.
1677 Updated error message.
1679 2011-05-24 Ian Lance Taylor <iant@google.com>
1681 * godump.c (go_define): Don't accept a string immediately after
1684 2011-05-24 Ian Lance Taylor <iant@google.com>
1686 * godump.c (struct godump_container): Add invalid_hash field.
1687 (go_format_type): Return false if type is found in invalid_hash.
1688 (go_output_typedef): Add invalid type to invalid_hash.
1689 (go_finish): Create and delete invalid_hash.
1691 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1693 PR tree-optimization/46728
1694 * tree-ssa-math-opts.c (powi_table): New.
1695 (powi_lookup_cost): New.
1697 (powi_as_mults_1): New.
1698 (powi_as_mults): New.
1699 (gimple_expand_builtin_powi): New.
1700 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1701 (gate_cse_sincos): Remove sincos/cexp restriction.
1703 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1706 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1708 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1709 * mips-tdump.c: Likewise.
1711 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1714 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1715 add -mno-XXX. Handle FMA.
1717 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1719 PR rtl-optimization/48633
1720 * ira-build.c (loop_with_eh_edge_p): New function.
1721 (mark_loops_for_removal): Use it.
1723 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1725 PR rtl-optimization/48971
1726 * ira.c (setup_pressure_classes): Don't check register move cost
1727 for classes with one registers. Don't add pressure class if there
1728 is a pressure class with the same available hard registers.
1729 Check contains_reg_of_mode. Fix a typo in collecting
1730 temp_hard_regset. Ignore hard registers not belonging to a class.
1732 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1735 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1737 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1738 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1740 PR gcov-profile/48845
1741 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1743 2011-05-24 Richard Guenther <rguenther@suse.de>
1745 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1746 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1747 (gimple_types_compatible_p_1): Adjust.
1748 (iterative_hash_canonical_type): Do not bother about complete vs.
1750 (gimple_canonical_types_compatible_p): Likewise.
1752 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1754 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1756 2011-05-24 Richard Guenther <rguenther@suse.de>
1759 * gimple.c (gimple_register_canonical_type): Revert
1761 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1762 does not for a tree for the case where it matters. Cache
1763 pointer-type alias-sets.
1765 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1767 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1768 (OBJS): Remove options.o, opts-common.o and prefix.o.
1769 (OBJS-libcommon-target): New.
1770 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1771 (BACKEND): Include libcommon-target.a.
1772 (MOSTLYCLEANFILES): Include libcommon-target.a.
1773 (libcommon-target.a): New.
1774 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1777 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1779 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1780 parts of output shared with the driver.
1781 * optc-gen.awk: Don't generate parts of output not shared with the
1783 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1784 * doc/options.texi (SourcerInclude): Mention options-save.c.
1785 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1786 (OBJS): Add options-save.o.
1787 (options-save.c, options-save.o): New.
1788 (options.o): Update dependencies.
1789 (gcc-options.o): Remove.
1790 (mostlyclean): Remove options-save.c.
1792 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1795 * dbxout.c: Include cgraph.h.
1796 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1797 and without value expr, return NULL if no varpool node exists for
1798 it or if it is not needed.
1799 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1802 * c-decl.c (start_decl): Convert expr to void_type_node.
1804 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1806 PR rtl-optimization/48826
1807 * emit-rtl.c (try_split): When splitting a call that is followed
1808 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1810 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1812 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1813 parameters passed in memory prefer using DECL_INCOMING_RTL over
1814 the pseudos it will be copied into.
1816 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1819 * config/i386/i386.c (ix86_option_override_internal): Save the
1820 initial options after checking vzeroupper.
1822 2011-05-23 David Li <davidxl@google.com>
1824 PR tree-optimization/48988
1825 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1826 Initialize has_valid_pred for each pred chain.
1828 2011-05-23 Richard Guenther <rguenther@suse.de>
1830 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1831 (iterative_hash_gimple_type): Always hash type names.
1833 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1835 * c-typeck.c (build_function_call_vec): Tweak call to
1836 check_function_arguments.
1838 2011-05-23 Richard Guenther <rguenther@suse.de>
1840 PR tree-optimization/49115
1841 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1842 is not necessarily carried out, do not claim it kills the ref.
1843 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1845 2011-05-23 Richard Guenther <rguenther@suse.de>
1848 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1849 what pointer types we accept for folding.
1851 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1853 * gthr-gnat.c: Remove.
1854 * gthr-gnat.h: Remove.
1855 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1856 * config/t-freebsd (LIB2ADDEH): Likewise.
1857 * config/t-linux (LIB2ADDEH): Likewise.
1858 * config/t-sol2 (LIB2ADDEH): Likewise.
1859 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1860 * configure.ac (target_thread_file): Remove gnat handling.
1861 * configure: Regenerate.
1862 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1864 2011-05-23 Tristan Gingold <gingold@adacore.com>
1865 Eric Botcazou <ebotcazou@adacore.com>
1867 * gcov.c (create_file_names): If no object directory is specified,
1868 keep the directory of the file.
1870 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1872 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1873 * configure: Regenerate.
1875 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1878 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1879 failed and the comparison has a single bit signed type, use
1880 constm1_rtx instead of const1_rtx for true value.
1881 (do_store_flag): If ops->type is single bit signed type, disable
1882 signel bit test optimization and pass -1 instead of 1 as last
1883 parameter to emit_store_flag_force.
1885 2011-05-23 Tom de Vries <tom@codesourcery.com>
1888 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1890 (infer_loop_bounds_from_undefined): Use new function.
1892 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1894 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1895 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1896 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1898 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1900 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1902 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1903 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1906 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1908 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1910 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1912 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1913 UNSPEC_MOVE_PIC pattern.
1915 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1917 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1918 (sparc-*-rtems*): Likewise.
1919 (sparc64-*-elf*): Likewise.
1920 (sparc64-*-rtems*): Likewise.
1921 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1922 * config/sparc/t-crtin: New file.
1923 * config/sparc/t-sol2 (crti.o): Delete rule.
1925 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1926 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1927 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1928 (ENDFILE_SPEC): Add crtn.o.
1930 2011-05-22 Tom de Vries <tom@codesourcery.com>
1933 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1934 CODE_CONTAINS_STRUCT (TS_COMMON).
1936 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1939 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1940 only after deciding which mode to use.
1942 2011-05-22 Tom de Vries <tom@codesourcery.com>
1945 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1946 for call to get_shiftadd_cost.
1948 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1951 * config/i386/cpuid.h (bit_MMXEXT): New define.
1953 2011-05-22 Nick Clifton <nickc@redhat.com>
1955 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1956 initialisation of non-existant args[2] element. Use args[] array
1957 not arg[] array to pass arguments to build_function_type_list.
1959 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1961 PR tree-optimization/49087
1962 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1964 2011-05-21 Jason Merrill <jason@redhat.com>
1967 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1968 static storage duration.
1970 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1972 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1975 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1977 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1978 false if there are call-saved registers here...
1979 (sparc_can_use_return_insn_p): ...but here instead.
1980 (save_or_restore_regs): Fix thinko.
1981 (sparc_expand_prologue): Use current_function_is_leaf.
1982 (sparc_frame_pointer_required): Likewise.
1984 2011-05-21 Nick Clifton <nickc@redhat.com>
1987 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1989 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1991 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1992 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1994 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1996 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1997 * optc-gen.awk: Move common code to opt-read.awk.
1998 * opth-gen.awk: Likewise.
1999 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2001 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2003 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2005 2011-05-20 Tom de Vries <tom@codesourcery.com>
2008 * tree-ssa-loop-ivopts.c: Include expmed.h.
2009 (get_shiftadd_cost): New function.
2010 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2012 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2015 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2016 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2018 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2020 * Makefile.in: Update comment referring to $(OBJS-common).
2022 2011-05-20 Ian Lance Taylor <iant@google.com>
2024 * godump.c (go_output_typedef): Put enum constants in the macro
2025 hash table to avoid duplicate Go const definitions.
2027 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2029 * Makefile.in (LIBDEPS): Add libcommon.a.
2031 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2032 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2033 pretty-print.o and version.o.
2034 (OBJS-libcommon): New.
2035 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2036 (BACKEND): Add libcommon.a.
2037 (MOSTLYCLEANFILES): Likewise.
2039 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2040 (cpp$(exeext)): Likewise.
2041 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2042 pretty-print.o and input.o.
2043 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2044 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2046 (mips-tfile): Don't explicitly use version.o.
2047 (mips-tdump): Likewise.
2048 (gcov.o): Depend on $(DIAGNOSTIC_H).
2049 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2050 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2051 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2052 * gcov-dump.c: Include intl.h and diagnostic.h.
2053 (main): Initialize diagnostics.
2054 * gcov.c: Include diagnostic.h.
2056 (main): Initialize diagnostics.
2057 * lto-wrapper.c: Include diagnostic.h.
2058 (main): Initialize diagnostics.
2060 2011-05-20 Michael Matz <matz@suse.de>
2062 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2064 2011-05-20 Michael Matz <matz@suse.de>
2065 Richard Guenther <rguenther@suse.de>
2067 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2068 use lto_streamer_cache_append directly instead of returning a VEC.
2069 (preload_common_node): Remove.
2070 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2072 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2074 2011-05-20 Richard Guenther <rguenther@suse.de>
2076 PR tree-optimization/49079
2077 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2078 MEM_REFs correctly for the trailing array access detection.
2079 Special case constants the same way as decls for overall size
2082 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2084 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2087 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2089 PR tree-optimization/49073
2090 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2091 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2092 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2094 2011-05-20 Richard Guenther <rguenther@suse.de>
2097 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2098 of pointer types the same way the middle-end does.
2100 2011-05-20 Richard Guenther <rguenther@suse.de>
2102 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2103 or pointer-to chains. Delay all fixup to uniquify_nodes.
2105 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2107 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2108 (fma4_fmaddsub): Likewise
2110 2011-05-19 Jan Hubicka <jh@suse.cz>
2112 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2113 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2114 (type_pair_cache): New static var.
2115 (lookup_type_pair): Use fixed sized custom hash; make inline.
2116 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2117 calls of lookup_type_pair.
2118 (print_gimple_types_stats): Remove cache stats.
2119 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2122 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2124 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2125 when TARGET_RDRND is active.
2126 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2127 Generate dummy SImode target register when target is NULL.
2129 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2131 * config/arm/arm-fpus.def: New.
2132 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2134 * config/arm/arm-tables.opt: Regenerate.
2135 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2136 (arm_option_override): Don't decode FPU name to string here.
2137 * config/arm/arm.opt (mfpu=): Use Enum.
2138 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2139 Update dependencies.
2141 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2143 * collect2.c: Include diagnostic.h.
2144 (fatal_perror, fatal, error, fancy_abort): Remove.
2145 (main): Set progname. Call xmalloc_set_program_name and
2146 diagnostic_initialize.
2147 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2148 scan_libraries, resolve_lib_name): Call fatal_error instead of
2149 fatal and fatal_perror.
2150 * collect2.h (error, fatal, fatal_perror): Don't declare.
2151 * tlink.c: Include diagnostic-core.h.
2152 (recompile_files): Call fatal_error instead of fatal_perror.
2153 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2154 pretty-print.o and input.o.
2155 (collect2.o, tlink.o): Update dependencies.
2157 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2159 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2161 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2164 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2165 COMDAT group syntax, both SPARC and x86 variants.
2166 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2167 * configure: Regenerate.
2168 * config/sol2.h (TARGET_SOLARIS): Define.
2169 (PUSHSECTION_FORMAT): Remove.
2170 (SECTION_NAME_FORMAT): Define.
2171 * config/sol2.c: Include hashtab.h.
2172 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2173 expansion, using SECTION_NAME_FORMAT.
2174 (solaris_comdat_htab): New variable.
2175 (struct comdat_entry): Define.
2176 (comdat_hash): New function.
2177 (comdat_eq): New function.
2178 (solaris_elf_asm_comdat_section): New function.
2179 (solaris_define_comdat_signature): New function.
2180 (solaris_code_end): New function.
2181 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2182 (solaris_code_end): Declare.
2183 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2184 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2186 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2187 Remove ATTRIBUTE_UNUSED.
2188 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2189 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2190 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2191 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2192 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2193 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2194 (PUSHSECTION_FORMAT): Remove.
2195 (SECTION_NAME_FORMAT): Redefine.
2197 2011-05-19 Kai Tietz <ktietz@redhat.com>
2199 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2200 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2201 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2203 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2204 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2206 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2208 2011-05-19 Richard Guenther <rguenther@suse.de>
2211 * tree-object-size.c (addr_object_size): If the pointed-to
2212 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2214 2011-05-19 Richard Guenther <rguenther@suse.de>
2216 * gimple.c (gimple_types_compatible_p_1): Compare names of
2217 the types themselves.
2218 (iterative_hash_gimple_type): And hash them that way.
2219 (gimple_register_type_1): If we register a main variant properly
2220 initialize the leader to ourselves.
2222 2011-05-19 Tom de Vries <tom@codesourcery.com>
2225 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2226 get_loop_invariant_expr_id.
2227 (get_loop_invariant_expr_id): Use get_expr_id.
2228 (parm_decl_cost): New function.
2229 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2230 Improve bound cost estimation. Use different inv_expr_id for elim and
2233 2011-05-19 Tom de Vries <tom@codesourcery.com>
2236 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2237 cost_base.cost == 0.
2239 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2242 * config/i386/sse.md
2243 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2246 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2248 PR tree-optimization/49039
2249 * tree-vrp.c (extract_range_from_binary_expr): For
2250 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2251 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2253 2011-05-18 Tom de Vries <tom@codesourcery.com>
2256 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2258 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2260 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2261 (*tls_global_dynamic_64): Ditto.
2262 (*tls_local_dynamic_base_32_gnu): Ditto.
2263 (*tls_local_dynamic_base_64): Ditto.
2264 (tls_initial_exec_64_sun): Ditto.
2266 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2268 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2269 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2271 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2272 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2273 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2274 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2275 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2276 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2277 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2279 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2281 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2282 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2283 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2284 target_thread_pointer, arm_structure_size_boundary, struct
2285 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2286 struct abi_name, arm_all_abis): Remove.
2287 (arm_option_override) Don't process most enumerated option values here.
2288 Don't process target_fpe_name here. Work with integer not string for
2289 structure size boundary; use separate diagnostics for each case.
2290 * config/arm/arm.h (enum float_abi_type, enum
2291 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2293 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2294 arm_structure_size_boundary): Remove.
2295 * config/arm/arm.opt (mabi=): Use Enum and Init.
2296 (arm_abi_type): New Enum and EnumValue entries.
2297 (mfloat-abi=): Use Enum and Init.
2298 (float_abi_type): New Enum and EnumValue entries.
2299 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2300 (mfp16-format=): Use Enum and Init.
2301 (arm_fp16_format_type): New Enum and EnumValue entries.
2302 (mstructure-size-boundary=): Use UInteger and Init.
2303 (mtp=): Use Enum and Init.
2304 (arm_tp_type): New Enum and EnumValue entries.
2306 2011-05-18 Richard Guenther <rguenther@suse.de>
2308 PR tree-optimization/49018
2309 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2310 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2311 gimple_has_side_effects.
2313 2011-05-18 Richard Guenther <rguenther@suse.de>
2315 * gimple.c (gimple_register_type_1): New function, split out from ...
2316 (gimple_register_type): ... here. Avoid infinite recursion.
2318 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2320 PR tree-optimization/41881
2321 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2322 reduction_chains along with a macro for its access.
2323 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2324 (destroy_loop_vec_info): Free reduction chains.
2325 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2326 (vect_is_slp_reduction): New function.
2327 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2328 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2329 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2330 definition types for reduction chains.
2331 (vect_supported_load_permutation_p): Don't allow permutations for
2333 (vect_analyze_slp_instance): Support reduction chains.
2334 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2335 (vect_get_constant_vectors): Handle reduction chains.
2336 (vect_schedule_slp_instance): Mark the first statement of the
2337 reduction chain as reduction.
2339 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2341 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2342 names for group elements access.
2343 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2344 reduction chains as well. Remove data reference and interleaving
2345 related words from the fields names.
2346 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2348 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2349 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2350 vect_update_interleaving_chain, vect_same_range_drs,
2351 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2352 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2353 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2354 vect_analyze_group_access, vect_analyze_data_ref_access,
2355 vect_create_data_ref_ptr, vect_transform_strided_load,
2356 vect_record_strided_load_vectors): Likewise.
2357 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2358 vect_model_load_cost, vectorizable_store, vectorizable_load,
2359 vect_remove_stores, new_stmt_vec_info): Likewise.
2360 * tree-vect-slp.c (vect_build_slp_tree,
2361 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2363 2011-05-18 Richard Guenther <rguenther@suse.de>
2366 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2367 operand verification.
2368 (verify_gimple_assign_binary): Likewise.
2369 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2370 to non-1-precision BOOLEAN_TYPEs.
2372 2011-05-18 Tom de Vries <tom@codesourcery.com>
2375 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2377 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2379 PR tree-optimization/49000
2380 * tree-ssa.c (execute_update_addresses_taken): Call
2381 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2382 be rewritten and decl has been marked for renaming, reset
2385 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2387 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2388 enum_opts_set when testing if attributes have set -mfpmath=.
2390 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2392 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2394 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2396 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2398 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2399 id.transform_lang_insert_block with NULL.
2401 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2403 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2404 (output_fp_compare): Change args 3 and 4 to bool.
2405 (ix86_expand_call): Change arg 6 to bool.
2406 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2407 (ix86_attr_length_vex_default): Change arg 3 to bool.
2408 * config/i386/i386.md: Update all uses.
2409 * config/i386/i386.c: Ditto.
2410 (ix86_flags_dependent): Change return type to bool.
2412 2011-05-17 Richard Guenther <rguenther@suse.de>
2414 * gimple.c (type_hash_pair_compare): Fix comparison.
2416 2011-05-17 Richard Guenther <rguenther@suse.de>
2418 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2419 case some more, fix final hash value of the non-singleton case.
2421 2011-05-17 Richard Guenther <rguenther@suse.de>
2425 2011-05-16 Richard Guenther <rguenther@suse.de>
2427 * gimple.c (gimple_types_compatible_p_1): Use names of the
2428 type itself, not its main variant.
2429 (iterative_hash_gimple_type): Likewise.
2431 2011-05-17 Richard Guenther <rguenther@suse.de>
2433 * gimple.c (gimple_register_canonical_type): Use the main-variant
2434 leader for computing the canonical type.
2436 2011-05-17 Nick Clifton <nickc@redhat.com>
2438 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2441 * config/rx/rx.md: Add peephole to remove redundant extensions
2443 (bitset_in_memory): Use rx_restricted_mem_operand.
2444 (bitinvert_in_memory): Likewise.
2445 (bitclr_in_memory): Likewise.
2447 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2448 Nick Clifton <nickc@redhat.com>
2450 * config/rx/rx.md: Add peepholes to match a register move followed
2451 by a comparison of the moved register. Replace these with an
2452 addition of zero that does both actions in one instruction.
2454 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2457 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2458 predicate to allow CONST_INT.
2459 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2461 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2463 * opts-common.c (opt_enum_arg_to_value): New.
2464 * opts.h (opt_enum_arg_to_value): Declare.
2465 * config/i386/i386.opt (fpmath): Remove.
2466 (mfpmath=): Use Enum, Init and Save.
2467 (fpmath_unit): New Enum and EnumValue entries.
2468 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2469 name for function fpmath state.
2470 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2471 * config/i386/i386.c: Include diagnostic.h.
2472 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2473 (ix86_target_string): Take enum fpmath_unit value instead of string.
2474 (ix86_debug_options): Update call to ix86_target_string.
2475 (ix86_option_override_internal): Don't process fpmath strings here.
2476 (x86_function_specific_save, ix86_function_specific_restore):
2477 Don't handle fpmath state specially.
2478 (ix86_function_specific_print): Pass fpmath state to
2479 ix86_target_string instead of printing in this function.
2480 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2481 Handle enum attributes.
2482 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2483 (ix86_valid_target_attribute_tree): Update option_strings
2484 handling. Handle fpmath as enum option.
2485 (ix86_can_inline_p): Update field names for function fpmath state.
2486 (ix86_expand_builtin): Update call to ix86_target_string.
2487 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2488 (ix86_fpmath): Remove.
2489 * config/i386/t-i386 (i386.o): Update dependencies.
2491 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2493 PR preprocessor/48677
2494 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2495 from decoded_options[0], not from itself.
2497 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2499 * config/i386/constraints.md (z): New constraint.
2500 * config/i386/i386.c (c): New mode attribute.
2501 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2502 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2503 constraint for operand 0.
2504 (*call_vzeroupper): Ditto.
2505 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2506 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2507 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2508 Use "lzm" constraint for operand 0.
2509 (*call_pop_vzeroupper): Ditto.
2510 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2511 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2512 constraint for operand 0.
2513 (*sibcall_vzeroupper): Ditto.
2514 (*sibcall_rex64_ms_sysv): Ditto.
2515 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2516 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2517 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2518 (*sibcall_pop_vzeroupper): Ditto.
2519 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2520 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2521 mode iterator. Use "<c>zm" constraint for operand 1.
2522 (*call_value_vzeroupper): Ditto.
2523 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2525 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2526 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2527 *call_value_pop_1. Use "lzm" constraint for operand 1.
2528 (*call_value_pop_vzeroupper): Ditto.
2529 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2530 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2531 mode iterator. Use "Uz" constraint for operand 1.
2532 (*sibcall_value_vzeroupper): Ditto.
2533 (*sibcall_value_rex64_ms_sysv): Ditto.
2534 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2535 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2536 constraint for operand 1.
2537 (*sibcall_value_pop_vzeroupper): Ditto.
2538 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2539 and "z" constraint for operand 2.
2540 (*tls_global_dynamic_32_gnu): Ditto.
2541 (*tls_local_dynamic_base_32_gnu): Ditto.
2542 (*tls_local_dynamic_base_64): Ditto.
2543 (*tls_local_dynamic_32_once): Ditto.
2544 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2546 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2548 2011-05-16 Richard Guenther <rguenther@suse.de>
2550 * gimple.c (gimple_types_compatible_p_1): Use names of the
2551 type itself, not its main variant.
2552 (iterative_hash_gimple_type): Likewise.
2554 2011-05-16 Richard Guenther <rguenther@suse.de>
2556 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2557 always visit pointer target and function result and argument types.
2559 2011-05-16 Jason Merrill <jason@redhat.com>
2562 * tree-inline.c (copy_statement_list): Put back recursion.
2564 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2568 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2569 * config/avr/avr.md ("*ior<mode>qi.byte0",
2570 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2572 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2575 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2576 register is needed for a function argument.
2578 2011-05-16 Richard Guenther <rguenther@suse.de>
2580 * gimple.c (struct type_hash_pair): New type.
2581 (type_hash_pair_compare): New function.
2582 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2584 2011-05-16 Revital Eres <revital.eres@linaro.org>
2586 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2588 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2590 * config/i386/i386.md (floating point move splitters): Fix
2591 usage of standard_80387_constant_p.
2592 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2594 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2596 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2598 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2600 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2601 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2602 (tree_ssa_lim_finalize): Likewise.
2604 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2606 * config/i386/constraint.md (Yd, Yx): New register constraints.
2607 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2608 Yd conditional register constraint.
2609 (*movtf_internal): Use standard_sse_constant_opcode.
2610 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2611 Yx conditional register constraint.
2612 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2613 Yd conditional register constraint. Use standard_sse_constant_p to
2614 check for valid SSE constants and call standard_sse_constant_opcode to
2616 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2617 constants and call standard_sse_constant_opcode to output SSE insn.
2618 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2619 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2620 optimize_size is set.
2621 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2623 2011-05-14 Tobias Burnus <burnus@net-b.de>
2625 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2627 2011-05-13 Martin Jambor <mjambor@suse.cz>
2629 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2630 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2631 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2632 (evaluate_conditions_for_ipcp_clone): Removed.
2633 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2634 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2635 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2637 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2639 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2640 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2641 lieu of MAY_HAVE_DEBUG_STMTS.
2642 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2643 debug statements if !MAY_HAVE_DEBUG_STMTS.
2645 2011-05-13 Martin Thuresson <martint@google.com>
2647 PR gcov-profile/47793
2648 * libgcov.c (gcov_exit): Support relative profile paths.
2649 * doc/invoke.texi (-fprofile-dir): Update for above change.
2651 2011-05-13 Richard Guenther <rguenther@suse.de>
2653 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2654 type-pair caching, do not compare hashes.
2656 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2659 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2660 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2662 2011-05-13 Kai Tietz <ktietz@redhat.com>
2664 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2665 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2666 compatible type for TRUTH_NOT_EXPR.
2668 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2670 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2671 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2672 can_create_pseudo_p ().
2674 2011-05-13 Richard Guenther <rguenther@suse.de>
2677 * gimple.c (iterative_hash_gimple_type): Revert change in
2678 pointer target and function result and argument hashing.
2680 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2682 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2683 (*movxf_internal_nointeger): Ditto.
2684 (*movdf_internal_rex64): Ditto.
2685 (*movdf_internal): Ditto.
2686 (*movdf_internal_nointeger): Ditto.
2687 (*movsf_internal): Ditto.
2688 (sincos splitters): Use can_create_pseudo ().
2690 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2692 * config/i386/i386-opts.h: New.
2693 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2694 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2695 ix86_section_threshold): Remove.
2696 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2697 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2699 (ix86_option_override_internal): Don't decode strings for options
2700 other than -march=, -mtune= and -mfpmath=. Don't allow for
2701 __attribute__ uses in remaining diagnostics for options with
2702 string arguments. Don't check for integer arguments being negative.
2703 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2704 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2705 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2706 ix86_branch_cost, ix86_section_threshold): Remove.
2707 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2709 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2711 (masm=): Use Enum and Init.
2712 (asm_dialect): New Enum and EnumValue entries.
2713 (mbranch-cost=): Use UInteger.
2714 (mlarge-data-threshold=): Use UInteger and Init.
2715 (mcmodel=): Use Enum and Init.
2716 (cmodel): New Enum and EnumValue entries.
2717 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2718 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2719 mregparm=): Use UInteger.
2720 (mstringop-strategy=): Use Enum and Init.
2721 (stringop_alg): New Enum and EnumValue entries.
2722 (mtls-dialect=): Use Enum and Init.
2723 (tls_dialect): New Enum and EnumValue entries.
2724 (mabi=): Use Enum and Init.
2725 (calling_abi): New Enum and EnumValue entries.
2726 (mveclibabi=): Use Enum and Init.
2727 (ix86_veclibabi): New Enum and EnumValue entries.
2729 2011-05-13 Nick Clifton <nickc@redhat.com>
2731 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2732 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2734 2011-05-13 Kai Tietz <ktietz@redhat.com>
2737 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2738 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2739 (gimple_boolify): Check for cast for boolean_type_node instead for
2742 2011-05-13 Richard Guenther <rguenther@suse.de>
2744 PR tree-optimization/48172
2745 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2746 multiplying by number of iterations for equal step.
2747 (vect_create_cond_for_alias_checks): Likewise.
2749 2011-05-13 Andreas Schwab <schwab@redhat.com>
2751 * configure.ac: Use AS_HELP_STRING throughout.
2752 * configure: Regenerate.
2754 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2756 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2757 (ix86_emit_restore_regs_using_mov): Likewise.
2758 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2760 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2762 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2763 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2764 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2765 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2766 RTX_OK_FOR_OLO10_P): ...here.
2767 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2770 2011-05-12 Kai Tietz <ktietz@redhat.com>
2772 * gimplify.c (gimple_boolify): Re-boolify expression
2773 arguments even if expression type is of kind BOOLEAN_TYPE.
2774 (gimplify_boolean_expr): Removed.
2775 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2776 and XOR. Additional take care that we keep expression's type.
2777 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2778 of TRUTH_AND|OR|XOR_EXPR.
2780 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2782 PR tree-optimization/48975
2783 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2784 on all bbs here and free and clear ifc_bbs at the end.
2786 2011-05-12 Richard Guenther <rguenther@suse.de>
2788 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2789 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2790 until after simple checks.
2791 (gimple_types_compatible_p): Likewise.
2792 (iterative_hash_gimple_type): Always hash pointer targets
2793 and function return and argument types.
2794 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2795 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2796 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2797 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2798 completely in the simple compare section.
2799 (gimple_register_canonical_type): Query the cache again after
2802 2011-05-12 Richard Guenther <rguenther@suse.de>
2804 PR tree-optimization/48172
2805 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2806 the number of iterations from the segment size calculation.
2807 (vect_create_cond_for_alias_checks): Adjust.
2809 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2812 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2813 if validate_subreg fails.
2815 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2817 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2818 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2821 2011-05-12 DJ Delorie <dj@redhat.com>
2823 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2824 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2825 created builtin into rx_builtins array.
2826 (rx_builtin_decl): New function.
2827 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2829 2011-05-12 DJ Delorie <dj@redhat.com>
2830 Nick Clifton <nickc@redhat.com>
2832 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2833 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2834 (rx_is_legitimate_address): Add pre-decrement and post-increment
2835 addressing in HImode and QImode. Fix test for out of range
2837 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2838 (rx_align_for_label): Test label before extracting its usage count.
2839 (rx_adjust_insn_lengths): Fix selection of insn codes.
2840 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2842 2011-05-11 Jason Merrill <jason@redhat.com>
2844 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2846 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2848 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2849 reindent the subsequent block.
2851 2011-05-11 Satoru Takabayashi <satorux@google.com>
2852 Paul Pluzhnikov <ppluzhnikov@google.com>
2854 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2855 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2856 * config.in: Add LINKER_HASH_STYLE.
2857 * configure.ac: Add --with-linker-hash-style.
2858 * configure: Regenerate.
2860 2011-05-11 Richard Guenther <rguenther@suse.de>
2863 * gimple.c (iterative_hash_canonical_type): Fix typo.
2865 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2867 * config/i386/i386.c (legitimize_tls_address)
2868 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2869 expanders directly for TARGET_GNU2_TLS. Determine pic and
2870 __tls_get_addr symbol reference here. Update call to
2871 gen_tls_global_dynamic_{32,64} for added arguments.
2872 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2873 expanders directly for TARGET_GNU2_TLS. Determine
2874 __tls_get_addr symbol reference here. Update call to
2875 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2876 unique UNSPEC REG_EQUIV to libcall block.
2877 (ix86_tls_get_addr): Declare static.
2878 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2879 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2880 Do not determine pic and __tls_get_addr symbol reference here. Do not
2881 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2882 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2883 (tls_global_dynamic_64): Add operand 2. Do not determine
2884 __tls_get_addr symbol reference here. Do not call
2885 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2886 (tls_local_dynamic_base64): Ditto for operand 1.
2888 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2890 * function.c (expand_function_start): Initialize stack_check_probe_note
2891 only if the generic stack checking mechanism is used.
2893 2011-05-11 Richard Guenther <rguenther@suse.de>
2895 PR tree-optimization/15256
2896 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2897 (A & B) | C, combine (A op CST1) op CST2.
2898 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2899 visit assigns that have uses.
2901 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2903 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2904 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2905 (unpack_ts_type_common_value_fields): ...this. Update comment.
2906 (unpack_value_fields): Adjust for renaming.
2907 (lto_input_ts_type_tree_pointers): Split into...
2908 (lto_input_ts_type_common_tree_pointer): ...this and...
2909 (lto_input_ts_type_non_common_tree_pointers): ...this.
2910 (lto_input_tree_pointers): Adjust for above split.
2911 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2912 (pack_ts_type_common_value_fields): ...this. Update comment.
2913 (lto_output_ts_type_tree_pointers): Split into...
2914 (lto_output_ts_type_common_tree_pointers): ...this and...
2915 (lto_output_ts_type_non_common_tree_pointers): ...this.
2916 (lto_output_tree_pointers): Adjust for above split.
2917 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2918 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2919 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2920 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2922 (struct tree_type): Split into...
2923 (struct tree_type_common: ...this and...
2924 (struct tree_type_with_lang_specific): ...this and...
2925 (struct tree_type_non_common): ...this. Adjust accessor macros
2927 (TYPE_VALUES_RAW): Define.
2928 (union tree_node): Update for above changes.
2929 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2931 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2932 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2933 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2934 * treestructu.def (TS_TYPE): Remove.
2935 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2938 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2941 * tree-ssa.c (reset_debug_uses): New function.
2942 * tree-flow.h (reset_debug_uses): New prototype.
2943 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2944 * tree-loop-distribution.c (generate_loops_for_partition): Call
2945 reset_debug_uses on the stmts that will be removed. Keep around
2946 all debug stmts, don't count them as bits in partition bitmap.
2947 (generate_builtin): Don't count debug stmts or labels as bits in
2950 2011-05-11 Richard Guenther <rguenther@suse.de>
2952 * gimple.c (gimple_type_hash_1): Merge with ...
2953 (gimple_type_hash): ... this.
2954 (gtc_visit): Remove mode parameter and simplify accordingly.
2955 (gimple_types_compatible_p_1): Likewise.
2956 (gimple_types_compatible_p): Likewise.
2957 (iterative_hash_gimple_type): Likewise.
2959 (gimple_type_eq): Adjust.
2961 2011-05-11 Revital Eres <revital.eres@linaro.org>
2963 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2964 enters the branch create an anti edge in the opposite direction
2965 to prevent the creation of reg-moves.
2966 * modulo-sched.c: Adjust comment to reflect the fact we are
2967 scheduling closing branch.
2968 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2969 (stage_count): New field in struct partial_schedule.
2970 (calculate_stage_count): New function.
2971 (normalize_sched_times): Rename to reset_sched_times and handle
2972 incrementing the sched time of the nodes by a constant value
2973 passed as parameter.
2974 (duplicate_insns_of_cycles): Skip closing branch.
2975 (sms_schedule_by_order): Schedule closing branch.
2976 (ps_insn_find_column): Handle closing branch.
2977 (sms_schedule): Call reset_sched_times and adjust the code to
2978 support scheduling of the closing branch.
2979 (ps_insert_empty_row): Update calls to normalize_sched_times
2980 and rotate_partial_schedule functions.
2982 2011-05-11 Richard Guenther <rguenther@suse.de>
2985 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2987 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2989 * opts.c (finish_options): Move warning settings from process_options.
2990 * toplev.c (process_options): Move warning settings to finish_options.
2992 2011-05-11 Richard Guenther <rguenther@suse.de>
2994 PR tree-optimization/18041
2995 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2996 (simplify_bitwise_binary): ... this. Handle operand conversions
2997 by applying them to the result instead.
2998 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3000 2011-05-11 Richard Guenther <rguenther@suse.de>
3002 * gimple.c (gimple_canonical_types_compatible_p): Split out
3003 from gimple_types_compatible_p and friends. Do not recurse
3004 to pointed-to types.
3005 (gimple_canonical_type_eq): Use it.
3006 (iterative_hash_canonical_type): Split out from
3007 iterative_hash_gimple_type and friends. Do not recurse
3008 to pointed-to types.
3009 (gimple_canonical_type_hash): Use it, allocate the hash here.
3011 2011-05-11 Revital Eres <revital.eres@linaro.org>
3013 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3016 2011-05-11 Revital Eres <revital.eres@linaro.org>
3018 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3019 instead of PREV_INSN.
3021 2011-05-11 Revital Eres <revital.eres@linaro.org>
3023 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3024 * loop-doloop.c (doloop_condition_get): Likewise.
3025 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3027 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3029 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3031 * tree.def (CASE_LABEL_EXPR): Add an operand.
3032 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3034 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3036 * c-decl.c (c_override_global_bindings_to_false): Remove.
3037 (global_bindings_p): Don't check
3038 c_override_global_bindings_to_false.
3039 * c-tree.h (c_override_global_bindings_to_false): Remove.
3040 * c-typeck.c (composite_type): Don't set
3041 c_override_global_bindings_to_false.
3043 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3045 PR target/48857, 48495
3046 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3048 (VSX_MOVE_MODE): Ditto.
3049 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3050 VSX vector types. Add V2DImode.
3051 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3052 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3053 (MODES_TIEABLE_P): Ditto.
3055 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3056 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3058 (init_cumulative_args): Ditto.
3059 (rs6000_function_arg_boundary): Ditto.
3060 (rs6000_function_arg_advance_1): Ditto.
3061 (rs6000_function_arg): Ditto.
3062 (rs6000_function_ok_for_sibcall): Ditto.
3063 (emit_frame_save): Ditto.
3064 (rs6000_function_value): Ditto.
3065 (rs6000_libcall_value): Ditto.
3067 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3069 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3070 i386/darwin-lib.h to $libgcc_tm_file.
3071 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3073 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3075 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3077 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3079 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3080 * config/rs6000/rs6000-tables.opt: New file (generated).
3081 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3082 rs6000/rs6000-tables.opt to extra_options.
3083 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3084 * config/rs6000/rs6000.c (rs6000_select): Remove.
3085 (processor_target_table): Move contents to rs6000-cpus.def.
3086 (darwin_rs6000_override_options): Check
3087 global_options_set.x_rs6000_cpu_index instead of
3088 rs6000_select[1].string.
3089 (rs6000_option_override_internal): Likewise.
3090 (rs6000_handle_option): Don't assert that global structures are in
3091 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3092 (rs6000_default_cpu): New variable.
3093 (rs6000_file_start): Set it instead of local default_cpu. Check
3094 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3095 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3096 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3097 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3098 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3099 rs6000_select): Remove.
3100 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3102 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3103 * config/rs6000/t-rs6000
3104 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3105 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3106 global_options_set.x_rs6000_cpu_index instead of
3107 rs6000_select[1].string.
3108 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3109 global_options_set.x_rs6000_cpu_index instead of
3110 rs6000_select[1].string.
3112 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3114 * config.gcc (libgcc_tm_file): Define instead of including files
3115 from ../../libgcc/config/ in tm_file.
3116 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3117 * configure: Regenerate.
3118 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3119 libgcc_tm.h, cs-libgcc_tm.h): New.
3120 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3121 (clean): Remove libgcc_tm.h.
3122 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3123 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3124 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3126 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3129 * config/avr/avr.c (avr_ret_register): Return unsigned int
3131 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3132 it to avr_libcall_value.
3133 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3135 (avr_expand_binop_builtin): Ditto.
3136 (avr_expand_unop_builtin): Ditto.
3138 2011-05-10 DJ Delorie <dj@redhat.com>
3140 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3141 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3142 * config/rx/rx.c (rx_align_for_label): Add label and
3143 uses_threshold parameters. Do not align when the label is not
3145 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3147 2011-05-10 Richard Guenther <rguenther@suse.de>
3149 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3150 a series of conversions and apply foldings similar to what
3152 (tree_ssa_forward_propagate_single_use_vars): Call it.
3154 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3156 PR tree-optimization/48611
3157 PR tree-optimization/48794
3158 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3159 referenced from RESX or EH_DISPATCH arguments.
3162 * dfp.c (decimal_to_decnumber): Handle conversion from
3163 dconst{1,2,m1,half}.
3165 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3167 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3168 for !flag_prefer_avx128.
3169 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3171 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3173 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3174 (fold_ternary_loc): Use expr_location_or.
3176 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3179 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3180 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3181 Pmode and mem_mode is not VOIDmode.
3183 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3185 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3186 TYPE_QUAL_RESTRICT): Convert to enum.
3188 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3190 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3191 (const_pow2_1_to_8_operand): Ditto.
3192 (const_pow2_1_to_128_operand): Ditto.
3193 (const_pow2_1_to_32768_operand): Ditto.
3194 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3195 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3196 in insn constraint to check integer value of operand 3.
3197 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3199 (PINSR_MODE): New mode iterator.
3200 (sse2p4_1): New mode attribute.
3201 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3202 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3203 iterator. Use const_int_operand instead of
3204 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3205 exact_log2 in insn constraint to check integer value of operand 3.
3207 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3209 * config/i386/sse.md (blendbits): Remove mode attribute.
3210 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3211 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3212 Check integer value of operand 3 in insn constraint.
3214 2011-05-09 Richard Guenther <rguenther@suse.de>
3216 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3218 (lto_symtab_merge): Likewise. Do not register types here.
3219 (lto_symtab_merge_decls_2): Likewise.
3220 (lto_symtab_merge_decls_1): Likewise.
3221 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3222 * gimple.c (enum gtc_mode): Declare.
3223 (gimple_types_compatible_p): Make static.
3225 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3227 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3228 temporary register to match Pmode.
3230 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3232 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3233 and *vec_concatv4si_1_avx.
3235 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3237 PR rtl-optimization/48927
3238 * ira-conflicts.c (commutative_constraint_p): Use
3239 recog_data.alternative_enabled_p to disable alternatives where
3240 "enabled" attribute is false.
3241 (get_dup_num): Ditto.
3242 * ira-lives.c (single_reg_class): Ditto.
3243 (ira_implicitly_set_insn_hard_regs): Ditto.
3245 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3247 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3248 (dataflow_set_preserve_mem_locs): Likewise.
3250 2011-05-09 Philipp Thomas <pth@suse.de>
3252 * config/mep/mep.c (mep_validate_vliw): Syntax description
3253 should not be translated.
3255 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3257 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3258 * config/mips/mips-tables.opt: New file (generated).
3259 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3260 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3261 MIPS_ARCH_OPTION_NATIVE): Define.
3262 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3264 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3265 mips_parse_cpu): Remove.
3266 (mips_cpu_info_from_opt, mips_default_arch): New.
3267 (mips_handle_option): Don't assert that global structures are in
3268 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3269 (mips_option_override): Use new variables and functions to set
3270 state of these options. Use strcmp to check for individual CPU names.
3271 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3273 * config/mips/mips.opt (march=): Use ToLower and Enum.
3274 (mips): Use ToLower, Enum and Var.
3275 (mtune=): Use ToLower and Enum.
3276 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3278 2011-05-08 Jan Hubicka <jh@suse.cz>
3280 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3281 Arrange type pairs to be UID ordered.
3282 (gimple_lookup_type_leader): Make inline.
3284 2011-05-09 Nick Clifton <nickc@redhat.com>
3287 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3291 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3294 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3296 * combine.c (simplify_comparison): Abstract out parts into...
3297 (simplify_compare_const): ... new function.
3298 (try_combine): Generalize parallel arithmetic/compare combining
3299 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3301 2011-05-08 Jan Hubicka <jh@suse.cz>
3303 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3304 (cgraph_create_virtual_clone): Call hooks once virtual clone
3306 * cgraph.h (cgraph_clone_node): Update prototype.
3307 * ipa-cp.c (ipcp_estimate_growth): Use
3308 estimate_ipcp_clone_size_and_time.
3309 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3310 * lto-cgraph.c (input_node): Update.
3311 * ipa-inline.c (recursive_inlining): Update.
3312 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3313 (evaluate_conditions_for_known_args): Break out from ...
3314 (evaluate_conditions_for_edge): ... here.
3315 (evaluate_conditions_for_ipcp_clone): New function.
3316 (inline_node_duplication_hook): Update clone summary based
3318 (estimate_callee_size_and_time): Rename to ...
3319 (estimate_node_size_and_time): take NODE instead of EDGE;
3320 take POSSIBLE_TRUTHS as argument.
3321 (estimate_callee_size_and_time): Update.
3322 (estimate_ipcp_clone_size_and_time): New function.
3323 (do_estimate_edge_time): Update.
3325 2011-05-08 Richard Guenther <rguenther@suse.de>
3329 * expmed.c (expand_shift_1): Compute adjusted constant shift
3332 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3334 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3336 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3338 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3340 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3342 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3344 2011-05-07 Jan Hubicka <jh@suse.cz>
3346 * ipa-inline-transform.c (inline_call): Account when program size
3348 * ipa-inline.c (relative_time_benefit): New function.
3349 (edge_badness): Reorganize to be power 2 based; fix thinko when
3350 computing badness for negative growth; update comments to match
3351 reality; better dumps.
3353 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3355 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3356 type to bool and adjust comment.
3357 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3358 (fold_mathfn_compare): Remove calls to global_bindings_p.
3359 (fold_inf_compare): Likewise.
3360 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3361 * c-tree.h (global_bindings_p): Adjust prototype.
3362 * c-decl.c (global_bindings_p): Return bool and simplify.
3364 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3366 PR tree-optimization/48837
3367 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3368 when accumulator transformation is performed.
3370 2011-05-06 Jan Hubicka <jh@suse.cz>
3372 * i386.h (ix86_tune_indices): Add
3373 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3374 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3375 * i386.c (initial_ix86_tune_features): Add
3376 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3377 (software_prefetching_beneficial_p): Remove predicate.
3378 (ix86_option_override_internal): Use new macro.
3380 2011-05-06 Jan Hubicka <jh@suse.cz>
3382 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3384 2011-05-06 Jan Hubicka <jh@suse.cz>
3386 * cgraph.c (cgraph_add_thunk): Create real function node instead
3387 of alias node; finalize it and mark needed/reachale; arrange visibility
3388 to be right and add it into the corresponding same comdat group list.
3389 (dump_cgraph_node): Dump thunks.
3390 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3391 cgraph_function_with_gimple_body_p,
3392 cgraph_first_function_with_gimple_body,
3393 cgraph_next_function_with_gimple_body): New functions.
3394 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3396 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3397 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3398 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3399 devirtualization when optimizing.
3400 (verify_cgraph_node): Verify thunks.
3401 (cgraph_analyze_function): Analyze thunks.
3402 (cgraph_mark_functions_to_output): Output thunks only in combination
3403 with function they are assigned to.
3404 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3405 alias into normal node.
3406 (assemble_thunks): New functoin.
3407 (cgraph_expand_function): Use it.
3408 * lto-cgraph.c (lto_output_node): Stream thunks.
3409 (input_overwrite_node): Stream in thunks.
3410 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3411 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3412 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3413 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3414 (inline_analyze_function): Do not care about thunk jump functions.
3415 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3416 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3417 cgraph_function_with_gimple_body_p.
3418 * passes.c (do_per_function_toporder): Use
3419 cgraph_function_with_gimple_body_p.
3420 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3421 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3422 (function_called_by_processed_nodes_p): Likewise.
3424 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3426 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3427 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3429 (mabi=): Replace with separate entries for mabi=altivec,
3430 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3431 mabi=ieeelongdouble and mabi=ibmlongdouble.
3432 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3433 check for -mabi=spe without SPE ABI support here.
3434 (rs6000_handle_option): Replace OPT_mabi_ handling with
3435 OPT_mabi_altivec and OPT_mabi_spe handling.
3437 2011-05-06 Cary Coutant <ccoutant@google.com>
3439 * dwarf2out.c (contains_subprogram_definition): New function.
3440 (should_move_die_to_comdat): Call it.
3442 2011-05-06 Jeff Law <law@redhat.com>
3444 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3445 remove_ctrl_stmt_and_useless_edges.
3446 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3447 (fixup_template_block, thread_single_edge): Likewise.
3448 (mark_threaded_blocks): Use THREAD_TARGET.
3450 2011-05-06 Alan Modra <amodra@gmail.com>
3453 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3454 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3456 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3458 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3459 constraint modifier to "r".
3461 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3463 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3464 fall through for OPT_mcmodel_.
3466 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3468 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3470 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3472 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3475 * config/arm/arm.opt (marm): Document it.
3476 (mthumb): Reject negative variant.
3478 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3481 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3482 Fix typo in "ccvt" variable name.
3484 2011-05-06 Tristan Gingold <gingold@adacore.com>
3487 * config/vms/vms-ar.c (main): Remove cwd variable.
3489 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3492 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3494 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3496 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3497 * gimplify.c (gimplify_switch_expr): Likewise.
3498 * omp-low.c (expand_omp_sections): Likewise.
3499 * tree-eh.c (lower_try_finally_switch): Likewise.
3500 (lower_eh_dispatch): Likewise.
3501 * tree.h (build_case_label): Declare.
3502 * tree.c (build_case_label): Define.
3504 2011-05-05 Jason Merrill <jason@redhat.com>
3507 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3508 (copy_statement_list): Don't recurse.
3509 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3512 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3514 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3515 through from -mfpu= handling.
3516 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3518 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3520 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3523 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3525 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3527 (hppa[12]*-*-hpux11*): Ditto.
3528 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3529 * config/ia64/hpux-unix2003.h: New.
3530 * config/pa/pa-hpux1131.opt: New.
3531 * config/pa/pa-hpux1131.h: New.
3532 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3533 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3534 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3536 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3539 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3540 instead of mode as 3rd argument to recursive call.
3541 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3542 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3544 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3545 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3546 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3547 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3549 2011-05-05 Julian Brown <julian@codesourcery.com>
3551 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3552 parenthesis in D-register case.
3554 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3556 * opt-functions.awk (var_type_struct): Handle Enum options.
3557 * optc-gen.awk: Don't check range of variables of character type.
3558 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3559 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3560 rs6000_sdata_name, rs6000_explicit_options): Remove.
3561 (rs6000_option_override_internal): Check for -malign-power here.
3562 Use global_options_set instead of rs6000_explicit_options.
3563 (rs6000_parse_fpu_option): Remove.
3564 (rs6000_handle_option): Access variables via opts and opts_set
3565 pointers. Use error_at and warning_at. Add fall-through
3566 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3567 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3568 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3569 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3570 here. Don't use rs6000_parse_fpu_option.
3571 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3572 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3573 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3575 (mspe): Use Var and Save.
3576 (mtraceback=): Use Enum and Var.
3577 (rs6000_traceback_type): New Enum and EnumValue entries.
3578 (mfloat-gprs=): Use Enum, Var and Save.
3579 (rs6000_float_gprs): New Enum and EnumValue entries.
3580 (mlong-double-): use Var and Save.
3581 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3582 (malign-): Use Enum and Var.
3583 (rs6000_alignment_flags): New Enum and EnumValue entries.
3585 (fpu_type_t): New Enum and EnumValue entries.
3586 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3587 global_options_set instead of rs6000_explicit_options.
3588 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3589 global_options_set instead of rs6000_explicit_options.
3590 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3591 global_options_set instead of rs6000_explicit_options.
3592 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3593 global_options_set instead of rs6000_explicit_options.
3594 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3595 global_options_set instead of rs6000_explicit_options.
3596 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3597 global_options_set instead of rs6000_explicit_options.
3598 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3600 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3601 global_options_set instead of rs6000_explicit_options.
3602 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3603 (rs6000_cmodel): New Enum and EnumValue entries.
3604 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3605 global_options_set instead of rs6000_explicit_options.
3606 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3607 (mtls-size=): Use Enum and Var.
3608 (rs6000_tls_size): New Enum and EnumValue entries.
3610 2011-05-05 Michael Matz <matz@suse.de>
3612 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3613 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3614 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3615 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3616 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3617 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3618 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3619 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3620 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3621 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3622 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3623 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3624 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3625 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3626 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3627 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3629 2011-05-05 Richard Guenther <rguenther@suse.de>
3631 * expmed.c (expand_variable_shift): Rename to ...
3632 (expand_shift_1): ... this. Take an expanded shift amount.
3633 For rotates recurse directly not building trees for the shift amount.
3634 (expand_variable_shift): Wrap around expand_shift_1.
3635 (expand_shift): Adjust.
3637 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3639 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3641 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3643 * tree.h (get_pending_sizes): Remove prototype.
3644 (put_pending_size): Likewise.
3645 (put_pending_sizes): Likewise.
3646 * stor-layout.c (pending_sizes): Delete.
3647 (get_pending_sizes): Likewise.
3648 (put_pending_size): Likewise.
3649 (put_pending_sizes): Likewise.
3650 (variable_size): Do not call put_pending_size and tidy up.
3651 * function.h (struct function): Remove dont_save_pending_sizes_p.
3652 * lto-streamer-in.c (input_function): Do not stream it.
3653 * lto-streamer-out.c (output_function): Likewise.
3654 * tree-inline.c (initialize_cfun): Do not copy it.
3655 * c-decl.c (store_parm_decls): Do not set it.
3656 * omp-low.c (create_task_copyfn): Likewise.
3657 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3659 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3661 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3663 (*movdf_internal): Ditto.
3664 (*movdf_internal_nointeger): Ditto.
3665 (*movsf_internal): Ditto.
3667 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3669 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3670 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3671 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3672 (c_variable_size): Remove.
3673 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3674 call put_pending_sizes.
3675 (get_parm_info): Add parameter expr. Use it to set
3676 arg_info->pending_sizes.
3677 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3679 * c-parser.c (c_parser_parms_declarator): Update call to
3680 c_parser_parms_list_declarator.
3681 (c_parser_parms_list_declarator): Take parameter expr. Update
3682 call to push_parm_decl. Update recursive call. Don't call
3683 get_pending_sizes. Update calls to get_parm_info.
3684 (c_parser_objc_method_definition): Update calls to
3685 c_parser_objc_method_decl and objc_start_method_definition.
3686 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3687 (c_parser_objc_method_decl): Add parameter expr. Update call to
3689 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3690 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3691 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3693 2011-05-05 Michael Hope <michael.hope@linaro.org>
3696 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3699 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3701 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3702 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3703 (spu_output_mi_thunk): New function.
3705 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3707 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3708 targetm.asm_out.print_operand.
3709 * config/sol2.c: Include target.h.
3711 2011-05-04 Jan Hubicka <jh@suse.cz>
3713 * ipa-inline.c (reset_edge_caches): New function.
3714 (update_caller_keys): Add check_inlinablity_for; do not
3715 reset edge caches; remove now unnecesary loop.
3716 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3717 (update_all_callee_keys): Likewise.
3718 (inline_small_functions): Sanity check cache; update code
3721 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3723 PR rtl-optimization/47612
3724 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3725 as the last insn of the sequence to be moved.
3727 2011-05-04 Tobias Burnus <burnus@net-b.de>
3730 * doc/invoke.texi (Ofast): Document that it
3731 enables Fortran's -fno-protect-parens.
3733 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3735 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3737 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3739 * stor-layout.c (variable_size): Do not issue errors.
3741 2011-05-04 Richard Guenther <rguenther@suse.de>
3743 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3744 for array-ref indices.
3745 (tree_coverage_counter_addr): Likewise.
3746 (build_fn_info_type): Use size_int for index types.
3747 (build_gcov_info): Likewise.
3749 2011-05-04 Richard Guenther <rguenther@suse.de>
3751 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3753 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3754 for constructor indices.
3755 (push_init_level): Likewise.
3757 2011-05-04 Richard Guenther <rguenther@suse.de>
3759 * explow.c (promote_mode): Move variable declarations before code.
3761 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3763 * tree.h (build_function_type_array): Declare.
3764 (build_varargs_function_type_array): Declare.
3765 (build_function_type_vec, build_varargs_function_type_vec): Define.
3766 * tree.c (build_function_type_array_1): New function.
3767 (build_function_type_array): New function.
3768 (build_varargs_function_type_array): New function.
3770 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3772 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3773 before setting STMT_VINFO_TYPE.
3775 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3777 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3778 instead of spu_pass_by_reference.
3780 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3782 * calls.c (emit_library_call_value_1): Invoke
3783 promote_function_mode hook on libcall arguments.
3784 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3785 argument being NULL.
3786 * targhooks.c (default_promote_function_mode): Lisewise.
3787 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3788 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3790 * doc/tm.texi: Document that TYPE argument might be NULL.
3792 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3794 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3796 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3799 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3801 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3803 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3804 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3806 * mips-tfile.c: ... here.
3807 Don't include coretypes.h, tm.h, filenames.h.
3808 (saber_stop): Remove definition and all calls.
3809 [__SABER__]: Remove.
3810 (__LINE__): Remove default.
3811 (Size_t, Ptrdiff_t): Remove definitions.
3812 Replace by size_t, ptrdiff_t.
3813 [!MIPS_DEBUGGING_INFO]: Remove.
3814 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3815 (progname): Add const.
3817 Replace all uses by static.
3818 (ALIGN_SYMTABLE_OFFSET): Remove default.
3819 * mips-tdump.c: Don't include coretypes.h, tm.h.
3820 Remove !MIPS_IS_STAB guard.
3821 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3822 $(TM_H), filenames.h dependencies.
3823 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3825 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3828 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3829 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3831 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3834 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3835 account and save/restore RETS.
3836 (PROFILE_BEFORE_PROLOGUE): Define.
3837 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3838 the push insn to use predecrement.
3840 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3843 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3845 2011-05-04 Nick Clifton <nickc@redhat.com>
3847 * config/mn10300/mn10300.c: Include cfgloop.h.
3849 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3850 Lcc or a FLcc insn into the instruction stream.
3851 (mn10300_block_contains_call): New function. Returns true if the
3852 given basic block contains a CALL insn.
3853 (mn10300_loop_contains_call_insn): New function. Returns true if
3854 the given loop contains a CALL insn.
3855 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3856 to use the SETLB and Lcc or FLcc insns.
3857 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3858 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3859 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3860 disable the SETLB optimization.
3861 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3862 __SETLB__ or __NO_SETLB__.
3863 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3864 (movsf_internal): Handle MDR register.
3865 (cmpsi): Make visible.
3866 (setlb): New pattern.
3868 (FLcc): New pattern.
3870 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3873 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3874 for reg<->xmm moves.
3875 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3876 (vec_concatv2di_rex64_sse): Ditto.
3877 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3878 (*vec_extractv2di_1_rex64): Ditto.
3881 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3883 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3885 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3887 2011-05-04 Richard Guenther <rguenther@suse.de>
3889 * tree.h (int_const_binop): Remove notrunc argument.
3890 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3891 create integer constants that are properly truncated.
3892 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3893 (const_binop): Remove zero notrunc argument to int_const_binop.
3894 (size_binop_loc): Likewise.
3895 (fold_div_compare): Likewise.
3896 (maybe_canonicalize_comparison_1): Likewise.
3897 (fold_comparison): Likewise.
3898 (fold_binary_loc): Likewise.
3899 (multiple_of_p): Likewise.
3900 * expr.c (store_constructor): Likewise.
3901 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3902 (maybe_fold_stmt_addition): Likewise.
3903 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3904 * stor-layout.c (layout_type): Likewise.
3905 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3906 * tree-sra.c (build_ref_for_offset): Likewise.
3907 (build_user_friendly_ref_for_offset): Likewise.
3908 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3909 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3910 * tree-ssa-loop-niter.c (inverse): Likewise.
3911 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3912 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3913 * tree-switch-conversion.c (check_range): Likewise.
3914 (build_constructors): Likewise.
3915 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3916 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3917 (extract_range_from_assert): Likewise.
3918 (vrp_int_const_binop): Likewise.
3919 (extract_range_from_binary_expr): Likewise.
3920 (extract_range_from_unary_expr): Likewise.
3921 (check_array_ref): Likewise.
3922 (find_case_label_range): Likewise.
3923 (simplify_div_or_mod_using_ranges): Likewise.
3924 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3925 comparing case labels for merging.
3927 2011-05-03 Mark Wielaard <mjw@redhat.com>
3929 * dwarf2out.c (debug_str_hash_forced): Removed.
3930 (gen_label_for_indirect_string): Removed.
3931 (get_debug_string_label): Removed.
3932 (AT_string_form): Generate label directly.
3933 (output_indirect_string): Test indirect_string_node for
3934 DW_FORM_strp instead of checking label and refcount.
3935 (prune_indirect_string): Removed.
3936 (prune_unused_types): Don't check debug_str_hash_forced or
3937 call prune_indirect_string.
3939 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3942 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3944 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3948 * combine.c (try_combine): Skip debug insns at m_split tests.
3950 2011-04-26 Mark Wielaard <mjw@redhat.com>
3953 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3954 when info_section_emitted.
3956 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3958 * config/mips/mips-opts.h: New.
3959 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3961 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3962 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3963 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3965 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3967 (mips_abi, mips_code_readable): Don't declare.
3968 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3969 (mabi=): Use Enum and Var.
3970 (mips_abi): New Enum and EnumValue entries.
3971 (mcode-readable=): Use Enum and Var.
3972 (mips_code_readable_setting): New Enum and EnumValue entries.
3973 (mr10k-cache-barrier=): Use Enum and Var.
3974 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3976 2011-05-03 Jan Hubicka <jh@suse.cz>
3978 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3979 replace hash by pointer map.
3980 (cgraph_node_set_element_def, cgraph_node_set_element,
3981 const_cgraph_node_set_element, varpool_node_set_element_def,
3982 varpool_node_set_element, const_varpool_node_set_element): Remove.
3983 (free_cgraph_node_set, free_varpool_node_set): New function.
3984 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3985 * tree-emutls.c: Free varpool node set.
3986 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3987 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3988 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3989 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3990 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3991 Move here from ipa.c; implement using pointer_map
3992 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3993 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3994 debug_cgraph_node_set, varpool_node_set_new,
3995 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3996 dump_varpool_node_set, debug_varpool_node_set):
3997 Move to ipa-uitls.c.
3998 * passes.c (ipa_write_summaries): Update.
4000 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4002 From Mike Frysinger:
4003 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4004 bf542/bf544/bf547/bf548/bf549.
4006 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4008 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4010 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4013 * config/bfin/bfin.md (MOVCC): New mode_macro.
4014 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4015 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4016 comments from generated assembly.
4018 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4021 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4022 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4023 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4024 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4025 * config/bfin/lib1funcs.asm (___muldi3): New function.
4027 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4029 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4030 build_function_type_list instead of build_function_type.
4031 Rearrange initialization of `args' to do so.
4033 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4035 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4036 instead of build_function_type.
4038 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4040 * config/rs6000/rs6000.c (spe_init_builtins): Call
4041 build_function_type_list instead of build_function_type.
4042 (paired_init_builtins, altivec_init_builtins): Likewise.
4043 (builtin_function_type): Likewise.
4045 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4047 * config/sh/sh.c (sh_media_init_builtins): Call
4048 build_function_type_list instead of build_function_type.
4050 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4052 * config/sparc/sparc.c (sparc_file_end): Call
4053 build_function_type_list instead of build_function_type.
4055 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4057 * config/alpha/alpha.c (alpha_init_builtins): Call
4058 build_function_type_list instead of build_function_type.
4060 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4062 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4063 build_function_type_list instead of build_function_type.
4065 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4067 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4068 build_function_type_list instead of build_function_type.
4069 Delete `endlink' variable.
4071 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4073 * config/avr/avr.c (avr_init_builtins): Call
4074 build_function_type_list instead of build_function_type.
4076 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4078 * config/picochip/picochip.c (picochip_init_builtins): Call
4079 build_function_type_list instead of build_function_type.
4080 Delete `endlink' variable.
4082 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4084 * config/bfin/bfin.c (bfin_init_builtins): Call
4085 build_function_type_list instead of build_function_type.
4087 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4090 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4091 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4093 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4096 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4097 libbffastfp overrides libgcc when -mfast-fp.
4099 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4101 Originally from Bernd Schmidt
4102 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4103 * config/bfin/bfin.c (override_options): Test it and error if
4106 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4108 Originally From Bernd Schmidt
4109 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4112 2011-05-03 Jeff Law <law@redhat.com>
4114 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4115 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4116 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4117 than accessing AUX field directly. Free the AUX field before
4119 (thread_block, thread_through_loop_header): Likewise.
4120 (thread_single_edge, mark_threaded_blocks): Likewise.
4121 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4122 (register_jump_thread): Do not attempt to thread to a NULL edge.
4124 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4126 * function.c (init_function_start): Call decide_function_section.
4127 * varasm.c (decide_function_section): New function.
4128 (assemble_start_function): When not using
4129 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4130 or first_function_block_is_cold.
4131 * rtl.h (decide_function_section): Declare.
4133 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4134 Jakub Jelinek <jakub@redhat.com>
4137 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4138 only succeed if req_mode is the same as set_mode.
4140 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4142 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4143 * genemit.c (gen_exp): Handle RETURN.
4144 * emit-rtl.c (verify_rtx_sharing): Likewise.
4145 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4146 * rtl.c (copy_rtx): RETURN is shared.
4147 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4149 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4150 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4151 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4152 * config/cris/cris.c (cris_expand_return): Likewise.
4153 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4154 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4155 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4156 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4157 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4159 * config/v850/v850.c (expand_epilogue): Likewise.
4160 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4161 * config/arm/arm.md (epilogue): Likewise.
4162 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4163 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4164 variable to ret_reg.
4166 2011-05-03 Richard Guenther <rguenther@suse.de>
4169 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4170 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4171 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4173 2011-05-03 Richard Guenther <rguenther@suse.de>
4175 * c-decl.c (grokdeclarator): Instead of looking at
4176 TREE_OVERFLOW check if the constant fits in the index type.
4178 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4180 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4181 (vec_store_lanes<mode><mode>): Likewise.
4183 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4185 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4186 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4187 convert_optab_index values.
4188 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4189 * genopinit.c (optabs): Initialize the new optabs.
4190 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4191 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4192 (expand_STORE_LANES): New functions.
4193 * tree.h (build_array_type_nelts): Declare.
4194 * tree.c (build_array_type_nelts): New function.
4195 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4196 (vect_model_load_cost): Likewise.
4197 (vect_store_lanes_supported, vect_load_lanes_supported)
4198 (vect_record_strided_load_vectors): Declare.
4199 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4200 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4201 (vect_transform_strided_load): Split out statement recording into...
4202 (vect_record_strided_load_vectors): ...this new function.
4203 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4204 (write_vector_array, create_array_ref): New functions.
4205 (vect_model_store_cost): Add store_lanes_p argument.
4206 (vect_model_load_cost): Add load_lanes_p argument.
4207 (vectorizable_store): Try to use store-lanes functions for
4209 (vectorizable_load): Likewise load-lanes and loads.
4210 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4211 to vect_model_store_cost.
4212 (vect_build_slp_tree): Likewise vect_model_load_cost.
4214 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4216 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4217 * hooks.c (hook_bool_mode_uhwi_false): New function.
4218 * target.def (array_mode_supported_p): New hook.
4219 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4220 * doc/tm.texi: Regenerate.
4221 * stor-layout.c (mode_for_array): New function.
4222 (layout_type): Use it.
4223 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4224 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4226 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4229 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4230 for -fstack-check if the size to allocate is negative.
4232 2011-05-02 Lawrence Crowl <crowl@google.com>
4234 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4235 (timevar_cond_start): New for starting a timer only when it is not
4237 (timevar_cond_stop): New for stopping a timer when it was not already
4240 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4241 (timevar_cond_start): New as above.
4242 (timevar_cond_stop): New as above.
4244 * timevar.def: Add start/stop timers for compiler phases,
4245 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4246 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4247 and TV_PHASE_FINALIZE.
4248 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4249 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4250 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4251 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4252 Make unused TV_OVERLOAD into a start/stop timer.
4254 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4255 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4256 to indicate that they are start/stop timers.
4258 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4259 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4260 Move initialization to do_compile.
4261 (do_compile): Add initialization from above.
4262 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4264 * c-decl.c (c_write_global_declarations): Add start/stop of
4265 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4267 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4268 or TV_PARSE_INLINE, as appropriate.
4269 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4270 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4272 2011-05-02 Jason Merrill <jason@redhat.com>
4275 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4277 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4280 * c-decl.c (finish_decl): Only create a composite if the types are
4283 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4285 * config/fr30/fr30-protos.h (Mmode): Don't define.
4286 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4287 definition where used.
4288 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4289 define. Expand definitions where used.
4290 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4291 Expand definitions where used.
4292 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4293 rx_function_arg, rx_function_arg_advance,
4294 rx_function_arg_boundary): Expand definitions of those macros.
4295 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4296 definition where used.
4298 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4300 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4302 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4303 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4304 with *movv2sf_internal_rex64_avx.
4305 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4306 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4307 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4308 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4309 "vex" in "prefix" attribute calculation.
4310 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4312 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4315 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4316 inputs match the output.
4318 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4321 * config/m68k/m68k.c (m68k_expand_prologue): Set
4322 current_function_static_stack_size.
4324 2011-05-02 Jan Hubicka <jh@suse.cz>
4326 * lto-streamer.c (lto_streamer_cache_insert_1,
4327 lto_streamer_cache_lookup, lto_streamer_cache_create,
4328 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4329 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4331 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4333 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4334 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4335 config/m68k/t-opts: New files.
4336 * config/m68k/m68k-tables.opt: New file (generated).
4337 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4338 extra_options and m68k/t-opts to tmake_file.
4339 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4340 (all_isas): Initialize using m68k-isas.def.
4341 (all_microarchs): Initialize using m68k-microarchs.def.
4342 (m68k_find_selection): Remove.
4343 (m68k_handle_option): Don't assert that global structures are in
4344 use. Use error_at. Access variables via opts pointer. Don't
4345 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4346 directly for -m68020-40 and -m68020-60.
4347 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4348 m68k_tune_entry here.
4349 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4351 (m68k_library_id_string): Remove declaration.
4352 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4353 (m68k_library_id_string): New Variable.
4354 (march=, mcpu=, mtune=): Use Enum and Var.
4356 2011-05-02 Richard Guenther <rguenther@suse.de>
4358 * varasm.c (output_constructor_regular_field): Compute zero-based
4359 index with double-ints. Make sure to ICE instead of producing
4361 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4362 in asserts. Properly use a signed type.
4364 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4366 * config/i386/sse.md (V): New mode iterator.
4367 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4369 (V_256): Rename from AVX256MODE.
4370 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4371 condition to all users.
4373 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4374 condition to all users.
4375 (VF_128): Make V4SF mode unconditional.
4376 (VF_256): Rename from AVX256MODEF2P.
4377 (VI4F_128): Rename from SSEMODE4S.
4378 (VI8F_128): Rename from SSEMODE2D.
4379 (VI4F_256): Rename from AVX256MODE8P.
4380 (VI8F_256): Rename from AVX256MODE4P.
4381 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4382 (ssescalarmodesuffix): Remove SF and DF modes.
4383 (SSEMODE124): Remove.
4384 (SSEMODE1248): Ditto.
4385 (SSEMODEF2P): Ditto.
4386 (AVXMODEF2P): Ditto.
4387 (AVXMODEFDP): Ditto.
4388 (AVXMODEFSP): Ditto.
4389 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4391 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4393 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4394 xop_pcmov_<mode>256. Use V mode iterator.
4396 Adjust RTX patterns globally for renamed mode attributes.
4398 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4400 * haifa-sched.c (sched_emit_insn): Emit insn before first
4401 non-scheduled insn. Inform back-end about new insn. Add
4402 new insn to scheduled_insns list.
4404 2011-05-02 Richard Guenther <rguenther@suse.de>
4406 PR tree-optimization/48822
4407 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4408 (process_scc): Indicate which iteration we start.
4410 2011-05-02 Jan Hubicka <jh@suse.cz>
4412 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4413 (lto_section_overrun): New.
4414 * lto-section-out.c (append_block): Rename to ...
4415 (lto_append_block): ... this one; export.
4416 (lto_output_1_stream): Move lto lto-streamer.h
4417 (lto_output_data_stream): Update.
4418 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4419 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4422 2011-05-02 Richard Guenther <rguenther@suse.de>
4424 * tree.c (tree_code_counts): New global array.
4425 (record_node_allocation_statistics): Count individual tree codes.
4426 (dump_tree_statistics): Dump individual code stats.
4428 2011-05-01 Jan Hubicka <jh@suse.cz>
4430 * ipa-inline.c (caller_growth_limits): Fix thinko when
4431 looking for largest stack frame.
4432 * ipa-inline.h (dump_inline_summary): Declare.
4433 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4435 (dump_inline_summary): Export.
4436 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4438 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4440 * reginfo.c (memory_move_cost): Change rclass argument type form
4441 'enum reg_class' to reg_class_t.
4442 * reload.h (memory_move_cost): Update prototype.
4443 * postreload.c reload_cse_simplify_set): Change type dclass var to
4445 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4447 (ira_allocate_and_set_costs): Change aclass argument type form
4448 'enum reg_class' to reg_class_t.
4449 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4450 Change aclass argument type to reg_class_t.
4451 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4453 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4454 memory_move_cost call.
4456 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4457 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4458 Change type tmp var to reg_class_t.
4460 2011-04-30 Jan Hubicka <jh@suse.cz>
4462 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4463 inlining into function with flatten attribute.
4464 (want_inline_small_function_p): Be more realistic about inlining
4465 cold calls where callee size grows.
4467 2011-04-30 Jan Hubicka <jh@suse.cz>
4469 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4472 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4474 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4475 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4476 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4477 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4478 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4479 (print_operand): Rename to...
4480 (sparc_print_operand): ...this. Make static. Adjust
4481 sparc_print_operand function call.
4482 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4485 2011-04-30 Jan Hubicka <jh@suse.cz>
4488 * ipa-inline.c (early_inliner): Disable when doing late
4489 addition of function.
4491 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4493 * dwarf2out.c (get_address_mode): New inline.
4494 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4495 if not dwarf_strict emit
4496 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4497 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4498 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4499 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4500 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4501 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4502 mem_loc_descriptor callers.
4503 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4504 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4505 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4506 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4507 (base_types): New variable.
4508 (get_base_type_offset, calc_base_type_die_sizes,
4509 base_type_for_mode, mark_base_types, base_type_cmp,
4510 move_marked_base_types): New functions.
4511 (calc_die_sizes): Assert that die_offset is 0 or equal to
4513 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4514 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4515 callers. If not dwarf_strict, call mem_loc_descriptor even for
4516 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4517 (gen_subprogram_die): Don't give up on call site parameters
4518 with non-integral or large integral modes. Adjust
4519 mem_loc_descriptor callers.
4520 (prune_unused_types): Call prune_unused_types_mark on base_types
4522 (resolve_addr): Call mark_base_types.
4523 (dwarf2out_finish): Call move_marked_base_types.
4525 PR tree-optimization/48809
4526 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4528 (gen_inbound_check): Don't compute index_expr - range_min in utype
4529 again, instead reuse SSA_NAME initialized in build_arrays.
4530 Remove two useless gsi_for_stmt calls.
4532 2011-04-29 Jeff Law <law@redhat.com>
4534 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4536 2011-04-29 Martin Jambor <mjambor@suse.cz>
4538 * cgraph.h (cgraph_postorder): Remove declaration.
4539 * ipa-utils.h (ipa_free_postorder_info): Declare.
4540 (ipa_reverse_postorder): Likewise.
4541 * cgraphunit.c: Include ipa-utils.h.
4542 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4543 * ipa-inline.c: Include ipa-utils.h.
4544 (ipa_inline): Update call to ipa_reverse_postorder.
4545 * ipa-pure-const.c (propagate_pure_const): Update call to
4546 ipa_reduced_postorder and ipa_print_order. Call
4547 ipa_free_postorder_info to clean up.
4548 (propagate_nothrow): Likewise.
4549 * ipa-reference.c (propagate): Removed a useless call to
4550 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4551 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4552 * ipa.c: Include ipa-utils.h.
4553 (ipa_profile): Update call to ipa_reverse_postorder.
4554 (cgraph_postorder): Moved to...
4555 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4556 (ipa_utils_print_order): Renamed to ipa_print_order.
4557 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4559 (ipa_free_postorder_info): New function.
4560 * passes.c: Include ipa-utils.h.
4561 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4562 (ipa_write_summaries): Likewise.
4563 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4564 (cgraphunit.o): Likewise.
4566 (ipa-inline.o): Likewise.
4568 2011-04-29 Jan Hubicka <jh@suse.cz>
4570 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4571 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4572 * ipa-inline.h (clause_t): Turn into unsigned int.
4573 * ipa-inline-analysis.c (add_clause): Do more simplification.
4574 (and_predicates): Shortcut more cases.
4575 (predicates_equal_p): Move forward; check that clauses are properly
4577 (or_predicates): Shortcut more cases.
4578 (edge_execution_predicate): Rewrite as...
4579 (set_cond_stmt_execution_predicate): ... this function; handle
4580 __builtin_constant_p.
4581 (set_switch_stmt_execution_predicate): New .
4582 (compute_bb_predicates): New.
4583 (will_be_nonconstant_predicate): Update TODO.
4584 (estimate_function_body_sizes): Use compute_bb_predicates
4585 and free them later, always try to estimate if stmt is constant.
4586 (estimate_time_after_inlining, estimate_size_after_inlining):
4587 Gracefully handle optimized out edges.
4588 (read_predicate): Fix off by one error.
4590 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4592 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4594 2011-04-27 Xinliang David Li <davidxl@google.com>
4596 * tree-profile.c (init_ic_make_global_vars): Set
4597 tls attribute on ic vars.
4598 * coverage.c (coverage_end_function): Initialize
4599 function_list with zero.
4601 2011-04-29 Richard Guenther <rguenther@suse.de>
4603 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4604 for the type of the result.
4605 (fold_builtin_isascii): Likewise.
4606 (fold_builtin_toascii): Use integer_type_node where appropriate.
4607 (fold_builtin_logb): Likewise.
4608 (fold_builtin_frexp): Likewise.
4609 (fold_builtin_strstr): Likewise.
4610 (fold_builtin_strpbrk): Likewise.
4611 (fold_builtin_fputs): Likewise.
4612 (fold_builtin_sprintf): Likewise.
4613 (fold_builtin_snprintf): Likewise.
4614 (fold_builtin_printf): Likewise.
4615 (do_mpfr_remquo): Use a proper type for the assigned constant.
4616 (do_mpfr_lgamma_r): Likewise.
4617 * dwarf2out.c (resolve_one_addr): Use size_int.
4618 * except.c (init_eh): Likewise.
4619 (assign_filter_values): Use integer_type_node for filter values.
4620 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4622 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4623 for EH region numbers.
4624 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4625 for the shift amount.
4627 2011-04-29 Richard Guenther <rguenther@suse.de>
4629 * expr.h (expand_shift): Rename to ...
4630 (expand_variable_shift): ... this.
4631 (expand_shift): Take a constant shift amount.
4632 * expmed.c (expand_shift): Rename to ...
4633 (expand_variable_shift): ... this.
4634 (expand_shift): New wrapper around expand_variable_shift.
4635 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4636 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4637 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4638 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4639 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4640 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4641 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4642 emit_store_flag_1, emit_store_flag): Likewise.
4643 * builtins.c (expand_builtin_signbit): Likewise.
4644 * calls.c (load_register_parameters): Likewise.
4645 * function.c (assign_parm_setup_block): Likewise.
4646 * lower-subreg.c (resolve_shift_zext): Likewise.
4647 * optabs.c (widen_bswap, expand_abs_nojump,
4648 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4649 * spu/spu.c (spu_expand_extv): Likewise.
4650 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4652 2011-04-29 Richard Guenther <rguenther@suse.de>
4654 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4655 for the remapped region number.
4656 * predict.c (build_predict_expr): Use integer_type_node for the
4658 * fold-const.c (fold_binary_loc): Use integer_type_node for
4659 the shift amount. Use a proper type for the PLUS_EXPR operand.
4661 2011-04-29 Michael Matz <matz@suse.de>
4663 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4664 other trees that just builtins.
4665 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4667 2011-04-29 Richard Guenther <rguenther@suse.de>
4669 * tree-nested.c (get_trampoline_type): Use size_int.
4670 (get_nl_goto_field): Likewise.
4671 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4673 (lower_eh_constructs_2): Likewise.
4674 (lower_resx): Likewise.
4675 (lower_eh_dispatch): Likewise.
4676 * tree-mudflap.c (mf_build_string): Use size_int.
4677 (mudflap_register_call): Use integer_type_node for the flag.
4678 (mudflap_enqueue_constant): Use size_int.
4679 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4680 instead of rebuilding it.
4682 2011-04-29 Richard Guenther <rguenther@suse.de>
4684 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4685 Handle OBJ_TYPE_REF.
4686 (find_func_aliases_for_call): Use it more consistently.
4688 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4690 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4691 (rank_for_schedule): Use it.
4692 (schedule_block): Set it.
4694 2011-04-28 David Li <davidxl@google.com>
4696 * tree.c (crc32_string): Use crc32_byte.
4697 (crc32_byte): New function.
4698 * tree.h (crc32_byte): New function.
4699 * gcov.c (read_graph_file): Handle new cfg_cksum.
4700 (read_count_file): Ditto.
4701 * profile.c (instrument_values): Ditto.
4702 (get_exec_counts): Ditto.
4703 (read_profile_edge_counts): Ditto.
4704 (compute_branch_probabilities): Ditto.
4705 (compute_value_histograms): Ditto.
4706 (branch_prob): Ditto.
4707 (end_branch_prob): Ditto.
4708 * coverage.c (read_counts_file): Ditto.
4709 (get_coverage_counts): Ditto.
4710 (tree_coverage_counter_addr): Ditto.
4711 (coverage_checksum_string): Ditto.
4712 (coverage_begin_output): Ditto.
4713 (coverage_end_function): Ditto.
4714 (build_fn_info_type): Ditto.
4715 (build_fn_info_value): Ditto.
4716 * libgcov.c (gcov_exit): Ditto.
4717 * gcov-dump.c (tag_function): Ditto.
4718 (compute_checksum): Remove.
4720 2011-04-29 Alan Modra <amodra@gmail.com>
4722 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4723 unspec plus offset. Tidy macho code.
4725 2011-04-29 Martin Jambor <mjambor@suse.cz>
4727 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4728 node instead of a decl. Update all callers.
4729 * cgraph.h: Update declaration.
4731 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4733 PR tree-optimization/48765
4734 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4735 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4736 to indicate if loop aware SLP is being used. Scan the statements
4737 and update the vectorization factor according to the type of
4738 vectorization before statement analysis.
4739 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4740 pass it to vect_analyze_loop_operations.
4741 (vectorizable_reduction): Set number of copies to 1 in case of pure
4743 * tree-vect-stmts.c (vectorizable_conversion,
4744 vectorizable_assignment, vectorizable_shift,
4745 vectorizable_operation, vectorizable_type_demotion,
4746 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4748 (vectorizable_condition): Move the check that it is not SLP
4749 vectorization before the number of copies check.
4750 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4751 to vectorize the loop using SLP.
4753 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4756 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4759 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4761 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4762 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4763 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4764 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4765 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4767 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4768 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4769 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4770 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4771 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4772 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4774 * config/i386/linux.h (REG_NAME): Don't define.
4775 * config/i386/linux64.h (REG_NAME): Don't define.
4776 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4777 Undefine before defining.
4779 2011-04-28 Jan Hubicka <jh@suse.cz>
4781 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4782 nonconstant_names array.
4783 (estimate_function_body_sizes): Build nonconstant_names array; handle
4784 BUILT_IN_CONSTANT_P.
4786 2011-04-28 Richard Guenther <rguenther@suse.de>
4790 2011-04-28 Richard Guenther <rguenther@suse.de>
4792 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4793 as late as possible.
4795 2011-04-28 Richard Guenther <rguenther@suse.de>
4797 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4798 (debug_constraint): Do it here.
4799 (dump_constraints): And here.
4800 (rewrite_constraints): And here.
4801 (dump_constraint_edge): Remove.
4802 (dump_constraint_graph): Rewrite to produce DOT output.
4803 (solve_constraints): Build succ graph as late as possible.
4804 Dump constraint graphs before and after solving.
4806 2011-04-28 Richard Guenther <rguenther@suse.de>
4808 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4809 New function split out from ...
4810 (find_func_aliases): ... here. Call it.
4811 (find_func_aliases_for_call): Likewise.
4813 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4815 * internal-fn.h (internal_fn_name_array): Declare.
4816 (internal_fn_flags_array): Likewise.
4818 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4820 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4821 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4823 (ssemodefsuffix): Remove.
4824 (ssevecmodesuffix): New mode attribute.
4825 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4826 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4827 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4828 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4829 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4830 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4831 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4832 ssemodesuffix mode attribute.
4833 (float splitters): Use ssevecmodesuffix mode attribute.
4834 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4835 (sseinsmode): Rename from avxvecmode.
4836 (avxsizesuffix): Rename from avxmodesuffix.
4837 (sseintvecmode): Rename from avxpermvecmode.
4838 (ssedoublevecmode): Rename from ssedoublesizemode.
4839 (ssehalfvecmode): Rename from avxhalfvecmode.
4840 (ssescalarmode): Rename from avxscalarmode.
4841 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4842 templates for ssemodesuffix mode attribute.
4843 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4846 Adjust RTX patterns globally for renamed mode attributes.
4848 2011-04-27 Jan Hubcika <jh@suse.cz>
4850 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4851 * ipa-inline-analysis.c: Include alloc-pool.h.
4852 (edge_predicate_pool): New.
4853 (trye_predicate_p): New function
4854 (false_predicate_p): New function.
4855 (add_clause): Sanity check that false clauses are "optimized";
4856 never add clauses to predicate that is already known to be false.
4857 (and_predicate): Use flase_predicate_p.
4858 (evaulate_predicate): Rename to ...
4859 (evaluate_predicate): ... this one; update all callers; assert
4860 that false is not listed among possible truths.
4861 (dump_predicate): Use true_predicate_p.
4862 (account_size_time): Use false_predicate_p.
4863 (evaulate_conditions_for_edge): Rename to ...
4864 (evaluate_conditions_for_edge) ... this one.
4865 (edge_set_predicate): New function.
4866 (inline_edge_duplication_hook): Duplicate edge predicates.
4867 (inline_edge_removal_hook): Free edge predicates.
4868 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4869 (dump_inline_summary): Update.
4870 (estimate_function_body_sizes): Set edge predicates.
4871 (estimate_calls_size_and_time): Handle predicates.
4872 (estimate_callee_size_and_time): Update.
4873 (remap_predicate): Add toplev_predicate; update comment.
4874 (remap_edge_predicates): New function.
4875 (inline_merge_summary): Compute toplev predicate; update.
4876 (read_predicate): New function.
4877 (read_inline_edge_summary): Use it.
4878 (inline_read_section): Likewise.
4879 (write_predicate): New function.
4880 (write_inline_edge_summary): Use it.
4881 (inline_write_summary): Likewise.
4882 (inline_free_summary): Free alloc pool and edge summary vec.
4884 2011-04-27 Richard Guenther <rguenther@suse.de>
4886 * tree-ssa-structalias.c (changed_count): Remove.
4887 (changed): Use a bitmap.
4888 (unify_nodes): Adjust.
4889 (do_sd_constraint): Likewise.
4890 (do_ds_constraint): Likewise.
4891 (do_complex_constraint): Likewise.
4892 (solve_graph): Likewise.
4894 2011-04-27 Jan Hubicka <jh@suse.cz>
4896 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4898 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4900 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4901 (avx_vperm2f128_*_operand): Ditto.
4902 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4903 Use avx_vpermilp_parallel in insn condition.
4904 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4905 Use avx_vperm2f128_parallel in insn condition.
4907 2011-04-27 Richard Guenther <rguenther@suse.de>
4909 * Makefile.in (tree-ssa-structalias.o): Remove
4910 gt-tree-ssa-structalias.h dependency.
4911 (GTFILES): Remove tree-ssa-structalias.c.
4912 * tree.c (allocate_decl_uid): New function.
4913 (make_node_stat): Use it.
4914 (copy_node_stat): Likewise.
4915 * tree.h (allocate_decl_uid): Declare.
4916 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4917 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4918 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4919 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4920 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4921 (struct heapvar_map): Likewise.
4922 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4923 heapvar_insert): Likewise.
4924 (make_heapvar_for): Rename to ...
4925 (make_heapvar): ... this. Simplify.
4926 (fake_var_decl_obstack): New global var.
4927 (build_fake_var_decl): New function.
4928 (make_constraint_from_heapvar): Adjust.
4929 (handle_lhs_call): Likewise.
4930 (create_function_info_for): Likewise.
4931 (intra_create_variable_infos): Likewise.
4932 (init_alias_vars): Allocate fake_var_decl_obstack.
4933 (init_alias_heapvars, delete_alias_heapvars): Remove.
4934 (compute_points_to_sets): Do not call init_alias_heapvars.
4935 (ipa_pta_execute): Likewise.
4936 (delete_points_to_sets): Free fake_var_decl_obstack.
4938 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4940 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4941 (si_from_UTItype, si_to_UTItype): New functions.
4942 (__udivmodti4): Use them to implement type-punning.
4943 * config/spu/multi3.c (union qword_TItype): New data type.
4944 (si_from_TItype, si_to_TItype): New functions.
4945 (__multi3): Use them to implement type-punning.
4947 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4949 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4951 2011-04-27 Jan Hubicka <jh@suse.cz>
4953 * ipa-prop.c (function_insertion_hook_holder): New holder.
4954 (ipa_add_new_function): New function.
4955 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4956 Register/deregister holder.
4958 2011-04-27 Richard Guenther <rguenther@suse.de>
4960 PR tree-optimization/48772
4961 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4963 2011-04-27 Richard Guenther <rguenther@suse.de>
4965 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4966 TARGET_MEM_REF handling.
4968 2011-04-27 Nick Clifton <nickc@redhat.com>
4970 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4971 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4972 (REG_CLASS_NAMES): Likewise.
4973 (REG_CLASS_CONTENTS): Likewise.
4974 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4975 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4976 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4977 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4978 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4979 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4980 duplicate register classes.
4981 (frv_class_likely_spilled_p): Likewise.
4982 (frv_register_move_cost): Likewise.
4984 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4985 end of the regno_reg_class array.
4987 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4990 * c-typeck.c (build_binary_op): Don't wrap arguments if
4991 int_operands is true.
4993 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4996 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4997 targetm.calls.must_pass_in_stack for void type.
4999 2011-04-26 Jan Hubicka <jh@suse.cz>
5001 * cgraphbuild.c (build_cgraph_edges): Update call
5002 of cgraph_create_edge and cgraph_create_indirect_edge.
5003 * cgraph.c (cgraph_create_edge_including_clones,
5004 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5005 cgraph_update_edges_for_call_stmt_node): Do not take nest
5006 argument; do not initialize call_stmt_size/time.
5007 (dump_cgraph_node): Do not dump nest.
5008 (cgraph_clone_edge): Do not take loop_nest argument;
5009 do not propagate it; do not clone call_stmt_size/time.
5010 (cgraph_clone_node): Likewise.
5011 (cgraph_create_virtual_clone): Update.
5012 * cgraph.h (struct cgraph_edge): Remove
5013 call_stmt_size/call_stmt_time/loop_nest.
5014 (cgraph_create_edge, cgraph_create_indirect_edge,
5015 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5017 * tree-emutls.c (gen_emutls_addr): Update.
5018 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5019 loop_nest; handle indirect calls, too.
5020 (clone_inlined_nodes): Do not care about updating inline summaries.
5021 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5022 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5023 stream call_stmt_size/call_stmt_time/loop_nest.
5024 * ipa-inline.c (edge_badness): Update.
5025 (ipa_inline): dump summaries after inlining.
5026 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5028 (inline_edge_summary): New function.
5029 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5030 (inline_edge_removal_hook): Handle edge summaries.
5031 (inline_edge_duplication_hook): New hook.
5032 (inline_summary_alloc): Alloc hooks.
5033 (initialize_growth_caches): Do not register removal hooks.
5034 (free_growth_caches); Do not free removal hook.
5035 (dump_inline_edge_summary): New function.
5036 (dump_inline_summary): Use it.
5037 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5038 (inline_update_callee_summaries): New function.
5039 (inline_merge_summary): Use it.
5040 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5041 (read_inline_edge_summary): New function.
5042 (inline_read_section): Use it.
5043 (write_inline_edge_summary): New function.
5044 (inline_write_summary): Use it.
5045 (inline_free_summary): Free edge new holders.
5046 * tree-inline.c (copy_bb): Update.
5048 2011-04-26 Jason Merrill <jason@redhat.com>
5050 * tree-eh.c (lower_try_finally_switch): Create the label along with
5051 the CASE_LABEL_EXPR.
5053 2011-04-26 David S. Miller <davem@davemloft.net>
5054 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5056 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5057 * configure: Regenerate.
5059 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5062 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5064 (VEC_reduc): New code iterator and splitters for vector reduction.
5065 (VEC_reduc_name): Ditto.
5066 (VEC_reduc_rtx): Ditto.
5067 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5068 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5070 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5071 support for extracting SF on VSX.
5073 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5074 generating xscvspdp.
5075 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5076 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5077 double add, minimum, maximum vector reduction.
5078 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5079 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5080 optimize double vector reduction.
5081 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5083 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5085 * config/fr30/fr30.h (inhibit_libc): Don't define.
5086 * config/m32r/m32r-protos.h: Correct comment.
5087 * config/v850/v850.h (GHS_default_section_names,
5088 GHS_current_section_names): Use tree, not union tree_node *.
5090 2011-04-26 Xinliang David Li <davidxl@google.com>
5092 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5093 * c-family/c-opts.c (c_common_handle_option): Set
5094 warn_maybe_uninitialized.
5095 * opts.c (common_handle_option): Ditto.
5096 * common.opt: New option.
5097 * tree-ssa.c (warn_uninit): Add one more parameter.
5098 (warn_uninitialized_var): Pass warning code.
5099 * tree-flow.h: Interface change.
5101 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5103 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5104 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5105 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5107 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5109 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5110 * config/mips/mips.opt (mmips-tfile): Remove.
5112 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5113 mips-tdump reference to ...
5114 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5115 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5116 reference by Tru64 UNIX.
5118 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5121 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5122 is error_mark_node, set value to NULL.
5124 PR tree-optimization/48734
5125 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5126 if return value from maybe_fold_*_comparsions isn't something
5127 the code is prepared to handle.
5129 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5131 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5133 (ext_QIreg_nomode_operands): Remove.
5134 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5138 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5140 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5142 2011-04-26 Richard Guenther <rguenther@suse.de>
5144 * c-typeck.c (build_unary_op): Do not expand array-refs via
5145 pointer arithmetic. Only adjust qualifiers for function types.
5147 2011-04-26 Richard Guenther <rguenther@suse.de>
5150 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5151 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5152 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5153 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5155 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5157 * doc/extend.texi: Document __underlying_type.
5159 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5161 * config/rs6000/titan.md (automata_option "progress"): Remove.
5163 2011-04-25 Jeff Law <law@redhat.com>
5165 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5167 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5169 * system.h (ENUM_BITFIELD): Remove.
5171 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5172 Eric Botcazou <ebotcazou@adacore.com>
5174 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5175 for STORE_FLAG_VALUE==-1 case.
5177 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5180 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5181 LEGITIMATE_PIC_OPERAND_P.
5183 2011-04-24 Jan Hubicka <jh@suse.cz>
5185 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5187 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5188 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5189 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5190 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5191 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5192 Sanity check predicate length.
5193 (remap_predicate): Likewise; sanity check jump functions.
5194 (inline_read_section, inline_write_summary): Sanity check
5197 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5200 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5201 __is_literal_type, and __is_trivial; update throughout about
5202 possibly cv-qualified void types.
5204 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5206 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5207 testsuite and make it version agnostic.
5209 2011-04-22 Jan Hubicka <jh@suse.cz>
5211 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5213 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5216 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5217 to VOID_TYPE even around MODIFY_EXPR.
5219 2011-04-22 Mike Stump <mikestump@comcast.net>
5221 * gensupport.c (read_md_rtx): Fix typo in comment.
5222 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5225 2011-04-22 Jan Hubicka <jh@suse.cz>
5227 * gengtype.c (open_base_files): Add ipa-inline.h include.
5228 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5229 ipa-prop.c; update all uses.
5230 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5231 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5232 merge summary of inlined function into former caller.
5233 * ipa-inline.c (max_benefit): Remove.
5234 (edge_badness): Compensate for removal of benefits.
5235 (update_caller_keys): Use
5236 reset_node_growth_cache/reset_edge_growth_cache.
5237 (update_callee_keys): Likewise.
5238 (update_all_callee_keys): Likewise.
5239 (inline_small_functions): Do not collect max_benefit; do not reset
5240 estimated_growth; call free_growth_caches and initialize_growth_caches.
5241 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5242 struct size_time_entry): New structures.
5243 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5244 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5245 and estimated_growth.
5246 (edge_growth_cache_entry): New structure.
5247 (node_growth_cache, edge_growth_cache): New global vars.
5248 (estimate_growth): Turn into inline.
5249 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5250 initialize_growth_caches, free_growth_caches): Declare.
5251 (estimate_edge_growth): Rewrite.
5252 (estimate_edge_time): Implement as inline cache lookup.
5253 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5255 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5256 (NUM_CONDITIONS): New constant.
5257 (predicate_conditions): New enum.
5258 (IS_NOT_CONSTANT): New constant.
5259 (edge_removal_hook_holder): New var.
5260 (node_growth_cache, edge_growth_cache): New global vars.
5261 (true_predicate, single_cond_predicate, false_predicate,
5262 not_inlined_predicate, add_condition, add_clause, and_predicates,
5263 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5264 dump_clause, dump_predicate, account_size_time,
5265 evaulate_conditions_for_edge): New functions.
5266 (inline_summary_alloc): Move to heap.
5267 (inline_node_removal_hook): Clear condition and entry vectors.
5268 (inline_edge_removal_hook): New function.
5269 (initialize_growth_caches, free_growth_caches): New function.
5270 (dump_inline_summary): Update.
5271 (edge_execution_predicate): New function.
5272 (will_be_nonconstant_predicate): New function.
5273 (estimate_function_body_sizes): Compute BB and constantness predicates.
5274 (compute_inline_parameters): Do not clear estimated_growth.
5275 (estimate_edge_size_and_time): New function.
5276 (estimate_calls_size_and_time): New function.
5277 (estimate_callee_size_and_time): New function.
5278 (remap_predicate): New function.
5279 (inline_merge_summary): New function.
5280 (do_estimate_edge_time): New function based on...
5281 (estimate_edge_time): ... this one.
5282 (do_estimate_edge_growth): New function.
5283 (do_estimate_growth): New function based on....
5284 (estimate_growth): ... this one.
5285 (inline_analyze_function): Analyze after deciding on jump functions.
5286 (inline_read_section): New function.
5287 (inline_read_summary): Use it.
5288 (inline_write_summary): Write all the new data.
5289 * ipa-prop.c (ipa_get_param_decl_index): Export.
5290 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5291 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5293 (ipa_get_lattice): Move here from ipa-cp.c
5294 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5295 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5296 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5297 cgraph_edge_inlinable_p): Remove.
5298 * cgraphunit.c: Include ipainline.h
5299 (cgraph_process_new_functions): Update call of
5300 compute_inline_parameters.
5302 2011-04-22 Richard Guenther <rguenther@suse.de>
5304 * tree.c (build_int_cst): Properly create canonicalized integer
5306 (build_int_cst_type): Remove scary comments.
5308 2011-04-22 Xinliang David Li <davidxl@google.com>
5310 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5311 by default when -Wno-error is not specified.
5312 * opts-global.c (decode_options): Remove call to
5313 control_warning_options.
5315 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5317 PR tree-optimization/48717
5318 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5319 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5321 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5323 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5324 definition where used.
5326 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5329 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5330 TREE_STATIC variables declared inside of some OpenMP construct.
5332 2011-04-22 Martin Jambor <mjambor@suse.cz>
5335 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5337 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5340 * c-typeck.c (pop_init_level): Do not warn about initializing
5343 2011-04-22 Alan Modra <amodra@gmail.com>
5345 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5346 when returning call_cookie.
5347 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5348 pointers, to functions with no more vector args than the current
5349 function, and some non-local calls for ABI_V4.
5350 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5351 sibcall_nonlocal_aix64): Combine to ..
5352 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5353 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5354 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5355 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5356 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5358 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5359 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5360 sibcall_value_symbolic_64): Delete.
5362 2011-04-21 Xinliang David Li <davidxl@google.com>
5364 * cgraph.h: Remove pid.
5365 * cgraph.c: Remove pid.
5366 * value-prof.c (init_node_map): New function.
5367 (del_node_map): New function.
5368 (find_func_by_funcdef_no): New function.
5369 (gimple_ic_transform): Call new function.
5370 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5371 * function.c (get_last_funcdef_no): New function.
5372 * function.h (get_last_funcdef_no): New function.
5373 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5374 to libgcov function.
5375 (tree-profiling): Call node map init and delete function.
5377 2011-04-21 Ian Lance Taylor <iant@google.com>
5379 * godump.c (go_format_type): Use exported Go name for anonymous
5382 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5384 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5385 Call builtin_function_type_list instead of builtin_function_type.
5386 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5388 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5390 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5391 build_function_type_list instead of build_function_type.
5392 Delete variable `endlink'.
5394 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5396 * config/s390/s390.c (s390_init_builtins): Call
5397 build_function_type_list instead of build_function_type.
5399 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5401 * config/ia64/ia64.c (ia64_init_builtins): Call
5402 build_function_type_list instead of builtin_function_type.
5404 2011-04-21 Easwaran Raman <eraman@google.com>
5406 * cfgexpand.c (stack_var): Remove OFFSET...
5407 (add_stack_var): ...and its reference here...
5408 (expand_stack_vars): ...and here.
5409 (stack_var_cmp): Sort by descending order of size.
5410 (partition_stack_vars): Change heuristic.
5411 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5412 (dump_stack_var_partition): Add newline after each partition.
5414 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5415 Jeff Law <law@redhat.com>
5417 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5418 * gengtype.c (matching_file_name_substitute): Likewise.
5420 2011-04-21 Richard Guenther <rguenther@suse.de>
5423 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5425 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5427 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5429 2011-04-21 Richard Guenther <rguenther@suse.de>
5431 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5434 2011-04-21 Richard Guenther <rguenther@suse.de>
5436 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5437 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5438 Use DECL_P, not SSA_VAR_P.
5439 (ptr_derefs_may_alias_p): Likewise.
5440 (ptr_deref_may_alias_ref_p_1): Likewise.
5441 (decl_refs_may_alias_p): Likewise.
5442 (refs_may_alias_p_1): Likewise.
5443 (ref_maybe_used_by_call_p_1): Likewise.
5444 (call_may_clobber_ref_p_1): Likewise.
5445 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5446 are either MEM_REF or TARGET_MEM_REF.
5447 (indirect_refs_may_alias_p): Likewise.
5448 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5449 for MEM_EXPR of indirect calls.
5451 2011-04-21 Tristan Gingold <gingold@adacore.com>
5453 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5454 (dst_file_info_struct): Remove flen field.
5455 (lookup_filename): Remove code that set flen field.
5457 2011-04-21 Tristan Gingold <gingold@adacore.com>
5459 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5461 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5464 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5465 vec_extract and vec_concat for non-SSE4_1 targets.
5467 2011-04-21 Richard Guenther <rguenther@suse.de>
5469 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5472 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5474 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5476 (FILE): Don't undefine.
5478 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5480 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5482 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5484 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5485 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5486 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5488 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5489 definitions where used.
5490 * config/microblaze/microblaze.h (struct microblaze_args): Use
5491 rtx, not struct rtx_def *.
5492 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5494 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5495 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5496 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5497 not struct rtx_def *.
5498 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5500 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5502 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5504 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5506 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5507 operand_equal_p to compare DR_BASE_ADDRESSes.
5508 (vect_check_interleaving): Likewise.
5510 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5513 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5514 for all Neon struct constants.
5516 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5518 * target.def (legitimate_constant_p): New hook.
5519 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5520 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5521 * doc/tm.texi: Regenerate.
5522 * hooks.h (hook_bool_mode_rtx_true): Declare.
5523 * hooks.c (hook_bool_mode_rtx_true): Define.
5524 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5525 * calls.c (precompute_register_parameters): Replace uses of
5526 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5527 (emit_library_call_value_1): Likewise.
5528 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5529 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5530 * ira-costs.c (scan_one_insn): Likewise.
5531 * recog.c (general_operand, immediate_operand): Likewise.
5532 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5533 * reload1.c (init_eliminable_invariants): Likewise.
5535 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5537 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5538 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5540 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5541 * config/alpha/predicates.md (input_operand): Update call to
5542 alpha_legitimate_constant_p.
5544 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5545 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5546 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5547 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5548 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5549 (arm_legitimate_constant_p): New functions.
5550 (arm_cannot_force_const_mem): Make static.
5552 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5554 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5555 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5556 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5557 instead of bfin_legitimate_constant_p.
5558 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5559 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5561 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5563 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5565 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5566 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5567 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5568 (frv_legitimate_constant_p): Make static. Add a mode argument.
5570 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5571 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5572 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5574 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5575 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5576 * config/i386/i386.c (legitimate_constant_p): Rename to...
5577 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5579 (ix86_cannot_force_const_mem): Update accordingly.
5580 (ix86_legitimate_address_p): Likewise.
5581 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5582 * config/i386/i386.md: Update commentary.
5584 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5585 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5586 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5587 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5589 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5591 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5592 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5593 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5594 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5596 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5597 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5598 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5600 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5601 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5602 (m32r_legitimate_constant_p): New function.
5604 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5605 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5606 LEGITIMATE_CONSTANT_P.
5607 (LEGITIMATE_CONSTANT_P): Delete.
5608 * config/m68k/m68k.c (m68k_expand_prologue): Call
5609 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5610 (m68k_legitimate_constant_p): New function.
5611 * config/m68k/m68k.md: Update comments.
5613 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5614 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5615 (mcore_legitimate_constant_p): New function.
5617 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5618 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5619 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5620 Add a mode argument.
5621 (mep_legitimate_address): Update accordingly.
5622 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5624 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5626 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5627 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5628 static. Check OP's mode for VOIDmode.
5629 (microblaze_legitimate_constant_p): New function.
5630 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5632 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5633 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5634 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5635 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5636 * config/mips/predicates.md: Update comments.
5638 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5639 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5640 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5641 (mmix_legitimate_constant_p): Make static, return a bool, and take
5643 (mmix_print_operand_address): Update accordingly.
5645 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5647 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5648 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5649 static. Add a mode argument.
5650 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5652 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5654 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5655 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5656 (pa_legitimate_constant_p): New function.
5658 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5660 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5661 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5662 (pdp11_legitimate_constant_p): New function.
5664 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5665 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5666 (rs6000_legitimate_constant_p): New function.
5668 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5669 (rx_legitimate_constant_p): ...this.
5670 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5671 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5672 (rx_legitimate_constant_p): ...this.
5673 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5674 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5676 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5677 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5678 * config/s390/s390.c (legitimate_constant_p): Rename to...
5679 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5680 and add a mode argument.
5681 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5683 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5685 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5686 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5687 (sh_legitimate_constant_p): New function.
5689 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5690 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5691 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5692 (legitimate_constant_p): Rename to...
5693 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5695 (constant_address_p): Update accordingly.
5697 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5698 argument and return a bool.
5699 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5700 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5701 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5702 (spu_rtx_costs): Update accordingly.
5703 * config/spu/predicates.md (vec_imm_operand): Likewise.
5705 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5707 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5708 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5709 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5711 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5712 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5713 * config/vax/vax.c (legitimate_constant_p): Likewise.
5715 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5716 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5717 (xtensa_legitimate_constant_p): New function.
5719 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5721 * target.def (cannot_force_const_mem): Add a mode argument.
5722 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5723 * doc/tm.texi: Regenerate.
5724 * hooks.h (hook_bool_mode_rtx_false): Declare.
5725 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5726 (hook_bool_mode_const_rtx_true): Likewise.
5727 (hook_bool_mode_rtx_false): New function.
5728 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5729 to be non-VOID. Update call to cannot_force_const_mem.
5730 (find_reloads): Update accordingly.
5731 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5732 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5734 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5735 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5736 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5737 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5738 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5739 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5740 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5741 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5742 (m68k_cannot_force_const_mem): ...this new function.
5743 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5745 (mips_const_insns, mips_legitimize_const_move): Update calls.
5746 (mips_secondary_reload_class): Likewise.
5747 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5748 (pa_cannot_force_const_mem): ...this new function.
5749 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5750 (rs6000_cannot_force_const_mem): ...this new function.
5751 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5753 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5754 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5756 (xtensa_cannot_force_const_mem): ...this new function.
5758 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5760 * config/mips/mips.c (mips16_build_function_stub): Call
5761 build_function_type_list instead of build_function_type.
5762 (mips16_build_call_stub): Likewise.
5764 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5766 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5767 instead of build_function_type.
5769 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5771 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5772 instead of build_function_type.
5774 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5777 * config/i386/i386.md (insv): Change operand 0 constraint to
5778 "register_operand". Change operand 1 and 2 constraint to
5779 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5780 * config/i386/sse.md (sse4_1_pinsrb): Export.
5781 (sse2_pinsrw): Ditto.
5782 (sse4_1_pinsrd): Ditto.
5783 (sse4_1_pinsrq): Ditto.
5784 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5785 * config/i386/i386.c (ix86_expand_pinsr): New.
5787 2011-04-20 Easwaran Raman <eraman@google.com>
5789 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5790 containing union type only with -fstrict-aliasing.
5792 2011-04-20 Jim Meyering <meyering@redhat.com>
5794 Remove useless if-before-free tests.
5795 * calls.c (expand_call, save_area): Likewise.
5796 * cfgcleanup.c (try_forward_edges): Likewise.
5797 * collect2.c (collect_execute): Likewise.
5798 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5799 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5800 * coverage.c (coverage_checksum_string): Likewise.
5801 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5802 * cselib.c (cselib_init): Likewise.
5803 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5804 (df_set_clean_cfg): Likewise.
5805 * function.c (free_after_compilation): Likewise.
5806 * gcc.c (do_spec_1, main): Likewise.
5807 * gcov.c (create_file_names): Likewise.
5808 * gensupport.c (identify_predicable_attribute): Likewise.
5809 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5810 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5811 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5812 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5813 * ipa-pure-const.c (local_pure_const): Likewise.
5814 * ipa-reference.c (propagate): Likewise.
5815 * ira-costs.c (free_ira_costs): Likewise.
5816 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5817 * matrix-reorg.c (mat_free): Likewise.
5818 * prefix.c (get_key_value): Likewise.
5819 * profile.c (compute_value_histograms): Likewise.
5820 * reload1.c (free_reg_equiv): Likewise.
5821 * sched-deps.c (free_deps): Likewise.
5822 * sel-sched-ir.c (fence_clear): Likewise.
5823 * sese.c (set_rename, if_region_set_false_region): Likewise.
5824 * tree-data-ref.c (free_rdg): Likewise.
5825 * tree-eh.c (lower_try_finally): Likewise.
5826 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5827 * tree-ssa-live.c (delete_var_map): Likewise.
5828 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5829 * tree-ssa-pre.c (phi_trans_add): Likewise.
5831 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5833 PR tree-optimization/48611
5834 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5835 beyond ERT_MUST_NOT_THROW region.
5837 2011-04-20 Catherine Moore <clm@codesourcery.com>
5839 * config/mips/mips.opt (mfix-24k): New.
5840 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5841 * config/mips/mips.md (length): Increase by 4 for stores if
5843 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5844 all noreorder if fixing 24K errata.
5845 * doc/invoke.texi: Document mfix-24k.
5847 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5849 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5850 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5852 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5854 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5855 (const_ok_for_op): ... to here.
5857 2011-04-20 Kai Tietz <ktietz@redhat.com>
5859 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5860 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5862 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5864 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5866 2011-04-20 Richard Guenther <rguenther@suse.de>
5868 PR tree-optimization/47892
5869 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5872 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5874 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5876 2011-04-20 Tristan Gingold <gingold@adacore.com>
5878 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5880 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5884 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5885 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5886 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5887 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5888 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5890 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5893 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5894 (avr_asm_named_section, avr_asm_output_aligned_common,
5895 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5896 New functions to update...
5897 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5898 (avr_asm_init_sections): Overwrite section callbacks for
5899 data_section, bss_section.
5900 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5902 (avr_file_end): ...here.
5904 2011-04-20 Richard Guenther <rguenther@suse.de>
5907 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5908 objects and types here. Adjust for their offset before comparing.
5910 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5912 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5915 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5917 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5918 (GIMPLE_H): Include $(INTERNAL_FN_H).
5919 (OBJS-common): Add internal-fn.o.
5920 (internal-fn.o): New rule.
5921 * internal-fn.def: New file.
5922 * internal-fn.h: Likewise.
5923 * internal-fn.c: Likewise.
5924 * gimple.h: Include internal-fn.h.
5925 (GF_CALL_INTERNAL): New gf_mask.
5926 (gimple_statement_call): Put fntype into a union with a new
5928 (gimple_build_call_internal): Declare.
5929 (gimple_build_call_internal_vec): Likewise.
5930 (gimple_call_same_target_p): Likewise.
5931 (gimple_call_internal_p): New function.
5932 (gimple_call_internal_fn): Likewise.
5933 (gimple_call_fntype): Return null for internal calls.
5934 (gimple_call_set_fntype): Assert that the function is not internal.
5935 (gimple_call_set_fn): Likewise.
5936 (gimple_call_set_fndecl): Likewise.
5937 (gimple_call_set_internal_fn): New function.
5938 (gimple_call_addr_fndecl): Handle null functions.
5939 (gimple_call_return_type): Likewise null types.
5940 * gimple.c (gimple_build_call_internal_1): New function.
5941 (gimple_build_call_internal): Likewise.
5942 (gimple_build_call_internal_vec): Likewise.
5943 (gimple_call_same_target_p): Likewise.
5944 (gimple_call_flags): Handle calls to internal functions.
5945 (gimple_call_fnspec): New function.
5946 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5947 (gimple_has_side_effects): Handle null functions.
5948 (gimple_rhs_has_side_effects): Likewise.
5949 (gimple_call_copy_skip_args): Handle calls to internal functions.
5950 * cfgexpand.c (expand_call_stmt): Likewise.
5951 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5952 * gimple-fold.c (gimple_fold_call): Handle null functions.
5953 (gimple_fold_stmt_to_constant_1): Don't fold
5954 calls to internal functions.
5955 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5957 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5958 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5959 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5960 (do_warn_unused_result): Likewise.
5961 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5962 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5963 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5964 the target of a call.
5965 (initialize_hash_element): Update accordingly.
5966 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5967 (iterative_hash_hashable_expr): Handle calls to internal functions.
5968 (print_expr_hash_elt): Likewise.
5969 * tree-ssa-pre.c (can_value_number_call): Likewise.
5970 (eliminate): Handle null functions.
5971 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5972 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5973 (find_func_aliases): Likewise.
5974 * value-prof.c (gimple_ic_transform): Likewise.
5975 (gimple_indirect_call_to_profile): Likewise.
5976 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5977 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5979 2011-04-19 Jan Hubicka <jh@suse.cz>
5981 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5982 * ipa-inline.c (inline_small_functions): Compute summaries first,
5983 populate heap later.
5985 2011-04-19 Jan Hubicka <jh@suse.cz>
5987 * cgraph.h (save_inline_function_body): Remove.
5988 * ipa-inline-transform.c: New file, broke out of...
5989 * ipa-inline.c: ... this one; Update toplevel comment.
5990 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5992 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5993 (cgraph_mark_inline_edge): Rename to inline_call; move to
5994 ipa-inline-transform.c.
5995 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5996 move to ipa-inline-transform.c
5997 (recursive_inlining, inline_small_functions, flatten_function,
5998 ipa_inline, inline_always_inline_functions,
5999 early_inline_small_functions): Update.
6000 (inline_transform): Move to ipa-inline-transform.c.
6001 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6003 * Makefile.in (ipa-inline-transform.o): New file.
6004 * cgraphunit.c (save_inline_function_body): Move to
6005 ipa-inline-transform.c
6007 2011-04-19 DJ Delorie <dj@redhat.com>
6009 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6010 registers if we already know there aren't any.
6011 (m32c_emit_epilogue): Don't emit a barrier here.
6012 (m32c_emit_eh_epilogue): Likewise.
6013 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6014 operands at expand time.
6015 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6017 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6018 duplicates. Provide aliases instead.
6019 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6020 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6023 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6025 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6026 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6027 (general_or_i64_p, sparc_register_move_cost): New function.
6029 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6031 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6032 Add lynx, mipssde. Sort table.
6034 2011-04-19 Xinliang David Li <davidxl@google.com>
6036 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6039 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6042 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6043 is a SUBREG with non-MODE_INT mode inside of it.
6045 2011-04-19 Martin Jambor <mjambor@suse.cz>
6047 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6048 also according to actual contants.
6049 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6050 (gimple_fold_call): Use it.
6051 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6053 2011-04-19 Martin Jambor <mjambor@suse.cz>
6055 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6056 non-pointer assignments.
6058 2011-04-19 Martin Jambor <mjambor@suse.cz>
6060 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6061 account anc_offset and otr_type from the indirect edge info.
6062 * ipa-prop.c (get_ancestor_addr_info): New function.
6063 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6064 get_ancestor_addr_info, call it.
6065 (ipa_note_param_call): Do not initialize information about polymorphic
6066 calls, return the indirect call graph edge. Remove the last
6067 parameter, adjust all callers.
6068 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6069 parameters. Initialize polymorphic information in the indirect edge.
6071 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6074 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6075 the types if they have different enumeration identifiers.
6077 2011-04-19 Jan Hubicka <jh@suse.cz>
6079 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6080 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6081 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6082 (optimize_function_for_size_p) ... here.
6084 2011-04-19 Richard Guenther <rguenther@suse.de>
6087 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6090 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6092 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6093 if DECL_NO_INLINE_WARNING_P is set on the function.
6095 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6098 * reload1.c (inc_for_reload): Return void. All callers changed.
6099 (emit_input_reload_insns): Don't try to delete previous output
6100 reloads to a register, or record spill_reg_store for autoincs.
6102 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6104 * gengtype.h: Updated copyright year.
6105 (struct input_file_st): Add inpisplugin field.
6106 (type_fileloc): New function.
6108 (write_typed_struct_alloc_def): Add gcc_assert.
6109 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6110 (write_typed_alloc_defns): Don't output for plugin files.
6111 (input_file_by_name): Clear inpisplugin field.
6112 (main): Set inpisplugin field for plugin files.
6114 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6116 * gengtype-state.c (string_eq): New.
6117 (read_state): Use string_eq instead of strcmp when creating the
6120 2011-04-19 Wei Guozhi <carrot@google.com>
6123 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6124 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6126 * config/arm/constraints.md (Uu): New constraint.
6127 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6129 2011-04-19 Tristan Gingold <gingold@adacore.com>
6131 * config.gcc (-*-*-*vms): Added.
6132 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6134 * config/vms/vms-ld.c: New file.
6135 * config/vms/vms-ar.c: New file.
6136 * config/vms/t-vmsnative: New file.
6138 2011-04-18 Xinliang David Li <davidxl@google.com>
6140 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6142 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6145 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6146 if TREE_TYPE (v) is non-NULL.
6148 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6149 gimple_get_virt_mehtod_for_binfo.
6150 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6151 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6153 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6155 2011-04-18 Michael Matz <matz@suse.de>
6156 Steve Ellcey <sje@cup.hp.com>
6158 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6159 use its mode as source mode if it isn't VOIDmode.
6161 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6163 * doc/passes.texi: Fill crossref nodes.
6165 2011-04-18 Jim Meyering <meyering@redhat.com>
6167 Fix doubled-word typos in comments and strings
6168 * config/alpha/vms-unwind.h: s/for for/for/
6169 * config/arm/unwind-arm.h: Likewise.
6170 * config/microblaze/microblaze.c: Likewise.
6171 * config/sh/constraints.md: s/in in/in/
6172 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6174 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6176 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6177 (AVX_FLOAT_MODE_P): Ditto.
6178 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6179 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6180 (AVX_VEC_FLOAT_MODE_P): Ditto.
6181 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6182 (UNSPEC_MASKSTORE): Ditto.
6183 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6184 Merge from <sse>_movmsk<ssemodesuffix> and
6185 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6186 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6188 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6189 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6190 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6192 2011-04-18 Jan Hubicka <jh@suse.cz>
6194 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6196 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6197 (want_inline_function_called_once_p): Break out the logic from
6199 (edge_badness): Ensure that profile is not misupdated.
6200 (lookup_recursive_calls): Prioritize by call frequencies.
6201 (inline_small_functions): Move program size estimates here;
6202 actually process whole queue even when unit growth has been
6203 met. (to properly compute inline_failed reasons and for the
6204 case unit size decrease.) Revisit comments on recursive inlining.
6205 (ipa_inline): Remove unit summary code; first inline hot calls
6206 of functions called once, cold calls next.
6207 (order, nnodes): Remove unused variables.
6208 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6209 (GTFILES): Remove ipa-inline.c
6210 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6212 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6214 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6216 2011-04-18 Jie Zhang <jie@codesourcery.com>
6217 Richard Earnshaw <rearnsha@arm.com>
6219 * arm.c (neon_builtin_type_bits): Remove.
6220 (typedef enum neon_builtin_mode): New.
6221 (T_MAX): Don't define.
6222 (typedef enum neon_builtin_datum): Remove bits, codes[],
6223 num_vars and base_fcode. Add mode, code and fcode.
6224 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6225 VAR10): Change accordingly.
6226 (neon_builtin_data[]): Change accordingly
6227 (arm_init_neon_builtins): Change accordingly.
6228 (neon_builtin_compare): Remove.
6229 (locate_neon_builtin_icode): Remove.
6230 (arm_expand_neon_builtin): Change accordingly.
6232 * arm.h (enum arm_builtins): Move to ...
6233 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6235 * arm.c (arm_builtin_decl): Declare.
6236 (TARGET_BUILTIN_DECL): Define.
6237 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6238 (arm_builtin_decls[]): New.
6239 (arm_init_neon_builtins): Store builtin declarations in
6240 arm_builtin_decls[].
6241 (arm_init_tls_builtins): Likewise.
6242 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6243 (arm_builtin_decl): New.
6245 2011-04-18 Richard Guenther <rguenther@suse.de>
6247 * tree.c (upper_bound_in_type): Build properly canonicalized
6249 (lower_bound_in_type): Likewise.
6251 2011-04-18 Richard Guenther <rguenther@suse.de>
6253 * gimple.h (gimple_call_addr_fndecl): New function.
6254 (gimple_call_fndecl): Use it.
6255 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6257 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6258 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6260 2011-04-18 Richard Guenther <rguenther@suse.de>
6263 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6265 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6268 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6269 DECL_IN_CONSTANT_POOL without RTL.
6271 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6272 Ira Rosen <ira.rosen@linaro.org>
6275 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6276 to match neon_vzip/vuzp/vtrn_internal.
6277 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6278 outputs explicitly dependent on both inputs.
6279 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6281 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6283 PR tree-optimization/48616
6284 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6285 whether the shift is by scalar or vector based on whether all SLP
6286 scalar stmts have the same rhs.
6288 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6290 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6293 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6296 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6299 2011-04-17 Jan Hubicka <jh@suse.cz>
6301 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6302 * cgrpahunit.c (cgraph_finalize_function): Do not set
6303 finalized_by_frontend.
6304 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6305 finalized_by_frontend.
6307 2011-04-17 Jan Hubicka <jh@suse.cz>
6309 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6310 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6311 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6312 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6314 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6316 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6318 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6321 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6322 is non-null before accessing it.
6323 (input_cgraph): Remove trailing spaces.
6325 2011-04-17 Revital Eres <revital.eres@linaro.org>
6327 * params.def (sms-min-sc): New param flag.
6328 * modulo-sched.c (sms_schedule): Use it.
6329 * doc/invoke.texi (sms-min-sc): Document it.
6331 2011-04-17 Jan Hubicka <jh@suse.cz>
6333 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6334 present, also set gimple_call_set_cannot_inline.
6335 * ipa-inline.c: Update toplevel comment.
6337 (cgraph_clone_inlined_nodes): Fix linebreaks.
6338 (cgraph_check_inline_limits): Restructure to ...
6339 (caller_growth_limits): ... this one; be more tolerant
6340 on growth in nested inline chains; add explanatory comment;
6341 fix stack accounting thinko introduced by previous patch.
6342 (cgraph_default_inline_p): Remove.
6343 (report_inline_failed_reason): New function.
6344 (can_inline_edge_p): New function.
6345 (can_early_inline_edge_p): New function.
6346 (leaf_node_p): Move upwards in file.
6347 (want_early_inline_function_p): New function.
6348 (want_inline_small_function_p): New function.
6349 (want_inline_self_recursive_call_p): New function.
6350 (cgraph_edge_badness): Rename to ...
6351 (edge_badness) ... this one; fix linebreaks.
6352 (update_edge_key): Update call of edge_baddness; add
6353 detailed dump about queue updates.
6354 (update_caller_keys): Use can_inline_edge_p and
6355 want_inline_small_function_p.
6356 (cgraph_decide_recursive_inlining): Rename to...
6357 (recursive_inlining): Use can_inline_edge_p and
6358 want_inline_self_recursive_call_p; simplify and remove no longer
6360 (cgraph_set_inline_failed): Remove.
6361 (add_new_edges_to_heap): Use can_inline_edge_p and
6362 want_inline_small_function_p.
6363 (cgraph_decide_inlining_of_small_functions): Rename to ...
6364 (inline_small_functions): ... this one; cleanup; use
6365 can/want predicates; cleanup debug ouput; work edges till fibheap
6366 is exhausted and do not stop once unit growth is reached; remove
6367 later loop processing remaining edges.
6368 (cgraph_flatten): Rename to ...
6369 (flatten_function): ... this one; use can_inline_edge_p
6370 and can_early_inline_edge_p predicates.
6371 (cgraph_decide_inlining): Rename to ...
6372 (ipa_inline): ... this one; remove unreachable nodes before
6373 inlining functions called once; simplify the pass.
6374 (cgraph_perform_always_inlining): Rename to ...
6375 (inline_always_inline_functions): ... this one; use
6376 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6377 (cgraph_decide_inlining_incrementally): Rename to ...
6378 (early_inline_small_functions): ... this one; simplify
6379 using new predicates; cleanup; make dumps prettier.
6380 (cgraph_early_inlining): Rename to ...
6381 (early_inliner): newer inline regular functions into always-inlines;
6382 fix updating of call stmt summaries.
6383 (pass_early_inline): Update for new names.
6384 (inline_transform): Fix formating.
6385 (gate_cgraph_decide_inlining): Rename to ...
6386 (pass_ipa_inline): ... this one.
6387 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6388 * ipa-inline-analysis.c (dump_inline_summary): Update.
6389 (compute_inline_parameters): Do not compute disregard_inline_limits;
6390 look for mismatching arguments.
6391 (estimate_growth): Fix handlig of non-trivial self recursion.
6392 (inline_read_summary): Do not read info->disregard_inline_limits.
6393 (inline_write_summary): Do not write info->disregard_inline_limits.
6394 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6395 and move all checks into can_inline_edge_p predicate; re-enable code
6396 comparing optimization levels.
6397 (expand_call_inline): Do not test inline_forbidden_into_p.
6398 * Makefile.in (ipa-inline.o): Update arguments.
6400 2011-04-17 Revital Eres <revital.eres@linaro.org>
6402 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6404 2011-04-17 Revital Eres <revital.eres@linaro.org>
6406 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6408 2011-04-17 Michael Matz <matz@suse.de>
6410 PR tree-optimization/48622
6412 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6413 in same order as they're written.
6415 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6417 * config/pa/predicates.md: Reorganize and simplify predicates.
6418 Eliminate duplicate code checks.
6419 (arith_operand): Rename to arith14_operand
6420 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6421 * config/pa/pa.md: Use renamed operands.
6422 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6423 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6424 arith11_operand, adddi3_operand, indexed_memory_operand,
6425 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6426 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6427 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6428 move_dest_operand, move_src_operand, prefetch_cc_operand,
6429 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6430 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6431 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6432 div_operand, int5_operand, movb_comparison_operator,
6433 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6434 arith_double_operand, ireg_operand, lhs_lshift_operand,
6435 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6436 integer_store_memory_operand): Likewise.
6437 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6438 (integer_store_memory_operand, read_only_operand,
6439 function_label_operand, borx_reg_operand,
6440 non_hard_reg_operand): Likewise.
6441 (eq_neq_comparison_operator): Delete unused operator.
6442 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6443 function_label_operand.
6444 (emit_move_sequence): Likewise.
6446 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6448 * config/i386/sse.md (sseunpackmode): New mode attribute.
6449 (ssepackmode): Ditto.
6450 (vec_pack_trunc_<mode>): Macroize expander from
6451 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6452 (vec_unpacks_lo_<mode>): Macroize expander from
6453 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6454 (vec_unpacks_hi_<mode>): Macroize expander from
6455 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6456 (vec_unpacku_lo_<mode>): Macroize expander from
6457 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6458 (vec_unpacku_hi_<mode>): Macroize expander from
6459 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6460 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6461 ix86_expand_sse4_unpack.
6462 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6464 2011-04-16 Jan Hubicka <jh@suse.cz>
6466 * cgraphbuild.c: Include ipa-inline.h.
6467 (reset_inline_failed): Use initialize_inline_failed.
6468 * cgraph.c: Include ipa-inline.h.
6469 (cgraph_create_node_1): Do not initialize estimated_growth.
6470 (initialize_inline_failed): More to ipa-inline-analysis.c
6471 (dump_cgraph_node): Do not dump inline flags.
6472 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6473 and disregard_inline_limits flags.
6474 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6475 time, size, estimated_growth.
6476 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6478 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6479 DECL_DISREGARD_INLINE_LIMITS.
6480 (cgraph_analyze_function): Do not initialize
6481 node->local.disregard_inline_limits.
6482 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6483 inlinable, versionable and disregard_inline_limits.
6484 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6485 cgraph_check_inline_limits, cgraph_default_inline_p,
6486 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6487 add_new_edges_to_heap): Update.
6488 (cgraph_decide_inlining_of_small_function): Update; set
6489 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6490 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6491 cgraph_decide_inlining_incrementally): Update.
6492 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6493 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6494 time, size and estimated_growth parameters.
6495 (estimate_edge_growth): Update.
6496 (initialize_inline_failed): Declare.
6497 * ipa-split.c: Include ipa-inline.h
6498 (execute_split_functions): Update.
6499 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6500 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6501 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6502 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6503 estimated_growth to INT_MIN.
6504 (inline_node_duplication_hook): Likewise.
6505 (dump_inline_summary): Dump new fields.
6506 (compute_inline_parameters): Update.
6507 (estimate_edge_time, estimate_time_after_inlining,
6508 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6509 inline_write_summary):
6510 (initialize_inline_failed): Move here from cgraph.c.
6511 * tree-sra.c: Include ipa-inline.h.
6512 (ipa_sra_preliminary_function_checks): Update.
6513 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6516 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6518 * config/i386/sse.md (V16): New mode iterator.
6520 (AVXMODEQI, AVXMODEDI): Remove.
6521 (sse2, sse3): New mode attribute.
6522 (mov<mode>): Use V16 mode iterator.
6523 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6524 (push<mode>1): Use V16 mode iterator.
6525 (movmisalign<mode>): Ditto.
6526 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6527 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6528 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6529 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6530 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6531 avx_movdqu<avxmodesuffix>.
6532 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6533 *avx_movdqu<avxmodesuffix>.
6534 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6535 avx_lddqu<avxmodesuffix>.
6536 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6537 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6538 avx_movnt<AVXMODEDI:mode>.
6539 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6540 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6542 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6545 * haifa-sched.c (prune_ready_list, schedule_block): Use
6546 sched_pressure_p rather than flag_sched_pressure.
6548 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6550 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6551 cgraph_get_node instead of cgraph_get_create_node.
6553 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6555 * cfgexpand.c (expand_debug_expr): Use
6556 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6558 2011-04-15 Michael Matz <matz@suse.de>
6560 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6561 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6562 * function.c (gimplify_parameters): Ditto.
6563 * gimplify.c (gimplify_vla_decl): Ditto.
6565 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6566 (gimple_call_set_alloca_for_var): New inline function.
6567 (gimple_call_alloca_for_var_p): Ditto.
6568 * gimple.c (gimple_build_call_from_tree): Remember
6569 CALL_ALLOCA_FOR_VAR_P state.
6570 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6572 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6573 calls if they were for VLA objects.
6575 2011-04-15 Martin Jambor <mjambor@suse.cz>
6577 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6580 2011-04-15 Martin Jambor <mjambor@suse.cz>
6583 * tree-emutls.c (lower_emutls_function_body): Call
6584 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6587 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6589 * c-decl.c (detect_field_duplicates): Call
6590 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6592 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6594 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6595 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6596 * ipa-pure-const.c (check_stmt): Call it.
6597 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6599 2011-04-15 Richard Guenther <rguenther@suse.de>
6601 PR tree-optimization/48290
6602 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6603 Properly decide inhibiting propagation based on the valueized
6604 operand. Do loop-closed SSA form preserving here ...
6605 (init_copy_prop): ... not here.
6607 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6610 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6611 (*ieee_smax<mode>3): Likewise.
6613 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6615 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6616 Replace match_operand with match_dup for the third operand in
6619 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6621 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6622 to track processing of conditionals. Update all callers.
6623 (try_combine, simplify_if_then_else): Update.
6625 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6627 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6630 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6632 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6633 instead of match_operand for operand 3.
6635 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6637 * recog.h (insn_operand_data): Add an "allows_mem" field.
6638 * genoutput.c (output_operand_data): Initialize it.
6639 * optabs.c (maybe_legitimize_operand_same_code): New function.
6640 (maybe_legitimize_operand): Use it when matching the original
6643 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6645 * gimplify.c: Fix issues in comments throughout.
6646 (voidify_wrapper_expr): Fix long line.
6647 (build_stack_save_restore): Likewise.
6648 (gimplify_loop_expr): Likewise.
6649 (gimplify_compound_lval): Likewise.
6650 (gimplify_init_ctor_eval): Likewise.
6651 (gimplify_modify_expr_rhs): Likewise.
6652 (omp_notice_threadprivate_variable): Likewise.
6654 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6656 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6657 original one if this is not a builtin function.
6659 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6662 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6663 offset it as needed based on top 2 bits in operands[3], change
6664 MEM mode to SFmode and mask those 2 bits away from operands[3].
6666 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6668 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6669 change from objc_declare_protocols() to objc_declare_protocol().
6671 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6673 * config/i386/sse.md (sse4_1): New mode attribute.
6674 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6675 avx_blend<ssemodesuffix><avxmodesuffix> and
6676 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6677 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6678 avx_blendv<ssemodesuffix><avxmodesuffix> and
6679 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6680 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6681 avx_dp<ssemodesuffix><avxmodesuffix> and
6682 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6683 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6684 (sse4_1_packusdw): Merge with *avx_packusdw.
6685 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6686 (sse4_1_pblendw): Merge with *avx_pblendw.
6687 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6688 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6689 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6691 (sse4_1_round<ssescalarmodesuffix>): Merge with
6692 *avx_round<ssescalarmodesuffix>.
6693 (aesenc): Merge with *avx_aesenc.
6694 (aesenclast): Merge with *avx_aesenclast.
6695 (aesdec): Merge with *avx_aesdec.
6696 (aesdeclast): Merge with *avx_aesdeclast.
6697 (pclmulqdq): Merge with *pclmulqdq.
6698 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6700 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6702 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6705 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6706 (align_local_variable): This. Update DECL_ALIGN.
6707 (add_stack_var): Updated.
6708 (expand_one_stack_var): Likewise.
6710 2011-04-14 Richard Guenther <rguenther@suse.de>
6712 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6714 (dse_initialize_block_local_data, dse_leave_block,
6715 record_voperand_set, get_stmt_uid): Likewise.
6716 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6717 (dse_optimize_stmt): Remove voperand set handling code.
6718 Simplify and improve to handle any kind of killing stmt.
6719 (dse_record_phi): Remove.
6720 (dse_enter_block): Simplify.
6721 (tree_ssa_dse): Likewise.
6722 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6724 2011-04-14 Jan Hubicka <jh@suse.cz>
6726 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6727 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6728 (cgraph_local_info): Remove inline_summary.
6729 * ipa-cp.c: Include ipa-inline.h.
6730 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6731 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6733 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6734 (input_overwrite_node): Do not set inline summary.
6735 (input_node): Do not stream inline summary.
6736 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6737 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6738 growth; we do not have inline parameters computed for that anyway.
6739 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6740 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6741 (inline_summary_t): New type and VECtor.
6742 (debug_inline_summary, dump_inline_summaries): Declare.
6743 (inline_summary): Use VOCtor.
6744 (estimate_edge_growth): Kill hack computing call stmt size directly.
6745 * lto-section-in.c (lto_section_name): Add inline section.
6746 * ipa-inline-analysis.c: Include lto-streamer.h
6747 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6748 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6749 (inline_summary_vec): Define.
6750 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6751 dump_inline_summaries): New functions.
6752 (estimate_function_body_sizes): Properly compute size/time of outgoing
6754 (compute_inline_parameters): Alloc inline_summary; do not compute
6755 size/time of incomming calls.
6756 (estimate_edge_time): Avoid missing time summary hack.
6757 (inline_read_summary): Read inline summary info.
6758 (inline_write_summary): Write inline summary info.
6759 (inline_free_summary): Free all hooks and inline summary vector.
6760 * lto-streamer.h: Add LTO_section_inline_summary section.
6761 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6762 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6764 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6766 * tree-vectorizer.h (vect_strided_store_supported): Add a
6767 HOST_WIDE_INT argument.
6768 (vect_strided_load_supported): Likewise.
6769 (vect_permute_store_chain): Return void.
6770 (vect_transform_strided_load): Likewise.
6771 (vect_permute_load_chain): Delete.
6772 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6773 count argument. Check that the count is a power of two.
6774 (vect_strided_load_supported): Likewise.
6775 (vect_permute_store_chain): Return void. Update after above changes.
6776 Assert that the access is supported.
6777 (vect_permute_load_chain): Likewise.
6778 (vect_transform_strided_load): Return void.
6779 * tree-vect-stmts.c (vectorizable_store): Update calls after
6780 above interface changes.
6781 (vectorizable_load): Likewise.
6782 (vect_analyze_stmt): Don't check for strided powers of two here.
6784 2011-04-14 Richard Guenther <rguenther@suse.de>
6786 PR tree-optimization/48590
6787 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6788 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6789 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6790 BUILT_IN_STACK_SAVE.
6791 * tree-ssa-dce.c (propagate_necessity): Handle
6792 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6794 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6796 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6799 2011-04-14 Richard Guenther <rguenther@suse.de>
6801 * tree.h (get_object_alignment_1): Declare.
6802 * builtins.c (get_object_alignment_1): Split out worker from ...
6803 (get_object_alignment): ... here.
6804 * fold-const.c (get_pointer_modulus_and_residue): Use
6805 get_object_alignment_1.
6807 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6809 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6811 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6812 parameter. Generalise code to handle arrays as well as vectors.
6813 (vect_setup_realignment): Update accordingly.
6814 * tree-vect-stmts.c (vectorizable_store): Likewise.
6815 (vectorizable_load): Likewise.
6817 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6819 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6820 within the per-copy loop.
6822 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6824 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6827 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6829 * doc/options.texi (Negative): Explicitly mention that the
6830 Negative chain must be circular.
6832 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6834 * function.h (block_chainon): Declare.
6835 * function.c (block_chainon): Define.
6837 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6838 Eric Weddington <eric.weddington@atmel.com>
6839 Georg-Johann Lay <avr@gjlay.de>
6841 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6843 (avr_init_builtins, avr_expand_builtin,
6844 avr_expand_delay_cycles, avr_expand_unop_builtin,
6845 avr_expand_binop_builtin ): New functions.
6846 (avr_builtin_id): New enum
6847 (struct avr_builtin_description): New struct
6848 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6849 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6851 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6852 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6853 UNSPECV_DELAY_CYCLES): new enumeration values
6854 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6855 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6856 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6857 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6858 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6859 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6860 "fmulsu"): New insns
6862 * config/avr/avr-c.c: fix line endings
6863 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6864 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6865 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6866 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6867 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6869 * doc/extend.texi (AVR Built-in Functions): New node
6870 (Target Builtins): Add documentation of AVR
6873 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6876 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6877 alone. Error if non-const data has attribute progmem.
6879 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6881 * tree.h (struct tree_constructor): Include tree_typed instead of
6883 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6884 TS_TYPED instead of TS_COMMON.
6886 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6888 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6889 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6890 (sse2_psadbw): Merge with *avx_psadbw.
6891 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6892 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6893 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6894 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6895 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6896 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6897 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6898 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6899 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6900 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6901 (ssse3_palignrti): Merge with *avx_palignrti.
6903 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6905 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6906 * tree-ssanames.c (fini_ssanames): VEC_free it.
6907 (make_ssa_name_fn): Update for VECness of free_ssanames.
6908 (release_ssa_name, release_dead_ssa_names): Likewise.
6909 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6911 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6912 TS_TYPED instead of TS_COMMON.
6914 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6916 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6917 statistics_counter_event.
6918 * tree-ssa-copyrename.c (stats): Define.
6919 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6920 statistics_counter_event.
6921 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6922 (bswap_stats, widen_mul_stats): Define.
6923 (insert_reciprocals): Increment rdivs_inserted.
6924 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6925 rfuncs_inserted. Add calls to statistics_counter_event.
6926 (execute_cse_sincos_1): Increment inserted.
6927 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6928 statistics_counter_event.
6929 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6930 of bswap_stats. Add calls to statistics_counter_event.
6931 (convert_mult_to_widen): Increment widen_mults_inserted.
6932 (convert_plusminus_to_widen): Increment maccs_inserted.
6933 (convert_mult_to_fma): Increment fmas_inserted.
6934 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6935 calls to statistics_counter_event.
6937 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6939 PR rtl-optimization/48455
6940 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6941 `temp_costs->mem_cost'.
6943 2011-04-13 Jan Hubicka <jh@suse.cz>
6945 * ipa-inline.h: New file.
6946 * ipa-inline-analysis.c: New file. Broken out of ...
6947 * ipa-inline.c: ... this file; update toplevel comment;
6948 include ipa-inline.h
6949 (inline_summary): Move to ipa-inline.h
6950 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6951 ipa-inline-analysis.c.
6952 (cgraph_estimate_time_after_inlining): Rename to
6953 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6954 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6955 to estimate_edge_growth.
6956 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6957 rename to estimate_size_after_inlining.
6958 (cgraph_mark_inline_edge): Update for new naming convention.
6959 (cgraph_check_inline_limits): Likewise.
6960 (cgraph_edge_badness): Likewise.
6961 (cgraph_decide_recursive_inlining): Likewise.
6962 (cgraph_decide_inlining_of_small_functions): Likewise.
6963 (cgraph_decide_inlining_incrementally): Likewise.
6964 (cgraph_estimate_growth): Rename to estimate_growth; move to
6965 ipa-inline-analysis.c.
6966 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6967 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6968 (compute_inline_parameters): Likewise.
6969 (compute_inline_parameters_for_current): Likewise.
6970 (pass_inline_parameters): Likewise.
6971 (inline_indirect_intraprocedural_analysis): Likewise.
6972 (analyze_function): Rename to inline_analyze_function; likewise.
6973 (add_new_function): Move to ipa-inline-analysis.c.
6974 (inline_generate_summary): Likewise.
6975 (inline_read_summary): Likewise.
6976 (inline_write_summary): Likewise.
6977 * Makefile.in (ipa-inline-analysis.c): New file.
6979 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6981 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6982 * configure: Regenerate.
6984 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6986 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6987 instead of tree_common.
6988 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6990 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6991 TS_TYPED rather than TS_COMMON.
6992 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6994 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6997 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6998 r20 around calls of __tablejump_elpm__
7000 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7003 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7005 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7007 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7009 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7010 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7011 (cfi_vec): New typedef.
7012 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7013 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7014 (cie_cfi_vec): New static variable.
7015 (cie_cfi_head): Delete.
7016 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7017 declaration changed. Use vector rather than list operations.
7018 (new_cfi): Don't initialize the dw_cfi_next field.
7019 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7020 rather than list operations.
7021 (lookup_cfa): Use vector rather than list operations.
7022 (output_cfis): New argument upto. Accept a cfi_vec rather than
7023 a dw_cfi_ref list head as argument. All callers changed.
7024 Iterate over the vector using upto as a maximum index.
7025 (output_all_cfis): New static function.
7026 (output_fde): Use vector rather than list operations. Use the
7027 new upto argument for output_cfis rather than manipulating a
7029 (dwarf2out_begin_prologue): Change initializations to match
7031 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7032 from the vector length rather than searching for the end of a list.
7033 Use output_all_cfis.
7034 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7036 2011-04-13 Nick Clifton <nickc@redhat.com>
7038 * config/rx/rx.md (movmemsi): Do not use this pattern when
7039 volatile pointers are involved.
7041 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7043 * config/i386/sse.md (pinsrbits): Remove.
7044 (sse2_packsswb): Merge with *avx_packsswb.
7045 (sse2_packssdw): Merge with *avx_packssdw.
7046 (sse2_packuswb): Merge with *avx_packuswb.
7047 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7048 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7049 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7050 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7051 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7052 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7053 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7054 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7055 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7056 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7057 (sse2_loadld): Merge with *avx_loadld.
7058 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7059 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7060 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7061 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7062 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7064 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7066 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7068 * print-tree.c (print_node): Likewise.
7069 * tree-inline.c (copy_tree_r): Likewise.
7070 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7071 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7072 instead of TS_COMMON.
7073 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7074 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7075 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7076 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7077 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7079 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7081 (TREE_CHAIN): Check for a TS_COMMON structure.
7082 (TREE_TYPE): Check for a TS_TYPED structure.
7084 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7086 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7087 cgraph_get_create_node instead of cgraph_node.
7089 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7091 * c-parser.c (c_parser_initelt): Updated call to
7092 objc_build_message_expr.
7093 (c_parser_postfix_expression): Likewise.
7095 2011-04-12 Kai Tietz <ktietz@redhat.com>
7097 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7098 MASK_MS_BITFIELD_LAYOUT bit.
7100 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7102 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7103 assert it is always true.
7104 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7107 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7109 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7110 compiling Objective-C to be more efficient.
7112 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7114 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7117 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7119 * recog.h, genoutput.c, optabs.c: Revert last patch.
7121 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7124 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7126 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7128 * recog.h (insn_operand_data): Add an "allows_mem" field.
7129 * genoutput.c (output_operand_data): Initialize it.
7130 * optabs.c (maybe_legitimize_operand_same_code): New function.
7131 (maybe_legitimize_operand): Use it when matching the original
7134 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7136 * genpreds.c (process_define_predicate): Move most processing
7137 to gensupport.c. Continue to validate the expression.
7138 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7139 (process_define_predicate): Move processing to gensupport.c.
7140 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7141 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7142 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7144 (valid_predicate_name_p): New function, split out from old
7145 genpreds.c:process_define_predicate.
7146 (process_define_predicate): New function, combining code from
7147 old genpreds.c and genrecog.c functions.
7148 (process_rtx): Call it for DEFINE_PREDICATE and
7149 DEFINE_SPECIAL_PREDICATE.
7151 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7153 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7154 size of a '%A' memory reference.
7155 (T_DREG, T_QREG): New neon_builtin_type_bits.
7156 (arm_init_neon_builtins): Assert that the load and store operands
7157 are neon_struct_operands.
7158 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7159 (NEON_ARG_MEMORY): New builtin_arg.
7160 (neon_dereference_pointer): New function.
7161 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7162 Handle NEON_ARG_MEMORY.
7163 (arm_expand_neon_builtin): Update after above interface changes.
7164 Use NEON_ARG_MEMORY for loads and stores.
7165 * config/arm/predicates.md (neon_struct_operand): New predicate.
7166 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7167 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7168 (V_four_elem): Tweak formatting.
7169 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7170 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7171 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7172 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7173 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7174 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7175 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7176 Use %A in the output template.
7177 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7178 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7179 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7180 the width of the memory access. Remove post-increment.
7181 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7183 2011-04-12 Nick Clifton <nickc@redhat.com>
7185 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7186 instruction for interrupt handlers if the target is the basic V850
7188 (expand_epilogue): Likewise.
7190 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7192 PR rtl-optimization/48549
7193 * combine.c (propagate_for_debug): Also stop after BB_END of
7194 this_basic_block. Process LAST and just stop processing after it.
7195 (combine_instructions): If last_combined_insn has been deleted,
7196 set last_combined_insn to its PREV_INSN.
7198 2011-04-12 Richard Guenther <rguenther@suse.de>
7200 PR tree-optimization/46076
7201 * gimple.h (struct gimple_statement_call): Add fntype field.
7202 (gimple_call_fntype): Adjust.
7203 (gimple_call_set_fntype): New function.
7204 * gimple.c (gimple_build_call_1): Set the call function type.
7205 * gimplify.c (gimplify_call_expr): Preserve the function
7206 type the frontend used for the call.
7207 (gimplify_modify_expr): Likewise.
7208 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7210 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7212 * tree-ssa.c (useless_type_conversion_p): Function pointer
7213 conversions are useless.
7215 2011-04-12 Martin Jambor <mjambor@suse.cz>
7217 * cgraph.h (cgraph_node): Remove function declaration.
7218 (cgraph_create_node): Declare.
7219 (cgraph_get_create_node): Likewise.
7220 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7221 Updated all callers.
7222 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7223 the decl does not already exist. Call cgraph_get_create_node instead
7225 (cgraph_get_create_node): New function.
7226 (cgraph_same_body_alias): Update comment.
7227 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7228 assert it does not return NULL.
7229 (cgraph_update_edges_for_call_stmt): Likewise.
7230 (cgraph_clone_edge): Likewise.
7231 (cgraph_create_virtual_clone): Likewise.
7232 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7233 instead of cgraph_node.
7234 (cgraph_add_new_function): Call cgraph_create_node or
7235 cgraph_get_create_node instead of cgraph_node.
7236 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7237 instead of cgraph_node.
7238 (record_eh_tables): Likewise.
7239 (mark_address): Likewise.
7240 (mark_load): Likewise.
7241 (build_cgraph_edges): Call cgraph_get_create_node instead
7243 (rebuild_cgraph_edges): Likewise.
7244 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7245 instead of cgraph_node.
7246 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7248 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7249 cgraph_create_node instead of cgraph_node.
7250 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7252 * lto-cgraph.c (input_node): Likewise.
7253 * lto-streamer-in.c (input_function): Likewise.
7254 * varasm.c (mark_decl_referenced): Likewise.
7255 (assemble_alias): Likewise.
7257 2011-04-12 Martin Jambor <mjambor@suse.cz>
7259 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7260 instead of cgraph_node and assert it does not return NULL.
7261 * lto-streamer-in.c (lto_read_body): Likewise.
7262 * omp-low.c (new_omp_context): Likewise.
7263 (create_task_copyfn): Likewise.
7264 * tree-emutls.c (lower_emutls_function_body): Likewise.
7265 * matrix-reorg.c (transform_allocation_sites): Likewise.
7267 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7270 * c-typeck.c (build_asm_expr): Error out on attempts to use
7271 void type outputs or inputs for constraints that allow reg or
7274 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7275 Richard Earnshaw <rearnsha@arm.com>
7278 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7279 to use sign-magnitude offsets. Reject unsupported unaligned
7280 cases. Add detailed description in comments.
7281 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7282 condition from TARGET_32BIT to TARGET_ARM.
7284 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7286 * tree.h (struct typed_tree): New.
7287 (struct tree_common): Include it instead of tree_base.
7288 (TREE_TYPE): Update for new location of type field.
7289 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7290 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7291 (union tree_node): Add typed field.
7292 * treestruct.def (TS_TYPED): New.
7293 * lto-streamer.c (check_handled_ts_structures): Handle it.
7294 * tree.c (MARK_TS_TYPED): New macro.
7295 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7297 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7299 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7300 (force_nonfallthru): Do not alter the loop nest if no basic block
7303 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7305 * config/i386/sse.md (VI): New mode iterator.
7307 (AVX256MODEI): Ditto.
7308 (AVXMODEF4P): Ditto.
7309 (avxvecpsmode): Ditto.
7310 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7311 (sse2_andnot<mode>3): New expander.
7312 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7313 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7314 (<any_logic:code><mode>3): Use VI mode iterator.
7315 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7316 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7317 (*andnottf3): Handle AVX three-operand constraints.
7318 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7320 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7321 Robert Millan <rmh@gnu.org>
7323 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7324 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7325 GNU_USER_DYNAMIC_LINKER64): Define.
7326 (REG_NAME): Don't undefine.
7327 (MD_UNWIND_SUPPORT): Undefine.
7328 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7329 (REG_NAME): Don't undefine.
7330 (MD_UNWIND_SUPPORT): Undefine.
7331 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7333 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7335 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7336 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7338 2011-04-11 Xinliang David Li <davidxl@google.com>
7340 * value-profile.c (check_ic_target): New function.
7341 (gimple_ic_transform): Sanity check indirect call target.
7342 * gimple-low.c (gimple_check_call_args): Interface change.
7343 (gimple_check_call_matching_types): New function.
7344 * tree-inline.c (tree_can_inline_p): Call new function.
7346 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7348 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7349 tree-pretty-print.h & realmpfr.h.
7351 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7354 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7355 (setup_allocno_and_important_classes): Ditto.
7357 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7359 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7360 GNU_USER_DYNAMIC_LINKER.
7361 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7362 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7363 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7364 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7365 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7366 GNU_USER_TARGET_OS_CPP_BUILTINS.
7367 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7368 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7369 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7370 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7371 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7372 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7373 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7374 GNU_USER_TARGET_OS_CPP_BUILTINS.
7375 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7376 GNU_USER_DYNAMIC_LINKER.
7377 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7378 GNU_USER_TARGET_OS_CPP_BUILTINS.
7379 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7380 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7381 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7382 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7383 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7384 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7385 GNU_USER_DYNAMIC_LINKER64): Remove.
7386 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7387 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7388 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7389 GNU_USER_DYNAMIC_LINKER.
7390 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7391 GNU_USER_TARGET_OS_CPP_BUILTINS.
7392 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7393 GNU_USER_TARGET_OS_CPP_BUILTINS.
7394 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7395 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7396 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7397 GNU_USER_TARGET_OS_CPP_BUILTINS.
7398 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7399 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7400 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7401 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7402 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7403 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7404 GNU_USER_DYNAMIC_LINKER.
7405 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7406 GNU_USER_TARGET_OS_CPP_BUILTINS.
7407 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7408 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7409 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7410 GNU_USER_DYNAMIC_LINKER.
7411 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7412 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7413 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7414 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7415 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7416 GNU_USER_DYNAMIC_LINKER.
7417 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7418 GNU_USER_DYNAMIC_LINKERN32.
7419 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7420 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7421 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7422 GNU_USER_DYNAMIC_LINKER32.
7423 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7424 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7425 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7426 GNU_USER_DYNAMIC_LINKER.
7427 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7428 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7429 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7430 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7431 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7432 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7433 GNU_USER_DYNAMIC_LINKER32.
7434 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7435 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7436 GNU_USER_DYNAMIC_LINKER.
7437 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7438 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7439 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7440 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7441 GNU_USER_DYNAMIC_LINKER64.
7442 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7443 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7444 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7445 GNU_USER_DYNAMIC_LINKER.
7446 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7447 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7448 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7449 GNU_USER_DYNAMIC_LINKER.
7450 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7451 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7452 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7453 GNU_USER_DYNAMIC_LINKER32.
7454 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7455 GNU_USER_DYNAMIC_LINKER64.
7456 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7457 GNU_USER_DYNAMIC_LINKER64.
7458 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7459 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7460 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7461 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7462 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7464 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7466 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7467 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7468 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7469 GNU_USER_DYNAMIC_LINKER.
7470 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7471 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7472 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7473 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7474 GNU_USER_DYNAMIC_LINKER64.
7475 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7476 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7477 GNU_USER_LINK_EMULATION.
7478 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7479 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7480 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7481 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7482 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7483 CPP_SPEC, CC1_SPEC): Remove.
7484 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7485 (GNU_USER_DYNAMIC_LINKER): Define.
7486 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7487 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7488 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7489 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7490 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7491 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7492 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7493 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7494 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7495 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7496 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7497 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7498 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7499 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7500 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7501 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7502 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7503 GNU_USER_DYNAMIC_LINKER.
7504 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7505 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7506 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7507 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7508 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7509 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7510 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7511 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7512 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7513 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7515 2011-04-11 Kai Tietz <ktietz@redhat.com>
7519 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7520 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7522 (ix86_is_msabi_thiscall): Removed.
7523 (ix86_is_type_thiscall): Likewise.
7524 (ix86_get_callcvt): New function.
7525 (ix86_comp_type_attributes): Simplify check.
7526 (ix86_function_regparm): Use ix86_get_callcvt for calling
7527 convention attribute checks.
7528 (ix86_return_pops_args): Likewise.
7529 (ix86_static_chain): Likewise.
7530 (x86_this_parameter): Likewise.
7531 (x86_output_mi_thunk): Likewise.
7532 (ix86_function_type_abi): Optimize check for types without attributes.
7533 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7534 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7535 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7537 (IX86_BASE_CALLCVT): Helper macro.
7538 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7539 Use ix86_get_callcvt for calling convention attribute checks and avoid
7540 symbol-decoration for stdcall in TARGET_RTD case.
7541 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7543 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7546 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7548 * config/i386/sse.md (VI_128): New mode iterator.
7549 (VI12_128): Rename from SSEMODE12.
7550 (VI14_128): Rename from SSEMODE14.
7551 (VI124_128): New mode iterator.
7552 (VI24_128): Rename from SSEMODE248.
7553 (VI248_128): Rename from SSEMODE248.
7554 (SSEMODE124C8): Remove.
7555 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7556 (*sse2_<plusminus_insn><mode>3): Merge with
7557 *avx_<plusminus_insn><mode>3.
7558 (*mulv8hi3): Merge with *avx_mulv8hi3.
7559 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7560 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7561 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7562 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7563 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7564 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7565 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7566 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7567 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7568 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7569 (*<smaxmin:code>v8hi3): Ditto.
7570 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7571 (*<smaxmin:code>v16qi3): Ditto.
7572 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7573 (*sse2_eq<mode>3): Ditto.
7574 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7575 (*sse2_gt<mode>3): Ditto.
7576 (vcondv2di): Split out of vcond<mode>.
7577 (vconduv2di): Split out of vcondu<mode>.
7579 2011-04-11 Richard Guenther <rguenther@suse.de>
7581 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7582 before calling tree_low_cst.
7584 2011-04-11 Richard Guenther <rguenther@suse.de>
7586 * stor-layout.c (layout_type): Compute all array index size operations
7587 in the original type.
7588 (initialize_sizetypes): Add comment.
7589 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7591 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7593 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7595 2011-04-11 Martin Jambor <mjambor@suse.cz>
7597 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7598 of cgraph_node, handle NULL return value.
7599 (cgraph_global_info): Likewise.
7600 (cgraph_rtl_info): Likewise.
7601 * tree-inline.c (estimate_num_insns): Likewise.
7602 * gimplify.c (unshare_body): Likewise.
7603 (unvisit_body): Likewise.
7604 (gimplify_body): Likewise.
7605 * predict.c (optimize_function_for_size_p): Likewise.
7606 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7607 (call_may_clobber_ref_p_1): Likewise.
7608 * varasm.c (function_section_1): Likewise.
7609 (assemble_start_function): Likewise.
7611 2011-04-11 Martin Jambor <mjambor@suse.cz>
7613 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7615 * final.c (rest_of_clean_state): Likewise.
7616 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7617 * passes.c (pass_init_dump_file): Likewise.
7618 (execute_all_ipa_transforms): Likewise.
7619 (function_called_by_processed_nodes_p): Likewise.
7620 * predict.c (maybe_hot_frequency_p): Likewise.
7621 (probably_never_executed_bb_p): Likewise.
7622 (compute_function_frequency): Likewise.
7623 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7624 (unnest_nesting_tree_1): Likewise.
7625 (lower_nested_functions): Likewise.
7626 * tree-optimize.c (execute_fixup_cfg): Likewise.
7627 (tree_rest_of_compilation): Likewise.
7628 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7629 * tree-sra.c (ipa_early_sra): Likewise.
7630 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7631 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7632 * ipa.c (record_cdtor_fn): Likewise.
7633 * ipa-inline.c (cgraph_early_inlining): Likewise.
7634 (compute_inline_parameters_for_current): Likewise.
7635 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7636 * ipa-pure-const.c (local_pure_const): Likewise.
7637 * ipa-split.c (split_function): Likewise.
7638 (execute_split_functions): Likewise.
7639 * cgraphbuild.c (build_cgraph_edges): Likewise.
7640 (rebuild_cgraph_edges): Likewise.
7641 (cgraph_rebuild_references): Likewise.
7642 (remove_cgraph_callee_edges): Likewise.
7643 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7644 (verify_cgraph_node): Likewise.
7645 (cgraph_analyze_functions): Likewise.
7646 (cgraph_preserve_function_body_p): Likewise.
7647 (save_inline_function_body): Likewise.
7648 (save_inline_function_body): Likewise.
7649 * tree-inline.c (copy_bb): Likewise.
7650 (optimize_inline_calls): Likewise.
7652 2011-04-11 Martin Jambor <mjambor@suse.cz>
7654 PR tree-optimization/48195
7655 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7656 ipa_check_create_edge_args.
7657 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7658 ipa_check_create_edge_args.
7659 * ipa-inline.c (inline_generate_summary): Do not call
7660 ipa_check_create_node_params and ipa_check_create_edge_args.
7661 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7662 ipa_check_create_edge_args.
7664 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7666 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7668 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7669 * function.c (record_hard_reg_sets): Likewise.
7670 * ira.c (compute_regs_asm_clobbered): Likewise.
7671 * sched-deps.c (sched_analyze_1): Likewise.
7672 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7674 2011-04-09 Xinliang David Li <davidxl@google.com>
7676 PR tree-optimization/PR48484
7677 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7678 has_valid_pred lazily
7680 2011-04-09 Duncan Sands <baldrick@free.fr>
7682 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7684 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7686 * combine.c (combine_validate_cost): Adjust comments. Set registered
7687 cost of I0 to zero at the end, if any.
7689 2011-04-08 Xinliang David Li <davidxl@google.com>
7691 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7692 to insane profile data.
7694 2011-04-08 Xinliang David Li <davidxl@google.com>
7696 * ipa-cp.c (ipcp_update_profiling): Correct
7697 negative scale factor due to insane profile data.
7699 2011-04-08 Xinliang David Li <davidxl@google.com>
7701 * final.c (dump_basic_block_info): New function.
7702 (final): Dump basic block.
7703 (final_scan_insn): Remove old dump.
7705 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7708 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7711 2011-04-08 Michael Matz <matz@suse.de>
7714 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7716 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7717 * rtl.h (rebuild_jump_labels_chain): Declare.
7718 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7719 insns inserted on edges.
7721 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7723 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7724 * config/arm/arm-arches.def: New.
7725 * config/arm/arm-opts.h: New.
7726 * config/arm/genopt.sh: New.
7727 * config/arm/arm-tables.opt: New (generated).
7728 * config/arm/arm.c (arm_handle_option, arm_target_help,
7729 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7730 (all_architectures): Get most table contents from arm-arches.def.
7731 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7732 arm_selected_tune here.
7733 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7734 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7735 (march=, mcpu=, mtune=): Use Enum and Var.
7736 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7737 (arm.o): Update dependencies.
7739 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7741 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7743 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7744 (write_typed_alloc_defns): Likewise.
7745 (main): Calls write_typed_alloc_defns with output_header.
7747 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7750 * ira-color.c (setup_profitable_hard_regs): Add comments.
7751 Don't take prohibited hard regs into account.
7752 (setup_conflict_profitable_regs): Rename to
7753 get_conflict_profitable_regs.
7754 (check_hard_reg_p): Check prohibited hard regs.
7756 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7758 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7759 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7760 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7762 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7765 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7766 move from floating point to shift amount register.
7767 (emit_move_sequence): Remove secondary reload support for floating
7768 point to shift amount amount register copies.
7769 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7770 amount register copies.
7771 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7772 register, return false if mode isn't a scalar integer mode.
7773 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7775 2011-04-08 Richard Guenther <rguenther@suse.de>
7777 * gimple.c (gimple_call_flags): Remove kludge.
7779 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7781 * sel-sched.c (sel_region_init): Move call to
7782 sel_setup_region_sched_flags after setup_current_loop_nest.
7784 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7786 PR rtl-optimization/48272
7787 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7788 init_insn_reg_pressure_info. Adjust a caller.
7789 * sched-int.h (init_insn_reg_pressure_info): Declare.
7790 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7791 when sched-pressure is enabled.
7793 2011-04-08 Richard Guenther <rguenther@suse.de>
7795 * gimple.c (gimple_set_modified): Do not queue calls to
7796 MODIFIED_NORETURN_CALLS here ...
7797 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7799 2011-04-08 Richard Guenther <rguenther@suse.de>
7802 * toplev.c (lang_dependent_init): Do not open asm_out_file
7803 in WPA mode, nor perform debug machinery initialization.
7804 (finalize): Do not unlink asm_out_file in WPA mode.
7806 2011-04-08 Richard Guenther <rguenther@suse.de>
7808 * gimple.h (gimple_call_fntype): New function.
7809 (gimple_call_return_type): Use it.
7810 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7811 * gimple-low.c (gimple_check_call_args): Likewise.
7812 * gimple.c (gimple_call_flags): Likewise.
7813 (gimple_call_arg_flags): Likewise.
7814 (gimple_call_return_flags): Likewise.
7815 * tree-cfg.c (verify_gimple_call): Likewise.
7816 (do_warn_unused_result): Likewise.
7817 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7818 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7820 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7822 PR rtl-optimization/48235
7823 * sel-sched.c (code_motion_process_successors): Recompute the last
7824 insn in basic block if control flow changed.
7825 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7826 Update condition for ilist_remove.
7828 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7830 PR rtl-optimization/48302
7831 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7832 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7833 it to record added preheader blocks.
7834 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7835 on to sel_add_loop_preheaders.
7836 (sel_region_init): Move call to setup_current_loop_nest after
7839 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7842 * cfgloop.h (loop_has_exit_edges): New helper.
7843 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7845 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7846 that have no exit edges.
7848 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7850 PR rtl-optimization/48442
7851 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7852 all callers. Adjust assert.
7854 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7856 PR tree-optimization/48377
7857 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7858 is_packed to true even for types with smaller TYPE_ALIGN than
7861 2011-04-08 Richard Guenther <rguenther@suse.de>
7864 * doc/tm.texi: Re-generate.
7866 2011-04-08 Wei Guozhi <carrot@google.com>
7869 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7870 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7871 * config/arm/arm.md (*push_multi): Change the length computation to
7874 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7876 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7877 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7878 * doc/tm.texi: Regenerate.
7879 * system.h (ASM_OUTPUT_BSS): Poison.
7880 * varasm.c (asm_output_bss): Remove function.
7881 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7883 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7884 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7885 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7886 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7888 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7890 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7892 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7894 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7896 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7899 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7901 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7902 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7903 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7905 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7906 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7907 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7908 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7909 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7910 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7911 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7912 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7913 options. Don't map other m68k options manually. Don't handle
7914 old-style options as canonical.
7915 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7916 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7918 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7920 * basic-block.h (force_nonfallthru): Move to...
7921 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7922 (force_nonfallthru): ...here.
7923 * cfghooks.c (force_nonfallthru): New function.
7924 * cfgrtl.c (force_nonfallthru): Rename into...
7925 (rtl_force_nonfallthru): ...this.
7926 (commit_one_edge_insertion): Do not set AUX field.
7927 (commit_edge_insertions): Do not discover new basic blocks.
7928 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7929 (cfg_layout_rtl_cfg_hooks): Likewise.
7930 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7931 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7932 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7934 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7936 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7939 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7941 * config/i386/sse.md: Update copyright year.
7942 (avxcvtvecmode): Remove.
7943 (sse_movhlps): Merge with *avx_movhlps.
7944 (sse_movlhps): Merge with *avx_movlhps.
7945 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7946 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7947 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7948 (sse_loadhps): Merge with *avx_loadhps.
7949 (sse_storelps): Merge with *avx_storelps.
7950 (sse_loadlps): Merge with *avx_loadlps.
7951 (sse_movss): Merge with *avx_movss.
7952 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7953 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7954 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7955 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7956 (vec_set<mode>_0): Ditto.
7957 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7958 (sse4_1_insertps): Merge with *avx_insertps.
7959 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7960 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7961 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7962 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7963 (sse2_storehpd): Merge with *avx_storehpd.
7964 (sse2_loadhpd): Merge with *avx_loadhpd.
7965 (sse2_loadlpd): Merge with *avx_loadlpd.
7966 (sse2_movsd): Merge with *avx_movsd.
7967 (*vec_concatv2df): Merge with *vec_concatv2df.
7969 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7972 * combine.c (combine_instructions): Add last_combined_insn,
7973 update it if insn is after it, pass it to all try_combine calls.
7974 (try_combine): Add last_combined_insn parameter, pass it instead of
7975 i3 to propagate_for_debug.
7977 2011-04-07 Nick Clifton <nickc@redhat.com>
7979 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7980 to handle MDR <-> data register transfers.
7981 (movhi_internal): Likewise.
7983 2011-04-07 Alan Modra <amodra@gmail.com>
7985 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7986 previous stack info.
7988 2011-04-07 Tom de Vries <tom@codesourcery.com>
7991 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7992 flow_find_cross_jump. Swap variables to implement backward replacement.
7993 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7995 2011-04-07 Tom de Vries <tom@codesourcery.com>
7998 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7999 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8001 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8002 src1 or src2. Redirect edges to the last basic block. Update
8003 frequency and count on multiple basic blocks in case of fallthru.
8005 2011-04-07 Tom de Vries <tom@codesourcery.com>
8008 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8010 (old_insns_match_p): Change return type. Replace return false/true
8011 with return dir_none/dir_both. Use can_replace_by.
8012 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8013 direction from dir_p. Register replacement direction in dir, last_dir
8014 and afterlast_dir. Handle new return type of old_insns_match_p using
8015 merge_dir. Return replacement direction in dir_p.
8016 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8017 return type of old_insns_match_p.
8018 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8019 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8020 flow_find_cross_jump.
8021 * basic-block.h (enum replace_direction): New type.
8022 (flow_find_cross_jump): Add parameter to declaration.
8024 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8026 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8027 (AVXMODEDCVTPS2DQ): Ditto.
8028 (VEC_FLOAT_MODE): Ditto.
8029 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8030 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8031 (<any_logic:code><mode>3): Use VF mode iterator.
8032 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8033 Use VF mode iterator.
8034 (copysign<mode>3): Use VF mode iterator.
8035 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8036 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8037 (*<any_logic:code><MODEF:mode>3): Merge with
8038 *avx_<any_logic:code><MODEF:mode>3.
8039 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8040 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8041 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8042 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8043 (sse2_cvtdq2ps): Use %v modifier.
8044 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8045 (avx_cvtps2dq<avxmodesuffix>): Remove.
8046 (sse2_cvtps2dq): Use %v modifier.
8047 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8048 (avx_cvttps2dq<avxmodesuffix>): Remove.
8049 (sse2_cvttps2dq): Use %v modifier.
8050 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8051 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8052 (sse2_cvtsd2siq): Fix insn template.
8053 (sse2_cvtsd2siq_2): Ditto.
8054 (sse2_cvttsd2siq): Ditto.
8055 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8056 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8058 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8060 * gcov-io.c: Use GCC Runtime Library Exception.
8062 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8065 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8066 as base_reg whatever register reg has been eliminated to, instead
8067 of hardcoding STACK_POINTER_REGNUM.
8069 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8071 * doc/tm.texi.in: Document C target hooks as separate from general
8073 * doc/tm.texi: Regenerate.
8074 * genhooks.c (struct hook_desc): Add docname field.
8075 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8077 (hook_array): Include c-target.def.
8078 (emit_documentation): Use docname field in output.
8079 (emit_init_macros): Take docname argument. Only emit definitions
8080 for hooks matching docname.
8081 (main): Expect additional arguments in all cases. Pass argument
8082 to emit_init_macros.
8083 * target.def: Move initial macro definitions and comments to
8084 target-hooks-macros.h.
8085 (gcc_targetcm): Move to c-family/c-target.def.
8086 * target.h (targetcm): Move declaration to c-family/c-target.h.
8087 * targhooks.c (default_handle_c_option): Move to
8089 * targhooks.h (default_handle_c_option): Move declaration to
8090 c-family/c-common.h.
8091 * target-hooks-macros.h: New file.
8092 * config.gcc (target_has_targetcm): Define and use to add to
8093 c_target_objs and cxx_target_objs.
8094 * config/default-c.c: New file.
8095 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8096 of target.h and target-def.h.
8097 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8098 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8099 darwin_check_cfstring_format_arg): Make static.
8100 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8101 TARGET_STRING_OBJECT_REF_TYPE_P,
8102 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8103 * config/darwin-protos.h (darwin_objc_construct_string,
8104 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8106 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8107 TARGET_STRING_OBJECT_REF_TYPE_P,
8108 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8109 * config/t-darwin (darwin-c.o): Update dependencies.
8110 * system.h (TARGET_HAS_TARGETCM): Poison.
8111 * Makefile.in (TARGET_H): Update.
8112 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8113 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8114 (default-c.o): New target.
8115 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8116 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8117 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8119 (build/genhooks.o): Update dependencies.
8121 2011-04-06 Richard Guenther <rguenther@suse.de>
8123 * ipa-inline.c (enum inlining_mode): Remove.
8124 (cgraph_flatten): Use some other token.
8125 (cgraph_edge_early_inlinable_p): New function, split out from ...
8126 (cgraph_perform_always_inlining): New function, split out from ...
8127 (cgraph_decide_inlining_incrementally): ... here.
8128 (cgraph_mark_inline_edge): Adjust.
8129 (cgraph_early_inlining): Re-structure.
8130 (pass_early_inline): Require SSA form.
8132 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8133 Julian Brown <julian@codesourcery.com>
8134 Mark Shinwell <shinwell@codesourcery.com>
8136 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8137 LO_REGS only for Thumb-1.
8138 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8139 be used in short instructions when optimising for size on Thumb-2.
8141 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8143 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8144 associated with user returns to be preserved.
8146 2011-04-06 Tristan Gingold <gingold@adacore.com>
8148 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8149 symbol_queue_size, DBXOUT_DECR_NESTING,
8150 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8151 if XCOFF_DEBUGGING_INFO.
8153 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8155 * config/i386/i386.md (attribute isa): New.
8156 (attribute enabled): New.
8157 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8158 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8159 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8160 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8161 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8162 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8163 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8164 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8166 * config/i386/sse.md (VF): New mode iterator.
8170 (SSEMODEF4): Remove.
8171 (attribute sse): Handle V8SF and V4DF modes.
8172 (<absneg:code><mode>2): Use VF mode iterator.
8173 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8175 (<plusminus_insn><mode>3): Use VF mode iterator.
8176 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8177 Use VF mode iterator.
8178 (<sse>_vm<plusminus_insn><mode>3): Merge with
8179 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8180 (mul<mode>3): Use VF mode iterator.
8181 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8182 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8184 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8185 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8186 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8187 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8189 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8190 Use VF1 mode iterator.
8191 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8192 (sqrt<VF2:mode>2): New expander.
8193 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8194 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8195 and sqrtv2df2. Use VF mode iterator.
8196 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8198 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8199 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8200 Use VF1 mode iterator.
8201 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8202 (<smaxmin:code><mode>3): Use VF mode iterator.
8203 (*<smaxmin:code><mode>3_finite): Merge with
8204 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8205 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8206 (<sse>_vm<smaxmin:code><mode>2): Merge with
8207 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8208 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8210 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8212 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8213 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8214 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8215 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8216 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8218 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8219 Use VF_128 mode iterator.
8220 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8222 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8223 VF_128 mode iterator.
8224 (vcond<mode>): Use VF mode iterator.
8225 * config/i386/predicates.md (sse_comparison_operator): Merge with
8226 avx_comparison_float_operator. Do not declare as special_predicate.
8227 * config/i386/i386.c (struct builtin_description): Update for renamed
8229 (ix86_expand_args_builtin): Ditto.
8230 (ix86_expand_sse_compare_mask): Ditto.
8232 2011-04-06 Richard Guenther <rguenther@suse.de>
8234 * tree-inline.c (estimate_num_insns): For calls simply account
8235 for all passed arguments and a used return value.
8237 2011-04-06 Richard Guenther <rguenther@suse.de>
8239 PR tree-optimization/47663
8240 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8241 call_stmt_time fields.
8242 (cgraph_edge_inlinable_p): Declare.
8243 (cgraph_edge_recursive_p): New inline function.
8244 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8245 (cgraph_clone_edge): Copy it.
8246 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8247 Account for call stmt time.
8248 (cgraph_estimate_time_after_inlining): Take edge argument.
8249 (cgraph_estimate_edge_growth): Account call stmt size.
8250 (cgraph_estimate_size_after_inlining): Take edge argument.
8251 (cgraph_mark_inline_edge): Adjust.
8252 (cgraph_check_inline_limits): Likewise.
8253 (cgraph_recursive_inlining_p): Remove.
8254 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8255 (cgraph_decide_recursive_inlining): Take edge argument and
8257 (cgraph_decide_inlining_of_small_functions): Do not avoid
8258 diags for recursive inlining here.
8259 (cgraph_flatten): Adjust.
8260 (cgraph_decide_inlining_incrementally): Likewise.
8261 (estimate_function_body_sizes): Remove call cost handling.
8262 (compute_inline_parameters): Initialize caller edge call costs.
8263 (cgraph_estimate_edge_growth): New function.
8264 (cgraph_estimate_growth): Use it.
8265 (cgraph_edge_badness): Likewise.
8266 (cgraph_check_inline_limits): Take an edge argument.
8267 (cgraph_decide_inlining_of_small_functions): Adjust.
8268 (cgraph_decide_inlining): Likewise.
8269 * tree-inline.c (estimate_num_insns): Only account for call
8270 return value if it is used.
8271 (expand_call_inline): Avoid diagnostics on recursive inline
8273 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8274 (input_edge): Input edge call costs.
8276 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8278 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8280 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8282 * doc/invoke.texi (Spec Files): Fix typo.
8284 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8286 * profile.c (branch_prob): Move declaration of local variable. Remove
8287 obsolete ??? comment. Expand the location explicitly instead of using
8288 the LOCATION_FILE and LOCATION_LINE macros.
8290 2011-04-06 Wei Guozhi <carrot@google.com>
8293 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8294 (arm_cond_branch): Likewise.
8295 (arm_cond_branch_reversed): Likewise.
8296 (arm_jump): Likewise.
8297 (push_multi): Likewise.
8298 * config/arm/constraints.md (Py): New constraint.
8300 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8303 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8305 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8306 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8307 #ifdef DBX_DEBUGGING_INFO.
8309 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8312 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8313 if old and new states differ.
8315 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8317 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8318 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8319 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8320 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8321 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8323 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8324 ColdFire options to -mcpu= options.
8326 2011-04-05 Jeff Law <law@redhat.com>
8328 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8329 check if BB is a successor of LOOP->header and return
8330 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8332 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8334 * cprop.c (struct reg_use): Remove.
8335 (reg_use_table): Make an array of RTX.
8336 (find_used_regs, constprop_register, local_cprop_pass,
8337 bypass_block): Simplify users of reg_use_table.
8338 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8339 on one of the uses found by find_used_regs.
8341 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8344 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8347 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8349 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8351 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8353 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8356 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8358 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8360 * combine.c: Include obstack.h.
8361 (struct insn_link): Define.
8362 (uid_log_links): Adjust type.
8363 (FOR_EACH_LOG_LINK): New macro.
8364 (insn_link_obstack): Declare.
8365 (alloc_insn_link): Define.
8366 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8367 type of link variables.
8368 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8369 (try_combine, record_promoted_values, distribute_notes): Likewise.
8370 (distribute_links): Likewise. Tweak prototype.
8371 (clear_log_links): Delete.
8372 (adjust_for_new_dest): Call alloc_insn_link.
8373 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8375 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8377 * gcse.c (modify_mem_list): Convert to an array of VECs.
8378 (canon_modify_mem_list, compute_transp): Tweak formatting.
8379 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8380 (load_killed_in_block_p): Likewise.
8381 (record_last_mem_set_info): Likewise.
8382 (clear_modify_mem_tables): Likewise.
8384 2011-04-05 Tom de Vries <tom@codesourcery.com>
8387 * function.c (emit_use_return_register_into_block): Only define if
8390 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8392 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8394 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8396 * config/rx/rx-opts.h: New.
8397 * config/rx/rx.c (rx_cpu_type): Remove.
8398 (rx_handle_option): Don't assert that global structures are in
8399 use. Access variables via opts pointer. Defer most handling of
8400 OPT_mint_register_. Use error_at.
8401 (rx_option_override): Handle deferred OPT_mint_register_ here.
8402 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8403 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8404 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8405 (rx_cpu_types): New Enum and EnumValue entries.
8406 (mint-register=): Use Defer and use Var accordingly.
8408 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8410 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8411 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8412 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8414 (debug_free_queue, debug_nesting, symbol_queue_index):
8416 * dbxout.c: ...to here. Make static.
8418 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8420 * gcse.c (modify_pair): Define. Define a VEC of it.
8421 (canon_modify_mem_list): Convert to an array of VECs.
8422 (free_insn_expr_list_list): Delete.
8423 (clear_modify_mem_tables): Call VEC_free instead.
8424 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8425 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8426 (canon_list_insert, compute_transp): Likewise.
8428 2011-04-05 Tom de Vries <tom@codesourcery.com>
8431 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8434 2011-04-05 Tom de Vries <tom@codesourcery.com>
8437 * function.c (emit_use_return_register_into_block): New function.
8438 (thread_prologue_and_epilogue_insns): Use
8439 emit_use_return_register_into_block.
8441 2011-04-05 Tom de Vries <tom@codesourcery.com>
8444 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8447 2011-04-05 Tom de Vries <tom@codesourcery.com>
8449 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8451 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8453 * config/arm/arm.md (define_constants for unspec): Replace with
8455 (define_constants for unspecv): Replace with define_c_enum.
8456 * config/arm/neon.md (define_constants for unspec): Replace with
8459 2011-04-04 Richard Henderson <rth@redhat.com>
8462 * dwarf2out.c (output_line_info): Always emit line info from
8463 at least one section.
8464 (dwarf2out_init): Create text_section_line_info here ...
8465 (set_cur_line_info_table): ... not here.
8467 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8470 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8473 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8475 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8477 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8478 (expr_equiv_p): Remove.
8479 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8480 (hash_scan_set): Update call to insert_set_in_table.
8481 (dump_hash_table): Dump <dest, src> pair.
8482 (lookup_set): Simplify. Lookup <dest, src> pair.
8483 (compute_transp): Remove, fold heavily simplified code into...
8484 (compute_local_properties): ...here. Expect COMP and TRANSP
8486 (find_avail_set): Take set directly from struct expr.
8487 (find_bypass-set): Likewise.
8488 (bypass_block): Likewise.
8489 (cprop_insn): Likewise. Remove redundant INSN_P test.
8491 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8492 checks on form of COND from find_implicit_sets to here.
8493 (find_implicit_sets): Cleanup control flow. Split critical edges
8494 if it exposes implicit sets. Allocate/resize implicit_sets as
8496 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8497 changed something. Run df_analyze after find_implicit_sets if any
8498 edges were split. Do not allocate implicit_sets here.
8500 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8501 (gcse_obstack): Renamed to cprop_obstack.
8502 (GNEW, GNEWVEC, GNEWVAR): Remove.
8504 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8505 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8506 (gcse_alloc): Likewise, and rename to cprop_alloc.
8507 (alloc_gcse_men, free_gcse_mem): Remove.
8508 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8509 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8510 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8512 * cprop.c (oprs_not_set_p): Remove.
8513 (mark_set, mark_clobber): Remove.
8514 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8515 (reg_not_set_p): New function.
8516 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8517 (cprop_insn): Likewise.
8518 (cprop_jump): Use FOR_EACH_EDGE.
8520 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8523 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8524 (rank_for_schedule): Use scheduled_insns vector instead of
8525 last_scheduled_insn.
8526 (ok_for_early_queue_removal): Likewise.
8527 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8529 (choose_ready): Likewise.
8530 (commit_schedule): Use VEC_iterate.
8531 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8532 a dbg_cnt, use it and ensure the first insn is in the ready list.
8533 (haifa_sched_init): Allocate scheduled_insns.
8534 (sched_extend_ready_list): Don't allocate it; reserve space.
8535 (haifa_sched_finish): Free it.
8537 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8539 * optc-gen.awk: Always remove type from Variable entry before
8540 recording in var_seen.
8542 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8544 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8545 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8546 call to tidy_fallthru_edges.
8548 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8550 * doc/options.texi (ToLower): Document.
8551 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8552 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8553 * opts.h (cl_option): Add cl_tolower field.
8554 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8555 arguments with lowercase strings.
8556 * config/rx/rx.opt (mcpu=): Add ToLower.
8557 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8560 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8562 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8564 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8566 * config/vax/vax.c: Include reload.h.
8568 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8570 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8571 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8572 (sparc_preferred_reload_class): New function.
8574 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8577 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8578 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8580 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8582 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8583 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8585 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8587 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8588 (ASM_OUTPUT_ALIGNED_BSS): Define.
8590 2011-04-03 Michael Matz <matz@suse.de>
8592 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8593 and next_slot members.
8594 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8595 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8596 (lto_streamer_cache_append): Declare.
8597 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8598 unsigned index, remove offset parameter, ensure that we append
8599 or update existing entries.
8600 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8601 parameter, update next_slot for append.
8602 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8604 (lto_streamer_cache_insert_at): Likewise.
8605 (lto_streamer_cache_append): New function.
8606 (lto_streamer_cache_lookup): Use unsigned index.
8607 (lto_streamer_cache_get): Likewise.
8608 (lto_record_common_node): Don't test tree_node_can_be_shared.
8609 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8610 (lto_streamer_cache_delete): Don't free offsets member.
8611 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8612 (lto_output_string_with_length): Use lto_output_data_stream.
8613 (lto_output_tree_header): Remove ix parameter, don't write it.
8614 (lto_output_builtin_tree): Likewise.
8615 (lto_write_tree): Adjust callers to above, don't track and write
8616 offset, write unsigned index.
8617 (output_unreferenced_globals): Don't emit all global vars.
8618 (write_global_references): Use unsigned indices.
8619 (lto_output_decl_state_refs): Likewise.
8620 (write_symbol): Likewise.
8621 * lto-streamer-in.c (lto_input_chain): Move earlier.
8622 (input_function): Use unsigned index.
8623 (input_alias_pairs): Don't read and then ignore all global vars.
8624 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8625 don't pass it back, use lto_streamer_cache_append.
8626 (lto_register_var_decl_in_symtab): Use unsigned index.
8627 (lto_register_function_decl_in_symtab): Likewise.
8628 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8630 (lto_get_builtin_tree): Don't read index, use
8631 lto_streamer_cache_append.
8632 (lto_read_tree): Adjust call to lto_materialize_tree.
8634 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8635 don't use function calls in arguments to MIN.
8637 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8640 * gimple.c (gimple_type_leader_entry): Mark deletable.
8642 2011-04-03 Alan Modra <amodra@gmail.com>
8644 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8646 2011-04-03 Michael Matz <matz@suse.de>
8648 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8650 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8652 2011-04-03 Michael Matz <matz@suse.de>
8654 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8655 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8656 without function context.
8657 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8658 current_function_decl and cfun.
8660 2011-04-03 Michael Matz <matz@suse.de>
8662 * tree.c (decl_init_priority_insert): Don't create entry for
8664 (decl_fini_priority_insert): Ditto.
8665 (fields_compatible_p, find_compatible_field): Remove.
8666 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8667 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8669 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8671 * combine.c (try_combine): Remove useless local variable.
8673 2011-04-03 Richard Guenther <rguenther@suse.de>
8674 Ira Rosen <ira.rosen@linaro.org>
8676 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8677 non-variable offsets and compare the remaining bases of the two
8678 accesses instead of looking for exact same data-ref.
8680 2011-04-02 Kai Tietz <ktietz@redhat.com>
8683 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8685 * i386.c (ix86_is_msabi_thiscall): New helper function.
8686 (ix86_is_type_thiscall): New helper function.
8687 (ix86_comp_type_attributes): Handle thiscall for method-functions
8689 (init_cumulative_args): Likewise.
8690 (find_drap_reg): Likewise.
8691 (ix86_static_chain): Likewise.
8692 (x86_this_parameter): Likewise.
8693 (x86_output_mi_thunk): Likewise.
8695 2011-04-01 Olivier Hainque <hainque@adacore.com>
8696 Nicolas Setton <setton@adacore.com>
8697 Eric Botcazou <ebotcazou@adacore.com>
8699 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8700 (add_gnat_descriptive_type_attribute): New function.
8701 (gen_array_type_die): Call it.
8702 (gen_enumeration_type_die): Likewise.
8703 (gen_struct_or_union_type_die): Likewise.
8704 (modified_type_die): Likewise.
8705 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8706 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8707 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8709 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8712 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8713 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8716 2011-03-17 Richard Guenther <rguenther@suse.de>
8719 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8720 origin for decls in other ltrans units.
8721 (input_varpool_node): Likewise.
8723 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8726 * expr.c (expand_assignment): Handle all possibilities
8727 if TO_RTX is CONCAT.
8728 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8729 (store_split_bit_field): If SUBREG_REG (op0) or
8730 op0 itself has smaller mode than word, return it
8731 for offset 0 and const0_rtx for out-of-bounds stores.
8732 If word is const0_rtx, skip it.
8734 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8736 * config/h8300/h8300.c (print_operand_address): Rename to...
8737 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8738 Call h8300_print_operand and h8300_print_operand_address instead of
8739 print_operand and print_operand_address. Declare.
8740 (print_operand): Renake to...
8741 (h8300_print_operand): ...this. Make static. Adjust comments.
8742 Call h8300_print_operand instead of print_operand. Declare.
8743 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8744 (h8300_register_move_cost): Likewise.
8745 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8746 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8747 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8748 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8749 * config/h8300/h8300-protos.h (print_operand): Delete.
8750 (print_operand_address): Delete.
8752 2011-04-01 Richard Henderson <rth@redhat.com>
8755 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8756 in strict mode before dwarf4. Re-order tests to early out
8757 before switching sections.
8759 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8761 * config/h8300/constraints.md: New file.
8762 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8763 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8764 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8765 * config/h8300/predicates.md (bit_operand): Likewise.
8766 (incdec_operand): Use satisfies_constraint_M and
8767 satisfies_constraint_O. Don't use C code block.
8768 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8769 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8770 (compute_mov_length): Use satisfies_constraint_G.
8771 (fix_bit_operand): Use satisfies_constraint_U.
8772 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8773 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8774 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8775 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8776 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8777 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8778 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8779 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8780 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8781 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8782 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8783 (EXTRA_MEMORY_CONSTRAINT): Delete.
8785 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8786 Michael Meissner <meissner@linux.vnet.ibm.com>
8789 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8790 operands, as per the specifications.
8792 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8793 (vec_extract_evenv4sf): Ditto.
8794 (vec_extract_evenv8hi): Ditto.
8795 (vec_extract_evenv16qi): Ditto.
8796 (vec_extract_oddv4si): Ditto.
8798 2011-03-31 Mark Wielaard <mjw@redhat.com>
8800 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8801 high_pc attribute if the CU has no associated code. Only output
8802 DW_AT_entry_pc for CU if not generating strict dwarf and
8805 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8807 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8808 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8810 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8811 * final.c (final_start_function): Call the new function rather
8812 than using a NULL argument for dwarf2out_frame_debug.
8814 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8815 that contains the prologue.
8817 * haifa-sched.c (queue_insn): New arg REASON. All callers
8818 changed. Print it in debugging output.
8820 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8822 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8823 Split most of the code into...
8824 (begin_move_insn): ... here. New function.
8825 (ebb_sched_info): Add a pointer to it.
8826 * haifa-sched.c (scheduled_insns): New static variable.
8827 (sched_extend_ready_list): Allocate it.
8828 (schedule_block): Use it to record the order of scheduled insns.
8829 Perform RTL changes to move insns only after all scheduling
8830 decisions have been made.
8831 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8832 begin_move_insn field.
8833 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8834 * sched-int.h (struct haifa_sched_info): Remove second argument
8835 from begin_schedule_ready hook. Add new member begin_move_insn.
8836 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8837 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8839 * haifa-sched.c (prune_ready_list): New function, broken out of
8841 (schedule_block): Use it.
8843 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8845 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8847 2011-04-01 Kai Tietz <ktietz@redhat.com>
8849 * config.gcc (*-*-mingw*): Allow as option the
8850 posix threading model.
8851 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8852 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8854 (CPP_SPEC): Add pthread/no-pthread handling.
8855 (LIB_SPEC): Likewise.
8856 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8857 (LIB_SPEC): Likewise.
8858 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8859 flag to pass -pthread option for shared libgcc build.
8860 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8861 for shared libgcc build.
8862 * config/i386/t-mingw-pthread: New file.
8863 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8864 New define to enable use of library pthread by default.
8865 * config/i386/mingw.opt (pthread): New driver option.
8866 (no-pthread): New driver option.
8867 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8868 * config/i386/mingw-w64.opt: Likewise.
8870 2011-04-01 Gary Funck <gary@intrepid.com>
8872 * c-decl.c (grokdeclarator): Fix formatting.
8874 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8876 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8877 instead of n_operands.
8878 (set_storage_via_setmem): Likewise.
8879 * optabs.c (maybe_gen_insn): Likewise.
8880 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8881 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8882 (mips_expand_builtin_direct): Likewise.
8883 * config/spu/spu.c (expand_builtin_args): Likewise.
8885 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8887 * recog.h (insn_data_d): Add n_generator_args.
8888 * genoutput.c (data): Likewise.
8889 (output_insn_data): Print it.
8890 (max_opno, num_dups): Delete.
8891 (scan_operands): Just fill in "d->operand[...]".
8892 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8894 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8896 * gensupport.h (pattern_stats): New structure.
8897 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8898 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8899 (max_operand_1, max_operand_vec): Delete.
8900 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8902 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8904 * emit-rtl.c (emit_pattern_after_setloc): New function.
8905 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8906 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8907 (emit_pattern_after): New function.
8908 (emit_insn_after, emit_jump_insn_after): Call it.
8909 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8910 (emit_pattern_before_setloc): New function.
8911 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8912 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8914 (emit_pattern_before): New function.
8915 (emit_insn_before, emit_jump_insn_before): Call it.
8916 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8918 2011-03-31 Richard Henderson <rth@redhat.com>
8920 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8921 (dw_separate_line_info_entry): Remove.
8922 (enum dw_line_info_opcode): New.
8923 (dw_line_info_entry): Use it.
8924 (dw_line_info_table, dw_line_info_table_p): New.
8925 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8926 (line_info_table, line_info_label_num): Remove.
8927 (line_info_table_in_use): Remove.
8928 (separate_line_info_table): Remove.
8929 (separate_line_info_table_allocated): Remove.
8930 (separate_line_info_table_in_use): Remove.
8931 (LINE_INFO_TABLE_INCREMENT): Remove.
8932 (line_info_label_num): New.
8933 (cur_line_info_table): New.
8934 (text_section_line_info, cold_text_section_line_info): New.
8935 (separate_line_info): New.
8936 (SEPARATE_LINE_CODE_LABEL): Remove.
8937 (print_dwarf_line_table): Remove.
8938 (debug_dwarf): Don't dump it.
8939 (output_one_line_info_table): New.
8940 (output_line_info): Use it.
8941 (new_line_info_table): New.
8942 (set_cur_line_info_table): New.
8943 (dwarf2out_switch_text_section): Use it.
8944 (dwarf2out_begin_function): Likewise.
8945 (push_dw_line_info_entry): New.
8946 (dwarf2out_source_line): Rewrite for new line info tables.
8947 (dwarf2out_init): Remove dead initailizations.
8949 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8951 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8953 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8954 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8955 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8956 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8957 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8958 * opt-functions.awk (flag_init, switch_bit_fields): New.
8959 (switch_flags): Don't handle flags moved to bit-fields. Don't
8960 generate CL_MISSING_OK or CL_SAVE.
8961 * optc-gen.awk: Update to generate bit-field output as well as
8963 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8964 bit-field instead of CL_REJECT_DRIVER flag.
8965 * opts-common.c (generate_canonical_option,
8966 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8967 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8968 instead of CL_REJECT_NEGATIVE flag.
8969 * toplev.c (print_switch_values): Use cl_report bit-field instead
8972 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8974 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8975 a zero minimum index only if it is redundant.
8977 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8979 PR rtl-optimization/48381
8980 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8981 instead of ira_class_hard_reg_index for calculating conflicting
8984 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8986 * cprop.c: Clean up hash table building.
8987 (reg_avail_info): Remove.
8988 (oprs_available_p): Remove.
8989 (record_last_reg_set_info): Remove.
8990 (record_last_set_info): Remove.
8991 (reg_available_p): New function.
8992 (gcse_constant_p): Do not treat unfolded conditions as constants.
8993 (make_set_regs_unavailable): New function.
8994 (hash_scan_set): Simplify with new reg_available_p.
8995 (compute_hash_table_work): Traverse insns stream only once.
8996 Do not compute reg_avail_info. Traverse insns in reverse order.
8997 Record implicit sets after recording explicit sets from the block.
8999 2011-03-31 Michael Matz <matz@suse.de>
9001 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9003 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9005 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9006 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9007 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9008 (h8300_mode_dependent_address_p): New function.
9009 (h8300_get_index): Make static.
9011 2011-03-31 Jeff Law <law@redhat.com>
9013 * reload1.c (elimination_effects): Fix typo in recent change.
9015 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9016 typo potentially leading to null pointer dereference.
9018 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9019 (setup_save_areas): Corresponding changes to avoid useless
9022 * jump.c (reversed_comparison_code_parts): Avoid successive return
9023 statements when REVERSE_CONDITION is defined.
9025 * expr.c (expand_assignment): Avoid useless assignments.
9026 (expand_expr_real_1): Likewise.
9027 (expand_expr_real_2): Avoid useless statements.
9029 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9031 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9033 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9036 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9038 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9041 * doc/tm.texi.in (TARGET_VERSION): Remove.
9042 * doc/tm.texi: Regenerate.
9043 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9044 * collect2.c (main): Don't use TARGET_VERSION.
9045 * mips-tdump.c (main): Don't use TARGET_VERSION.
9046 * mips-tfile.c (main): Don't use TARGET_VERSION.
9047 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9048 * config/rs6000/vxworksae.h: Remove.
9049 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9050 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9051 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9052 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9053 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9054 * config/arm/arm.h (TARGET_VERSION): Remove.
9055 * config/arm/coff.h (TARGET_VERSION): Remove.
9056 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9057 * config/arm/elf.h (TARGET_VERSION): Remove.
9058 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9059 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9060 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9061 * config/arm/pe.h (TARGET_VERSION): Remove.
9062 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9063 * config/arm/semi.h (TARGET_VERSION): Remove.
9064 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9065 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9066 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9067 * config/avr/avr.h (TARGET_VERSION): Remove.
9068 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9069 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9070 * config/frv/frv.h (TARGET_VERSION): Remove.
9071 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9072 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9073 * config/i386/darwin.h (TARGET_VERSION): Remove.
9074 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9075 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9076 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9077 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9078 * config/i386/gnu.h (TARGET_VERSION): Remove.
9079 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9080 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9081 * config/i386/linux.h (TARGET_VERSION): Remove.
9082 * config/i386/linux64.h (TARGET_VERSION): Remove.
9083 * config/i386/lynx.h (TARGET_VERSION): Remove.
9084 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9085 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9086 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9087 * config/i386/netware.h (TARGET_VERSION): Remove.
9088 * config/i386/nto.h (TARGET_VERSION): Remove.
9089 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9090 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9091 * config/ia64/elf.h (TARGET_VERSION): Remove.
9092 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9093 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9094 * config/ia64/linux.h (TARGET_VERSION): Remove.
9095 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9096 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9097 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9098 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9099 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9100 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9101 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9102 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9103 * config/m68k/linux.h (TARGET_VERSION): Remove.
9104 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9105 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9106 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9107 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9108 * config/mep/mep.h (TARGET_VERSION): Remove.
9109 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9110 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9111 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9112 * config/mips/linux.h (TARGET_VERSION): Remove.
9113 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9114 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9115 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9116 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9117 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9118 * config/pa/pa.h (TARGET_VERSION): Remove.
9119 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9120 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9121 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9122 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9123 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9124 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9125 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9126 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9127 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9128 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9129 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9130 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9131 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9132 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9133 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9134 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9135 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9136 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9137 * config/s390/linux.h (TARGET_VERSION): Remove.
9138 * config/s390/s390.h (TARGET_VERSION): Remove.
9139 * config/s390/tpf.h (TARGET_VERSION): Remove.
9140 * config/score/score.h (TARGET_VERSION): Remove.
9141 * config/sh/linux.h (TARGET_VERSION): Remove.
9142 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9143 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9144 * config/sh/sh.h (TARGET_VERSION): Remove.
9145 * config/sh/sh64.h (TARGET_VERSION): Remove.
9146 * config/sh/superh.h (TARGET_VERSION): Remove.
9147 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9148 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9149 * config/sparc/linux.h (TARGET_VERSION): Remove.
9150 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9151 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9152 TARGET_NAME32, TARGET_NAME): Remove.
9153 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9154 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9155 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9156 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9157 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9158 * config/spu/spu.h (TARGET_VERSION): Remove.
9159 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9160 * config/v850/v850.h (TARGET_VERSION): Remove.
9161 * config/vax/linux.h (TARGET_VERSION): Remove.
9162 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9163 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9164 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9166 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9169 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9170 frame-related from frame-unrelated adjustments to the stack pointer.
9172 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9174 * common.opt (fdebug-types-section): Move earlier.
9175 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9177 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9179 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9182 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9184 * tree.h (CASE_CHAIN): Define.
9185 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9186 (gimple_redirect_edge_and_branch): Likewise.
9188 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9191 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9194 2011-03-30 Jeff Law <law@redhat.com>
9196 * PR bootstrap/48371
9197 * reload1.c (reload): Fix botch in last change.
9199 * reload.h (struct reload): Fix typo introduced in last change.
9201 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9203 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9204 Undocumented. Remove help text.
9205 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9208 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9210 * doc/options.texi (NegativeAlias): Document.
9211 (Alias): Mention NegativeAlias.
9212 * opt-functions.awk: Handle NegativeAlias.
9213 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9214 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9215 * opts.h (CL_NEGATIVE_ALIAS): Define.
9216 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9217 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9219 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9221 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9222 mno-spe and mno-isel instead of mspe=no and -misel=no.
9224 2011-03-29 Mark Wielaard <mjw@redhat.com>
9226 * common.opt (fdebug-types-section): New flag.
9227 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9228 * dwarf2out.c (use_debug_types): New define.
9229 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9230 (print_die): Guard output of type unit signatures using
9232 (build_abbrev_table): Replace assert of dwarf_version >= 4
9233 with assert on use_debug_types.
9234 (size_of_die): Likewise.
9235 (unmark_dies): Likewise.
9236 (value_format): Decide AT_ref_external form on use_debug_types.
9237 (output_die): Replace dwarf_version version check guard with
9238 use_debug_types where appropriate.
9239 (modified_type_die): Likewise.
9240 (gen_reference_type_die): Likewise.
9241 (dwarf2out_start_source_file): Likewise.
9242 (dwarf2out_end_source_file): Likewise.
9243 (prune_unused_types_walk_attribs): Likewise.
9244 (dwarf2out_finish): Likewise.
9246 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9248 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9250 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9252 PR rtl-optimization/48332
9253 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9254 mode of input operand N and modeN to its actual mode.
9256 2011-03-30 Jeff Law <law@redhat.com>
9258 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9259 define accessor macro.
9260 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9261 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9262 (reg_equiv_init): Likewise.
9263 (reg_equivs_size): New variable.
9264 (reg_equiv_init_size): Remove.
9265 (allocate_initial_values): Move prototype to here from....
9266 * integrate.h (allocate_initial_values): Remove prototype.
9267 * integrate.c: Include reload.h.
9268 (allocate_initial_values): Corresponding changes.
9269 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9270 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9271 (update_equiv_regs): Corresponding changes.
9272 (ira): Corresponding changes.
9273 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9274 (push_secondary_reload): Corresponding changes.
9275 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9276 (make_memloc, find_reloads_address): Corresponding changes.
9277 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9278 (find_reloads_address_1): Corresponding changes.
9279 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9280 (refers_to_regno_for_reload_p): Corresponding changes.
9281 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9282 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9283 * reload1.c: Include ggc.h.
9284 (grow_reg_equivs): New function.
9285 (replace_pseudos_in, reload): Corresponding changes.
9286 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9287 (eliminate_regs_1, elimination_effects): Corresponding changes.
9288 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9289 (delete_output_reload): Likewise.
9290 * caller-save.c (mark_referenced_regs): Corresponding changes.
9291 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9292 * frv/predicates.md (frv_load_operand): Corresponding changes.
9293 * microblaze/microblaze.c (double_memory_operand): Corresponding
9295 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9296 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9297 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9298 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9299 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9301 * pa/pa.c (emit_move_sequence): Corresponding changes.
9302 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9304 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9307 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9308 structure modes. Don't check neon_vector_mem_operand for
9309 vector or structure modes.
9311 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9312 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9315 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9316 operand 1 and reshuffle the operands to match.
9317 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9319 2011-03-30 Christian Schüler <cschueler@gmx.de>
9322 * config/c.opt (F): Added 'Driver' to -F option.
9325 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9327 * config/darwin.opt: Added '-arch' option.
9329 2011-03-30 Nick Clifton <nickc@redhat.com>
9331 * config/rx/rx.md: Add peepholes and patterns to combine
9332 extending loads and simple arithmetic instructions.
9333 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9334 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9335 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9336 modes to use pre-decrement and post-increment addressing.
9337 (rx_is_restricted_memory_address): Add range checking of REG+INT
9339 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9340 (rx_memory_move_cost): Adjust cost of stores.
9341 (rx_adjust_insn_length): New function.
9343 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9346 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9347 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9348 matching arg00/arg01 types.
9350 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9352 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9353 last_location to UNKNOWN_LOCATION.
9355 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9358 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9361 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9362 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9365 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9367 (sparc_cpu): Likewise.
9368 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9371 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9375 PR rtl-optimization/48345
9376 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9377 hard regs for given mode from profitable regs when doing secondary
9380 2011-03-29 Jeff Law <law@redhat.com>
9383 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9384 do_not_duplicate field.
9385 (lookup_redirection_data): Corresponding changes.
9386 (create_duplicates): Always create a template block.
9387 (redirect_edges): Remove code which reused the original block
9388 when it was going to become unreachable code.
9389 (thread_block): Don't set do_not_duplicate field.
9391 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9393 * lto-opts.c (register_user_option_p, lto_register_user_option):
9394 Make type argument unsigned.
9395 * lto-streamer.h (lto_register_user_option): Make type argument
9397 * opth-gen.awk: Make CL_* macros unsigned.
9398 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9399 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9400 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9401 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9402 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9403 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9404 (find_opt): Make lang_mask argument unsigned.
9406 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9408 PR rtl-optimization/48331
9409 PR rtl-optimization/48334
9410 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9411 for any used algorithm.
9413 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9415 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9418 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9420 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9421 (alpha_option_override): Don't set alpha_sr_alias_set.
9422 (emit_frame_store_1): Use gen_frame_mem rather than calling
9424 (alpha_expand_epilogue): Ditto.
9426 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9428 PR tree-optimization/48290
9429 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9430 vectorization, check that relevant phis in the basic block after
9431 the inner loop are really inner loop's exit phis.
9433 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9436 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9437 (cached_dw_loc_list_def): New structure.
9438 (cached_dw_loc_list): New typedef.
9439 (cached_dw_loc_list_table): New variable.
9440 (cached_dw_loc_list_table_hash): New function.
9441 (cached_dw_loc_list_table_eq): Likewise.
9442 (add_location_or_const_value_attribute): Take a bool cache_p.
9443 Cache the list when the parameter is true.
9444 (gen_formal_parameter_die): Update caller.
9445 (gen_variable_die): Likewise.
9446 (dwarf2out_finish): Likewise.
9447 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9448 while generating debug info for the decl.
9449 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9450 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9451 (resolve_addr): Cache the result of resolving a chain of
9454 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9456 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9457 conflict object hard regset nodes have intersecting hard reg sets.
9459 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9460 after regstat_init_n_sets_and_refs.
9462 * ira.c: Add more comments at the top.
9463 (setup_stack_reg_pressure_class, setup_pressure_classes):
9464 Add comments how we compute the register pressure classes.
9465 (setup_allocno_and_important_classes): Add more comments.
9466 (setup_class_translate_array, reorder_important_classes)
9467 (setup_reg_class_relations): Add comments.
9469 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9472 * ira-color.c: Add 2011 to the Copyright line.
9473 (assign_hard_reg): Add more comments.
9474 (improve_allocation): Ditto.
9476 * ira-costs.c: Add 2011 to the Copyright line.
9477 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9479 (setup_regno_cost_classes_by_mode): Ditto.
9481 Initial patches from ira-improv branch:
9483 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9485 * ira-build.c (ira_create_object): Remove initialization of
9486 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9487 (ira_create_allocno): Remove initialization of
9488 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9489 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9490 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9491 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9492 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9493 Initialize ALLOCNO_ADD_DATA.
9494 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9495 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9497 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9498 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9500 * ira.c (ira_reallocate): Remove.
9501 (setup_pressure_classes): Call
9502 ira_init_register_move_cost_if_necessary. Use
9503 ira_register_move_cost instead of ira_get_register_move_cost.
9504 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9505 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9507 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9508 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9509 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9510 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9511 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9512 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9514 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9515 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9516 (struct allocno_color_data): New.
9517 (allocno_color_data_t): New typedef.
9518 (allocno_color_data): New definition.
9519 (ALLOCNO_COLOR_DATA): New macro.
9520 (struct object_color_data): New.
9521 (object_color_data_t): New typedef.
9522 (object_color_data): New definition.
9523 (OBJECT_COLOR_DATA): New macro.
9524 (update_copy_costs, calculate_allocno_spill_cost): Call
9525 ira_init_register_move_cost_if_necessary. Use
9526 ira_register_move_cost instead of ira_get_register_move_cost.
9527 (move_spill_restore, update_curr_costs): Ditto.
9528 (allocno_spill_priority): Make it inline.
9529 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9530 (struct coalesce_data, coalesce_data_t): New.
9531 (allocno_coalesce_data): New definition.
9532 (ALLOCNO_COALESCE_DATA): New macro.
9533 (merge_allocnos, coalesced_allocno_conflict_p): Use
9534 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9535 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9536 (coalesce_allocnos): Ditto.
9537 (setup_coalesced_allocno_costs_and_nums): Ditto.
9538 (collect_spilled_coalesced_allocnos): Ditto.
9539 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9540 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9541 (coalesce_spill_slots): Ditto.
9542 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9543 free allocno_coalesce_data.
9545 * ira-conflicts.c: Fix formatting.
9546 (process_regs_for_copy): Call
9547 ira_init_register_move_cost_if_necessary. Use
9548 ira_register_move_cost instead of ira_get_register_move_cost.
9549 (build_object_conflicts): Optimize.
9551 * ira-costs.c (record_reg_classes): Optimize. Call
9552 ira_init_register_move_cost_if_necessary. Use
9553 ira_register_move_cost, ira_may_move_in_cost, and
9554 ira_may_move_out_cost instead of ira_get_register_move_cost and
9555 ira_get_may_move_cost.
9556 (record_address_regs): Ditto.
9557 (scan_one_insn): Optimize.
9558 (find_costs_and_classes): Optimize.
9559 (process_bb_node_for_hard_reg_moves): Call
9560 ira_init_register_move_cost_if_necessary. Use
9561 ira_register_move_cost instead of ira_get_register_move_cost.
9563 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9564 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9565 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9566 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9568 (ira_initiate_emit_data, ira_finish_emit_data)
9569 (create_new_allocno): New functions.
9570 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9571 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9572 Use ira_register_move_cost instead of ira_get_register_move_cost.
9574 * ira-int.h: Fix some comments.
9575 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9576 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9577 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9578 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9580 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9581 bitfield after mode. Make hard_regno a short int. Make
9582 hard_regno short. Remove first_coalesced_allocno and
9583 next_coalesced_allocno. Move mem_optimized_dest_p,
9584 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9585 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9586 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9587 temp, colorable_p. Add new member add_data.
9588 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9589 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9590 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9591 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9592 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9593 (ALLOCNO_ADD_DATA): New macro.
9594 (ira_emit_data_t): New typedef.
9595 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9596 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9597 from struct ira_allocno.
9598 (ALLOCNO_EMIT_DATA): New macro.
9599 (ira_allocno_emit_data, allocno_emit_reg): New.
9600 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9601 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9602 (OBJECT_ADD_DATA): New macro.
9603 (ira_reallocate): Remove.
9604 (ira_initiate_emit_data, ira_finish_emit_data): New.
9605 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9606 (ira_init_register_move_cost_if_necessary): New.
9607 (ira_object_conflict_iter_next): Merge into
9608 ira_object_conflict_iter_cond.
9609 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9611 * ira-live.c (process_single_reg_class_operands): Call
9612 ira_init_register_move_cost_if_necessary. Use
9613 ira_register_move_cost instead of ira_get_register_move_cost.
9615 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9617 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9619 * ira-costs.c: Fix formatting.
9620 (cost_classes, cost_classes_num): Remove.
9621 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9622 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9623 (cost_classes_del, cost_classes_htab): New.
9624 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9625 (initiate_regno_cost_classes, setup_cost_classes): New.
9626 (setup_regno_cost_classes_by_aclass): New.
9627 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9628 (record_reg_classes): Use regno_cost_classes instead of
9629 cost_classes. Move checking opposite operand up.
9630 (record_address_regs): Use regno_cost_classes
9631 instead of cost_classes.
9632 (scan_one_insn): Ditto. Use always general register.
9633 (print_allocno_costs): Use regno_cost_classes instead of
9635 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9636 (find_costs_and_classes): Set up cost classes for each registers.
9637 Use also their mode for this. Use regno_cost_classes instead of
9639 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9641 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9642 (ira_costs, ira_set_pseudo_classes): Call
9643 initiate_regno_cost_classes and finish_regno_cost_classes.
9645 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9647 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9649 * target.def (ira_cover_classes): Remove.
9651 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9653 * doc/tm.texi.in: Ditto.
9655 * ira-conflicts.c: Remove mentioning cover classes from the file.
9656 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9657 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9659 * targhooks.c (default_ira_cover_classes): Remove.
9661 * targhooks.h (default_ira_cover_classes): Ditto.
9663 * haifa-sched.c: Remove mentioning cover classes from the file.
9664 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9665 ira_pressure_classes and ira_pressure_classes_num instead of
9666 ira_reg_class_cover_size and ira_reg_class_cover. Use
9667 sched_regno_pressure_class instead of sched_regno_cover_class.
9668 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9669 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9671 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9672 classes from the file.
9673 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9674 (struct object_hard_regs, struct object_hard_regs_node): New.
9675 (struct ira_object): New members profitable_hard_regs,
9676 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9677 (struct ira_allocno): Rename cover_class to aclass. Rename
9678 cover_class_cost and updated_cover_class_cost to class_cost and
9679 updated_class_cost. Remove splay_removed_p and
9680 left_conflict_size. Add new members colorable_p.
9681 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9682 (ALLOCNO_COLORABLE_P): New macro.
9683 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9684 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9685 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9686 (OBJECT_...): Rename parameter C to O.
9687 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9688 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9689 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9690 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9691 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9692 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9693 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9694 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9695 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9696 x_ira_reg_class_subunion.
9697 (ira_max_memory_move_cost, ira_max_register_move_cost)
9698 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9699 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9700 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9701 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9702 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9703 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9704 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9705 (ira_tune_allocno_costs_and_cover_classes): Rename to
9706 ira_tune_allocno_costs.
9707 (ira_debug_hard_regs_forest): New.
9708 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9709 (ira_object_conflict_iter_next): Fix comments.
9710 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9711 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9712 cover_class to aclass.
9713 (ira_allocate_and_accumulate_costs): Ditto.
9714 (ira_allocate_and_set_or_copy_costs): Ditto.
9716 * opts.c (decode_options): Remove ira_cover_class check.
9718 * ira-color.c: Remove mentioning cover classes from the file. Use
9719 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9720 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9721 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9722 (splay-tree.h): Remove include.
9723 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9724 before copy_freq_compare_func.
9725 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9726 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9728 (hard_regs_roots, hard_regs_node_vec): Ditto.
9729 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9730 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9731 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9732 (create_new_object_hard_regs_node): Ditto.
9733 (add_new_object_hard_regs_node_to_forest): Ditto.
9734 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9735 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9737 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9738 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9739 (remove_unused_object_hard_regs_nodes): Ditto.
9740 (enumerate_object_hard_regs_nodes): Ditto.
9741 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9742 (object_hard_regs_subnode_t): Ditto.
9743 (struct object_hard_regs_subnode): Ditto.
9744 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9745 (setup_object_hard_regs_subnode_index): Ditto.
9746 (get_object_hard_regs_subnodes_num): Ditto.
9747 (form_object_hard_regs_nodes_forest): Ditto.
9748 (finish_object_hard_regs_nodes_tree): Ditto.
9749 (finish_object_hard_regs_nodes_forest): Ditto.
9750 (allocnos_have_intersected_live_ranges_p): Rename to
9751 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9752 (pseudos_have_intersected_live_ranges_p): Rename to
9753 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9754 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9755 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9756 (update_copy_costs): Remove assert. Skip cost update if the hard
9757 reg does not belong the class.
9758 (assign_hard_reg): Process only profitable hard regs.
9759 (uncolorable_allocnos_num): Make it scalar.
9760 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9761 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9762 and ira_reg_class_max_nregs.
9763 (bucket_allocno_compare_func): Check frequency first.
9764 (sort_bucket): Add compare function as a parameter.
9765 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9766 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9767 (push_allocno_to_stack): Rewrite for checking new allocno
9769 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9770 (push_only_colorable): Pass new parameter to sort_bucket.
9771 (push_allocno_to_spill): Remove.
9772 (allocno_spill_priority_compare): Make it inline and rewrite.
9773 (splay_tree_allocate, splay_tree_free): Remove.
9774 (allocno_spill_sort_compare): New function.
9775 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9776 build and use splay tree. Choose first allocno in uncolorable
9777 allocno bucket to spill. Remove setting spill cost.
9778 (all_conflicting_hard_regs): Remove.
9779 (setup_allocno_available_regs_num): Check only profitable hard
9780 regs. Print info about hard regs nodes.
9781 (setup_allocno_left_conflicts_size): Remove.
9782 (put_allocno_into_bucket): Don't call
9783 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9784 (improve_allocation): New.
9785 (color_allocnos): Call setup_profitable_hard_regs,
9786 form_object_hard_regs_nodes_forest, improve_allocation,
9787 finish_object_hard_regs_nodes_forest. Setup spill cost.
9788 (print_loop_title): Use pressure classes.
9789 (color_allocnso): Ditto.
9790 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9791 and allocnos_for_spilling.
9792 (ira_sort_regnos_for_alter_reg): Don't setup members
9793 {first,next}_coalesced_allocno.
9794 (color): Remove allocating and freeing removed_splay_allocno_vec.
9795 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9796 prohibited_class_mode_regs.
9798 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9800 (update_allocno_pressure_excess_length): Use pressure classes.
9801 (inc_register_pressure, dec_register_pressure): Check for pressure
9803 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9804 pressure class. Use ira_reg_class_nregs instead of
9805 ira_reg_class_max_nregs.
9806 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9807 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9808 (single_reg_class): Use ira_reg_class_nregs instead of
9809 ira_reg_class_max_nregs.
9810 (process_bb_node_lives): Use pressure classes.
9812 * ira-emit.c: Remove mentioning cover classes from the file. Use
9813 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9814 (change_loop): Use pressure classes.
9815 (modify_move_list): Call ira_set_allocno_class instead of
9816 ira_set_allocno_cover_class.
9818 * ira-build.c: Remove mentioning cover classes from the file. Use
9819 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9820 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9821 ALLOCNO_UPDATED_CLASS_COST instead of
9822 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9823 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9824 (ira_create_allocno): Remove initialization of
9825 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9826 ALLOCNO_COLORABLE_P.
9827 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9828 Update conflict regs for the objects.
9829 (create_cap_allocno): Remove assert. Don't propagate
9830 ALLOCNO_AVAILABLE_REGS_NUM.
9831 (ira_free_allocno_costs): New function.
9832 (finish_allocno): Change a part of code into call of
9833 ira_free_allocno_costs.
9834 (low_pressure_loop_node_p): Use pressure classes.
9835 (object_range_compare_func): Don't compare classes.
9836 (setup_min_max_conflict_allocno_ids): Ditto.
9838 * loop-invariant.c: Remove mentioning cover classes from the file.
9839 Use ira_pressure_classes and ira_pressure_classes_num instead of
9840 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9841 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9842 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9843 Use reg_allocno_class instead of reg_cover_class.
9844 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9845 STACK_REG_COVER_CLASS.
9846 (get_regno_cover_class): Rename to get_regno_pressure_class.
9847 (move_loop_invariants): Initialize and finalize regstat.
9849 * ira.c: Remove mentioning cover classes from the file. Add
9850 comments about coloring without cover classes. Use ALLOCNO_CLASS
9851 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9852 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9853 setup_class_subset_and_memory_move_costs.
9854 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9855 (setup_cover_and_important_classes): Rename to
9856 setup_allocno_and_important_classes.
9857 (setup_class_translate_array): New.
9858 (setup_class_translate): Call it for allocno and pressure classes.
9859 (cover_class_order): Rename to allocno_class_order.
9860 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9861 of ira_class_translate.
9862 (reorder_important_classes): Set up ira_important_class_nums.
9863 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9864 (print_class_cover): Rename to print_classes. Add parameter.
9865 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9866 Print pressure classes too.
9867 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9868 setup_reg_subclasses.
9869 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9870 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9871 (setup_prohibited_class_mode_regs): Use
9872 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9873 (clarify_prohibited_class_mode_regs): New function.
9874 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9875 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9876 (ira_init_once): Initialize them.
9877 (free_register_move_costs): Process them.
9878 (ira_init): Move calls of find_reg_classes and
9879 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9880 Call clarify_prohibited_class_mode_regs.
9881 (ira_no_alloc_reg): Remove.
9882 (too_high_register_pressure_p): Use pressure classes.
9884 * sched-deps.c: Remove mentioning cover classes from the file.
9885 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9886 ira_pressure_classes and ira_pressure_classes_num instead of
9887 ira_reg_class_cover_size and ira_reg_class_cover.
9888 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9889 sched_regno_pressure_class instead of sched_regno_cover_class.
9890 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9891 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9893 * ira.h: Add 2010 to Copyright.
9894 (ira_no_alloc_reg): Remove external.
9895 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9896 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9897 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9898 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9899 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9900 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9901 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9902 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9903 x_ira_no_alloc_regs.
9904 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9905 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9906 ira_allocno_classes_num and ira_allocno_classes.
9907 (ira_class_translate): Rename to ira_allocno_class_translate.
9908 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9909 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9910 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9911 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9912 (ira_no_alloc_regs): New.
9914 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9915 classes from the file. Use ALLOCNO_CLASS instead of
9916 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9917 ALLOCNO_COVER_CLASS_COST.
9918 (regno_cover_class): Rename to regno_aclass.
9919 (record_reg_classes): Use ira_reg_class_subunion instead of
9920 ira_reg_class_union.
9921 (record_address_regs): Check overflow.
9922 (scan_one_insn): Ditto.
9923 (print_allocno_costs): Print total mem cost fore regional allocation.
9924 (print_pseudo_costs): Use REG_N_REFS.
9925 (find_costs_and_classes): Use classes intersected with them on the
9926 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9927 ira_reg_class_union. Use ira_allocno_class_translate and
9928 regno_aclass instead of ira_class_translate and regno_cover_class.
9929 Modify code for finding regno_aclass. Setup preferred classes for
9931 (setup_allocno_cover_class_and_costs): Rename to
9932 setup_allocno_class_and_costs. Use regno_aclass instead of
9933 regno_cover_class. Use ira_set_allocno_class instead of
9934 ira_set_allocno_cover_class.
9935 (init_costs, finish_costs): Use regno_aclass instead of
9937 (ira_costs): Use setup_allocno_class_and_costs instead of
9938 setup_allocno_cover_class_and_costs.
9939 (ira_tune_allocno_costs_and_cover_classes): Rename to
9940 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9941 by processing objects. Use ira_reg_class_max_nregs instead of
9942 ira_reg_class_nregs.
9944 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9946 * sched-int.h: Remove mentioning cover classes from the file.
9947 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9949 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9950 classes from the file.
9951 (struct reg_pref): Rename coverclass into allocnoclass.
9952 (reg_cover_class): Rename to reg_allocno_class.
9954 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9956 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9958 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9960 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9962 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9964 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9966 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9968 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9970 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9972 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9974 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9975 (i386_ira_cover_classes): Ditto.
9977 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9979 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9981 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9983 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9985 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9987 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9989 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9990 (mips_ira_cover_classes): Ditto.
9992 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9994 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9996 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9998 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10000 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10002 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10003 (IRA_COVER_CLASSES_VSX): Ditto.
10005 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10006 (rs6000_ira_cover_classes): Ditto.
10008 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10010 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10012 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10014 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10016 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10018 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10020 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10022 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10024 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10026 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10028 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10031 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10032 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10033 dw_fde_unlikely_section_end_label, cold_in_std_section,
10034 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10035 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10037 (output_fde): Use dw_fde_second_{begin,end} if second is
10038 true, otherwise dw_fde_{begin,end}.
10039 (output_call_frame_info): Test dw_fde_second_begin != NULL
10040 instead of dw_fde_switched_sections.
10041 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10042 fields, initialize new fields. Initialize in_std_section
10043 unconditionally from the first partition.
10044 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10045 dw_fde_second_begin is non-NULL.
10046 (dwarf2out_switch_text_section): Stop initializing removed
10047 dw_fde_struct fields, initialize new fields, initialize
10048 also dw_fde_end here. Set dw_fde_switch_cfi even when
10049 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10050 (struct var_loc_list_def): Add last_before_switch field.
10051 (arange_table, arange_table_allocated, arange_table_in_use,
10052 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10053 (size_of_aranges): Count !in_std_section and !second_in_std_section
10054 hunks in fdes, instead of looking at arange_table_in_use.
10055 (output_aranges): Add aranges_length argument, don't call
10056 size_of_aranges here. Instead of using aranges_table*
10057 emit ranges for fdes when !in_std_section resp.
10058 !second_in_std_section.
10059 (dw_loc_list): Break ranges crossing section switch.
10060 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10061 use dw_fde_second_end instead of dw_fde_end as end of last range.
10062 (gen_subprogram_die): Don't call add_arange. Use
10063 dw_fde_{begin,end} for first partition and if switched
10064 section dw_fde_second_{begin,end} for the second.
10065 (var_location_switch_text_section_1,
10066 var_location_switch_text_section): New functions.
10067 (dwarf2out_begin_function): Initialize cold_text_section even
10068 when function_section () isn't text_section.
10069 (prune_unused_types): Don't walk arange_table.
10070 (dwarf2out_finish): Don't needlessly test
10071 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10072 If info_section_emitted, call size_of_aranges and if it indicates
10073 non-empty .debug_aranges, call output_aranges with the computed
10074 size. Stop using removed dw_fde_struct fields, use
10075 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10079 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10080 create ENTRY_VALUE if incoming or address of incoming's MEM
10082 * dwarf2out.c (mem_loc_descriptor): Don't emit
10083 DW_OP_GNU_entry_value of DW_OP_fbreg.
10084 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10085 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10086 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10087 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10089 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10090 is a REG_P or MEM_P with REG_P address, compute hash directly
10091 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10092 (preserve_only_constants): Don't clear VALUES forwaring
10093 ENTRY_VALUE to some other VALUE.
10095 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10097 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10098 instead of GEN_INT.
10100 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10102 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10103 block before expanding the statement.
10104 (expand_gimple_stmt_1): Likewise. Set them here...
10105 (expand_gimple_stmt): ...and not here. Tidy.
10106 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10109 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10111 * Makefile.in: New rule for cprop.o.
10112 * gcse.c: Move constant/copy propagation to cprop.c.
10113 (compute_local_properties): Only handle expression tables.
10114 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10115 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10116 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10117 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10118 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10119 compute_cprop_data, find_used_regs, try_replace_reg,
10120 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10121 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10122 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10123 find_bypass_set, reg_killed_on_edge, bypass_block,
10124 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10125 execute_rtl_cprop, pass_rtl_cprop): Move to...
10126 * cprop.c: ...here. New file, constant/copy propagation for RTL
10127 moved from gcse.c to here with minor cleanups in duplicated code.
10129 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10131 * config/i386/i386.c (flag_opts): Fix a typo in
10132 -mavx256-split-unaligned-store.
10134 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10136 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10137 LIBCALL_VALUE): Remove macros.
10138 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10139 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10140 (h8300_function_value, h8300_libcall_value,
10141 h8300_function_value_regno_p): New functions.
10143 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10145 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10147 2011-03-28 Jeff Law <law@redhat.com>
10149 * tree-ssa-threadupdate.c (redirect_edges): Call
10150 create_edge_and_update_destination_phis as needed.
10151 (create_edge_and_update_destination_phis): Accept new BB argument.
10152 All callers updated.
10153 (thread_block): Do not update the profile when threading around
10154 intermediate blocks.
10155 (thread_single_edge): Likewise.
10156 (determine_bb_domination_status): If BB is not a successor of the
10157 loop header, return NONDOMINATING.
10158 (register_jump_thread): Note when we register a jump thread around
10159 an intermediate block.
10160 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10161 (thread_across_edge): Use it.
10163 2011-03-28 Tristan Gingold <gingold@adacore.com>
10165 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10166 when for_return is 2.
10168 2011-03-28 Jeff Law <law@redhat.com>
10170 * var-tracking.c (canonicalize_values_mark): Delete unused
10172 (canonicalize_values_star, set_variable_part): Likewise.
10173 (clobber_variable_part, delete_variable_part): Likewise.
10175 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10177 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10179 2011-03-28 Martin Jambor <mjambor@suse.cz>
10181 * tree-inline.c (expand_call_inline): Do not check that destination
10183 (optimize_inline_calls): Assert that destination node is analyzed.
10184 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10185 not call tree_lowering_passes.
10186 * cgraph.h (cgraph_analyze_function): Declare.
10187 * cgraphunit.c (cgraph_analyze_function): Make public.
10189 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10191 * config/sparc/sparc-opts.h: New.
10192 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10193 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10194 (sparc_option_override): Store processor_type enumeration rather
10195 than string in cpu_default. Remove name and enumeration from
10196 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10197 without using sparc_select. Use target_flags_explicit instead of
10199 * config/sparc/sparc.h (enum processor_type): Move to
10201 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10202 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10203 HeaderInclude entry.
10204 (mcpu=, mtune=): Use Var and Enum.
10205 (sparc_processor_type): New Enum and EnumValue entries.
10207 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10208 Iain Sandoe <iains@gcc.gnu.org>
10211 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10213 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10215 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10216 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10217 Insert new statements at it in lieu of STMT.
10218 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10219 * tree-vect-stmts.c (vectorizable_store): Likewise.
10220 (vectorizable_load): Likewise.
10222 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10224 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10229 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10231 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10232 unaligned 256bit load/store.
10233 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10234 (*avx_movdqu<avxmodesuffix>): Likewise.
10236 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10239 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10240 * config/pa/pa.md (iordi3): Use new predicate in expander.
10241 (iorsi3): Likewise.
10243 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10245 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10246 FUNCTION_VALUE_REGNO_P): Remove macros.
10247 * config/mips/mips-protos.h (mips_function_value): Remove.
10248 * config/mips/mips.c (mips_function_value): Rename to...
10249 (mips_function_value_1): ... this. Make static. Handle receiving
10250 the function type in 'fn_decl_or_type' argument.
10251 (mips_function_value, mips_libcall_value,
10252 mips_function_value_regno_p): New function.
10253 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10254 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10256 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10258 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10259 and -mavx256-split-unaligned-store.
10260 (ix86_option_override_internal): Split 32-byte AVX unaligned
10261 load/store by default.
10262 (ix86_avx256_split_vector_move_misalign): New.
10263 (ix86_expand_vector_move_misalign): Use it.
10265 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10266 -mavx256-split-unaligned-store.
10268 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10269 256bit load/store. Generate unaligned store on misaligned memory
10271 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10273 (*avx_movdqu<avxmodesuffix>): Likewise.
10275 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10276 -mavx256-split-unaligned-store.
10278 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10281 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10284 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10286 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10287 opno arguments with an expand_operand. Use create_input_operand.
10288 (mips_prepare_builtin_target): Delete.
10289 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10291 (mips_expand_builtin_direct): Use create_output_operand and
10292 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10293 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10294 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10296 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10298 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10300 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10302 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10304 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10305 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10306 basic blocks and call commit_edge_insertions directly.
10307 (fixup_abnormal_edges): Move from here to...
10308 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10309 on the edges and return whether some have actually been inserted.
10310 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10313 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10315 PR rtl-optimization/48144
10316 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10317 (merge_expr_data): ... here.
10318 (av_set_intersect): Rename to av_set_code_motion_filter.
10319 Update all callers. Call merge_history_vect when an expression
10320 is found in both sets.
10321 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10323 2011-03-26 Alan Modra <amodra@gmail.com>
10325 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10326 cmodel medium addresses.
10327 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10328 64-bit gpr loads and stores.
10329 (rs6000_secondary_reload_ppc64): New function.
10330 * config/rs6000/rs6000-protos.h: Declare it.
10331 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10333 2011-03-26 Alan Modra <amodra@gmail.com>
10336 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10337 GNU Go in traceback table.
10339 2011-03-25 Richard Henderson <rth@redhat.com>
10341 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10342 if there are exactly 6 operands.
10343 (set_storage_via_setmem): Similarly.
10345 2011-03-25 Kai Tietz <ktietz@redhat.com>
10347 * collect2.c (write_c_file_stat): Handle backslash
10348 as right-hand directory separator.
10349 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10350 checking just for slash.
10351 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10352 instead of checking for trailing slash.
10353 * gcc.c (record_temp_file): Use filename_cmp instead
10355 (do_spec_1): Likewise.
10356 (replace_outfile_spec_function): Likewise.
10357 (is_directory): Use filename_ncmp instead of strncmp.
10358 (print_multilib_info): Likewise.
10359 * gcov.c (find_source): Use filename_cmp instead
10361 (make_gcov_file_name): Fix order of slash/backslash
10363 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10364 (add_standard_paths): Likewise.
10365 * mips-tfile.c (saber_stop): Handle backslash.
10366 * prefix.c (update_path): Use filename_ncmp instead of
10368 * profile.c (output_location): Use filename_cmp instead
10370 * read-md.c (handle_toplevel_file): Handle backslash.
10371 * tlink.c (frob_extension): Likewise.
10372 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10374 * tree-dump.c (dequeue_and_dump): Handle backslash.
10375 * tree.c (get_file_function_name): Likewise.
10376 * gengtype.c (read_input_list): Likewise.
10377 (get_file_realbasename): Likewise.
10378 (get_output_file_with_visibility): Use filename_cmp
10381 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10383 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10386 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10388 * fold-const.c (expr_location_or): New function.
10389 (fold_truth_not_expr): Call it.
10391 2011-03-25 Jeff Law <law@redhat.com>
10393 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10395 * c-family/c-common.c (def_fn_type): Likewise.
10396 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10397 * emit-rtl.c (gen_rtvec): Likewise.
10398 * lto/lto-lang.c (def_fn_type): Likewise.
10400 2011-03-25 Richard Guenther <rguenther@suse.de>
10402 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10403 also generate copies.
10404 (fini_copy_prop): Handle constant values properly.
10406 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10408 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10409 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10410 (hash_loc_operands, compare_loc_operands): Handle
10411 DW_OP_GNU_entry_value.
10413 2011-03-25 Kai Tietz <ktietz@redhat.com>
10415 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10416 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10417 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10418 comment and use macro TARGET_64BIT_MS_ABI instead.
10419 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10420 and change default behavior for 32-bit MS_ABI.
10421 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10422 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10424 (ix86_cfun_abi): Likewise.
10425 (ix86_maybe_switch_abi): Adjust comment.
10426 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10427 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10428 instead of checking for SYSV_ABI.
10429 (ix86_nsaved_sseregs): Likewise.
10430 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10432 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10433 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10434 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10435 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10436 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10438 2011-03-25 Richard Guenther <rguenther@suse.de>
10440 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10441 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10442 (verify_gimple): Remove.
10443 * tree-cfg.c (verify_gimple_call): Merge verification
10445 (verify_gimple_phi): Merge verification from verify_stmts.
10446 (verify_gimple_label): New function.
10447 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10448 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10449 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10450 (verify_stmts): Rename to verify_gimple_in_cfg.
10451 (verify_gimple_in_cfg): New function.
10452 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10453 * tree-ssa.c (verify_ssa): Likewise.
10454 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10456 2011-03-25 Richard Guenther <rguenther@suse.de>
10458 * passes.c (init_optimization_passes): Add FRE pass after
10461 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10462 Andrew Stubbs <ams@codesourcery.com>
10464 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10466 (arm_movdi_vfp_cortexa8): New pattern.
10467 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10468 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10469 instructions when tuning for Cortex-A8. Set attribute "arch".
10470 * config/arm/arm.md: Move include arm-tune.md up a bit.
10471 (define_attr "arch"): Add "onlya8" and "nota8" values.
10472 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10474 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10478 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10480 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10481 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10482 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10483 * passes.c (init_optimization_passes): Move
10484 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10486 2011-03-25 Kai Tietz <ktietz@redhat.com>
10488 * c-typeck.c (comptypes_internal): Replace target
10489 hook call of comp_type_attributes by version in tree.c file.
10490 * gimple.c (gimple_types_compatible_p_1): Likewise.
10491 * tree-ssa.c (useless_type_conversion_p): Likewise.
10492 * tree.c (build_type_attribute_qual_variant): Likewise.
10493 (attribute_value_equal): New static helper function.
10494 (comp_type_attributes): New function.
10495 (merge_attributes): Use attribute_value_equal for comparison.
10496 (attribute_list_contained): Likewise.
10497 * tree.h (comp_type_attributes): New prototype.
10499 2011-03-25 Richard Guenther <rguenther@suse.de>
10501 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10502 of complex types at -O0.
10503 (verify_gimple_assign_binary): Likewise.
10504 (verify_gimple_assign_ternary): Likewise.
10506 2011-03-24 Mark Wielaard <mjw@redhat.com>
10508 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10509 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10511 2011-03-24 Mark Wielaard <mjw@redhat.com>
10514 * dwarf2out.c (output_abbrev_section): Only write table when
10515 abbrev_die_table_in_use > 1.
10517 2011-02-24 Richard Henderson <rth@redhat.com>
10519 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10520 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10521 (alpha_expand_unaligned_load_words): Use extql.
10522 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10523 (emit_insxl): Handle all modes for consistency.
10525 2011-02-24 Richard Henderson <rth@redhat.com>
10527 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10528 (alpha_expand_unaligned_load): Likewise.
10529 (alpha_expand_unaligned_store): Likewise.
10530 (alpha_expand_unaligned_load_words): Likewise.
10531 (alpha_expand_unaligned_store_words): Likewise.
10532 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10533 (alpha_split_lock_test_and_set_12): Likewise.
10534 (print_operand, alpha_fold_builtin_extxx): Likewise.
10535 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10536 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10537 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10538 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10539 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10540 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10541 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10542 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10543 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10544 (extwl, extll, extql): Similarly.
10545 (inswh, inslh, insqh): Similarly.
10546 (mskbl, mskwl, mskll, mskql): Similarly.
10547 (mskwh, msklh, mskqh): Similarly.
10549 2011-02-24 Richard Henderson <rth@redhat.com>
10551 * config/alpha/alpha.md (attribute isa): Add er, ner.
10552 (attribute enabled): Handle them.
10553 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10555 2011-02-24 Richard Henderson <rth@redhat.com>
10557 * config/alpha/alpha.md (attribute isa): Add vms.
10558 (attribute enabled): Handle it.
10559 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10560 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10561 (*movtf): Rename from *movtf_internal for consistency.
10562 (*movsi): Merge with *movsi_nt_vms.
10563 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10564 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10565 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10566 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10568 2011-02-24 Richard Henderson <rth@redhat.com>
10570 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10571 (extendqisi2, extendhisi2): Likewise.
10572 (extendqidi2): Simplify BWX/non-BWX expansions.
10573 (extendhidi2): Similarly.
10575 2011-02-24 Richard Henderson <rth@redhat.com>
10577 * config/alpha/alpha.md (attribute isa): New.
10578 (attribute enabled): New.
10579 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10580 (zero_extendqisi2, zero_extendqidi2): Similarly.
10581 (zero_extendhisi2, zero_extendhidi2): Similarly.
10582 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10584 2011-02-24 Richard Henderson <rth@redhat.com>
10586 * config/alpha/predicates.md (input_operand): Revert last change;
10587 update comment to mention 32-bit VMS rather than Windows.
10589 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10591 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10592 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10593 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10594 * passes.c (init_optimization_passes): Move
10595 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10597 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10599 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10601 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10603 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10606 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10609 * simplify-rtx.c (simplify_const_unary_operation): Call
10610 real_convert when changing mode class with FLOAT_EXTEND.
10612 2011-03-24 Nick Clifton <nickc@redhat.com>
10614 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10615 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10616 * config/rx/rx.c (rx_option_override): Set align_jumps,
10617 align_loops and align_labels if not set by the user.
10618 (rx_align_for_label): New function.
10619 (rx_max_skip_for_label): New function.
10620 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10621 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10622 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10623 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10624 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10626 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10628 PR rtl-optimization/48263
10629 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10630 and original commutative_p handling. Use maybe_gen_insn.
10632 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10634 * reload.c (find_reloads_subreg_address): Add address_reloaded
10635 parameter and return true there if the full address has been
10637 (find_reloads_toplev): Pass address_reloaded flag.
10638 (find_reloads_address_1): Don't use address_reloaded parameter.
10640 2011-03-24 Jeff Law <law@redhat.com>
10642 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10643 unused variable "ann".
10644 (remove_unused_locals): Likewise.
10646 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10649 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10652 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10654 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10655 for invalid symbolic addresses.
10656 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10659 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10661 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10662 the argument in calls to fold_truth_not_expr.
10664 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10666 * tree.c (record_node_allocation_statistics): New function.
10667 (make_node_stat, copy_node_stat, build_string): Call it.
10668 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10669 (build1_stat, build_omp_clause): Likewise.
10671 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10673 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10676 2011-03-24 Richard Guenther <rguenther@suse.de>
10678 PR tree-optimization/48271
10679 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10680 blocks that still exist.
10682 2011-03-24 Richard Guenther <rguenther@suse.de>
10684 PR tree-optimization/48270
10685 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10686 not free datarefs before ddrs.
10688 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10690 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10691 from the address built for a reference with variable offset.
10693 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10696 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10697 alternatives that can be handled with movq or movabsq insn.
10698 (*movdf_internal): Disable for !TARGET_64BIT.
10699 (*movdf_internal_nointeger): Ditto.
10700 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10702 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10704 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10705 (FUNCTION_ARG_ADVANCE): Likewise.
10706 * tm.texi.in: Change references to them to hook references.
10707 * tm.texi: Regenerate.
10708 * targhooks.c (default_function_arg): Eliminate check for target macro.
10709 (default_function_incoming_arg): Likewise.
10710 (default_function_arg_advance): Likewise.
10711 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10712 (function_arg_advance): Likewise.
10713 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10715 2011-03-24 Richard Guenther <rguenther@suse.de>
10717 PR middle-end/48269
10718 * tree-object-size.c (addr_object_size): Do not double-account
10719 for MEM_REF offsets.
10721 2011-03-24 Diego Novillo <dnovillo@google.com>
10723 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10724 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10725 (lto_input_data_block): Move from lto-opts.c. Make extern.
10727 (lto_input_string): Rename from input_string. Make extern.
10729 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10730 output_string_with_length.
10731 Output 0 to indicate a non-NULL string. Update all callers to
10733 (lto_output_string): Rename from output_string. Make extern.
10735 (lto_output_decl_state_streams): Make extern.
10736 (lto_output_decl_state_refs): Make extern.
10737 * lto-streamer.h (lto_input_string): Declare.
10738 (lto_input_data_block): Declare.
10739 (lto_output_string): Declare.
10740 (lto_output_string_with_length): Declare.
10741 (lto_output_decl_state_streams): Declare.
10742 (lto_output_decl_state_refs): Declare.
10744 2011-03-24 Richard Guenther <rguenther@suse.de>
10746 PR tree-optimization/46562
10747 * tree.c (build_invariant_address): New function.
10748 * tree.h (build_invariant_address): Declare.
10749 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10750 a renamed function moved ...
10751 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10752 Take valueization callback parameter.
10753 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10754 * gimple-fold.h: New file.
10755 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10756 (ccp_fold, fold_const_aggregate_ref,
10757 fold_ctor_reference, fold_nonarray_ctor_reference,
10758 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10759 get_base_constructor): Move ...
10760 * gimple-fold.c: ... here.
10761 (gimple_fold_stmt_to_constant_1): New function
10762 split out from ccp_fold. Take a valueization callback parameter.
10763 Valueize all operands.
10764 (gimple_fold_stmt_to_constant): New wrapper function.
10765 (fold_const_aggregate_ref_1): New function split out from
10766 fold_const_aggregate_ref. Take a valueization callback parameter.
10767 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10768 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10769 invariant POINTER_PLUS_EXPRs to invariant form.
10770 (vn_valueize): New function.
10771 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10772 * tree-vrp.c (vrp_valueize): New function.
10773 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10774 to fold statements to constants.
10775 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10776 function declarations.
10777 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10778 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10780 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10782 * config/h8300/predicates.md (jump_address_operand): Fix register
10785 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10787 * doc/invoke.texi (max-stores-to-sink): Document.
10788 * params.h (MAX_STORES_TO_SINK): Define.
10789 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10790 if either vectorization or if-conversion is disabled.
10791 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10792 tree-vect-data-refs.c vect_equal_offsets.
10793 (dr_equal_offsets_p): New function.
10794 (find_data_references_in_bb): Remove static.
10795 * tree-data-ref.h (find_data_references_in_bb): Declare.
10796 (dr_equal_offsets_p): Likewise.
10797 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10798 (vect_drs_dependent_in_basic_block): Update calls to
10799 vect_equal_offsets.
10800 (vect_check_interleaving): Likewise.
10801 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10802 (cond_if_else_store_replacement): Rename to...
10803 (cond_if_else_store_replacement_1): ... this. Change arguments and
10805 (cond_if_else_store_replacement): New function.
10806 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10807 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10809 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10812 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10813 to subtract lower bound instead of GEN_INT().
10815 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10820 * doc/extend.texi (Alignment): Move section to match order in TOC.
10821 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10822 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10824 2011-03-23 Jeff Law <law@redhat.com>
10826 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10827 before removing the edge.
10829 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10830 it may have been freed by redirect_branch_edge or
10831 redirect_edge_succ_nodup.
10833 2011-03-23 Richard Guenther <rguenther@suse.de>
10835 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10836 (check_va_list_escapes): Likewise.
10837 (check_all_va_list_escapes): Likewise.
10839 2011-03-23 Richard Guenther <rguenther@suse.de>
10841 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10842 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10843 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10844 (alias.o): Likewise.
10845 (ipa-type-escape.o): Remove.
10846 (ipa-struct-reorg.o): Likewise.
10847 (GTFILES): Remove ipa-struct-reorg.c.
10848 * alias.c: Do not include ipa-type-escape.h.
10849 * tree-ssa-alias.c: Likewise.
10850 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10851 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10852 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10853 and ipa-type-escape passes.
10854 * tree-pass.h (pass_ipa_type_escape): Remove.
10855 (pass_ipa_struct_reorg): Likewise.
10856 * ipa-struct-reorg.h: Remove.
10857 * ipa-struct-reorg.c: Likewise.
10858 * ipa-type-escape.h: Likewise.
10859 * ipa-type-escape.c: Likewise.
10860 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10861 (--param struct-reorg-cold-struct-ratio): Likewise.
10862 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10863 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10864 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10866 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10868 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10869 cpu attribute value.
10870 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10871 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10872 * config/s390/s390.c (processor_flags_table): New constant array.
10873 (s390_handle_arch_option): Remove.
10874 (s390_handle_option): Remove s390_handle_arch_option invocations
10875 and OPT_mwarn_framesize_ handling.
10876 (s390_option_override): Remove s390_handle_arch_option invocation.
10877 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10879 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10880 * config/s390/s390.opt (s390_tune, s390_arch)
10881 (march=): Replace s390_arch_option enum and values with
10882 processor_type. Set variable name to s390_arch. Set
10883 initialization value.
10884 (mtune=): Replace s390_arch_option with processor_type. Set
10885 variable name to s390_tune. Set initialization value.
10887 2011-03-23 Julian Brown <julian@codesourcery.com>
10889 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10890 accesses which are not naturally aligned.
10892 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10895 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10897 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10899 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10900 parameter from "int" to "enum insn_code".
10901 (expand_operand_type): New enum.
10902 (expand_operand): New structure.
10903 (create_expand_operand): New function.
10904 (create_fixed_operand, create_output_operand): Likewise
10905 (create_input_operand, create_convert_operand_to): Likewise.
10906 (create_convert_operand_from, create_address_operand): Likewise.
10907 (create_integer_operand): Likewise.
10908 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10909 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10910 (expand_insn, expand_jump_insn): Likewise.
10911 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10912 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10913 (expand_movstr, expand_builtin___clear_cache): Likewise.
10914 (expand_builtin_lock_release): Likewise.
10915 * explow.c (allocate_dynamic_stack_space): Likewise.
10916 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10917 and use the default handling in that case.
10918 * expmed.c (check_predicate_volatile_ok): Delete.
10919 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10920 (emit_cstore): Likewise.
10921 * expr.c (emit_block_move_via_movmem): Likewise.
10922 (set_storage_via_setmem, expand_assignment): Likewise.
10923 (emit_storent_insn, try_casesi): Likewise.
10924 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10925 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10926 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10927 (expand_twoval_unop, expand_twoval_binop): Likewise.
10928 (expand_unop_direct, emit_indirect_jump): Likewise.
10929 (emit_conditional_move, vector_compare_rtx): Likewise.
10930 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10931 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10932 (expand_sync_lock_test_and_set): Likewise.
10933 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10934 (emit_unop_insn): Likewise.
10935 (expand_copysign_absneg): Change icode to an insn_code.
10936 (create_convert_operand_from_type): New function.
10937 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10938 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10939 (expand_insn, expand_jump_insn): Likewise.
10940 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10941 than const_int_operand for operand 2.
10943 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10945 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10948 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10950 * emit-rtl.c (emit_pattern_before_noloc): New function.
10951 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10952 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10953 (emit_pattern_after_noloc): New function.
10954 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10955 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10957 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10959 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10960 (__ffsDI2): Likewise.
10962 2011-03-22 Richard Henderson <rth@redhat.com>
10964 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10965 of !TARGET_ABI_OPEN_VMS.
10966 (alpha_trampoline_init, alpha_start_function): Likewise.
10967 (alpha_expand_epilogue, alpha_file_start): Likewise.
10968 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10969 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10970 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10971 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10972 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10974 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10976 * config/s390/s390-opts.h: New.
10977 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10978 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10979 s390_stack_guard): Remove.
10980 (s390_handle_arch_option): Return void. Take enum
10981 s390_arch_option value instead of string and searching array.
10982 (s390_handle_option): Don't assert that global structures are in
10983 use. Access variables via opts pointer. Use error_at. Don't use
10984 sscanf for -mstack-guard= or -mstack-size=. Update call to
10985 s390_handle_arch_option.
10986 (s390_option_override): Update call to s390_handle_arch_option.
10987 (s390_emit_prologue): Use %d format for s390_stack_size in
10988 diagnostic. Use %wd for HOST_WIDE_INT.
10989 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10990 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10991 * config/s390/s390.opt (config/s390/s390-opts.h): New
10992 HeaderInclude entry.
10993 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10994 s390_arch_flags, s390_warn_framesize): New Variable entries.
10995 (s390_arch_option): New Enum and EnumValue entries.
10996 (march=): Use Enum instead of Var.
10997 (mstack-guard=, mstack-size=): Use UInteger and Var.
10998 (mtune=): Use Enum.
11000 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11002 * config/score/score.c (score_handle_option): Don't assert that
11003 global structures are in use. Access target_flags via opts
11004 pointer. Use value of -march= option to determine target_flags
11006 * config/score/score.opt (march=): Use Enum.
11007 (score_arch): New Enum and EnumValue entries.
11009 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11011 * config/mep/mep.c (option_mtiny_specified): Remove.
11012 (mep_option_override): Move register handling for -mivc2 from
11013 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11014 instead of option_mtiny_specified.
11015 (mep_handle_option): Access target_flags via opts pointer. Don't
11016 assert that global structures are in use. Defer part of -mivc2
11017 handling and move it to mep_option_override.
11018 * config/mep/mep.opt (IVC2): New Mask entry.
11019 (mivc2): Use Var and Defer instead of Mask.
11021 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11023 * config/v850/v850-opts.h: New.
11024 * config/v850/v850.c (small_memory): Replace with
11025 small_memory_physical_max array. Make that array static const.
11026 (v850_handle_memory_option): Take integer value of argument. Take
11027 gcc_options pointer, option text and location. Return void.
11028 Update for changes to small memory structures.
11029 (v850_handle_option): Access target_flags via opts pointer. Don't
11030 assert that global structures are in use. Update calls to
11031 v850_handle_memory_option.
11032 (v850_encode_data_area): Update references to small memory settings.
11033 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11034 (enum small_memory_type): Move to v850-opts.h.
11035 * config/v850/v850.opt (config/v850/v850-opts.h): New
11036 HeaderInclude entry.
11037 (small_memory_max): New Variable entry.
11038 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11039 (mtda, mzda): Likewise.
11041 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11043 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11044 pointer. Don't assert that global structures are in use.
11046 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11048 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11049 via opts pointer. Don't assert that global structures are in use.
11051 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11053 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11054 (munix=93): Use Var.
11055 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11056 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11057 * config/pa/pa-opts.h: New.
11058 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11059 (pa_handle_option): Don't assert that global structures are in
11060 use. Access target_flags via opts pointer. Don't handle
11061 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11063 (pa_option_override): Handle deferred OPT_mfixed_range_.
11065 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11067 * config/mn10300/mn10300-opts.h: New.
11068 * config/mn10300/mn10300.c (mn10300_processor,
11069 mn10300_tune_string): Remove.
11070 (mn10300_handle_option): Don't assert that global structures are
11071 in use. Access mn10300_processor via opts pointer. Don't handle
11073 * config/mn10300/mn10300.h (enum processor_type): Move to
11075 (mn10300_processor): Remove.
11076 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11077 HeaderInclude entry.
11078 (mn10300_processor): New Variable entry.
11081 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11083 * config/microblaze/microblaze.c: Don't include opts.h.
11084 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11085 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11086 (mno-clearbss): Use Var and Warn.
11088 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11090 * config/m32r/m32r-opts.h: New.
11091 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11092 (m32r_handle_option): Don't assert that global structures are in
11093 use. Access target_flags and m32r_cache_flush_func via opts
11094 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11095 OPT_mno_flush_trap here.
11096 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11097 include of m32r-opts.h.
11098 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11099 HeaderInclude entry.
11100 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11101 (mmodel=): Use Enum and Var.
11102 (m32r_model): New Enum and EnumValue entries.
11103 (mno-flush-trap): Use Var.
11104 (msdata=): Use Enum and Var.
11105 (m32r_sdata): New Enum and EnumValue entries.
11107 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11109 * config/m32c/m32c.c: Don't include opts.h.
11110 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11111 m32c_handle_option): Remove.
11112 (m32c_option_override): Check global_options_set.x_target_memregs
11113 instead of target_memregs_set.
11114 * config/m32c/m32c.h (target_memregs): Remove.
11115 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11118 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11120 * config/iq2000/iq2000-opts.h: New.
11121 * config/iq2000/iq2000.c: Don't include opts.h.
11122 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11123 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11124 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11125 HeaderInclude entry.
11126 (iq2000_tune): New Variable entry.
11127 (march=): Add comment. Use Enum.
11128 (iq2000_arch): New Enum and EnumValue entries.
11129 (mcpu=): Use Enum and Var.
11130 (iq2000_tune): New Enum and EnumValue entries.
11132 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11134 * config/ia64/ia64-opts.h: New.
11135 * config/ia64/ia64.c (ia64_tune): Remove.
11136 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11137 here. Use error_at.
11138 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11139 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11140 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11141 HeaderInclude entry.
11142 (ia64_tune): New Variable entry.
11143 (mfixed-range=): Use Defer and Var.
11144 (mtune=): Use Enum and Var.
11145 (ia64_tune): New Enum and EnumValue entries.
11147 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11149 * config/frv/frv-opts.h: New.
11150 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11152 (frv_cpu_type): Remove.
11153 * config/frv/frv.c: Don't include opts.h.
11154 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11155 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11156 (frv_cpu_type): New Variable entry.
11157 (frv_cpu): New Enum and EnumValue entries.
11159 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11161 * config/cris/cris.c (cris_handle_option): Access target_flags via
11162 opts pointer. Don't assert that global structures are in use.
11163 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11164 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11166 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11168 * config/bfin/bfin-opts.h: New.
11169 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11170 bfin_si_revision, bfin_workarounds): Remove.
11171 (bfin_cpus): Make static const.
11172 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11173 not bfin_lib_id_given.
11174 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11175 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11176 pointer. Use error_at. Don't assert that global structures are in use.
11177 * config/bfin/bfin.h: Include bfin-opts.h.
11178 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11179 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11180 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11181 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11184 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11186 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11187 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11188 or -msoft-float here.
11189 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11190 -msoft-float and -mhard-float.
11191 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11192 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11194 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11196 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11197 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11199 (LIBGCC_SPEC): Don't handle -msoft-float.
11200 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11202 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11204 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11205 -mfloat-abi=*, not -msoft-float and -mhard-float.
11206 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11208 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11209 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11210 mhard-float and msoft-float.
11211 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11212 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11213 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11214 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11216 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11217 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11219 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11221 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11224 2011-03-22 Richard Henderson <rth@redhat.com>
11226 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11227 TARGET_ABI_WINDOWS_NT.
11228 (alpha_output_function_end_prologue): Likewise.
11229 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11230 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11231 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11232 (trap, *movsi_nt_vms): Likewise.
11233 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11234 (*tablejump_osf_nt_internal): Remove.
11235 * config/alpha/predicates.md (input_operand): Only test Pmode.
11237 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11239 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11240 via opts pointer. Use error_at. Don't assert that global
11241 structures are in use.
11243 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11245 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11246 (ix86_handle_option): Access ix86_isa_flags and
11247 ix86_isa_flags_explicit via opts pointer. Don't assert that
11248 global structures are in use.
11249 (ix86_function_specific_save, ix86_function_specific_restore):
11250 Update ix86_isa_flags_explicit field name.
11251 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11252 (ix86_isa_flags_explicit): Rename TargetSave entry to
11253 x_ix86_isa_flags_explicit.
11255 2011-03-22 Richard Henderson <rth@redhat.com>
11257 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11258 (alpha_option_override, direct_return): Likewise.
11259 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11260 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11261 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11262 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11263 (alpha_expand_epilogue, alpha_end_function): Likewise.
11264 (alpha_init_libfuncs): Likewise.
11265 (struct machine_function): Remove unicosmk members.
11266 (print_operand) ['t']: Remove.
11267 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11268 unicosmk_output_module_name, unicosmk_output_common,
11269 current_section_align, unicosmk_output_text_section_asm_op,
11270 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11271 unicosmk_section_type_flags, unicosmk_unique_section,
11272 unicosmk_asm_named_section, unicosmk_insert_attributes,
11273 unicosmk_output_align, unicosmk_defer_case_vector,
11274 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11275 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11276 unicosmk_output_ssib, unicosmk_add_call_info_word,
11277 unicosmk_extern_head, unicosmk_output_default_externs,
11278 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11279 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11280 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11281 * config/alpha/alpha-protos.h: Update.
11282 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11283 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11284 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11285 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11286 (*mulsi_se, mulvsi3): Likewise.
11287 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11288 (*divmodsi_internal, call, call_value, realign): Likewise.
11289 (moddi3, umoddi3): Likewise; remove duplicate expander.
11290 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11291 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11292 (*movdi_nofix): Remove r/U alternative.
11293 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11294 * config/alpha/constraints.md ("U"): Remove.
11295 * config/alpha/predicates.md (call_operand"): Don't test
11296 TARGET_ABI_UNICOSMK.
11298 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11300 * target.def (handle_option): Take gcc_options and
11301 cl_decoded_option pointers and location_t.
11302 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11303 * doc/tm.texi: Regenerate.
11304 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11305 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11306 * lto-opts.c (lto_reissue_options): Generate option structure for
11307 targetm.handle_option call.
11308 * opts.c (target_handle_option): Update call to
11309 targetm.handle_option. Remove assertions about values now passed
11311 * targhooks.c (default_target_handle_option): New.
11312 * targhooks.h (default_target_handle_option): Declare.
11313 * config/alpha/alpha.c: Include opts.h.
11314 (alpha_handle_option): Update to new hook interface.
11315 * config/arm/arm.c: Include opts.h.
11316 (arm_handle_option): Update to new hook interface.
11317 * config/arm/t-arm (arm.o): Update dependencies.
11318 * config/bfin/bfin.c: Include opts.h.
11319 (bfin_handle_option): Update to new hook interface.
11320 * config/cris/cris.c: Include opts.h.
11321 (cris_handle_option): Update to new hook interface.
11322 * config/frv/frv.c: Include opts.h.
11323 (frv_handle_option): Update to new hook interface.
11324 * config/i386/i386.c: Include opts.h.
11325 (ix86_handle_option): Update to new hook interface.
11326 (ix86_valid_target_attribute_inner_p): Generate option structure
11327 for call to ix86_handle_option.
11328 * config/i386/t-i386 (i386.o): Update dependencies.
11329 * config/ia64/ia64.c: Include opts.h.
11330 (ia64_handle_option): Update to new hook interface.
11331 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11332 * config/iq2000/iq2000.c: Include opts.h.
11333 (iq2000_handle_option): Update to new hook interface.
11334 * config/m32c/m32c.c: Include opts.h.
11335 (m32c_handle_option): Update to new hook interface.
11336 * config/m32r/m32r.c: Include opts.h.
11337 (m32r_handle_option): Update to new hook interface.
11338 * config/m68k/m68k.c: Include opts.h.
11339 (m68k_handle_option): Update to new hook interface.
11340 * config/mep/mep.c: Include opts.h.
11341 (mep_handle_option): Update to new hook interface.
11342 * config/microblaze/microblaze.c: Include opts.h.
11343 (microblaze_handle_option): Update to new hook interface.
11344 * config/mips/mips.c: Include opts.h.
11345 (mips_handle_option): Update to new hook interface.
11346 * config/mn10300/mn10300.c: Include opts.h.
11347 (mn10300_handle_option): Update to new hook interface.
11348 * config/pa/pa.c: Include opts.h.
11349 (pa_handle_option): Update to new hook interface.
11350 * config/pdp11/pdp11.c: Include opts.h.
11351 (pdp11_handle_option): Update to new hook interface.
11352 * config/rs6000/rs6000.c: Include opts.h.
11353 (rs6000_handle_option): Update to new hook interface.
11354 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11355 * config/rx/rx.c: Include opts.h.
11356 (rx_handle_option): Update to new hook interface.
11357 * config/s390/s390.c: Include opts.h.
11358 (s390_handle_option): Update to new hook interface.
11359 * config/score/score.c: Include opts.h.
11360 (score_handle_option): Update to new hook interface.
11361 * config/sh/sh.c: Include opts.h.
11362 (sh_handle_option): Update to new hook interface.
11363 * config/sparc/sparc.c: Include opts.h.
11364 (sparc_handle_option): Update to new hook interface.
11365 * config/v850/v850.c: Include opts.h.
11366 (v850_handle_option): Update to new hook interface.
11368 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11370 * gcc.c (driver_unknown_option_callback): Only permit and save
11371 unknown -Wno- options.
11372 (driver_wrong_lang_callback): Save options directly instead of via
11373 driver_unknown_option_callback.
11375 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11377 * combine.c (simplify_set): Try harder to find the best CC mode when
11378 simplifying a nested COMPARE on the RHS.
11380 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11382 * config/alpha/gnu.h: Remove.
11383 * config/arc: Remove directory.
11384 * config/arm/netbsd.h: Remove.
11385 * config/arm/t-pe: Remove.
11386 * config/crx: Remove directory.
11387 * config/i386/netbsd.h: Remove.
11388 * config/m68hc11: Remove directory.
11389 * config/m68k/uclinux-oldabi.h: Remove.
11390 * config/mcore/mcore-pe.h: Remove.
11391 * config/mcore/t-mcore-pe: Remove.
11392 * config/netbsd-aout.h: Remove.
11393 * config/rs6000/gnu.h: Remove.
11394 * config/sh/sh-symbian.h: Remove.
11395 * config/sh/symbian-base.c: Remove.
11396 * config/sh/symbian-c.c: Remove.
11397 * config/sh/symbian-cxx.c: Remove.
11398 * config/sh/symbian-post.h: Remove.
11399 * config/sh/symbian-pre.h: Remove.
11400 * config/sh/t-symbian: Remove.
11401 * config/svr3.h: Remove.
11402 * config/vax/netbsd.h: Remove.
11403 * config.build: Don't handle i[34567]86-*-pe.
11404 * config.gcc: Remove handling of deprecations for most deprecated
11406 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11407 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11408 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11409 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11410 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11411 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11413 * config.host: Don't handle i[34567]86-*-pe.
11414 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11415 (ASM_SPEC32): Don't handle -mcall-gnu.
11416 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11418 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11419 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11420 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11421 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11422 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11423 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11424 conditional on SYMBIAN.
11425 * configure.ac: Don't handle powerpc*-*-gnu*.
11426 * configure: Regenerate.
11427 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11428 * doc/install-old.texi (m6811, m6812): Don't mention.
11429 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11430 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11431 (m68k-uclinuxoldabi): Don't mention.
11432 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11434 (-mcall-gnu): Remove.
11435 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11436 families): Remove constraint documentation.
11438 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11440 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11441 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11442 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11444 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11447 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11448 vector when peeking at the next token for vector, don't expand the
11451 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11453 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11454 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11455 * config/avr/avr.c (init_cumulative_args)
11456 (avr_function_arg_advance): Use it.
11457 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11459 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11460 (avr_function_ok_for_sibcall): ...this new function.
11461 (avr_lookup_function_attribute1): New static Function.
11462 (avr_naked_function_p, interrupt_function_p)
11463 (signal_function_p, avr_OS_task_function_p)
11464 (avr_OS_main_function_p): Use it.
11465 * config/avr/avr.md ("sibcall", "sibcall_value")
11466 ("sibcall_epilogue"): New expander.
11467 ("*call_insn", "*call_value_insn"): New insn.
11468 ("call_insn", "call_value_insn"): Remove
11469 ("call", "call_value", "epilogue"): Change expander to handle
11472 2011-03-21 Nick Clifton <nickc@redhat.com>
11474 * doc/invoke.texi (Overall Options): Move closing brace to end of
11476 (Optimization Options): Add missing @gol.
11477 (Directory Options): Likewise.
11478 (i386 and x86-64 Options): Likewise.
11479 (RS6000 and PowerPC Options): Likewise.
11480 (i386 and x86-64 Windows Options): Likewise.
11481 (V850 Options): Add text missing from descriptions.
11483 2011-03-22 Richard Henderson <rth@redhat.com>
11485 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11486 (avr_incoming_return_addr_rtx): New.
11487 (emit_push_byte): New.
11488 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11489 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11490 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11491 (emit_pop_byte): New.
11492 (expand_epilogue): Use it. Pop frame pointer by bytes.
11493 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11494 (INCOMING_RETURN_ADDR_RTX): New.
11495 (INCOMING_FRAME_SP_OFFSET): New.
11496 (ARG_POINTER_CFA_OFFSET): New.
11497 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11498 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11501 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11503 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11505 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11506 (FUNCTION_ARG_ADVANCE): Likewise.
11507 * tm.texi.in: Change references to them to hook references.
11508 * tm.texi: Regenerate.
11509 * targhooks.c (default_function_arg): Eliminate check for target
11511 (default_function_incoming_arg): Likewise.
11512 (default_function_arg_advance): Likewise.
11513 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11514 (function_arg_advance): Likewise.
11515 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11517 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11519 * tree.c (build_call_1): New function.
11520 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11522 2011-03-22 Richard Guenther <rguenther@suse.de>
11524 PR tree-optimization/48228
11525 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11526 for single-arg PHIs.
11528 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11530 PR rtl-optimization/48143
11531 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11532 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11533 sse2_cvtps2pd): Likewise.
11535 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11537 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11539 2011-03-22 Richard Guenther <rguenther@suse.de>
11541 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11542 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11543 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11544 and REALIGN_LOAD_EXPR.
11545 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11546 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11547 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11548 DOT_PROD_EXPR case ...
11549 (expand_expr_real_2): ... here.
11550 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11551 and REALIGN_LOAD_EXPR.
11552 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11553 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11554 (vect_create_epilog_for_reduction): Likewise.
11555 (vectorizable_reduction): Likewise.
11556 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11557 * tree-vect-stmts.c (vectorizable_load): Likewise.
11559 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11561 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11563 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11565 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11566 handling for PLTOFF/GOTOFF.
11568 2011-03-22 Nick Clifton <nickc@redhat.com>
11570 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11571 trailing backslash from the end of the macro definition.
11573 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11575 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11578 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11580 * expr.h (prepare_operand): Move to...
11581 * optabs.h (prepare_operand): ...here and change the insn code
11582 parameter from "int" to "enum insn_code".
11583 (insn_operand_matches): Declare.
11584 * expr.c (init_expr_target): Use insn_operand_matches.
11585 (compress_float_constant): Likewise.
11586 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11587 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11588 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11589 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11591 (gen_cond_trap): Likewise.
11592 (prepare_operand): Likewise. Change icode to an insn_code.
11593 (insn_operand_matches): New function.
11594 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11595 * reload1.c (gen_reload): Likewise.
11596 * targhooks.c (default_secondary_reload): Likewise.
11598 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11600 * config/alpha/alpha.md (unspec): New define_c_enum.
11603 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11606 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11607 between a call and its CALL_ARG_LOCATION note.
11609 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11611 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11613 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11617 * c-common.c (shorten_compare): If primopN is first sign-extended
11618 to opN and then zero-extended to result type, set primopN to opN.
11620 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11622 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11623 for barrier handlers.
11625 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11627 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11628 UNSPEC constants to be in the unspec enumeration, and redefine
11629 all UNSPECV constants to be in the unspecv enumeration, so that
11630 dumps print which unspec/unspec_volatile this is.
11631 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11632 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11633 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11634 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11635 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11637 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11638 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11639 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11640 * config/rs6000/sync.md (isync, lwsync): Ditto.
11642 2011-03-21 Richard Guenther <rguenther@suse.de>
11644 * params.def (lto-min-partition): Fix typo.
11646 2011-03-21 Richard Guenther <rguenther@suse.de>
11649 * c-decl.c (grokdeclarator): Drop to the main variant only
11650 for array types. Drop flag_gen_aux_info check.
11652 2011-03-21 Richard Guenther <rguenther@suse.de>
11654 PR translation/47911
11655 * params.def (lto-partitions): Fix typo.
11656 (lto-min-partition): Fix wording.
11658 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11660 * config/rs6000/t-freebsd: Remove duplication from file.
11662 2011-03-21 Richard Guenther <rguenther@suse.de>
11664 PR middle-end/47661
11665 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11667 2011-03-21 Richard Guenther <rguenther@suse.de>
11670 * params.def (lto-partitions): Require at least 1 partition.
11672 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11674 * gthr-solaris.h: Remove.
11675 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11676 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11677 (LIB_SPEC): Likewise.
11678 * config/sol2.opt (threads): Remove.
11679 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11680 (sparc*-*-solaris2*): Likewise.
11681 * configure.ac (enable_threads): Enable solaris support.
11682 * configure: Regenerate.
11683 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11684 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11687 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11689 * config.gcc: Obsolete *-*-solaris2.8*.
11690 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11692 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11695 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11696 reference. Solaris 8 perl works.
11698 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11701 * doc/install.texi (Prerequisites): Move jar etc. up.
11702 Explain support library version requirements.
11704 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11707 * doc/install.texi (Prerequisites): Move Perl to build
11708 requirements. Always necessary on Solaris 2 with Sun ld.
11710 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11712 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11714 (Specific, i?86-*-solaris2.[89]): Likewise.
11715 (Specific, i?86-*-solaris2.10): Likewise.
11716 (Specific, mips-sgi-irix6): Likewise.
11717 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11718 Update for binutils 2.21.
11720 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11722 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11723 Allow -fuse-linker-plugin for non-default plugin linker.
11724 * configure: Regenerate.
11726 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11729 * gengtype.c (files_rules): Added rule for cp/parser.h.
11731 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11734 * config/s390/s390.c (s390_delegitimize_address): Don't call
11735 lowpart_subreg if orig_x has BLKmode.
11737 2011-03-21 Kai Tietz <ktietz@redhat.com>
11740 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11741 * tree.h (attribute_spec): Add new member affects_type_identity.
11742 * attribs.c (empty_attribute_table): Adjust attribute_spec
11744 * config/alpha/alpha.c: Likewise.
11745 * config/arc/arc.c: Likewise.
11746 * config/arm/arm.c: Likewise.
11747 * config/avr/avr.c: Likewise.
11748 * config/bfin/bfin.c: Likewise.
11749 * config/crx/crx.c: Likewise.
11750 * config/darwin.h: Likewise.
11751 * config/h8300/h8300.c: Likewise.
11752 * config/i386/cygming.h: Likewise.
11753 * config/i386/i386.c: Likewise.
11754 * config/ia64/ia64.c: Likewise.
11755 * config/m32c/m32c.c: Likewise.
11756 * config/m32r/m32r.c: Likewise.
11757 * config/m68hc11/m68hc11.c: Likewise.
11758 * config/m68k/m68k.c: Likewise.
11759 * config/mcore/mcore.c: Likewise.
11760 * config/mep/mep.c: Likewise.
11761 * config/microblaze/microblaze.c: Likewise.
11762 * config/mips/mips.c: Likewise.
11763 * config/rs6000/rs6000.c: Likewise.
11764 * config/rx/rx.c: Likewise.
11765 * config/sh/sh.c: Likewise.
11766 * config/sol2.h: Likewise.
11767 * config/sparc/sparc.c: Likewise.
11768 * config/spu/spu.c: Likewise.
11769 * config/stormy16/stormy16.c: Likewise.
11770 * config/v850/v850.c: Likewise.
11772 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11774 * simplify-rtx.c (simplify_binary_operation_1): Handle
11775 (xor (and A B) C) case when B and C are both constants.
11777 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11779 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11781 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11784 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11786 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11788 PR rtl-optimization/48156
11789 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11790 assume df and df_lr are not NULL.
11792 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11795 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11796 between a call and its CALL_ARG_LOCATION note.
11798 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11801 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11802 between a call and its corresponding CALL_ARG_LOCATION note.
11804 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11806 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11807 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11808 * haifa-sched.c (setup_ref_regs): Ditto.
11809 * caller-save.c (add_used_regs_1): Ditto.
11810 * dse.c (look_for_hardregs): Ditto.
11811 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11812 * sched-rgn.c (check_live_1): Ditto.
11814 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11816 * c-decl.c (diagnose_mismatched_decls): Give an error for
11817 redefining a typedef with variably modified type.
11819 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11821 * c-decl.c (grokfield): Don't allow typedefs for structures or
11822 unions with no tag by default.
11823 * doc/extend.texi (Unnamed Fields): Update.
11825 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11827 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11828 Rewrite using indirect functions.
11829 (lwp_slwpcb): Ditto.
11830 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11831 (avx_vinsertf128<mode>): Ditto.
11833 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11835 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11838 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11840 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11841 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11843 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11845 PR rtl-optimization/48170
11846 * gcse.c (hoist_code): Remove bogus asserts.
11848 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11850 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11851 computation for prologue/epilogue.
11853 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11855 * Makefile.in (check-consistency): Remove.
11857 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11860 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11861 arange_table_in_use is 0, but either text_section_used or
11862 cold_text_section_used is true. Don't call it if
11863 !info_section_emitted.
11865 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11867 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11868 FUNCTION_VALUE_REGNO_P): Remove.
11869 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11871 * config/avr/avr.c (avr_ret_register): Make static inline.
11872 (avr_function_value_regno_p): New function.
11873 (avr_libcall_value): Make static. Add 'func' argument.
11874 (avr_function_value): Make static. Rename 'func' argument to
11875 'fn_decl_or_type', forward it to avr_libcall_value. Call
11876 avr_ret_register function instead of RET_REGISTER macro.
11877 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11879 2011-03-18 Jason Merrill <jason@redhat.com>
11882 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11884 2011-03-18 Richard Guenther <rguenther@suse.de>
11886 * doc/install.texi (--enable-gold): Remove.
11887 (--with-plugin-ld): Document.
11888 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11890 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11892 PR middle-end/47790
11893 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11894 again after expansion changes.
11896 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11898 * combine.c (try_combine): Do simplification only call of
11899 subst() on i2 even when i1 is present. Update comments.
11901 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11903 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11904 and UNSPEC_PCREL_SYMOFF.
11906 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11908 * config/s390/s390.md: Use define_c_enum for the unspec constant
11911 2011-03-18 Richard Henderson <rth@redhat.com>
11912 Jakub Jelinek <jakub@redhat.com>
11915 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11916 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11918 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11920 PR middle-end/47725
11921 * combine.c (cant_combine_insn_p): Don't check zero/sign
11922 extended hard registers.
11924 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11926 PR middle-end/47725
11927 * combine.c (cant_combine_insn_p): Check zero/sign extended
11930 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11932 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11933 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11934 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11935 Change return type to bool.
11936 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11938 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11941 * var-tracking.c (prepare_call_arguments): If CALL target
11942 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11943 pc instead of looking it up using cselib_lookup and use
11944 Pmode for it if x has VOIDmode.
11945 * dwarf2out.c (gen_subprogram_die): If also both first and
11946 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11949 * function.c (assign_parms): For data.passed_pointer parms
11950 use MEM of data.entry_parm instead of data.entry_parm itself
11951 as DECL_INCOMING_RTL.
11952 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11953 also when passed and declared mode is the same, DECL_RTL
11954 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11957 2011-03-16 Jeff Law <law@redhat.com>
11959 PR rtl-optimization/37273
11960 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11961 handle them like argument loads from stack slots. Do not double
11962 count memory for memory constants and argument loads from stack slots.
11964 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11967 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11969 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11972 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11974 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11977 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11979 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11980 Clear call_arg_locations and call_arg_loc_last always.
11982 PR middle-end/48152
11983 * var-tracking.c (prepare_call_arguments): If argument needs to be
11984 passed by reference, adjust argtype and mode.
11986 2011-03-17 Richard Guenther <rguenther@suse.de>
11988 PR middle-end/48134
11989 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11990 a value make sure to fold the statement.
11992 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11995 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11996 return condition with !cfun->calls_alloca.
11998 2011-03-17 Richard Guenther <rguenther@suse.de>
12001 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12002 origin for decls in other ltrans units.
12003 (input_varpool_node): Likewise.
12005 2011-03-17 Richard Guenther <rguenther@suse.de>
12007 PR middle-end/48165
12008 * tree-object-size.c (compute_object_offset): Properly return
12009 the offset operand of MEM_REFs as sizetype.
12011 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12013 PR rtl-optimization/48141
12014 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12015 * dse.c: Include params.h.
12016 (active_local_stores_len): New variable.
12017 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12019 (record_store, check_mem_read_rtx): Decrease it when removing
12021 (scan_insn): Likewise. Increase it when adding to chain, if it
12022 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12023 set active_local_stores to NULL before the addition.
12024 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12026 PR rtl-optimization/48141
12027 * dse.c (record_store): If no positions are needed in an insn
12028 that cannot be deleted, at least unchain it from active_local_stores.
12030 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12033 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12034 (lookup_type_die_strip_naming_typedef): ... here.
12035 (get_context_die): Use it.
12036 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12037 the anonymous struct named by the naming typedef.
12039 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12042 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12043 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12045 2011-03-16 Jeff Law <law@redhat.com>
12047 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12048 check for operands of conditional. Allow type to be a pointer.
12050 2011-03-16 Richard Guenther <rguenther@suse.de>
12052 PR tree-optimization/48149
12053 * fold-const.c (fold_binary_loc): Fold
12054 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12056 2011-03-16 Richard Guenther <rguenther@suse.de>
12058 PR tree-optimization/26134
12059 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12060 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12061 (non_rewritable_mem_ref_base): Handle complex type component
12062 accesses, constrain offsets for vector and complex extracts
12065 2011-03-16 Richard Guenther <rguenther@suse.de>
12067 PR tree-optimization/48146
12068 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12069 operands avoiding the need for renaming.
12071 2011-03-16 Richard Guenther <rguenther@suse.de>
12073 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12074 constant folding. Move MEM_REF canonicalization first.
12075 Rely on fold_const_aggregate_ref for initializer folding.
12076 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12078 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12080 PR middle-end/48136
12081 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12082 arg0/arg1 or their arguments are always fold converted to matching
12085 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12088 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12091 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12092 Handle in-tree gold.
12093 (ld_vers): Extract binutils version for gold.
12094 (gcc_cv_ld_hidden): Handle gold here.
12095 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12096 * configure: Regenerate.
12097 * config.in: Regenerate.
12098 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12099 -fuse-linker-plugin otherwise.
12100 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12101 (LINK_COMMAND_SPEC): Use it.
12102 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12104 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12106 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12107 * calls.c: Remove debug.h include.
12108 (emit_call_1): Don't call virtual_call_token debug hook.
12109 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12110 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12111 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12112 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12113 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12114 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12115 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12116 dwarf2out_virtual_call): Remove.
12117 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12118 copy_call_info and virtual_call hooks.
12119 (dwarf2out_init): Don't initialize vcall_insn_table,
12120 debug_dcall_section and debug_vcall_section.
12121 (prune_unused_types): Don't mark nodes from dcall_table.
12122 (dwarf2out_finish): Don't output dcall or vcall tables.
12123 * final.c (final_scan_insn): Don't call direct_call or
12124 virtual_call debug hooks.
12125 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12126 virtual_call_token, copy_call_info and virtual_call hooks.
12127 (debug_nothing_uid): Remove prototype.
12128 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12129 copy_call_info and virtual_call hooks.
12130 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12131 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12132 * debug.c (do_nothing_debug_hooks): Likewise.
12133 (debug_nothing_uid): Remove.
12134 * doc/invoke.texi (-fenable-icf-debug): Remove.
12135 * common.opt (-fenable-icf-debug): Likewise.
12137 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12138 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12139 call's MEM. Handle functions returning aggregate through a hidden
12140 first pointer. For virtual calls add clobbered pc to call arguments
12142 * dwarf2out.c (gen_subprogram_die): Emit
12143 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12147 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12148 * rtl.h (ENTRY_VALUE_EXP): Define.
12149 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12150 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12151 * print-rtl.c (print_rtx): Likewise.
12152 * gengtype.c (adjust_field_rtx_def): Likewise.
12153 * var-tracking.c (vt_add_function_parameter): Adjust
12154 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12155 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12156 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12157 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12158 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12160 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12161 Call var_location debug hook even on CALL_INSNs.
12162 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12163 * rtl.def (ENTRY_VALUE): New.
12164 * dwarf2out.c: Include cfglayout.h.
12165 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12166 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12167 (struct call_arg_loc_node): New type.
12168 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12169 tail_call_site_count): New variables.
12170 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12171 DW_TAG_GNU_call_site_parameter.
12172 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12173 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12174 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12175 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12176 and DW_AT_GNU_all_source_call_sites.
12177 (mem_loc_descriptor): Handle ENTRY_VALUE.
12178 (add_src_coords_attributes): Don't add enything if
12179 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12180 (dwarf2out_abstract_function): Save and clear call_arg_location,
12181 call_site_count and tail_call_site_count around dwarf2out_decl call.
12182 (gen_call_site_die): New function.
12183 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12184 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12185 (dwarf2out_function_decl): Clear call_arg_locations,
12186 call_arg_loc_last, set call_site_count and tail_call_site_count
12187 to -1 and free block_map.
12188 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12189 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12190 followed by any real instructions.
12191 (dwarf2out_begin_function): Set call_site_count and
12192 tail_call_site_count to 0.
12193 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12194 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12195 attempt to force a DIE for it and worst case remove the attribute.
12196 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12197 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12199 * var-tracking.c: Include tm_p.h.
12200 (vt_stack_adjustments): For calls call note_register_arguments.
12201 (argument_reg_set): New variable.
12202 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12203 ensure the VALUE is resolved.
12204 (call_arguments): New variable.
12205 (prepare_call_arguments): New function.
12206 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12207 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12208 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12209 always use the best expression.
12210 (vt_expand_loc): Add ignore_cur_loc argument.
12211 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12212 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12213 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12214 note for all calls.
12215 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12216 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12217 argument. Don't call cselib_preserve_only_values and
12218 cselib_reset_table.
12219 (note_register_arguments): New function.
12220 (vt_initialize): Compute argument_reg_set. Call
12221 vt_add_function_parameters before processing basic blocks instead of
12222 afterwards. For calls call prepare_call_arguments before calling
12223 cselib_process_insn.
12224 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12225 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12226 (var-tracking.o): Depend on $(TM_P_H).
12227 * cfglayout.h (insn_scope): New prototype.
12228 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12229 * cfglayout.c (insn_scope): No longer static.
12230 * insn-notes.def (CALL_ARG_LOCATION): New.
12231 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12232 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12233 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12234 nothing for DECL_EXTERNAL BLOCK_VARS.
12236 2011-03-16 Alan Modra <amodra@gmail.com>
12239 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12240 create invalid offset address for vsx splat insn.
12241 * config/rs6000/predicates.md (splat_input_operand): New.
12242 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12244 2011-03-15 Xinliang David Li <davidxl@google.com>
12247 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12248 (normalize_preds): New function.
12249 (is_use_properly_guarded): Normalize def predicates.
12251 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12254 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12255 in the output template.
12257 2011-03-15 Richard Guenther <rguenther@suse.de>
12259 PR middle-end/47650
12260 * tree-pretty-print.c (dump_function_declaration): Properly
12261 dump unprototyped and varargs function types.
12263 2011-03-15 Richard Guenther <rguenther@suse.de>
12265 PR tree-optimization/13954
12266 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12269 2011-03-15 Richard Guenther <rguenther@suse.de>
12271 PR tree-optimization/48037
12272 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12273 selects into BIT_FIELD_REFs.
12274 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12277 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12279 PR tree-optimization/48129
12280 * builtins.c (fold_builtin_snprintf): Convert to type of
12281 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12282 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12284 2011-03-15 Richard Guenther <rguenther@suse.de>
12286 PR tree-optimization/41490
12287 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12288 value but with VUSE.
12289 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12291 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12292 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12293 * tree-tailcall.c (find_tail_calls): Ignore returns.
12295 2011-03-15 Richard Guenther <rguenther@suse.de>
12297 PR middle-end/48031
12298 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12299 or variable-indexed array accesses when in gimple form.
12301 2011-03-15 Richard Guenther <rguenther@suse.de>
12303 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12305 2011-03-15 Alan Modra <amodra@gmail.com>
12308 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12309 presume symbol_refs without a symbol_ref_decl are suitably
12310 aligned, nor other trees we may see here. Handle anchor symbols.
12311 (legitimate_constant_pool_address_p): Comment. Add mode param.
12312 Check cmodel=medium addresses. Adjust all calls.
12313 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12314 creating cmodel=medium optimized access to locals.
12315 * config/rs6000/constraints.md (R): Pass QImode to
12316 legitimate_constant_pool_address_p.
12317 * config/rs6000/predicates.md (input_operand): Pass mode to
12318 legitimate_constant_pool_address_p.
12319 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12322 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12325 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12326 64-bit constants being loaded into registers other than GPRs such
12327 as loading 0 into a VSX register.
12329 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12331 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12333 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12335 PR middle-end/47917
12336 * builtins.c (fold_builtin_snprintf): New function.
12337 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12338 (fold_builtin_4): Likewise.
12340 PR middle-end/38878
12341 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12342 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12343 and C - X == X also strip nops from +/-/p+ operand.
12344 When optimizing -X == C, fold C to arg0's type.
12347 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12348 emit it as add_AT_int instead of add_AT_unsigned.
12350 2011-03-14 Tom Tromey <tromey@redhat.com>
12352 * unwind-dw2.c: Include sys/sdt.h if it exists.
12353 (_Unwind_DebugHook): Use STAP_PROBE2.
12354 * config.in, configure: Rebuild.
12355 * configure.ac: Check for sys/sdt.h.
12357 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12359 * config/i386/i386.md (ROUND_FLOOR): New constant.
12360 (ROUND_CEIL): Ditto.
12361 (ROUND_TRUNC): Ditto.
12362 (ROUND_MXCSR): Ditto.
12363 (ROUND_NO_EXC): Ditto.
12364 (rint<mode>2): Use new defines instead of numerical constants.
12365 (floor<mode>2): Ditto.
12366 (ceil<mode>2): Ditto.
12367 (btrunc<mode>2): Ditto.
12368 * config/i386/i386-builtin-types.def: Define ROUND function type
12370 * config/i386/i386.c (enum ix86_builtins): Add
12371 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12372 (struct builtin_description): Add
12373 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12374 (ix86_expand_sse_round): New static function.
12375 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12377 (ix86_builtin_vectorized_function): Handle
12378 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12380 2011-03-14 Tom Tromey <tromey@redhat.com>
12382 * c-parser.c (c_parser_asm_string_literal): Clear
12383 warn_overlength_strings.
12385 2011-03-14 Tom Tromey <tromey@redhat.com>
12387 * c-parser.c (disable_extension_diagnostics): Save
12388 warn_overlength_strings.
12389 (restore_extension_diagnostics): Restore warn_overlength_strings.
12391 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12393 * BASE-VER: Change to 4.7.0.
12395 2011-03-14 Richard Guenther <rguenther@suse.de>
12397 PR middle-end/48098
12398 * tree.c (build_vector_from_val): Adjust assert to requirements
12401 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12404 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12406 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12408 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12409 terms of target_flags_explicit. Adjust copyright year.
12411 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12412 * config/rs6000/t-freebsd: New file. Add override for
12415 2011-03-13 Chris Demetriou <cgd@google.com>
12417 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12418 (-fno-diagnostics-show-option): this, to reflect current default.
12419 (-Werror=): Update text about -fno-diagnostics-show-option.
12421 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12424 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12425 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12426 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12427 mode is not V2DImode or V2DFmode.
12428 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12429 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12430 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12432 (movdi_internal64): Likewise.
12434 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12436 PR tree-optimization/47127
12437 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12439 (set_cloog_options): Same.
12440 (scop_to_clast): Same.
12441 (print_clast_stmt): Do not call cloog_state_malloc and
12443 (print_generated_program): Same.
12445 * graphite-clast-to-gimple.h (cloog_state): Declared.
12446 (scop_to_clast): Adjust declaration.
12447 * graphite.c (cloog_state): Defined here.
12448 (graphite_initialize): Call cloog_state_malloc.
12449 (graphite_finalize): Call cloog_state_free.
12451 2011-03-11 Jason Merrill <jason@redhat.com>
12453 * attribs.c (lookup_attribute_spec): Take const_tree.
12456 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12458 * config/sparc/sparc.c (sparc_option_override): Use
12459 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12461 2011-03-11 Richard Guenther <rguenther@suse.de>
12463 PR tree-optimization/48067
12464 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12465 multiplication result will be only used once on the target
12468 2011-03-11 Richard Guenther <rguenther@suse.de>
12470 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12472 2011-03-11 Richard Guenther <rguenther@suse.de>
12475 * tree.c (find_decls_types_r): Do not walk types only reachable
12476 from IDENTIFIER_NODEs.
12478 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12480 PR middle-end/48044
12481 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12482 all vnode->force_output nodes as needed.
12484 2011-03-11 Jason Merrill <jason@redhat.com>
12487 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12488 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12490 2011-03-11 Martin Jambor <mjambor@suse.cz>
12492 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12495 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12497 PR tree-optimization/48063
12498 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12499 inline functions called once if !tree_can_inline_p (node->callers).
12501 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12503 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12505 * config/score/score3.c: Delete.
12506 * config/score/score3.h: Delete.
12507 * config/score/mul-div.S: Delete.
12508 * config/score/sfp-machine.h: Add new file.
12509 * config/score/constraints.md: Add new file.
12510 * config/score/t-score-softfp: Add new file.
12511 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12512 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12513 (score7_extra_constraint): Delete.
12514 (score7_option_override): Remove unused code.
12515 * config/score/score.c: Remove score3 and score5 define and code.
12516 * config/score/score.h: Remove score3 and score5 define and code.
12517 * config/score/score.md: Remove score3 template and unusual insn.
12518 * config/score/score.opt: Remove score3 and score5 options.
12520 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12522 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12523 when _HPUX_SOURCE is defined.
12524 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12526 2011-03-10 Jason Merrill <jason@redhat.com>
12529 * stor-layout.c (layout_type): Don't set structural equality
12530 on arrays of incomplete type.
12531 * tree.c (type_hash_eq): Handle comparing them properly.
12533 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12536 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12537 result mode matches original rtl mode.
12539 2011-03-10 Nick Clifton <nickc@redhat.com>
12541 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12542 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12544 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12546 PR rtl-optimization/47866
12547 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12548 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12549 if target wasn't scalar.
12550 * function.c (assign_stack_temp_for_type): Assert that neither
12551 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12552 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12554 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12556 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12558 * config/s390/s390-protos.h (s390_label_align): New prototype.
12559 * config/s390/s390.c (s390_label_align): New function.
12560 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12562 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12565 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12566 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12567 (output_vec_const_move): Ditto.
12569 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12571 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12572 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12573 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12574 Change 'rclass' argument and result type to reg_class_t.
12575 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12577 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12579 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12580 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12581 (TARGET_MEMORY_MOVE_COST): Define.
12582 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12584 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12587 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12590 PR tree-optimization/48022
12591 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12594 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12597 * var-tracking.c (find_use_val): Return NULL for
12598 cui->sets && cui->store_p BLKmode MEMs.
12600 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12602 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12604 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12605 xstormy16_print_operand_address): Remove.
12606 * config/stormy16/stormy16.c (xstormy16_print_operand,
12607 xstormy16_print_operand_address): Make static.
12608 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12610 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12613 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12614 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12617 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12620 * cfgloopmanip.c (fix_bb_placements): Return immediately
12621 if FROM is BASE_LOOP's header.
12623 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12625 * gimplify.c (gimplify_function_tree): Fix building calls
12626 to __builtin_return_address.
12628 2011-03-07 Alan Modra <amodra@gmail.com>
12630 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12631 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12632 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12633 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12635 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12636 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12637 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12638 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12639 * config/rs6000/rs6000.c
12640 (rs6000_elf_end_indicate_exec_stack): Rename to..
12641 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12642 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12643 (rs6000_file_start): ..here.
12644 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12645 file scope variables.
12646 (call_ABI_of_interest): New function.
12647 (init_cumulative_args): Set above vars when function return value
12648 is a float, vector, or small struct.
12649 (rs6000_function_arg_advance_1): Likewise for function args.
12650 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12651 references float args.
12653 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12655 * doc/cfg.texi: Remove "See" before @ref.
12656 * doc/invoke.texi: Likewise.
12658 2011-03-05 Jason Merrill <jason@redhat.com>
12660 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12662 2011-03-05 Anthony Green <green@moxielogic.com>
12664 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12666 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12668 PR rtl-optimization/47899
12669 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12670 to flow_loop_nested_p when moving the loop upward.
12672 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12675 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12677 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12679 PR tree-optimization/47967
12680 * ipa-cp.c (build_const_val): Return NULL instead of creating
12681 VIEW_CONVERT_EXPR for mismatching sizes.
12682 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12683 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12684 give up on versioning.
12686 2011-03-05 Alan Modra <amodra@gmail.com>
12689 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12690 full cmodel medium/large lo_sum + high addresses.
12692 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12694 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12695 pool references in UNSPEC_LTREL_OFFSET.
12697 2011-03-04 Jan Hubicka <jh@suse.cz>
12700 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12701 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12702 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12704 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12705 cgraph_add_thunk): Add node pointers.
12706 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12707 associated to right node.
12708 (input_node): Update use of cgraph_same_body_alias
12709 and cgraph_add_thunk.
12711 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12713 * config/i386/i386.opt (mprefer-avx128): New flag.
12714 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12715 modes when the flag -mprefer-avx128 is on.
12717 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12719 * dwarf2out.c (compare_loc_operands): Fix address handling.
12721 2011-03-04 Alan Modra <amodra@gmail.com>
12723 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12725 2011-03-04 Richard Guenther <rguenther@suse.de>
12727 PR middle-end/47968
12728 * expmed.c (extract_bit_field_1): Prefer vector modes that
12729 vec_extract patterns can handle.
12731 2011-03-04 Richard Guenther <rguenther@suse.de>
12733 PR middle-end/47975
12734 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12736 2011-03-04 Richard Henderson <rth@redhat.com>
12738 * explow.c (emit_stack_save): Remove 'after' parameter.
12739 (emit_stack_restore): Likewise.
12740 * expr.h: Update to match.
12741 * builtins.c, calls.c, stmt.c: Likewise.
12742 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12743 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12744 * function.c (expand_function_end): Insert the emit_stack_save
12745 sequence before parm_birth_insn instead of after.
12747 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12749 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12750 (ssse3_pmaddubsw128): Ditto.
12751 (ssse3_pmaddubsw): Ditto.
12753 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12755 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12757 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12760 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12761 on TYPE_SIZE_UNIT if it is a DECL.
12764 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12765 first operand is not is_gimple_mem_ref_addr, try to fold it.
12766 If the operand still isn't is_gimple_mem_ref_addr, clear
12769 2011-03-03 Richard Guenther <rguenther@suse.de>
12771 PR middle-end/47283
12772 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12774 (refs_may_alias_p_1): For release branches return true if
12775 we are confused by our input.
12777 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12779 * config/s390/s390.c (s390_function_value): Rename to ...
12780 (s390_function_and_libcall_value): ... this.
12781 (s390_function_value): New function.
12782 (s390_libcall_value): New function.
12783 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12784 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12785 target macro definitions.
12786 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12788 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12790 * config/i386/freebsd64.h (CC1_SPEC): Define.
12791 * config/i386/linux64.h (CC1_SPEC): Define.
12792 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12794 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12796 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12798 * config/stormy16/stormy16.c: Include reload.h.
12799 (xstormy16_memory_move_cost): New function.
12800 (TARGET_MEMORY_MOVE_COST): Define.
12802 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12804 PR rtl-optimization/47925
12805 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12806 with side effects. Remove the more-specific check for volatile asms.
12808 2011-03-02 Alan Modra <amodra@gmail.com>
12811 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12812 toc relative addresses for valid offsets.
12814 2011-03-01 Richard Guenther <rguenther@suse.de>
12816 PR tree-optimization/47890
12817 * tree-vect-loop.c (get_initial_def_for_induction): Set
12818 related stmt properly.
12820 2011-03-01 Richard Guenther <rguenther@suse.de>
12823 * lto-streamer.c (lto_record_common_node): Also register
12824 the canonical type.
12826 2011-03-01 Richard Guenther <rguenther@suse.de>
12829 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12830 Do not stream DECL_ABSTRACT_ORIGIN.
12831 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12832 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12833 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12834 Do not stream DECL_ABSTRACT_ORIGIN.
12835 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12836 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12838 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12840 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12841 FUNCTION_VALUE_REGNO_P): Remove.
12842 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12843 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12844 Add 'outgoing' argument.
12845 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12847 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12848 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12850 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12853 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12854 (lookup_filename): Likewise.
12855 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12857 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12858 Jakub Jelinek <jakub@redhat.com>
12860 PR middle-end/47893
12861 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12862 (assign_stack_local_1): Change last argument type to int.
12863 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12864 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12865 don't record padding space into frame_space_list nor use those areas.
12866 (assign_stack_local): Adjust caller.
12867 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12868 of assign_stack_local, pass 0 as last argument.
12869 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12872 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12875 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12876 Use target address_mode and pointer_mode hooks instead of hardcoded
12877 Pmode and ptr_mode. Handle some simple cases of extending if
12878 POINTERS_EXTEND_UNSIGNED < 0.
12879 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12880 Call convert_debug_memory_address.
12881 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12882 convert_debug_memory_address.
12884 PR middle-end/46790
12885 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12886 * configure: Regenerated.
12887 * config.in: Regenerated.
12888 * varasm.c (default_function_section): Return NULL
12889 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12891 2011-02-28 Martin Jambor <mjambor@suse.cz>
12893 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12894 the description to match the printed values.
12896 2011-02-28 Richard Guenther <rguenther@suse.de>
12898 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12899 of the copied scope tree.
12901 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12903 * doc/extend.texi (Function Attributes): Avoid deeply (and
12904 wrongly) nested tables.
12906 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12908 PR middle-end/47903
12909 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12910 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12911 r isn't op0 nor op1.
12913 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12915 * config/avr/avr.md: Remove magic comment for emacs.
12917 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12920 * config/avr/avr.c (avr_option_override): Use error on bad options.
12921 (avr_help): New function.
12922 (TARGET_HELP): Define.
12924 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12927 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12928 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12930 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12932 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12933 (ARM Options): Ditto.
12934 (i386 and x86-64 Options): Ditto.
12935 (RX Options): Ditto.
12936 (SPARC Options): Ditto.
12938 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12940 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12941 FreeBSD 6 and later. Generally use cpu generic.
12943 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12945 * doc/cpp.texi: Update copyright years.
12947 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12950 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12952 2011-02-25 Jon Beniston <jon@beniston.com>
12955 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12956 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12957 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12958 (lm32_block_move_inline): Add type cast to remove warning.
12959 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12960 (gen_int_relational): Move declarations to start of function.
12962 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12964 PR tree-optimization/45470
12965 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12966 can throw internally only.
12967 * tree-vect-stmts.c (vectorizable_call): Likewise.
12969 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12971 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12972 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12973 * config/stormy16/stormy16-protos.h
12974 (xstormy16_preferred_reload_class): Remove.
12975 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12976 static. Change 'rclass' argument and return type to reg_class_t.
12977 (TARGET_PREFERRED_RELOAD_CLASS,
12978 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12980 2011-02-24 Richard Guenther <rguenther@suse.de>
12982 * lto-streamer-in.c (input_bb): Do not find referenced vars
12983 in debug statements.
12985 2011-02-23 Jason Merrill <jason@redhat.com>
12987 * common.opt (fabi-version): Document v5 and v6.
12989 2011-02-23 Richard Guenther <rguenther@suse.de>
12991 PR tree-optimization/47849
12992 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12994 2011-02-23 Jie Zhang <jie@codesourcery.com>
12996 * opts-common.c (decode_cmdline_option): Print empty string
12997 argument as "" in decoded->orig_option_with_args_text.
12998 * gcc.c (execute): Print empty string argument as ""
12999 in the verbose output.
13000 (do_spec_1): Keep empty string argument.
13002 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13004 * config.gcc: Declare score-* and crx-* obsolete.
13006 2011-02-23 Jie Zhang <jie@codesourcery.com>
13008 PR rtl-optimization/47763
13009 * web.c (web_main): Ignore naked clobber when replacing register.
13011 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13013 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13016 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13019 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13021 2011-02-22 Mike Stump <mikestump@comcast.net>
13023 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13025 * configure: Regenerate.
13027 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13029 PR rtl-optimization/46002
13030 * ira-color.c (update_copy_costs): Change class intersection
13031 test to reg_class_contents[] test of 'hard_regno'.
13033 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13035 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13036 than Driver option.
13037 * config/hpux11.opt (mt): Likewise.
13038 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13039 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13040 * config/vax/elf.opt (mno-asm-pic): Likewise.
13041 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13043 2011-02-21 Mike Stump <mikestump@comcast.net>
13046 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13047 tree so we can get save the type.
13048 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13049 for CFString instead of trying to use past the end of the builtins.
13050 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13051 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13052 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13053 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13054 Rename to darwin_builtin_cfstring.
13055 (darwin_init_cfstring_builtins): Return the built type.
13057 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13060 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13061 (_mm256_insert_epi64): Use _mm_insert_epi64.
13063 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13065 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13066 * config/stormy16/stormy16-protos.h
13067 (xstormy16_mode_dependent_address_p): Remove.
13068 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13069 Make static. Change return type to bool. Change argument type to
13070 const_rtx. Remove dead code.
13071 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13073 2011-02-21 Richard Guenther <rguenther@suse.de>
13076 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13077 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13078 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13080 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13081 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13083 2011-02-20 Richard Guenther <rguenther@suse.de>
13086 * tree.c (free_lang_data_in_decl): Clean builtins from
13087 the TU decl BLOCK_VARS.
13089 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13093 * haifa-sched.c (fix_tick_ready): Skip tick computation
13096 2011-02-19 Richard Guenther <rguenther@suse.de>
13099 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13100 Remove lazy BLOCK_VARS streaming.
13101 (lto_input_ts_block_tree_pointers): Likewise.
13102 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13104 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13106 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13108 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13110 * config/i386/biarch32.h, config/i386/mach.h,
13111 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13113 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13116 * config/i386/i386.md (peephole2 for shift and plus): Use
13117 operands[1] original mode in the first insn.
13119 2011-02-18 Mike Stump <mikestump@comcast.net>
13121 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13123 2011-02-18 Jan Hubicka <jh@suse.cz>
13125 PR middle-end/47788
13126 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13127 to zero when the function is not inlinable at all.
13129 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13131 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13132 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13133 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13134 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13135 * config/pa/t-pa64: Likewise.
13136 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13138 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13141 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13143 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13146 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13148 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13150 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13151 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13152 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13153 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13154 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13155 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13156 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13157 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13158 m32r_legitimate_address_p): New functions.
13159 * config/m32r/constraints.md (constraint "S"): Don't use
13160 STORE_PREINC_PREDEC_P.
13161 (constraint "U"): Don't use LOAD_POSTINC_P.
13163 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13165 PR rtl-optimization/46178
13166 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13167 compute ira_hard_regno_cover_class[].
13169 2011-02-18 Richard Guenther <rguenther@suse.de>
13172 * lto-streamer.h (lto_global_var_decls): Declare.
13173 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13174 statics for global var processing.
13176 2011-02-18 Richard Guenther <rguenther@suse.de>
13178 PR tree-optimization/47737
13179 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13180 edge dominance check.
13182 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13185 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13186 avoid invalid rtx sharing.
13188 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13190 * doc/cpp.texi (Obsolete Features): Add background on the
13191 origin of assertions.
13193 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13195 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13197 * config/darwin.c (output_objc_section_asm_op): Added support for
13199 (is_objc_metadata): New.
13200 (darwin_objc2_section): New.
13201 (darwin_objc1_section): New.
13202 (machopic_select_section): Added support for ABI v1 and v2.
13203 (darwin_emit_objc_zeroed): New.
13204 (darwin_output_aligned_bss): Detect objc metadata and treat it
13206 (darwin_asm_output_aligned_decl_common): Same.
13207 (darwin_asm_output_aligned_decl_local): Same.
13208 * config/darwin-sections.def: Updated for ABI v1 and v2.
13209 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13210 compiling Objective-C code for the NeXT runtime, default to using
13211 ABI version 0 for 32-bit, and version 2 for 64-bit.
13213 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13215 * common.opt (optimize_fast): New Variable.
13216 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13217 instead of local variable ofast.
13219 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13221 * doc/invoke.texi (fobjc-abi-version): Documented.
13222 (fobjc-nilcheck): Documented.
13223 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13226 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13229 * common.opt (export-dynamic): New Driver option.
13230 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13232 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13234 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13236 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13237 Jan Hubicka <jh@suse.cz>
13241 * cfgexpand.c (account_used_vars_for_block): Remove.
13242 (estimated_stack_frame_size): Use referenced vars.
13243 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13244 that were referenced in the original function. Test src_fn
13245 rather than cfun. Drop redundant get_var_ann.
13246 (setup_one_parameter): Drop redundant get_var_ann.
13247 (declare_return_variable): Likewise.
13248 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13249 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13250 * ipa-inline.c (compute_inline_parameters): Do not compute
13251 disregard_inline_limits here.
13252 (compute_inlinable_for_current, pass_inlinable): New.
13253 (pass_inline_parameters): Require PROP_referenced_vars.
13254 * cgraphunit.c (cgraph_process_new_functions): Don't run
13255 compute_inline_parameters explicitly unless function is in SSA form.
13256 (cgraph_analyze_function): Set .disregard_inline_limits.
13257 * tree-sra.c (convert_callers): Compute inliner parameters
13258 only for functions already in SSA form.
13260 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13262 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13263 -mlittle-endian-data.
13265 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13267 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13268 -mno-fpu, not -fpu and -no-fpu.
13269 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13270 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13272 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13275 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13276 input reload with PLUS RTX.
13278 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13280 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13281 of InverseVar(MDMX).
13283 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13285 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13288 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13290 * config/mn10300/mn10300.opt (mno-crt0): New.
13292 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13294 * config/m68k/uclinux.opt (static-libc): New Driver option.
13296 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13298 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13300 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13302 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13303 %{muser-extend-enabled}.
13305 2011-02-16 Richard Guenther <rguenther@suse.de>
13307 PR tree-optimization/47738
13308 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13309 the TODO from tree_predictive_commoning.
13311 2011-02-15 Jeff Law <law@redhat.com>
13314 2011-01-25 Jeff Law <law@redhat.com>
13316 PR rtl-optimization/37273
13317 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13318 handle them like argument loads from stack slots. Do not double
13319 count memory for memory constants and argument loads from stack slots.
13321 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13323 PR middle-end/47725
13324 * combine.c (cant_combine_insn_p): Revert the last change.
13326 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13329 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13330 mode for vector constants. Remove code that checks for TImode.
13332 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13336 * cgraph.h (compute_inline_parameters): Return void.
13337 * ipa-inline.c (compute_inline_parameters): Adjust.
13339 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13343 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13345 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13346 * ipa-inline.c (compute_inline_parameters): Adjust.
13348 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13352 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13353 Adjust all users. Pass FN to...
13354 * tree-flow-inline.h (first_referenced_var): ... this. Add
13356 * ipa-struct-reorg.c: Adjust.
13357 * tree-dfa.c: Adjust.
13358 * tree-into-ssa.c: Adjust.
13359 * tree-sra.c: Adjust.
13360 * tree-ssa-alias.c: Adjust.
13361 * tree-ssa-live.c: Adjust.
13362 * tree-ssa.c: Adjust.
13363 * tree-ssanames.c: Adjust.
13364 * tree-tailcall.c: Adjust.
13366 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13370 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13371 Adjust all callers.
13372 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13373 * tree-flow-inline.h: Adjust.
13374 * gimple-pretty-print.c: Adjust.
13375 * tree-into-ssa.c: Adjust.
13376 * tree-ssa.c: Adjust.
13377 * cfgexpand.c: Adjust.
13379 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13381 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13382 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13383 (EXTRA_CONSTRAINT): Delete.
13384 * config/iq2000/constraints.md: New file.
13385 * config/iq2000/iq2000.md: Include it.
13386 (define_insn ""): Delete.
13387 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13388 unsupported constraint letters from patterns.
13389 (call_value, call_value_internal1): Likewise.
13390 (call_value_multiple_internal1): Likewise.
13392 2011-02-15 Nick Clifton <nickc@redhat.com>
13394 * config/mn10300/mn10300.c: Include tm-constrs.h.
13395 (struct liw_data): New data structure describing an LIW candidate
13397 (extract_bundle): Use struct liw_data. Allow small integer
13398 operands for some instructions.
13399 (check_liw_constraints): Use struct liw_data. Remove swapped
13400 parameter. Add comments describing the checks. Fix bug when
13401 assigning the source of liw1 to the source of liw2.
13402 (liw_candidate): Delete. Code moved into extract_bundle.
13403 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13405 * config/mn10300/predicates.md (liw_operand): New predicate.
13406 Allows registers and small integer constants.
13407 * config/mn10300/constraints.md (O): New constraint. Accetps
13408 integers in the range -8 to +7 inclusive.
13409 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13410 for moving a small integer into a register. Give this alternative
13412 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13413 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13414 using the J,K,L and M constraints,
13415 (liw): Remove SI mode on second operands to allow for HI and QI
13417 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13420 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13422 PR middle-end/47725
13423 * combine.c (cant_combine_insn_p): Check zero/sign extended
13426 2011-02-15 Richard Guenther <rguenther@suse.de>
13428 PR tree-optimization/47743
13429 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13430 for a non-type-compatible VN lookup bail out.
13432 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13434 * config/fr30/constraints.md: New file.
13435 * config/fr30/fr30.md: Include it.
13436 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13437 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13438 (EXTRA_CONSTRAINT): Delete.
13440 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13442 * config/frv/constraints.md: New file.
13443 * config/frv/predicates.md: Include it.
13444 * config/frv/frv.c (reg_class_from_letter): Delete.
13445 (frv_option_override): Don't initialize it.
13446 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13447 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13448 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13449 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13450 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13451 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13452 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13453 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13454 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13455 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13456 (REG_CLASS_FROM_CONSTRAINT): Delete.
13458 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13460 PR middle-end/47581
13461 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13462 if frame size is 0 in a leaf function.
13464 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13467 * config/alpha/host-osf.c: New file.
13468 * config/alpha/x-osf: New file.
13469 * config.host (alpha*-dec-osf*): Use it.
13471 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13473 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13474 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13475 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13476 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13478 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13480 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13482 * config/stormy16/constraints.md: New file.
13483 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13484 Use satisfies_constraint_Q and satisfies_constraint_R.
13485 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13487 (xstormy16_legitiamte_address_p): Declare.
13488 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13489 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13490 (EXTRA_CONSTRAINT): Delete.
13491 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13493 (xstormy16_extra_constraint_p): Delete.
13495 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13497 PR tree-optimization/46494
13498 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13499 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13500 (pass_rtl_loop_done): Add TODO_verify_flow.
13501 * fwprop.c (pass_rtl_fwprop): Likewise.
13502 * modulo-sched.c (pass_sms): Likewise.
13503 * tree-ssa-dom.c (pass_dominator): Likewise.
13504 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13505 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13506 (pass_tree_loop_done): Likewise.
13507 * tree-ssa-pre.c (execute_pre): Likewise.
13508 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13509 * tree-ssa-sink.c (pass_sink_code): Likewise.
13510 * tree-vrp.c (pass_vrp): Likewise.
13512 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13514 * config/v850/constraints.md: New file.
13515 * config/v850/v850.md: Include it.
13516 * config/v850/predicates.md (reg_or_0_operand): Use
13517 satisfies_constraint_G.
13518 (special_symbolref_operand): Use satisfies_constraint_K.
13519 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13520 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13521 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13522 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13523 (EXTRA_CONSTRAINT): Delete.
13524 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13525 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13526 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13528 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13531 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13534 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13536 * config/mcore/constraints.md: New file.
13537 * config/mcore/mcore.md: Include it.
13538 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13539 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13540 (REG_CLASS_FROM_LETTER): Delete.
13541 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13542 insn_const_int_ok_for_constraint.
13543 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13544 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13545 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13546 (EXTRA_CONSTRAINT): Delete.
13548 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13551 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13552 (IS_SIGHANDLER): Define.
13553 (sparc64_is_sighandler): New function, split off from
13554 sparc64_fallback_frame_state.
13555 (sparc_is_sighandler): New function, split off from
13556 sparc_fallback_frame_state.
13557 (sparc64_fallback_frame_state): Merge with ...
13558 (sparc_fallback_frame_state): ... this into ...
13559 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13560 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13561 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13562 stack instead of hardcoded offsets.
13564 2011-02-14 Andriy Gapon <avg@freebsd.org>
13567 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13569 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13571 * configure: Regenerate.
13573 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13576 * gcc.c (asm_options): Correct spec matching --target-help.
13578 2011-02-12 Martin Jambor <mjambor@suse.cz>
13580 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13581 to gimple call error.
13583 2011-02-12 Mike Stump <mikestump@comcast.net>
13585 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13586 comments in backslash regions.
13588 2011-02-12 Mike Stump <mikestump@comcast.net>
13589 Jakub Jelinek <jakub@redhat.com>
13590 Iain Sandoe <iains@gcc.gnu.org>
13593 * dwarf2out.c (output_cfa_loc): When required, apply the
13594 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13595 (output_loc_sequence): Likewise.
13596 (output_loc_operands_raw): Likewise.
13597 (output_loc_sequence_raw): Likewise.
13598 (output_cfa_loc): Likewise.
13599 (output_loc_list): Suppress register number adjustment when
13600 calling output_loc_sequence()
13601 (output_die): Likewise.
13603 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13605 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13607 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13608 xtensa_memory_move_cost): New functions.
13609 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13611 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13614 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13615 in the current directory.
13616 * configure: Rebuilt.
13618 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13620 * config/darwin.c (darwin_override_options): Add a hunk missed
13621 from the commit of r168571. Trim comment line lengths and
13622 correct indents of the preceding block.
13624 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13626 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13629 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13631 * common.opt (nostartfiles): New Driver option.
13633 2011-02-11 Xinliang David Li <davidxl@google.com>
13635 PR tree-optimization/47707
13636 * tree-chrec.c (convert_affine_scev): Keep type precision.
13638 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13640 PR tree-optimization/47420
13641 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13643 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13645 PR rtl-optimization/47614
13646 * rtl.h (check_for_inc_dec): Declare.
13647 * dse.c (check_for_inc_dec): Externalize...
13648 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13649 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13651 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13654 * gcc.c (main): Do not compile inputs if there were errors in
13656 * opts-common.c (read_cmdline_option): Check for wrong language
13657 after other error checks.
13659 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13661 * cgraph.c: Fix comment typos.
13662 * cgraph.h: Likewise.
13663 * cgraphunit.c: Likewise.
13664 * ipa-cp.c: Likewise.
13665 * ipa-inline.c: Likewise.
13666 * ipa-prop.c: Likewise.
13667 * ipa-pure-const.c: Likewise.
13668 * ipa-ref.c: Likewise.
13669 * ipa-reference.c: Likewise.
13671 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13674 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13676 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13679 * doc/sourcebuild.texi (Require Support): Document
13680 dg-require-ascii-locale.
13682 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13684 * doc/lto.texi (Write summary): Fix missing parentheses.
13686 2011-02-10 DJ Delorie <dj@redhat.com>
13688 * config/m32c/m32c.c (m32c_option_override): Disable
13689 -fcombine-stack-adjustments until flag value tracking and compare
13690 optimization can be rewritten.
13692 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13694 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13696 (PROCESSOR_DEFAULT64): Likewise.
13698 2011-02-10 Richard Henderson <rth@redhat.com>
13700 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13701 change from 2011-02-03.
13702 * config/rx/rx.c (flags_from_code): Likewise.
13703 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13704 is valid, n/pz otherwise.
13705 (rx_select_cc_mode): Return CCmode if Y is not zero.
13707 2011-02-10 Richard Guenther <rguenther@suse.de>
13709 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13711 2011-02-10 Richard Guenther <rguenther@suse.de>
13713 PR tree-optimization/47677
13714 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13716 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13719 * combine.c (make_compound_operation): Only change shifts into
13720 multiplication for SCALAR_INT_MODE_P.
13722 2011-02-10 Jie Zhang <jie@codesourcery.com>
13726 2011-02-05 Jie Zhang <jie@codesourcery.com>
13728 * web.c (entry_register): Don't clobber the number of the
13729 first uninitialized reference in used[].
13731 2011-02-09 Richard Guenther <rguenther@suse.de>
13733 PR tree-optimization/47664
13734 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13737 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13741 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13743 (PROCESSOR_DEFAULT64): Same.
13744 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13746 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13748 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13750 2011-02-09 Martin Jambor <mjambor@suse.cz>
13752 PR middle-end/45505
13753 * tree-sra.c (struct access): New flags grp_scalar_read and
13754 grp_scalar_write. Changed description of assignment read and write
13756 (dump_access): Dump new flags, reorder all of them.
13757 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13758 to detect multiple scalar reads.
13759 (analyze_access_subtree): Use the new scalar read write flags instead
13760 of the old flags. Adjusted comments.
13762 2011-02-08 DJ Delorie <dj@redhat.com>
13765 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13768 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13770 * config/m68k/uclinux.opt: New.
13771 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13773 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13775 * config/cris/elf.opt (sim): New Driver option.
13777 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13779 * config/xtensa/elf.opt: New.
13780 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13782 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13784 * config/vax/elf.opt: New.
13785 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13787 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13789 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13791 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13793 * config/gnu-user.opt: New.
13794 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13795 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13796 *-*-uclinux*): Use gnu-user.opt.
13798 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13800 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13801 * config/i386/gnu.h (CPP_SPEC): Likewise.
13803 2011-02-08 Ian Lance Taylor <iant@google.com>
13805 * common.opt (fcx-limited-range): Add SetByCombined flag.
13806 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13807 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13808 (fassociative-math, freciprocal-math): Likewise.
13809 (funsafe-math-optimizations): Likewise.
13810 * opth-gen.awk: Handle SetByCombined.
13811 * optc-gen.awk: Likewise.
13812 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13813 (set_unsafe_math_optimizations_flags): Likewise.
13814 * doc/options.texi (Option properties): Document SetByCombined.
13816 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13818 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13819 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13820 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13821 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13822 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13824 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13826 PR tree-optimization/46834
13827 PR tree-optimization/46994
13828 PR tree-optimization/46995
13829 * graphite-sese-to-poly.c (used_outside_reduction): New.
13830 (detect_commutative_reduction): Call used_outside_reduction.
13831 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13832 translate_scalar_reduction_to_array only when at least one
13833 loop-phi/close-phi tuple has been detected.
13835 2011-02-08 Richard Guenther <rguenther@suse.de>
13837 PR middle-end/47639
13838 * tree-vect-generic.c (expand_vector_operations_1): Update
13840 (expand_vector_operations): ... not here. Cleanup EH info
13841 and the CFG if required.
13843 2011-02-08 Richard Guenther <rguenther@suse.de>
13845 PR tree-optimization/47641
13846 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13847 require type compatibility.
13849 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13851 * gimple-low.c (lower_function_body): Don't remove the location of
13852 the return statement here.
13853 (lower_gimple_return): Do it here instead but only if the return
13854 statement is actually used twice.
13856 2011-02-08 Richard Guenther <rguenther@suse.de>
13858 PR tree-optimization/47632
13859 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13860 unused up_to_stmt parameter, return whether cfg-cleanup is
13861 necessary, remove EH info properly.
13862 (forward_propagate_into_gimple_cond): Adjust caller.
13863 (forward_propagate_into_cond): Likewise.
13864 (forward_propagate_comparison): Likewise.
13865 (tree_ssa_forward_propagate_single_use_vars): Make
13866 forward_propagate_comparison case similar to the two others.
13868 2011-02-08 Nick Clifton <nickc@redhat.com>
13870 * config/mn10300/mn10300.opt (mliw): New command line option.
13871 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13872 (liw_bundling): New automaton.
13873 (liw): New attribute.
13874 (liw_op): New attribute.
13875 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13876 (movsi_internal): Add LIW attributes.
13877 (andsi3): Likewise.
13878 (iorsi3): Likewise.
13879 (xorsi3): Likewise.
13880 (addsi3): Separate register and immediate alternatives.
13881 Add LIW attributes.
13882 (subsi3): Likewise.
13884 (aslsi3): Likewise.
13885 (lshrsi3): Likewise.
13886 (ashrsi3): Likewise.
13887 (liw): New pattern.
13888 * config/mn10300/mn10300.c (liw_op_names): New
13889 (mn10300_print_operand): Handle 'W' operand descriptor.
13890 (extract_bundle): New function.
13891 (check_liw_constraints): New function.
13892 (liw_candidate): New function.
13893 (mn10300_bundle_liw): New function.
13894 (mn10300_reorg): New function.
13895 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13896 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13897 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13898 __LIW__ or __NO_LIW__.
13899 * doc/invoke.texi: Describe the -mliw command line option.
13901 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13903 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13904 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13905 pthread_mutex_unlock): Remove.
13906 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13907 * config/pa/t-pa64: Likewise.
13908 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13909 shared libc if not linking against libpthread.
13910 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13912 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13915 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13916 on 10.6 and later to ensure that we always use the unwinder from
13917 the system. Only add -no_compact_unwind when tarteting darwin
13920 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13923 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13924 (vec_interleave_lowv2sf): Ditto.
13925 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13926 (vec_extract_oddv2sf): Ditto.
13928 2011-02-07 Mike Stump <mikestump@comcast.net>
13931 Add __ieee_divdc3 entry point.
13932 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13934 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13935 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13936 * config/darwin.c (darwin_rename_builtins): Add.
13937 * config/darwin-protos.h (darwin_rename_builtins): Add.
13939 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13942 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13945 2011-02-07 Mike Stump <mikestump@comcast.net>
13947 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13949 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13952 * config/avr/libgcc.S (exit): Move .endfunc
13954 2011-02-07 Richard Guenther <rguenther@suse.de>
13956 PR tree-optimization/47615
13957 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13958 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13959 (run_scc_vn): Initialize it.
13960 (visit_reference_op_load): Use it.
13961 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13963 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13965 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13966 DImode trapping arithmetic libfuncs.
13968 2011-02-07 Richard Guenther <rguenther@suse.de>
13970 PR tree-optimization/47621
13971 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13973 (execute_update_addresses_taken): ... here. Make it more
13974 conservative in what we accept.
13976 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13978 * config/sparc/freebsd.h (ASM_SPEC): Define.
13979 * config/sparc/vxworks.h (ASM_SPEC): Define.
13981 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13983 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13985 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13987 * doc/invoke.texi: Remove reference to compiler internals from
13988 user documentation.
13990 * reg-notes.def: Remove REG_VALUE_PROFILE.
13991 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13993 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13995 PR middle-end/47610
13996 * varasm.c (default_section_type_flags): If decl is NULL,
13997 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13999 2011-02-05 Jie Zhang <jie@codesourcery.com>
14002 * web.c (entry_register): Don't clobber the number of the
14003 first uninitialized reference in used[].
14005 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14007 PR tree-optimization/46194
14008 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14009 (build_classic_dist_vector_1): Do not represent classic distance
14010 vectors when the access functions are variating in different loops.
14012 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14014 * config/mips/iris6.opt: New.
14015 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14017 2011-02-04 Richard Henderson <rth@redhat.com>
14018 Steve Ellcey <sje@cup.hp.com>
14021 * config/ia64/predicates.md (mux1_brcst_element): New.
14022 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14023 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14024 (ia64_unpack_sign): New.
14025 (ia64_expand_unpack): Rewrite using new routines.
14026 (ia64_expand_widen_sum): Ditto.
14027 (ia64_expand_dot_prod_v8qi): Ditto.
14028 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14029 routines, add endian check.
14030 (pmpy2_even): Rename from pmpy2_r, add endian check.
14031 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14032 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14033 (vec_widen_smult_hi_v4hi): Ditto.
14034 (vec_widen_umult_lo_v4hi): Ditto.
14035 (vec_widen_umult_hi_v4hi): Ditto.
14036 (mulv2si3): Change endian checks.
14037 (sdot_prodv4hi): Rewrite with new calls.
14038 (udot_prodv4hi): New.
14039 (vec_pack_ssat_v4hi): Add endian check.
14040 (vec_pack_usat_v4hi): Ditto.
14041 (vec_pack_ssat_v2si): Ditto.
14042 (max1_even): Rename from max1_r, add endian check.
14043 (max1_odd): Rename from max1_l, add endian check.
14044 (*mux1_rev): Format change.
14045 (*mux1_mix): Ditto.
14046 (*mux1_shuf): Ditto.
14047 (*mux1_alt): Ditto.
14048 (*mux1_brcst_v8qi): Use new predicate.
14049 (vec_extract_evenv8qi): Remove endian check.
14050 (vec_extract_oddv8qi): Ditto.
14051 (vec_interleave_lowv4hi): Format change.
14052 (vec_interleave_highv4hi): Ditto.
14053 (mix2_even): Rename from mix2_r, add endian check.
14054 (mix2_odd): Rename from mux2_l, add endian check.
14055 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14056 (vec_extract_evenodd_helper): Format change.
14057 (vec_extract_evenv4hi): Remove endian check.
14058 (vec_extract_oddv4hi): Remove endian check.
14059 (vec_interleave_lowv2si): Format change.
14060 (vec_interleave_highv2si): Format change.
14061 (vec_initv2si): Remove endian check.
14062 (vecinit_v2si): Add endian check.
14063 (reduc_splus_v2sf): Add endian check.
14064 (reduc_smax_v2sf): Ditto.
14065 (reduc_smin_v2sf): Ditto.
14066 (vec_initv2sf): Remove endian check.
14067 (fpack): Add endian check.
14068 (fswap): Add endian check.
14069 (vec_interleave_highv2sf): Add endian check.
14070 (vec_interleave_lowv2sf): Add endian check.
14071 (fmix_lr): Add endian check.
14072 (vec_setv2sf): Format change.
14073 (*vec_extractv2sf_0_be): Use shift to extract operand.
14074 (*vec_extractv2sf_1_be): New.
14075 (vec_pack_trunc_v4hi): Add endian check.
14076 (vec_pack_trunc_v2si): Format change.
14078 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14080 PR inline-asm/23200
14081 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14082 do bb, locus and block comparison and disallow loads if it is not set.
14083 (stmt_is_replaceable_p): New function.
14084 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14086 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14087 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14089 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14091 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14093 * config/rs6000/xilinx.opt: New.
14094 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14096 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14098 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14100 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14102 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14103 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14104 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14105 secondary_reload_info, xtensa_secondary_reload): Remove.
14106 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14107 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14108 (xtensa_preferred_reload_class): Make static. Change return and
14109 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14110 Use CONST_DOUBLE_P predicate.
14111 (xtensa_preferred_output_reload_class): New function.
14112 (xtensa_secondary_reload): Make static.
14114 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14116 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14117 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14118 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14120 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14122 PR middle-end/31490
14123 * output.h (SECTION_RELRO): Define.
14124 (SECTION_MACH_DEP): Adjust.
14125 (get_variable_section): New prototype.
14126 * varpool.c (varpool_finalize_named_section_flags): New function.
14127 (varpool_assemble_pending_decls): Call it.
14128 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14129 * cgraphunit.c (cgraph_output_in_order): Call
14130 varpool_finalize_named_section_flags.
14131 * varasm.c (get_section): Allow section flags conflicts between
14132 relro and read-only sections if the section hasn't been declared yet.
14133 Set SECTION_OVERRIDE after diagnosing section type conflict.
14134 (get_variable_section): No longer static.
14135 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14136 readonly sections that need relocations.
14137 (decl_readonly_section_1): New function.
14138 (decl_readonly_section): Use it.
14141 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14142 Steve Ellcey <sje@cup.hp.com>
14144 PR middle-end/31490
14145 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14146 if section attribute used.
14148 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14150 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14151 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14152 (darwin_init_sections): Remove assertion.
14154 2011-02-03 Nick Clifton <nickc@redhat.com>
14156 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14158 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14159 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14160 instead of "n" and "pz".
14161 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14164 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14167 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14168 fma, expand FMA_EXPR as fma{,f,l} call.
14171 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14172 copy them into a unsigned char variable and pass address of it to
14173 lto_output_data_stream.
14176 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14177 around backend_init_target and lang_dependent_init_target calls.
14178 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14179 (verify_cgraph_node): Don't call set_cfun here. Use
14180 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14181 Set error_found for incorrectly represented calls to thunks.
14183 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14186 PR rtl-optimization/43494
14187 * rtl.h (for_each_inc_dec_fn): New type.
14188 (for_each_inc_dec): Declare.
14189 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14190 (for_each_inc_dec_find_inc_dec): New fn.
14191 (for_each_inc_dec_find_mem): New fn.
14192 (for_each_inc_dec): New fn.
14193 * dse.c (struct insn_size): Remove.
14194 (replace_inc_dec, replace_inc_dec_mem): Remove.
14195 (emit_inc_dec_insn_before): New fn.
14196 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14197 (canon_address): Pass mem modes to cselib_lookup.
14198 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14199 (cselib_lookup_from_insn): Likewise.
14200 (cselib_subst_to_values): Likewise.
14201 * cselib.c (find_slot_memmode): New var.
14202 (cselib_find_slot): New fn. Use it instead of
14203 htab_find_slot_with_hash everywhere.
14204 (entry_and_rtx_equal_p): Use find_slot_memmode.
14205 (autoinc_split): New fn.
14206 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14207 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14208 Deal with autoinc. Special-case recursion into MEMs.
14209 (cselib_hash_rtx): Likewise.
14210 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14211 address and MEM modes.
14212 (cselib_subst_to_values): Add memmode, pass it on.
14214 (cselib_lookup): Add memmode argument, pass it on.
14215 (cselib_lookup_from_insn): Add memmode.
14216 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14217 (struct cselib_record_autoinc_data): New.
14218 (cselib_record_autoinc_cb): New fn.
14219 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14220 mode to cselib_lookup. Reset autoinced REGs here instead of...
14221 (cselib_process_insn): ... here.
14222 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14224 (add_uses): Likewise, also to cselib_subst_to_values.
14225 (add_stores): Likewise.
14226 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14227 cselib_subst_to_values.
14228 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14229 * gcse.c (do_local_cprop): Adjusted.
14230 * postreload.c (reload_cse_simplify_set): Adjusted.
14231 (reload_cse_simplify_operands): Adjusted.
14232 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14234 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14236 PR tree-optimization/45122
14237 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14238 unsafe assumptions when there's more than one loop exit.
14240 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14243 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14244 Document using vector double with the load/store builtins, and
14245 that the load/store builtins always use Altivec instructions.
14247 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14248 to use altivec memory instructions, even on VSX.
14249 (vector_altivec_store_<mode>): Ditto.
14251 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14254 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14255 V2DF, V2DI support to load/store overloaded builtins.
14257 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14258 altivec load/store builtins for V2DF/V2DI types.
14260 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14261 set avoid indexed addresses on power6 if -maltivec.
14262 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14263 vector_altivec_load/vector_altivec_store builtins.
14264 (altivec_expand_st_builtin): Ditto.
14265 (altivec_expand_builtin): Add VSX memory builtins.
14266 (rs6000_init_builtins): Add V2DI types to internal types.
14267 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14268 load/store builtins.
14269 (rs6000_address_for_altivec): Insure memory address is appropriate
14272 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14273 vec_vsx_ld and vec_vsx_st.
14274 (vsx_store_<mode>): Ditto.
14276 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14277 variables to hold long long types for VSX vector memory builtins.
14278 (RS6000_BTI_unsigned_long_long): Ditto.
14279 (long_long_integer_type_internal_node): Ditti.
14280 (long_long_unsigned_type_internal_node): Ditti.
14282 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14283 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14284 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14286 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14288 (vec_vsx_st): Ditto.
14290 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14292 * config/pa/pa-hpux10.opt: New.
14293 * config/hpux11.opt (pthread): New Driver option.
14294 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14295 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14297 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14299 * config/ia64/vms.opt: New.
14300 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14302 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14305 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14306 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14307 generator functions.
14308 (vsx_floatuns<VSi><mode>2): Ditto.
14309 (vsx_fix_trunc<mode><VSi>2): Ditto.
14310 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14312 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14314 * config/i386/djgpp.opt (posix): New Driver option.
14316 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14318 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14319 Move to the unsupported targets list.
14321 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14323 PR rtl-optimization/47525
14324 * df-scan.c: Update copyright years.
14325 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14326 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14328 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14330 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14331 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14332 (ASM_OUTPUT_ASCII): Remove.
14333 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14335 2011-02-02 Jeff Law <law@redhat.com>
14337 PR middle-end/47543
14338 * reload.c (find_reloads_address): Handle reg+d address where both
14339 components are invalid by reloading the entire address.
14341 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14342 Richard Guenther <rguenther@suse.de>
14344 PR tree-optimization/40979
14346 * passes.c (init_optimization_passes): After LIM call copy_prop
14347 and DCE to clean up.
14348 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14350 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14352 PR tree-optimization/47576
14353 PR tree-optimization/47555
14354 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14355 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14356 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14357 * tree-scalar-evolution.c (follow_ssa_edge): Use
14358 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14360 2011-02-02 Richard Guenther <rguenther@suse.de>
14362 PR tree-optimization/47566
14363 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14365 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14369 * tree-inline.c (declare_return_variable): Remove unused caller
14374 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14375 * cfgexpand.c (account_used_vars_for_block): Use them.
14376 * tree-nrv.c (tree_nrv): Likewise.
14377 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14378 (dump_scope_block): Likewise.
14379 (remove_unused_locals): Likewise.
14383 * tree-inline.c (declare_return_variable): Add result decl to
14384 local decls only once.
14385 * gimple-low.c (record_vars_into): Mark newly-created variables
14388 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14394 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14396 (no_real_insns_p, schedule_block, set_priorities): Drop special
14397 treatment of boundary debug insns.
14398 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14399 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14400 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14401 (BOUNDARY_DEBUG_INSN_P): Likewise.
14402 (SCHEDULE_DEBUG_INSN_P): Likewise.
14403 * sched-rgn.c (init_ready_list): Drop special treatment of
14404 boundary debug insns.
14405 * final.c (rest_of_clean_state): Clear notes' BB.
14407 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14409 * config/openbsd.opt (assert=): New Driver option.
14411 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14413 * config/i386/nto.opt: New.
14414 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14416 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14418 * config/i386/netware.opt: New.
14419 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14421 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14423 * config/interix.opt (posix): New Driver option.
14425 2011-02-01 DJ Delorie <dj@redhat.com>
14427 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14429 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14432 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14434 PR tree-optimization/47561
14435 * toplev.c (process_options): Print the Graphite flags. Add
14436 flag_loop_flatten to the list of options requiring Graphite.
14438 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14440 * config/i386/cygming.opt (posix): New Driver option.
14442 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14444 * config/arm/vxworks.opt: New.
14445 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14447 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14449 * config/alpha/elf.opt: New.
14450 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14451 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14453 2011-02-01 Richard Guenther <rguenther@suse.de>
14455 PR tree-optimization/47559
14456 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14457 store-motion on references that can throw.
14459 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14461 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14462 * tree-pass.h (TDF_CSELIB): New macro.
14463 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14464 cselib_lookup): Check for it rather than for TDF_DETAILS.
14466 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14469 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14470 is HOST_BIT_BUCKET.
14472 * opts.c (finish_options): Don't add x_aux_base_name if it is
14475 2011-02-01 Richard Guenther <rguenther@suse.de>
14477 PR tree-optimization/47555
14479 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14481 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14483 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14486 * config/lm32/t-lm32: Add multilib for all CPU options.
14488 2011-02-01 Richard Guenther <rguenther@suse.de>
14490 PR tree-optimization/47541
14491 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14492 sure to have a field at offset zero.
14494 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14496 * config/arc/arc.opt (EB, EL): New Driver options.
14498 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14500 * config/alpha/osf5.opt: New.
14501 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14503 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14505 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14507 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14509 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14510 -floop-interchange.
14511 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14512 is an alias of -floop-interchange and that it requires the
14513 Graphite infrastructure.
14514 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14515 flag_loop_interchange based on the value of flag_tree_loop_linear.
14517 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14518 Richard Guenther <rguenther@suse.de>
14520 PR tree-optimization/47538
14521 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14522 type instead of r1type, except for comparisons. For right
14523 shifts and comparisons punt if there are mismatches in
14524 sizetype vs. non-sizetype types.
14526 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14528 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14531 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14533 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14535 * configure: Regenerate.
14537 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14539 * configure.ac (gcc_cv_ld_static_option): Define.
14540 (gcc_cv_ld_dynamic_option): Define.
14541 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14543 (HAVE_LD_STATIC_DYNAMIC): Update message.
14544 (LD_STATIC_OPTION): Define.
14545 (LD_DYNAMIC_OPTION): Define.
14546 * configure: Regenerate.
14547 * config.in: Regenerate.
14548 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14549 HAVE_LD_STATIC_DYNAMIC]: Use them.
14551 2011-01-31 Nick Clifton <nickc@redhat.com>
14553 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14554 registers inside interrupt handlers if the handler is not a leaf
14557 2011-01-31 Nick Clifton <nickc@redhat.com>
14559 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14560 reg_renumber returning an INVALID_REGNUM.
14562 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14565 * doc/install.texi: Document host options discarded when cross
14566 configuring target libraries.
14568 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14571 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14574 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14576 (no_real_insns_p, schedule_block, set_priorities): Drop special
14577 treatment of boundary debug insns.
14578 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14579 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14580 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14581 (BOUNDARY_DEBUG_INSN_P): Likewise.
14582 (SCHEDULE_DEBUG_INSN_P): Likewise.
14583 * sched-rgn.c (init_ready_list): Drop special treatment of
14584 boundary debug insns.
14585 * final.c (rest_of_clean-state): Clear notes' BB.
14587 2011-01-31 Alan Modra <amodra@gmail.com>
14589 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14590 toc relative expressions as we do in print_operand_address.
14592 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14594 * doc/extend.texi: Follow spelling conventions.
14595 * doc/invoke.texi: Fix a typo.
14597 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14599 * config/hpux11.opt: New.
14600 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14601 ia64*-*-hpux*): Use hpux11.opt.
14603 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14605 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14608 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14610 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14613 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14615 * doc/install.texi (Binaries): Remove outdated reference for
14616 Motorola 68HC11/68HC12 downloads.
14618 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14620 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14623 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14626 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14629 2011-01-28 Ahmad Sharif <asharif@google.com>
14631 * value-prof.c (check_counter): Corrected error message.
14633 2011-01-29 Jie Zhang <jie@codesourcery.com>
14635 * config/arm/arm.c (arm_legitimize_reload_address): New.
14636 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14637 arm_legitimize_reload_address.
14638 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14640 2011-01-28 Ian Lance Taylor <iant@google.com>
14642 * godump.c (go_define): Ignore macros whose definitions include
14643 two adjacent operands.
14645 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14648 * varasm.c (force_const_mem): Store copy of x in desc->constant
14649 instead of x itself.
14650 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14651 itself into REG_EQUAL note.
14653 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14655 * config/freebsd.opt (posix, rdynamic): New Driver options.
14657 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14659 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14660 -Bstatic/-Bdynamic.
14661 * configure: Regenerate.
14663 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14665 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14666 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14668 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14670 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14671 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14672 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14673 (s390_preferred_reload_class): Make static. Change return and
14674 'rclass' argument type to reg_class_t.
14676 2011-01-27 Jan Hubicka <jh@suse.cz>
14678 PR middle-end/46949
14679 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14680 (process_function_and_variable_attributes): Check defined weakrefs.
14682 2011-01-27 Martin Jambor <mjambor@suse.cz>
14684 PR tree-optimization/47228
14685 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14686 build_ref_for_offset.
14688 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14690 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14692 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14694 PR rtl-optimization/46856
14695 * postreload.c (reload_combine_recognize_const_pattern): Do not
14696 separate cc0 setter and user on cc0 targets.
14698 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14701 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14702 passed a VOID_TYPE expression, immediately emit an error and
14703 return error_mark_node.
14705 2011-01-26 Jeff Law <law@redhat.com>
14707 PR rtl-optimization/47464
14708 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14709 rather than may_trap_p as needed.
14711 2011-01-26 DJ Delorie <dj@redhat.com>
14713 PR rtl-optimization/46878
14714 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14715 setter/user dependency as well.
14717 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14719 PR rtl-optimization/44469
14720 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14721 after removing trivially dead basic blocks.
14723 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14725 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14726 * config/frv/frv.h (LINK_SPEC): Likewise.
14727 * config/i386/netware.h (LINK_SPEC): Likewise.
14728 * config/m68k/linux.h (ASM_SPEC): Likewise.
14729 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14730 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14731 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14732 * config/sparc/linux.h (ASM_SPEC): Likewise.
14733 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14734 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14736 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14738 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14739 * config/frv/frv.h (ASM_SPEC): Likewise.
14740 * config/m68k/linux.h (ASM_SPEC): Likewise.
14741 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14742 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14743 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14744 * config/sparc/linux.h (ASM_SPEC): Likewise.
14745 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14746 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14748 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14750 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14751 * config/frv/frv.h (LINK_SPEC): Likewise.
14752 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14754 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14756 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14757 * config/frv/frv.h (ASM_SPEC): Likewise.
14758 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14759 * config/m68k/linux.h (ASM_SPEC): Likewise.
14760 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14761 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14762 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14763 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14764 * config/sparc/linux.h (ASM_SPEC): Likewise.
14765 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14766 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14767 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14769 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14772 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14774 (vec_extract_evenodd_help): Ditto.
14775 (vec_extract_evenv4hi): Ditto.
14776 (vec_extract_oddv4hi): Ditto.
14777 (vec_interleave_lowv2si): Ditto.
14778 (vec_interleave_highv2si): Ditto.
14779 (vec_extract_evenv2si): Ditto.
14780 (vec_extract_oddv2si: Ditto.
14781 (vec_pack_trunc_v2si): Ditto.
14783 2011-01-22 Jan Hubicka <jh@suse.cz>
14786 * cgraph.h (cgraph_local_info): New field can_change_signature.
14787 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14788 signature can change.
14789 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14791 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14792 (cgraph_function_versioning): We can not change signature of functions
14793 that don't allow that.
14794 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14795 (lto_input_node): Likewise.
14796 * ipa-inline.c (compute_inline_parameters): Compute
14797 local.can_change_signature.
14798 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14799 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14800 functions that can not change signature.
14801 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14802 init_cumulative_args): Do not use local calling conventions
14803 for functions that can not change signature.
14805 2011-01-22 Jan Hubicka <jh@suse.cz>
14807 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14809 2011-01-26 Richard Guenther <rguenther@suse.de>
14811 PR tree-optimization/47190
14812 * cgraphunit.c (process_common_attributes): New function.
14813 (process_function_and_variable_attributes): Use it.
14815 2011-01-26 Richard Guenther <rguenther@suse.de>
14818 * cgraphbuild.c (record_eh_tables): Record reference to personality
14821 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14824 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14825 non-debug insns from moving up.
14827 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14830 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14831 t-dlldir{,-x} fragment for build and add it to tmake_file.
14832 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14833 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14834 * config/i386/t-dlldir: New file.
14835 (SHLIB_DLLDIR): Define.
14836 * config/i386/t-dlldir-x: New file.
14837 (SHLIB_DLLDIR): Define.
14838 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14839 (SHLIB_INSTALL): Use it.
14841 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14844 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14845 lower bound of the allowed Thumb-2 coprocessor load/store
14846 index range to -256. Add explaining comment.
14848 2011-01-25 Ian Lance Taylor <iant@google.com>
14850 * godump.c (go_define): Improve lexing of macro expansion to only
14851 accept expressions which match Go spec.
14853 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14856 * tree.c (handle_dll_attribute): Handle it.
14857 * doc/extend.texi (@item dllexport): Mention it.
14858 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14860 2011-01-25 Ian Lance Taylor <iant@google.com>
14862 PR tree-optimization/26854
14863 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14864 (decl_jump_unsafe): Move higher in file, with no other change.
14865 (bind): Set has_jump_unsafe_decl if appropriate.
14866 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14867 (check_earlier_gotos): Likewise.
14868 (c_check_switch_jump_warnings): Likewise.
14870 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14872 * doc/invoke.texi (Warning Options): Add missing hyphen.
14873 (-fprofile-dir): Minor grammatical fixes.
14874 (-fbranch-probabilities): Likewise.
14876 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14880 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14882 (no_real_insns_p, schedule_block, set_priorities): Drop special
14883 treatment of boundary debug insns.
14884 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14885 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14886 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14887 (BOUNDARY_DEBUG_INSN_P): Likewise.
14888 (SCHEDULE_DEBUG_INSN_P): Likewise.
14889 * sched-rgn.c (init_ready_list): Drop special treatment of
14890 boundary debug insns.
14891 * final.c (rest_of_clean-state): Clear notes' BB.
14893 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14895 * Makefile.in (LAMBDA_H): Removed.
14896 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14897 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14898 lambda-trans.o, and tree-loop-linear.o.
14899 (lto-symtab.o): Remove dependence on LAMBDA_H.
14900 (tree-loop-linear.o): Remove rule.
14901 (lambda-mat.o): Same.
14902 (lambda-trans.o): Same.
14903 (lambda-code.o): Same.
14904 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14905 (tree-vect-slp.o): Same.
14906 * hwint.h (gcd): Moved here.
14907 (least_common_multiple): Same.
14908 * lambda-code.c: Removed.
14909 * lambda-mat.c: Removed.
14910 * lambda-trans.c: Removed.
14911 * lambda.h: Removed.
14912 * tree-loop-linear.c: Removed.
14913 * lto-symtab.c: Do not include lambda.h.
14914 * omega.c (gcd): Removed.
14915 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14916 * tree-data-ref.c (print_lambda_vector): Moved here.
14917 (lambda_vector_copy): Same.
14918 (lambda_matrix_copy): Same.
14919 (lambda_matrix_id): Same.
14920 (lambda_vector_first_nz): Same.
14921 (lambda_matrix_row_add): Same.
14922 (lambda_matrix_row_exchange): Same.
14923 (lambda_vector_mult_const): Same.
14924 (lambda_vector_negate): Same.
14925 (lambda_matrix_row_negate): Same.
14926 (lambda_vector_equal): Same.
14927 (lambda_matrix_right_hermite): Same.
14928 * tree-data-ref.h: Do not include lambda.h.
14929 (lambda_vector): Moved here.
14930 (lambda_matrix): Same.
14931 (dependence_level): Same.
14932 (lambda_transform_legal_p): Removed declaration.
14933 (lambda_collect_parameters): Same.
14934 (lambda_compute_access_matrices): Same.
14935 (lambda_vector_gcd): Same.
14936 (lambda_vector_new): Same.
14937 (lambda_vector_clear): Same.
14938 (lambda_vector_lexico_pos): Same.
14939 (lambda_vector_zerop): Same.
14940 (lambda_matrix_new): Same.
14941 * tree-flow.h (least_common_multiple): Removed declaration.
14942 * tree-parloops.c (lambda_trans_matrix): Moved here.
14943 (LTM_MATRIX): Same.
14944 (LTM_ROWSIZE): Same.
14945 (LTM_COLSIZE): Same.
14946 (LTM_DENOMINATOR): Same.
14947 (lambda_trans_matrix_new): Same.
14948 (lambda_matrix_vector_mult): Same.
14949 (lambda_transform_legal_p): Same.
14950 * tree-pass.h (pass_linear_transform): Removed declaration.
14951 * tree-ssa-loop.c (tree_linear_transform): Removed.
14952 (gate_tree_linear_transform): Removed.
14953 (pass_linear_transform): Removed.
14954 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14955 flag_loop_interchange.
14957 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14959 PR tree-optimization/47265
14960 PR tree-optimization/47443
14961 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14962 if name still has some uses.
14964 2011-01-25 Martin Jambor <mjambor@suse.cz>
14966 PR tree-optimization/47382
14967 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14968 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14970 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14972 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14973 sjlj_except_unwind_info.
14975 2011-01-25 Richard Guenther <rguenther@suse.de>
14977 PR tree-optimization/47426
14978 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14979 visible functions results escape.
14981 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14984 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14985 (arm_get_frame_offsets): Use it.
14987 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14988 Jakub Jelinek <jakub@redhat.com>
14990 PR tree-optimization/47271
14991 * tree-if-conv.c (bb_postdominates_preds): New.
14992 (if_convertible_bb_p): Call bb_postdominates_preds.
14993 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14994 (predicate_scalar_phi): Call bb_postdominates_preds.
14996 2011-01-25 Nick Clifton <nickc@redhat.com>
14998 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14999 * config/rx/rx.c (rx_function_value): Likewise.
15000 (rx_promote_function_mode): Likewise.
15001 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15002 in order to make it legitimate.
15003 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15004 make sure that the first operand is the same as the result register.
15005 (addsi3_unspec): Delete.
15006 (subdi3): Do not accept immediate operands.
15007 (subdi3_internal): Likewise.
15009 2011-01-25 Jeff Law <law@redhat.com>
15011 PR rtl-optimization/37273
15012 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15013 handle them like argument loads from stack slots. Do not double
15014 count memory for memory constants and argument loads from stack slots.
15016 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15018 PR tree-optimization/47427
15019 PR tree-optimization/47428
15020 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15021 coalesce if the new root var would be TREE_READONLY.
15023 2011-01-25 Richard Guenther <rguenther@suse.de>
15025 PR middle-end/47414
15026 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15027 correct type for TBAA.
15029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15031 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15032 (close_phi_written_to_memory): Call for_each_index with
15033 dr_indices_valid_in_loop.
15035 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15037 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15038 when it is initialized.
15040 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15042 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15043 call to graphite_find_data_references_in_stmt.
15044 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15045 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15046 call to graphite_find_data_references_in_stmt.
15047 (analyze_drs_in_stmts): Same.
15048 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15049 in which the scalar analysis of indices is performed.
15050 (create_data_ref): Same. Update call to dr_analyze_indices.
15051 (find_data_references_in_stmt): Update call to create_data_ref.
15052 (graphite_find_data_references_in_stmt): Same.
15053 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15055 (create_data_ref): Same.
15056 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15057 call to create_data_ref.
15059 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15061 * graphite-sese-to-poly.c (build_poly_scop): Move
15062 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15064 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15066 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15067 VAR_DECL, PARM_DECL, and RESULT_DECL.
15069 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15071 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15072 in a reduction PBB.
15073 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15074 that have already been marked as PBB_IS_REDUCTION.
15076 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15078 * graphite-scop-detection.c (same_close_phi_node): New.
15079 (remove_duplicate_close_phi): New.
15080 (make_close_phi_nodes_unique): New.
15081 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15083 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15085 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15086 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15087 of both data references to be the same.
15089 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15091 * graphite-dependences.c (build_lexicographical_constraint): Remove
15092 the gdim parameter.
15093 (build_lexicographical_constraint): Adjust call to
15094 ppl_powerset_is_empty.
15095 (dependence_polyhedron): Same.
15096 (graphite_legal_transform_dr): Same.
15097 (graphite_carried_dependence_level_k): Same.
15098 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15100 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15102 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15104 * graphite-sese-to-poly.c
15105 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15106 (close_phi_written_to_memory): New.
15107 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15110 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15112 * doc/install.texi: Update the expected version number of PPL to 0.11.
15113 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15114 #if PPL_VERSION_MINOR < 11.
15116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15118 * graphite-dependences.c: Include graphite-cloog-util.h.
15119 (new_poly_ddr): Inlined into dependence_polyhedron.
15120 (free_poly_ddr): Moved close by new_poly_ddr.
15121 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15122 Early return NULL when ppl_powerset_is_empty returns true.
15123 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15124 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15125 (graphite_legal_transform_dr): Call new_poly_ddr.
15126 (graphite_carried_dependence_level_k): Same.
15127 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15128 (dot_transformed_deps_stmt_1): Removed.
15129 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15130 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15131 (dot_deps_1): Call dot_deps_2.
15132 * Makefile.in (graphite-dependences.o): Add missing dependence on
15133 graphite-cloog-util.h.
15135 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15137 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15138 (build_lexicographical_constraint): Same.
15139 (dependence_polyhedron_1): Same.
15140 (graphite_legal_transform_dr): Same.
15141 (graphite_carried_dependence_level_k): Same.
15142 * graphite-ppl.c (ppl_powerset_is_empty): New.
15143 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15144 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15146 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15148 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15149 the "a followed by b" relation and document it.
15151 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15153 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15154 iteration when the bag of constraints is empty.
15156 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15158 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15160 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15162 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15163 nest and two loop depths as parameters.
15164 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15165 lst_perfect_nestify.
15167 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15169 * graphite-dependences.c (print_pddr): Call
15170 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15172 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15174 * graphite-ppl.c (debug_gmp_value): New.
15175 * graphite-ppl.h (debug_gmp_value): Declared.
15177 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15179 * doc/install.texi: Document availability of cloog-0.16.
15181 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15183 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15184 invalid postdominance info.
15186 2011-01-24 Jan Hubicka <jh@suse.cz>
15189 * doc/extend.texi (weak pragma): Drop claim that it must
15190 appear before definition.
15191 * varasm.c (merge_weak, declare_weak): Only sanity check
15192 that DECL is not output at a time it is declared weak.
15194 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15196 * machmode.def: Fixed comments.
15198 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15200 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15202 2011-01-24 Paul Koning <ni1d@arrl.net>
15204 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15207 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15210 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15211 (block_info): Add scanned and prev.
15212 (move_or_delete_vzeroupper_2): Return if the basic block
15213 has been scanned and the upper 128bit state is unchanged
15214 from the last scan.
15215 (move_or_delete_vzeroupper_1): Return true if the exit
15217 (move_or_delete_vzeroupper): Visit basic blocks using the
15218 work-list based algorithm based on vt_find_locations in
15221 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15223 2011-01-24 Nick Clifton <nickc@redhat.com>
15225 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15226 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15227 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15228 then define __v850e1__.
15229 * doc/invoke.texi: Document -mv850es.
15231 2011-01-24 Richard Henderson <rth@redhat.com>
15233 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15234 compound unordered comparisons.
15235 * config/rx/rx.c (rx_split_fp_compare): Remove.
15236 * config/rx/rx-protos.h: Update.
15237 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15238 (cbranchsf4): Don't call rx_split_fp_compare.
15239 (*cbranchsf4): Use rx_split_cbranch.
15240 (*cmpsf): Don't accept "i" constraint.
15241 (*conditional_branch): Only valid after reload.
15242 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15244 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15247 * config/rs6000/altivec.md (vector constant splitters): Add
15248 support for creating vector single precision constants if -mvsx is
15249 used and we would create the constant using Altivec primitives.
15251 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15252 Richard Sandiford <rdsandiford@googlemail.com>
15254 PR rtl-optimization/47166
15255 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15256 mechanism for PRE_MODIFY and POST_MODIFY.
15257 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15260 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15262 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15264 2011-01-22 Jan Hubicka <jh@suse.cz>
15267 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15269 2011-01-22 Jan Hubicka <jh@suse.cz>
15271 PR tree-optimization/43884
15273 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15274 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15276 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15278 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15279 * config/s390/s390.c (s390_register_move_cost,
15280 s390_memory_move_cost): New.
15281 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15283 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15285 PR middle-end/47401
15286 * except.c (sjlj_assign_call_site_values): Move setting the
15287 crtl->uses_eh_lsda flag to ...
15288 (sjlj_mark_call_sites): ... here.
15289 (sjlj_emit_function_enter): Support NULL dispatch label.
15290 (sjlj_build_landing_pads): In a function with no landing pads
15291 that still has must-not-throw regions, generate code to register
15292 a personality function with empty LSDA.
15294 2011-01-21 Richard Henderson <rth@redhat.com>
15296 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15298 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15300 * compare-elim.c: New file.
15301 * Makefile.in (OBJS-common): Add it.
15302 (compare-elim.o): New.
15303 * common.opt (fcompare-elim): New.
15304 * opts.c (default_options_table): Add OPT_fcompare_elim.
15305 * tree-pass.h (pass_compare_elim_after_reload): New.
15306 * passes.c (init_optimization_passes): Add it.
15307 * recog.h: Protect against re-inclusion.
15308 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15309 * doc/invoke.texi (-fcompare-elim): Document it.
15310 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15311 * doc/tm.texi: Rebuild.
15313 2011-01-22 Nick Clifton <nickc@redhat.com>
15315 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15316 rx_split_fp_compare.
15318 2011-01-22 Nick Clifton <nickc@redhat.com>
15320 * config/rx/rx.md (UNSPEC_CONST): New.
15321 (deallocate_and_return): Wrap the amount popped off the stack in
15322 an UNSPEC_CONST in order to stop it being rejected by
15323 -mmax-constant-size.
15324 (pop_and_return): Add a "(return)" rtx.
15325 (call): Drop the immediate operand.
15326 (call_internal): Likewise.
15327 (call_value): Likewise.
15328 (call_value_internal): Likewise.
15329 (sibcall_internal): Likewise.
15330 (sibcall_value_internal): Likewise.
15331 (sibcall): Likewise. Generate an explicit call using
15333 (sibcall_value): Likewise.
15334 (mov<>): FAIL if a constant operand is not legitimate.
15335 (addsi3_unpsec): New pattern.
15337 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15338 (ok_for_max_constant): New function.
15339 (gen_safe_add): New function.
15340 (rx_expand_prologue): Use gen_safe_add.
15341 (rx_expand_epilogue): Likewise.
15342 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15345 2011-01-21 Jeff Law <law@redhat.com>
15347 PR tree-optimization/47053
15348 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15349 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15350 statements are deleted.
15351 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15352 is nonempty, then purge dead edges and cleanup the CFG.
15354 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15357 Temporarily revert:
15358 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15360 * tree-dfa.c (create_var_ann): Mark variable as used.
15362 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15364 PR middle-end/45566
15365 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15366 notes from other section in hot/cold partitioning even if
15367 last_action is -3. Increment call_site_base.
15369 PR rtl-optimization/47366
15370 * fwprop.c (forward_propagate_into): Return bool. If
15371 any changes are made, -fnon-call-exceptions is used and
15372 REG_EH_REGION note is present, call purge_dead_edges
15373 and return true if it purged anything.
15374 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15375 any EH edges were purged.
15377 2011-01-21 Jeff Law <law@redhat.com>
15379 PR rtl-optimization/41619
15380 * caller-save.c (setup_save_areas): Break out code to determine
15381 which hard regs are live across calls by examining the reload chains
15382 so that it is always used.
15383 Eliminate code which checked REG_N_CALLS_CROSSED.
15385 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15387 PR tree-optimization/47355
15388 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15389 NOP has non-debug uses beyond PHIs in new_bb.
15391 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15394 * cfgexpand.c (account_used_vars_for_block): Only account vars
15395 that are annotated as used.
15396 (estimated_stack_frame_size): Don't set TREE_USED.
15397 * tree-dfa.c (create_var_ann): Mark variable as used.
15399 2011-01-21 Richard Guenther <rguenther@suse.de>
15401 PR middle-end/47395
15402 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15404 2011-01-21 Richard Guenther <rguenther@suse.de>
15406 PR tree-optimization/47365
15407 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15408 (vn_reference_lookup_pieces): Adjust.
15409 (vn_reference_lookup): Likewise.
15410 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15411 (vn_reference_lookup_3): Only look through kills if in
15412 VN_WALKREWRITE mode.
15413 (vn_reference_lookup_pieces): Adjust.
15414 (vn_reference_lookup): Likewise.
15415 (visit_reference_op_load): Likewise.
15416 (visit_reference_op_store): Likewise.
15417 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15418 (compute_avail): Likewise.
15419 (eliminate): Likewise.
15421 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15423 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15424 DECL_IGNORED_P non-reg vars if they are used.
15426 PR tree-optimization/47391
15427 * varpool.c (const_value_known_p): Return false if
15430 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15433 * config/i386/i386.c (ix86_local_alignment): Handle
15434 case for va_list_type_node is nil.
15435 (ix86_canonical_va_list_type): Likewise.
15437 2011-01-21 Alan Modra <amodra@gmail.com>
15439 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15440 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15442 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15444 * config/arm/arm.md (define_attr type): Rename f_load
15445 and f_store to f_fpa_load and f_fpa_store. Update.
15446 (write_conflict): Deal with rename fallout.
15447 (*push_fp_multi): Likewise.
15448 * config/arm/fpa.md (f_load): Use f_fpa_load.
15449 (f_store): Use f_fpa_store.
15450 (*movsf_fpa): Likewise.
15451 (*movdf_fpa): Likewise.
15452 (*movxf_fpa): Likewise.
15453 (*thumb2_movsf_fpa): Likewise.
15454 (*thumb2_movdf_fpa): Likewise.
15455 (*thumb2_movxf_fpa): Likewise.
15456 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15457 f_loadd and f_stored.
15458 (*thumb2_movdi_vfp): Likewise.
15459 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15460 (*thumb2_movsi_vfp): Likewise.
15461 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15462 Use f_loads instead of f_load.
15463 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15465 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15467 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15468 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15469 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15470 (xtensa_mode_dependent_address_p): New function.
15471 (constantpool_address_p): Make static. Change return type to bool.
15472 Change argument type to const_rtx. Use CONST_INT_P predicate.
15474 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15477 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15479 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15482 * cfgexpand.c (expand_debug_expr): Instead of generating
15483 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15486 2011-01-20 Richard Guenther <rguenther@suse.de>
15488 PR middle-end/47370
15489 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15490 the pointer operand of MEM_REFs.
15492 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15494 PR tree-optimization/46130
15495 * ipa-split.c (consider_split): If return_bb contains non-virtual
15496 PHIs other than for retval or if split_function would not adjust it,
15499 2011-01-20 Richard Guenther <rguenther@suse.de>
15501 PR tree-optimization/47167
15502 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15503 Revert previous change, only avoid enumeral type changes.
15505 2011-01-19 Mike Stump <mikestump@comcast.net>
15507 * doc/tm.texi.in (BRANCH_COST): Englishify.
15508 * doc/tm.texi (BRANCH_COST): Likewise.
15510 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15513 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15514 (gen_scheduled_generic_parms_dies): New functions.
15515 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15516 generation for the end of CU compilation.
15517 (dwarf2out_finish): Generate template parameters DIEs here.
15519 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15522 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15523 debug bind stmt on merge edges.
15525 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15529 * function.c (instantiate_expr): Instantiate incoming rtl of
15530 implicit arguments, and recurse on VALUE_EXPRs.
15531 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15532 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15534 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15536 * c-parser.c (c_parser_for_statement): Initialize
15537 collection_expression.
15539 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15541 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15543 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15545 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15546 (LINK_SHLIB_SPEC): Don't use %(link_path).
15547 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15549 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15551 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15552 (NO_SHARED_LIB_SUPPORT): Remove.
15553 (LINK_SHLIB_SPEC): Remove one conditional definition.
15555 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15557 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15559 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15560 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15561 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15562 %{call_shared} and conditionals on these options not being passed.
15563 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15566 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15568 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15571 * ipa-split.c: Spelling fixes.
15573 2011-01-19 Richard Henderson <rth@redhat.com>
15575 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15576 (*mulsi3): Likewise.
15578 * longlong.h [__mn10300__] (count_leading_zeros): New.
15579 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15580 [__mn10300__] (add_ssaaaa, subddmmss): New.
15581 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15582 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15584 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15586 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15588 2011-01-19 Richard Henderson <rth@redhat.com>
15590 * config/mn10300/mn10300.md (addsi3_flags): New.
15591 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15592 (subsi3_flags, subc_internal, subdi3): New.
15593 (subdi3_internal, *subdi3_degenerate): New.
15594 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15596 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15597 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15598 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15599 * config/mn10300/mn10300-protos.h: Update.
15600 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15601 (return_ret): Likewise. Rename from return_internal_regs.
15602 (return_internal): Remove.
15604 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15605 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15606 (mn10300_legitimate_constant_p): Likewise.
15607 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15608 (mn10300_frame_size): New.
15609 (mn10300_expand_prologue): Use it.
15610 (mn10300_expand_epilogue): Likewise.
15611 (mn10300_initial_offset): Likewise.
15612 * config/mn10300/mn10300-protos.h: Update.
15613 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15614 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15615 (prologue, epilogue, return_internal): Tidy output code.
15616 (mn10300_store_multiple_operation, return): Likewise.
15617 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15618 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15619 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15620 (load_pic, am33_load_pic): New.
15621 (mn10300_load_pic0, mn10300_load_pic1): New.
15623 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15624 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15625 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15626 (cc_flags_for_mode, cc_flags_for_code): New.
15627 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15628 overflow flag is not valid. Validate that the flags we need
15629 for the comparison are valid.
15630 (mn10300_output_cmp): Remove.
15631 (mn10300_output_add): New.
15632 (mn10300_select_cc_mode): Use cc_flags_for_code.
15633 (mn10300_split_cbranch): New.
15634 (mn10300_match_ccmode): New.
15635 (mn10300_split_and_operand_count): New.
15636 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15638 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15639 (addsi3): ... here. Use mn10300_output_add.
15640 (*addsi3_flags): New.
15641 (*am33_subsi3, *mn10300_subsi3): Merge...
15642 (subsi3): ... here. Use attribute isa.
15643 (*subsi3_flags): New.
15644 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15646 (*am33_andsi3, *mn10300_andsi3): Merge...
15647 (andsi3): ... here.
15648 (*andsi3_flags): New.
15649 (andsi3 splitters): New.
15650 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15651 (iorsi3): ... here.
15652 (*iorsi3_flags): New.
15653 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15654 (xorsi3): ... here.
15655 (*xorsi3_flags): New.
15656 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15657 (one_cmplsi2): ... here.
15658 (*one_cmplsi2_flags): New.
15659 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15660 instead of "dax" in constraints. Use mn10300_split_cbranch.
15661 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15662 use matching constraints to eliminate a self-comparison.
15663 (*integer_conditional_branch): Rename from integer_conditional_branch.
15664 Use int_mode_flags to match CC_REG.
15665 (*cbranchsi4_btst, *btstsi): New.
15666 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15667 mn10300_split_cbranch.
15668 (*am33_cmpsf): Rename from am33_cmpsf.
15669 (*float_conditional_branch): Rename from float_conditional_branch.
15670 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15671 (zero_extendqisi2): ... here.
15672 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15673 (zero_extendhisi2): ... here.
15674 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15675 (extendqisi2): ... here.
15676 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15677 (extendhisi2): ... here.
15678 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15679 (ashlsi3): ... here.
15680 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15681 (lshrsi3): ... here.
15682 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15683 (ashrsi3): ... here.
15684 (consecutive add peephole): Remove.
15685 * config/mn10300/predicates.md (label_ref_operand): New.
15686 (int_mode_flags): New.
15687 (CCZN_comparison_operator): New.
15689 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15690 (throughput_42_latency_43): New reservation.
15691 (mulsidi3, umulsidi3): New expanders.
15692 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15693 the MDR register to allocation; separately allocate the low and
15694 high parts of the DImode result.
15695 (umulsidi3_internal): Similarly.
15696 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15697 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15698 (udivsi3, umodsi3): Remove.
15699 (udivmodsi4, divmodsi4): New expanders.
15700 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15701 (*divmodsi4): Simiarly.
15702 (ext_internal): New.
15704 * config/mn10300/constraints.md ("z"): New constraint.
15705 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15706 (FIXED_REGISTERS): Don't fix MDR.
15707 (CALL_USED_REGSITERS): Reformat nicely.
15708 (REG_ALLOC_ORDER): Add MDR.
15709 (enum regclass): Add MDR_REGS.
15710 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15711 (IRA_COVER_CLASSES): Add MDR_REGS.
15712 (REGNO_REG_CLASS): Handle MDR_REG.
15713 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15714 (mn10300_register_move_cost): Likewise.
15715 * config/mn10300/mn10300.md (MDR_REG): New.
15716 (*movsi_internal): Handle moves to/from MDR_REGS.
15718 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15720 (mn10300_secondary_reload): Tidy combination reload classes.
15721 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15722 addresses for AM33. Allow symbolic offsets for reg+imm.
15723 (mn10300_regno_in_class_p): New.
15724 (mn10300_legitimize_reload_address): New.
15725 * config/mn10300/mn10300.h (enum reg_class): Remove
15726 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15727 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15728 SP_OR_GENERAL_REGS.
15729 (REG_CLASS_NAMES): Update to match.
15730 (REG_CLASS_CONTENTS): Likewise.
15731 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15732 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15733 (REGNO_IN_RANGE_P): Remove.
15734 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15735 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15736 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15737 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15738 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15739 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15740 (REGNO_GENERAL_P): New.
15741 (HAVE_POST_MODIFY_DISP): New.
15742 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15743 (LEGITIMIZE_RELOAD_ADDRESS): New.
15744 * config/mn10300/mn10300-protos.h: Update.
15746 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15747 DATA_REGS for AM33 stack-pointer destination.
15748 (mn10300_preferred_output_reload_class): Likewise.
15749 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15750 into a form appropriate for ...
15751 (TARGET_SECONDARY_RELOAD): New.
15752 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15753 * config/mn10300/mn10300-protos.h: Update.
15754 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15755 reload_insi; use the "A" constraint for the scratch; handle AM33
15756 moves of sp to non-address registers.
15758 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15759 (*movqi_internal): ... here.
15760 (*am33_movhi, *mn10300_movhi): Merge into...
15761 (*movhi_internal): ... here.
15762 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15763 as the source/destination of moves from/to SP.
15764 (movsf): Only allow for AM33-2.
15765 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15766 any integer constant constraint. Only allow for AM33-2. Tidy
15767 all of the alternative outputs.
15768 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15769 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15771 (udivsi3, umodsi3): New patterns for MN103 only.
15773 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15775 * doc/tm.texi.in: Spell out that a lack of register class unions
15777 * doc/tm.texi: Regenerate.
15779 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15781 PR rtl-optimization/47337
15782 * dce.c (check_argument_store): New function.
15783 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15785 PR tree-optimization/47290
15786 * tree-eh.c (infinite_empty_loop_p): New function.
15787 (cleanup_empty_eh): Use it.
15789 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15792 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15793 (a64_expand_widen_sum): Ditto.
15794 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15795 (vec_extract_evenodd_help): Ditto.
15796 (vec_extract_evenv4hi): Ditto.
15797 (vec_extract_oddv4hi): Ditto.
15798 (vec_extract_evenv2si): Ditto.
15799 (vec_extract_oddv2si): Ditto.
15800 (vec_extract_evenv2sf): Ditto.
15801 (vec_extract_oddv2sf): Ditto.
15802 (vec_pack_trunc_v4hi: Ditto.
15803 (vec_pack_trunc_v2si): Ditto.
15804 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15805 (vec_interleave_highv8qi): Ditto.
15807 (vec_extract_oddv8qi): Ditto.
15808 (vec_interleave_lowv4hi): Ditto.
15809 (vec_interleave_highv4hi): Ditto.
15810 (vec_interleave_lowv2si): Ditto.
15811 (vec_interleave_highv2si): Ditto.
15813 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15815 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15816 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15817 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15818 (pa_c_mode_for_suffix): New.
15819 (TARGET_EXPAND_BUILTIN): Define.
15820 (TARGET_C_MODE_FOR_SUFFIX): Define.
15821 (pa_builtins): Define.
15822 (pa_init_builtins): Register __float128 type and init new support
15824 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15825 * config/pa/quadlib.c (_U_Qfcopysign): New.
15827 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15829 PR middle-end/46894
15830 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15831 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15834 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15836 PR tree-optimization/47179
15837 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15838 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15840 2011-01-18 Richard Guenther <rguenther@suse.de>
15842 PR rtl-optimization/47216
15843 * emit-rtl.c: Include tree-flow.h.
15844 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15845 of replicating it with different semantics.
15846 * Makefile.in (emit-rtl.o): Adjust.
15848 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15850 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15851 (cortex_a9_dp): Handle neon types correctly.
15853 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15855 PR rtl-optimization/47299
15856 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15857 subtarget. Use normal multiplication if both operands are constants.
15858 * expmed.c (expand_widening_mult): Don't try to optimize constant
15859 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15862 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15864 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15865 spacing after 'e.g.', typos, comma, hyphenation.
15867 2011-01-17 Richard Henderson <rth@redhat.com>
15869 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15870 (rx_restricted_mem_operand): New.
15871 (rx_shift_operand): Use register_operand.
15872 (rx_source_operand, rx_compare_operand): Likewise.
15873 * config/rx/rx.md (addsi3_flags): New expander.
15874 (adddi3): Rewrite as expander.
15875 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15876 (subsi3_flags): New expander.
15877 (subdi3): Rewrite as expander.
15878 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15880 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15881 (rx_init_builtins): Remove sat builtin.
15882 (rx_expand_builtin): Likewise.
15883 * config/rx/rx.md (ssaddsi3): New.
15884 (*sat): Rename from sat. Represent the CC_REG input.
15886 * config/rx/predicates.md (rshift_operator): New.
15887 * config/rx/rx.c (rx_expand_insv): Remove.
15888 * config/rx/rx-protos.h: Update.
15889 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15890 operand to the canonical position.
15891 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15892 (*bitclr, *bitclr_in_memory): Similarly.
15893 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15894 (insv): Retain the zero_extract in the expansion.
15896 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15897 (bswaphi2, bitinvert, revw): Likewise.
15899 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15900 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15901 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15902 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15903 (bitset, bitset_in_memory): Likewise.
15904 (bitinvert, bitinvert_in_memory): Likewise.
15905 (bitclr, bitclr_in_memory): Likewise.
15906 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15907 (rx_strend, rx_cmpstrn): Likewise.
15908 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15909 (bitop peep2 patterns): Remove.
15911 * config/rx/rx.c (rx_match_ccmode): New.
15912 * config/rx/rx-protos.h: Update.
15913 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15914 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15915 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15916 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15917 (fix_truncsfsi2, floatsisf2): Likewise.
15918 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15919 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15920 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15921 (*subsi3_flags, *xorsi3_flags): New.
15923 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15925 * config/rx/rx.c (rx_print_operand): Remove workaround for
15926 unsplit comparison operations.
15928 * config/rx/rx.md (movsicc): Split after reload.
15929 (*movsicc): Merge *movsieq and *movsine via match_operator.
15930 (*stcc): New pattern.
15932 * config/rx/rx.c (rx_float_compare_mode): Remove.
15933 * config/rx/rx.h (rx_float_compare_mode): Remove.
15934 * config/rx/rx.md (cstoresi4): Split after reload.
15935 (*sccc): New pattern.
15937 * config/rx/predicates.md (label_ref_operand): New.
15938 (rx_z_comparison_operator): New.
15939 (rx_zs_comparison_operator): New.
15940 (rx_fp_comparison_operator): New.
15941 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15942 Validate that the flags are set properly for the comparison.
15943 (rx_gen_cond_branch_template): Remove.
15944 (rx_cc_modes_compatible): Remove.
15945 (mode_from_flags): New.
15946 (flags_from_code): Rename from flags_needed_for_conditional.
15947 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15948 (rx_select_cc_mode): Likewise.
15949 (rx_split_fp_compare): New.
15950 (rx_split_cbranch): New.
15951 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15952 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15953 (*cbranchsf4): Similarly.
15954 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15955 match_operator and rx_split_cbranch.
15956 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15957 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15958 (*cmpsi): Rename from cmpsi.
15959 (*tstsi): Rename from tstsi.
15960 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15961 (*conditional_branch): Rename from conditional_branch.
15962 (*reveresed_conditional_branch): Remove.
15963 (b<code>): Remove expander.
15964 * config/rx/rx-protos.h: Update.
15966 * config/rx/rx.c (rx_compare_redundant): Remove.
15967 * config/rx/rx.md (cmpsi): Don't use it.
15968 * config/rx/rx-protos.h: Update.
15970 * config/rx/rx-modes.def (CC_F): New mode.
15971 * config/rx/rx.c (rx_select_cc_mode): New.
15972 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15973 * config/rx/rx-protos.h: Update.
15975 2011-01-17 Richard Henderson <rth@redhat.com>
15977 * except.c (dump_eh_tree): Fix stray ; after for statement.
15979 2011-01-17 Richard Guenther <rguenther@suse.de>
15981 PR tree-optimization/47313
15982 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15983 handling before copying the body. Properly deal with
15984 by-reference result in SSA form.
15986 2011-01-17 Ian Lance Taylor <iant@google.com>
15989 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15990 (struct_value_alias_set): Don't define.
15991 (sparc_option_override): Don't set sparc_sr_alias_set and
15992 struct_value_alias_set.
15993 (save_or_restore_regs): Use gen_frame_mem rather than calling
15995 (sparc_struct_value_rtx): Likewise.
15997 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16000 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16001 (_mm_maskstore_pd): Likewise.
16002 (_mm_maskload_ps): Likewise.
16003 (_mm_maskstore_ps): Likewise.
16004 (_mm256_maskload_pd): Change mask to __m256i.
16005 (_mm256_maskstore_pd): Likewise.
16006 (_mm256_maskload_ps): Likewise.
16007 (_mm256_maskstore_ps): Likewise.
16009 * config/i386/i386-builtin-types.def: Updated.
16010 (ix86_expand_special_args_builtin): Likewise.
16012 * config/i386/i386.c (bdesc_special_args): Update
16013 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16014 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16015 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16016 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16018 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16019 Use <avxpermvecmode> on mask register.
16020 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16022 2011-01-17 Olivier Hainque <hainque@adacore.com>
16023 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16024 Eric Botcazou <ebotcazou@adacore.com>
16027 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16028 if <= USHRT_MAX in 32-bit mode.
16030 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16032 * doc/install.texi (Configuration, Specific): Wrap long
16033 lines in examples. Allow line wrapping in long options
16034 and URLs where beneficial for PDF output.
16036 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16038 * config/mips/mips.c (mips_classify_symbol): Don't return
16039 SYMBOL_PC_RELATIVE for nonlocal labels.
16041 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16043 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16045 2011-01-15 Jan Hubicka <jh@suse.cz>
16047 PR tree-optimization/47276
16048 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16049 declarations as needed.
16051 2011-01-15 Martin Jambor <mjambor@suse.cz>
16053 * common.opt (fdevirtualize): New flag.
16054 * doc/invoke.texi (Option Summary): Document it.
16055 * opts.c (default_options_table): Add devirtualize flag.
16056 * ipa-prop.c (detect_type_change): Return immediately if
16057 devirtualize flag is not set.
16058 (detect_type_change_ssa): Likewise.
16059 (compute_known_type_jump_func): Likewise.
16060 (ipa_analyze_virtual_call_uses): Likewise.
16062 2011-01-14 Martin Jambor <mjambor@suse.cz>
16064 PR tree-optimization/45934
16065 PR tree-optimization/46302
16066 * ipa-prop.c (type_change_info): New type.
16067 (stmt_may_be_vtbl_ptr_store): New function.
16068 (check_stmt_for_type_change): Likewise.
16069 (detect_type_change): Likewise.
16070 (detect_type_change_ssa): Likewise.
16071 (compute_complex_assign_jump_func): Check for dynamic type change.
16072 (compute_complex_ancestor_jump_func): Likewise.
16073 (compute_known_type_jump_func): Likewise.
16074 (compute_scalar_jump_functions): Likewise.
16075 (ipa_analyze_virtual_call_uses): Likewise.
16076 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16078 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16080 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16081 * config/i386/i386.opt (msse5): New Alias.
16083 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16085 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16086 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16087 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16088 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16092 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16094 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16095 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16096 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16097 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16099 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16101 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16103 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16105 2011-01-14 Mike Stump <mikestump@comcast.net>
16107 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16108 * config/fr30/fr30.md: Likweise
16109 (movsi_push): Likewise.
16110 (movsi_pop): Likewise.
16111 (enter_func): Likewise.
16112 * config/moxie/moxie.md (movsi_push): Likewise.
16113 (movsi_pop): Likewise.
16115 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16117 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16118 %{no_archive} %{exact_version}.
16119 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16120 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16121 %{no_archive} %{exact_version}.
16122 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16123 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16124 * config/mips/vxworks.h: Likewise.
16126 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16128 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16130 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16132 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16133 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16135 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16137 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16140 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16142 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16144 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16145 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16147 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16148 Don't handle -shlib.
16150 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16152 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16153 (CC1_SPEC): Don't handle -profile.
16155 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16157 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16158 * config/mips/mips.h (CC1_SPEC): Likewise.
16160 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16162 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16163 * config/mips/mips.h (CC1_SPEC): Likewise.
16165 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16167 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16168 * config/m32r/linux.h (LINK_SPEC): Likewise.
16169 * config/mips/linux.h (LINK_SPEC): Likewise.
16170 * config/mips/linux64.h (LINK_SPEC): Likewise.
16171 * config/sparc/linux.h (LINK_SPEC): Likewise.
16172 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16173 LINK_SPEC): Likewise.
16174 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16176 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16178 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16180 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16182 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16184 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16185 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16187 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16189 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16191 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16193 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16194 supports -Bstatic/-Bdynamic.
16195 * configure: Regenerate.
16197 2011-01-14 Jan Hubicka <jh@suse.cz>
16198 Jack Howarth <howarth@bromo.med.uc.edu>
16201 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16202 when checking debug_info_level. Test write_symbols instead of
16203 debug_hooks->var_location when setting flag_var_tracking_uninit.
16205 2011-01-14 Richard Guenther <rguenther@suse.de>
16207 PR tree-optimization/47179
16208 * target.def (ref_may_alias_errno): New target hook.
16209 * targhooks.h (default_ref_may_alias_errno): Declare.
16210 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16211 (default_ref_may_alias_errno): New function.
16212 * target.h (struct ao_ref_s): Declare.
16213 * tree-ssa-alias.c: Include target.h.
16214 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16215 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16216 (targhooks.o): Likewise.
16217 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16218 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16220 2011-01-14 Richard Guenther <rguenther@suse.de>
16222 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16224 2011-01-14 Richard Guenther <rguenther@suse.de>
16226 PR tree-optimization/47280
16227 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16228 return CFG changes.
16229 (tree_ssa_forward_propagate_single_use_vars): Deal with
16230 CFG changes from associate_plusminus.
16232 2011-01-14 Richard Guenther <rguenther@suse.de>
16234 PR middle-end/47281
16236 2011-01-11 Richard Guenther <rguenther@suse.de>
16238 PR tree-optimization/46076
16239 * tree-ssa.c (useless_type_conversion_p): Conversions from
16240 unprototyped to empty argument list function types are useless.
16242 2011-01-14 Richard Guenther <rguenther@suse.de>
16244 PR tree-optimization/47286
16245 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16247 2011-01-14 Martin Jambor <mjambor@suse.cz>
16249 PR middle-end/46823
16250 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16252 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16254 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16255 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16256 * config/xtensa/xtensa.c (xtensa_libcall_value,
16257 xtensa_function_value_regno_p): New functions.
16258 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16260 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16263 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16265 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16266 New function prototype.
16267 * config/i386/winnt.c (i386_pe_assemble_visibility):
16268 Warn only if attribute was specified by user.
16270 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16273 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16275 (floatunsdidf2_fcfidu): Ditto.
16277 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16279 * config/s390/s390.c (print_operand_address): Replace 'error' with
16280 'output_operand_lossage'.
16281 (print_operand): Likewise.
16283 2011-01-13 Jeff Law <law@redhat.com>
16285 PR rtl-optimization/39077
16286 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16287 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16288 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16289 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16290 * gcse.c (prune_insertions_deletions): New function.
16291 (compute_pre_data): Use it.
16293 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16296 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16298 (prune_unused_types_mark): Use it.
16300 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16302 PR rtl-optimization/45352
16303 * sel-sched.c: Update copyright years.
16304 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16305 in the advancing loop when we have issued issue_rate insns.
16307 2011-01-12 Richard Henderson <rth@redhat.com>
16309 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16310 (TARGET_MD_ASM_CLOBBERS): New.
16312 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16313 (TARGET_DELEGITIMIZE_ADDRESS): New.
16315 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16316 (clzsi2, *bsch): New patterns.
16318 * config/mn10300/mn10300.md (INT): New mode iterator.
16319 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16321 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16322 flag_split_wide_types.
16324 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16325 (mn10300_trampoline_init): Rewrite without a template, an immediate
16326 load and a direct branch.
16327 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16329 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16331 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16332 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16333 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16334 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16336 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16339 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16342 2011-01-12 Jan Hubicka <jh@suse.cz>
16345 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16346 (PLUGIN_COND_CLOSE): New macro.
16347 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16349 2011-01-12 Richard Guenther <rguenther@suse.de>
16352 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16353 register variables in a MEM_REF.
16355 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16357 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16358 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16359 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16360 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16361 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16362 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16363 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16364 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16365 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16366 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16367 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16368 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16369 * config/gnu-user.h: New. Copied from linux.h.
16370 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16371 GNU_USER_TARGET_STARTFILE_SPEC.
16372 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16373 GNU_USER_TARGET_ENDFILE_SPEC.
16374 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16375 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16376 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16377 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16378 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16379 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16380 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16381 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16382 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16383 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16384 * config/arm/linux-eabi.h (CC1_SPEC): Use
16385 GNU_USER_TARGET_CC1_SPEC.
16386 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16387 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16388 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16389 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16390 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16391 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16392 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16393 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16395 2011-01-12 Richard Guenther <rguenther@suse.de>
16398 * doc/invoke.texi (ffast-math): Document it is turned on
16401 2011-01-12 Jan Hubicka <jh@suse.cz>
16403 PR tree-optimization/47233
16404 * opts.c (common_handle_option): Disable ipa-reference with profile
16407 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16409 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16412 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16414 * c-parser.c (c_lex_one_token): Updated and reindented some
16415 comments. No changes in code.
16417 2011-01-11 Ian Lance Taylor <iant@google.com>
16419 * godump.c (go_output_var): Don't output the variable if there is
16420 already a type with the same name.
16422 2011-01-11 Ian Lance Taylor <iant@google.com>
16424 * godump.c (go_format_type): Don't generate float80.
16426 2011-01-11 Richard Henderson <rth@redhat.com>
16428 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16429 declaration. Rewrite for both speed and size.
16430 (mn10300_address_cost_1): Remove.
16431 (mn10300_register_move_cost): New.
16432 (mn10300_memory_move_cost): New.
16433 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16434 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16435 extensions, shifts, BSWAP, CLZ.
16436 (mn10300_wide_const_load_uses_clr): Remove.
16437 (TARGET_REGISTER_MOVE_COST): New.
16438 (TARGET_MEMORY_MOVE_COST): New.
16439 * config/mn10300/mn10300-protos.h: Update.
16440 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16442 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16443 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16444 * config/mn10300/mn10300-protos.h: Update.
16445 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16446 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16447 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16448 (*test_int_bitfield, *test_byte_bitfield): Remove.
16449 (*bit_test, *subreg_bit_test): Remove.
16450 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16452 * config/mn10300/constraints.md ("c"): Rename from "A".
16453 ("A", "D"): New constraint letters.
16454 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16455 (fmssf4, fnmasf4, fnmssf4): Likewise.
16457 * config/mn10300/mn10300.md (isa): New attribute.
16458 (enabled): New attribute.
16460 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16461 (abssf2, negsf2): Define only for hardware fp.
16462 (sqrtsf2): Reformat.
16463 (addsf3, subsf3, mulsf3): Merge expander and insn.
16465 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16466 (DEBUGGER_AUTO_OFFSET): Remove.
16467 (DEBUGGER_ARG_OFFSET): Remove.
16469 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16470 Emit register stores with the same offsets as the hardware.
16471 (mn10300_store_multiple_operation): Don't check that the register
16472 save offsets are monotonic.
16473 * config/mn10300/mn10300-protos.h: Update.
16475 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16477 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16478 in terms of the value on the stack, not the MDR register.
16480 2011-01-11 Jan Hubicka <jh@suse.cz>
16484 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16485 (symbol_alias_set_destroy, symbol_alias_set_contains,
16486 propagate_aliases_backward): Declare.
16487 * lto-streamer-out.c (struct sets): New sturcture.
16488 (trivally_defined_alias): New function.
16489 (output_alias_pair_p): Rewrite.
16490 (output_unreferenced_globals): Fix output of alias pairs.
16491 (produce_symtab): Likewise.
16492 * ipa.c (function_and_variable_visibility): Set weak alias destination
16494 * varasm.c (symbol_alias_set_t): Remove.
16495 (symbol_alias_set_destroy): Export.
16496 (propagate_aliases_forward, propagate_aliases_backward): New functions
16498 (compute_visible_aliases): ... this one; remove.
16499 (trivially_visible_alias): New
16500 (trivially_defined_alias): New.
16501 (remove_unreachable_alias_pairs): Rewrite.
16502 (finish_aliases_1): Reorganize code checking if alias is defined.
16503 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16506 2011-01-11 Richard Guenther <rguenther@suse.de>
16508 PR tree-optimization/46076
16509 * tree-ssa.c (useless_type_conversion_p): Conversions from
16510 unprototyped to empty argument list function types are useless.
16512 2011-01-11 Richard Guenther <rguenther@suse.de>
16514 PR middle-end/45235
16515 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16516 volatile MEMs as MEM_READONLY_P.
16518 2011-01-11 Richard Guenther <rguenther@suse.de>
16520 PR tree-optimization/47239
16521 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16523 2011-01-11 Jeff Law <law@redhat.com>
16525 PR tree-optimization/47086
16526 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16527 IVs from statements that might throw.
16529 2011-01-10 Jan Hubicka <jh@suse.cz>
16532 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16534 2011-01-10 Jan Hubicka <jh@suse.cz>
16537 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16538 when correcting profile.
16540 2011-01-10 Jan Hubicka <jh@suse.cz>
16543 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16544 DECL_FINI_PRIORITY.
16545 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16546 Restore DECL_FINI_PRIORITY.
16548 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16550 * doc/gimple.texi: Fix quoting of multi-word return values in
16551 @deftypefn statements. Ensure presence of return value. Wrap
16552 overlong @deftypefn lines.
16553 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16554 descriptions of removed functions.
16555 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16556 of multi-word return value in @deftypefn statement.
16558 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16560 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16561 (Conditional Expressions, Logical Operators)
16562 (Statement and operand traversals): Do not indent smallexample
16563 code. Fix duplicate function argument in example.
16565 2011-01-10 Jeff Law <law@redhat.com>
16567 PR tree-optimization/47141
16568 * ipa-split.c (split_function): Handle case where we are
16569 returning a value and the return block has a virtual operand phi.
16571 2011-01-10 Jan Hubicka <jh@suse.cz>
16573 PR tree-optimization/47234
16574 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16575 (pass_feedback_split_functions): Declare.
16576 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16578 * ipa-split.c (gate_split_functions): Update comments; disable
16579 split-functions for profile_arc_flag and branch_probabilities.
16580 (gate_feedback_split_functions): New function.
16581 (execute_feedback_split_functions): New function.
16582 (pass_feedback_split_functions): New global var.
16584 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16587 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16588 calling gimple_call_set_cannot_inline.
16590 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16592 * config/darwin-sections.def: Remove unused section.
16594 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16597 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16599 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16602 * c-parser.c (c_parser_declaration_or_fndef): Improved
16605 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16607 * config/i386/winnt.c (i386_pe_start_function): Make sure
16608 to switch back to function's section.
16610 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16614 * plugin.c: Move include of dlfcn.h from here...
16615 * system.h: ... to here.
16617 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16619 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16621 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16622 two extra empty pages in PDF output.
16624 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16627 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16628 for error recovery purposes behave as if it was not specified so
16629 that the default type is usd.
16631 2011-01-07 Jan Hubicka <jh@suse.cz>
16633 PR tree-optmization/46469
16634 * ipa.c (function_and_variable_visibility): Clear needed flags on
16635 nodes with external decls; handle weakrefs merging correctly.
16637 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16639 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16642 2011-01-07 Jan Hubicka <jh@suse.cz>
16644 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16645 and no longer claim that gold is required for linker plugin.
16646 * configure: Regenerate.
16647 * gcc.c (PLUGIN_COND): New macro.
16648 (LINK_COMMAND_SPEC): Use it.
16649 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16650 * config.in (HAVE_LTO_PLUGIN): New.
16651 * configure.ac (--with-lto-plugin): New parameter; autodetect
16654 2011-01-07 Jan Hubicka <jh@suse.cz>
16656 PR tree-optimization/46367
16657 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16658 when we can update original.
16659 (cgraph_mark_inline_edge): Sanity check.
16660 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16662 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16664 * config/spu/spu.h (ASM_COMMENT_START): Define.
16666 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16669 * gcc.c (%>S): New.
16670 (SWITCH_KEEP_FOR_GCC): Likewise.
16671 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16672 (do_spec_1): Handle "%>".
16674 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16676 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16679 * config/i386/i386.c (ix86_delegitimize_address): If
16680 simplify_gen_subreg fails, return orig_x.
16683 * value-prof.c (gimple_stringop_fixed_value): Handle
16684 lhs of the call properly.
16686 2011-01-07 Jan Hubicka <jh@suse.cz>
16689 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16691 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16693 * target.def (function_switched_text_sections): New hook.
16694 * doc/tm.texi: Regenerated.
16695 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16696 * final.c (default_function_switched_text_sections): New.
16697 (final_scan_insn): Call function_switched_text_sections when a
16698 mid-function section change occurs.
16699 * output.h (default_function_switched_text_sections): Declare.
16700 * config/darwin-protos.h (darwin_function_switched_text_sections):
16702 * config/darwin.c (darwin_function_switched_text_sections): New.
16703 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16705 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16707 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16708 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16709 the secondary code fragment when outputting for DWARF == 2.
16711 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16713 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16714 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16716 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16717 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16719 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16722 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16723 when it is not empty.
16725 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16728 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16729 (case ${target}): Add btver1.
16730 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16731 -march=native recognize btver1 processors.
16732 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16733 btver1 def_and_undef
16734 * config/i386/i386.c (struct processor_costs btver1_cost): New
16736 (m_BTVER1): New definition.
16737 (m_AMD_MULTIPLE): Includes m_BTVER1.
16738 (initial_ix86_tune_features): Add btver1 tune.
16739 (processor_target_table): Add btver1 entry.
16740 (static const char *const cpu_names): Add btver1 entry.
16741 (software_prefetching_beneficial_p): Add btver1.
16742 (ix86_option_override_internal): Add btver1 instruction sets.
16743 (ix86_issue_rate): Add btver1.
16744 (ix86_adjust_cost): Add btver1.
16745 * config/i386/i386.h (TARGET_BTVER1): New definition.
16746 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16747 (enum processor_type): Add PROCESSOR_BTVER1.
16748 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16750 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16753 * config/i386/i386.c (legitimize_tls_address)
16754 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16755 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16756 (tls_initial_exec_64_sun): New pattern.
16758 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16760 * doc/invoke.texi (Overall Options): Improve wording and markup
16761 of the description of -wrapper.
16763 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16765 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16766 rdynamic, threads): New Driver options.
16768 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16771 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16772 if coming from .tdata.
16773 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16775 2011-01-06 Jan Hubicka <jh@suse.cz>
16778 * collect2.c (main): Do not enable LTOmode when plugin is active.
16780 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16783 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16784 --version output if supported.
16785 * configure: Regenerate.
16787 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16789 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16792 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16795 * c-convert.c (convert): When converting a complex expression
16796 other than COMPLEX_EXPR to a different complex type, ensure
16797 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16798 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16799 when converting COMPLEX_TYPE.
16801 2011-01-06 Ira Rosen <irar@il.ibm.com>
16803 PR tree-optimization/47139
16804 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16805 only the last reduction value is used outside the loop. Update
16808 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16810 * config/rtems.opt: New.
16811 * config.gcc (*-*-rtems*): Use rtems.opt.
16813 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16815 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16816 processors do not support 3DNow instructions.
16818 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16820 * config/spu/spu.c (spu_option_override): Set parameter
16821 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16823 2011-01-05 Jan Hubicka <jh@suse.cz>
16825 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16826 at the command line.
16828 2011-01-05 Martin Jambor <mjambor@suse.cz>
16831 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16832 deltas on streamed outgoing edges.
16833 (output_node_opt_summary): Output info for outgoing edges only when
16834 the node is in new parameter set.
16835 (output_cgraph_opt_summary): New parameter set, passed to the two
16836 aforementioned functions. Update its forward declaration and its
16839 2011-01-05 Tom Tromey <tromey@redhat.com>
16841 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16842 operator to c_finish_omp_atomic.
16843 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16844 (build_unary_op): Update.
16845 (build_modify_expr): Update.
16846 (build_asm_expr): Update.
16848 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16850 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16851 newly inserted insns.
16852 (pad_bb): Likewise.
16853 (spu_emit_branch_hint): Likewise.
16854 (insert_hbrp_for_ilb_runout): Likewise.
16855 (spu_machine_dependent_reorg): Call df_finish_pass after
16856 schedule_insns returns.
16858 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16860 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16862 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16864 PR tree-optimization/47005
16865 * tree-sra.c (struct access): Add 'non_addressable' bit.
16866 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16867 (decide_one_param_reduction): Return 0 if the parameter is passed by
16868 reference and one of the accesses in the group is non_addressable.
16870 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16872 PR tree-optimization/47056
16873 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16874 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16875 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16877 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16879 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16880 initializer. Skip view conversions from aggregate types.
16882 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16885 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16887 2011-01-04 Philipp Thomas <pth@suse.de>
16889 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16892 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16894 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16895 on empty epilogue sequences.
16897 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16899 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16900 non-static): New Driver options.
16902 2011-01-04 Jie Zhang <jie@codesourcery.com>
16905 * gcc.c (default_compilers[]): Set combinable field to 0
16906 for all assembly languages.
16908 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16910 * config/mips/loongson3a.md: New file.
16911 * config/mips/mips.md: Include loongson3a.md.
16912 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16915 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16917 PR middle-end/47017
16918 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16919 instead of convert_memory_address_addr_space on the base expression.
16921 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16923 * config/spu/spu.c (spu_option_override): Update error text
16924 for bad -march= / -mtune= values.
16926 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16928 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16929 if branch-hint optimization will be performed.
16931 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16933 PR tree-optimization/47148
16934 * ipa-split.c (split_function): Convert arguments to
16935 DECL_ARG_TYPE if possible.
16937 PR tree-optimization/47155
16938 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16939 when computing uns.
16941 PR rtl-optimization/47157
16942 * combine.c (try_combine): If undobuf.other_insn becomes
16943 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16944 and set *new_direct_jump_p too.
16946 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16948 PR tree-optimization/47021
16949 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16951 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16953 * gcc.c (process_command): Update copyright notice dates.
16954 * gcov.c (print_version): Likewise.
16955 * gcov-dump.c (print_version): Likewise.
16956 * mips-tfile.c (main): Likewise.
16957 * mips-tdump.c (main): Likewise.
16959 2011-01-03 Martin Jambor <mjambor@suse.cz>
16961 PR tree-optimization/46801
16962 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16963 aggregate fields start at byte boundary instead of the bit-field flag.
16965 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16968 * gcc.c (main): Revert revision 168407.
16970 2011-01-03 Martin Jambor <mjambor@suse.cz>
16972 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16974 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16976 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16977 vector optab to expand vector/scalar shift, update gimple to vector.
16979 2011-01-03 Martin Jambor <mjambor@suse.cz>
16981 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16984 2011-01-03 Martin Jambor <mjambor@suse.cz>
16986 PR tree-optimization/46984
16987 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16989 (cgraph_create_indirect_edge): Fixed line length.
16990 (cgraph_indirect_call_info): Declare.
16991 (cgraph_make_edge_direct) Update declaration.
16992 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16993 (cgraph_create_indirect_edge): Use it.
16994 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16996 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16997 the new thunk_delta representation.
16998 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17000 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17001 (ipa_read_indirect_edge_info): Likewise.
17002 * lto-cgraph.c (output_edge_opt_summary): New function.
17003 (output_node_opt_summary): Call it on all outgoing edges.
17004 (input_edge_opt_summary): New function.
17005 (input_node_opt_summary): Call it on all outgoing edges.
17007 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17010 * gcc.c (main): Don't check have_o when settting combine_inputs.
17012 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17014 * regrename.c: Add general comment describing the pass.
17015 (struct du_head): Remove 'length' field.
17016 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17017 (regrename_optimize): Do not sort chains. Rework comments, add others.
17018 Force renaming to the preferred class (if any) in the first pass and do
17019 not consider registers that belong to it in the second pass.
17020 (create_new_chain): Do not set 'length' field.
17021 (scan_rtx_reg): Likewise.
17023 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17025 PR tree-optimization/47140
17026 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17027 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17028 to bit_value_binop.
17030 PR rtl-optimization/47028
17031 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17032 parm_birth_insn instead of at the beginning of first bb.
17034 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17036 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17037 Remove the word "see" before "@pxref".
17038 * doc/rtl.texi: Remove the word "see" before "@pxref".
17040 2011-01-01 Jan Hubicka <jh@suse.cz>
17042 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17045 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17048 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17051 Copyright (C) 2011 Free Software Foundation, Inc.
17053 Copying and distribution of this file, with or without modification,
17054 are permitted in any medium without royalty provided the copyright
17055 notice and this notice are preserved.