1 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3 PR rtl-optimization/49145
4 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
6 2011-06-06 Jakub Jelinek <jakub@redhat.com>
9 * dwarf2out.c (native_encode_initializer): Decrement count in each
13 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
17 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
18 if stmt folded into nothing.
19 * tree-inline.c (fold_marked_statements): If a builtin at the
20 end of a bb folded into nothing, just update cgraph edges
22 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
23 to be NULL. Don't compute count and frequency if new_call is NULL.
25 2011-06-04 Diego Novillo <dnovillo@google.com>
27 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
29 (cgraphunit.o): Likewise.
30 * cgraphunit.c: Include lto-streamer.h
31 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
33 * lto-streamer-in.c (unpack_value_fields): Call
34 streamer_hooks.unpack_value_fields if set.
35 (lto_materialize_tree): For unhandled nodes, first try to
36 call lto_streamer_hooks.alloc_tree, if it exists.
37 (lto_input_ts_decl_common_tree_pointers): Move reading of
38 DECL_INITIAL to lto_streamer_read_tree.
39 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
40 (lto_streamer_read_tree): New.
41 (lto_reader_init): Rename from lto_init_reader.
42 Move initialization code to lto/lto.c.
43 * lto-streamer-out.c (pack_value_fields): Call
44 streamer_hooks.pack_value_fields if set.
45 (lto_output_tree_ref): For tree nodes that are not
46 normally indexable, call streamer_hooks.indexable_with_decls_p
48 (lto_output_ts_decl_common_tree_pointers): Move handling
49 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
50 lto_streamer_write_tree.
51 (lto_output_tree_header): Call streamer_hooks.is_streamable
52 instead of lto_is_streamable.
53 Call lto_streamer_hooks.output_tree_header if set.
54 (lto_write_tree): Call lto_streamer_hooks.write_tree if
56 (lto_streamer_write_tree): New.
57 (lto_output): Call lto_streamer_init directly.
58 (lto_writer_init): Remove.
59 * lto-streamer.c (streamer_hooks): New.
60 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
61 instead of lto_preload_common_nodes.
62 (lto_is_streamable): Move from lto-streamer.h
63 (lto_streamer_hooks_init): New.
64 (streamer_hooks): New.
65 (streamer_hooks_init): New.
66 * lto-streamer.h (struct output_block): Forward declare.
67 (struct lto_input_block): Likewise.
68 (struct data_in): Likewise.
69 (struct bitpack_d): Likewise.
70 (struct streamer_hooks): Declare.
71 (streamer_hooks): Declare.
72 (lto_streamer_hooks_init): Declare.
73 (lto_streamer_write_tree): Declare.
74 (lto_streamer_read_tree): Declare.
75 (streamer_hooks_init): Declare.
76 (lto_is_streamable): Move to lto-streamer.c
78 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
80 * longlong.h (smul_ppmm): The resulting register pair contains the
81 higher order word first.
83 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
85 PR tree-optimization/46728
86 * builtins.c (powi_table): Remove.
87 (powi_lookup_cost): Remove.
89 (expand_powi_1): Remove.
90 (expand_powi): Remove.
91 (expand_builtin_pow_root): Remove.
92 (expand_builtin_pow): Remove.
93 (expand_builtin_powi): Eliminate handling of constant exponent.
94 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
96 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
98 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
100 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
102 * dce.c (reset_unmarked_insns_debug_uses): New.
103 (delete_unmarked_insns): Skip debug insns.
104 (prescan_insns_for_dce): Likewise.
105 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
106 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
107 active reg can be found.
108 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
109 (convert_regs_1): Use it.
111 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
113 * tree-pretty-print.c (dump_function_header): Add flags.
114 Don't dump decl_uid with nouid.
115 * tree-pretty-print.h (dump_function_header): Adjust.
116 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
117 * passes.c (pass_init_dump_file): Pass dump_flags on.
118 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
120 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
123 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
125 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
127 PR tree-optimization/49243
128 * calls.c (setjmp_call_p): Also check if fndecl has the
129 returns_twice attribute.
131 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
133 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
136 2011-06-06 Richard Henderson <rth@redhat.com>
137 Georg-Johann Lay <avr@gjlay.de>
140 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
142 * config/avr/avr.md ("insv"): New insn expander.
143 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
144 "*insv.not.io", "*insv.reg"): New insns.
146 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
149 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
150 predicate to nonimmediate_operand from memory_operand for the
151 operand that is to be forced to memory by the expander. Lose
154 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
156 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
157 EH return when delayed branches are disabled.
159 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
161 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
162 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
164 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
165 Simplify MODE_V1DF and MODE_V2SF handling.
166 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
167 Simplify MODE_SF handling.
169 2011-06-04 Jan Hubicka <jh@suse.cz>
171 PR tree-optimization/48893
172 PR tree-optimization/49091
173 PR tree-optimization/49179
174 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
177 2011-06-04 Jan Hubicka <jh@suse.cz>
180 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
182 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
184 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
186 2011-06-04 Jakub Jelinek <jakub@redhat.com>
189 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
190 to be strictly smaller than 1 << shiftcount.
192 2011-06-04 Jan Hubicka <jh@suse.cz>
194 PR tree-optimize/48929
195 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
198 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
201 * calls.c (emit_call_1): Prefer the __builtin declaration of
204 2011-06-03 Diego Novillo <dnovillo@google.com>
206 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
207 (lto_input_tree_pointers): Likewise.
208 * lto-streamer-out.c (pack_value_fields): Likewise.
209 (lto_output_tree_pointers): Likewise.
210 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
211 and OPTIMIZATION_NODE.
213 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
215 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
216 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
217 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
218 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
219 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
220 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
221 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
222 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
223 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
224 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
225 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
226 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
227 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
228 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
229 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
230 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
231 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
232 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
233 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
234 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
235 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
236 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
237 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
238 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
239 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
240 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
241 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
242 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
243 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
244 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
245 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
246 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
247 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
248 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
249 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
250 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
251 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
252 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
253 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
254 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
255 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
256 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
257 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
258 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
259 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
260 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
261 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
262 * system.h (MD_UNWIND_SUPPORT): Poison.
263 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
264 * doc/tm.texi: Regenerate.
265 * unwind-dw2.c: Include md-unwind-support.h instead of
267 * config/ia64/unwind-ia64.c: Likewise.
268 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
270 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
272 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
274 2011-06-03 Richard Henderson <rth@redhat.com>
275 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
277 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
278 (sigill_hdlr): Correct insn, insn size.
279 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
281 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
283 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
285 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
286 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
287 * config/mips/t-iris: Remove.
288 * config/mips/t-irix6: New file.
289 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
291 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
293 * Makefile.in (LIB2ADDEHDEP): Remove.
294 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
295 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
296 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
297 * config/t-darwin (LIB2ADDEHDEP): Remove.
298 * config/t-freebsd (LIB2ADDEHDEP): Remove.
299 * config/t-linux (LIB2ADDEHDEP): Remove.
301 2011-06-03 Diego Novillo <dnovillo@google.com>
303 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
304 (lto_register_var_decl_in_symtab): Likewise.
305 (lto_register_function_decl_in_symtab): Likewise.
306 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
307 logic to uniquify_nodes.
309 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
311 * config/alpha/t-osf5: Remove.
312 * config/alpha/t-osf-pthread: Remove.
313 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
314 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
316 2011-06-03 Julian Brown <julian@codesourcery.com>
318 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
319 (strongarm1110): Use strongarm tuning.
320 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
321 * config/arm/arm.c (arm_strongarm_tune): New.
322 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
323 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
324 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
325 setting, using previous defaults or 1 for Cortex-A5.
326 (arm_option_override): Set max_insns_skipped from current tuning.
328 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
330 * doc/install.texi (Options specification): Document --with-specs.
332 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
334 * config/arm/neon.md (orndi3_neon): Actually split it.
336 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
338 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
339 * var-tracking.c (reverse_op): Limite recurse depth to 5.
341 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
344 * target.def (delay_sched2, delay_vartrack): New.
345 * doc/tm.texi.in: Update.
346 * doc/tm.texi: Rebuild.
347 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
348 * var-tracking.c (gate_handle_var_tracking): Likewise.
349 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
350 (bfin_flag_var_tracking): Drop.
351 (output_file_start): Don't save and override flag_var_tracking.
352 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
353 (bfin_reorg): Test original variables.
354 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
355 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
356 (ia64_flag_var_tracking): Drop.
357 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
358 (ia64_file_start): Don't save and override flag_var_tracking.
359 (ia64_override_options_after_change): Ditto
360 flag_schedule_insns_after_reload.
361 (ia64_reorg): Test original variables.
362 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
363 (picochip_flag_var_tracking): Drop.
364 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
365 (picochip_option_override): Don't save and override
366 flag_schedule_insns_after_reload.
367 (picochip_asm_file_start): Ditto flag_var_tracking.
368 (picochip_reorg): Test original variables.
369 * config/spu/spu.c (spu_flag_var_tracking): Drop.
370 (TARGET_DELAY_VARTRACK): Define.
371 (spu_var_tracking): New.
372 (spu_machine_dependent_reorg): Call it.
373 (asm_file_start): Don't save and override flag_var_tracking.
375 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
378 * config/sh/predicates.md (general_movsrc_operand): Return 0
379 for memory and memory subreg of which address is an invalid
380 indexed address for QI and HImode.
381 (general_movdst_operand): Likewise.
383 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
385 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
386 edges only, when there is a non-local label in the function.
387 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
389 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
391 * config/i386/constraints.md (Y3): New register constraint.
392 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
393 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
394 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
395 *sse2_interleave_lowv2df.
397 2011-06-02 Julian Brown <julian@codesourcery.com>
399 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
400 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
401 (arm_cortex_a5_tune): New.
403 2011-06-02 Julian Brown <julian@codesourcery.com>
405 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
406 * config/arm/arm.c (arm_default_branch_cost): New.
407 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
408 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
409 (arm_fa726_tune): Set branch_cost field using
410 arm_default_branch_cost.
411 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
412 current_tune structure.
413 * dojump.c (tm_p.h): Include file.
415 2011-06-02 Julian Brown <julian@codesourcery.com>
417 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
419 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
420 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
421 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
423 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
424 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
425 (arm_fa726te_tune): Add prefer_constant_pool setting.
426 (arm_v6t2_tune, arm_cortex_tune): New.
427 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
428 prefer_constant_pool setting.
430 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
432 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
434 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
435 (*movdf_internal) <case 6,7,8>: Ditto.
437 * config/i386/constraints.md (Y4): New register constraint.
438 * config/i386/sse.md (vec_set<mode>_0): Merge with
439 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
440 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
441 *vec_extractv2di_1_sse.
442 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
443 and *vec_concatv2di_rex64_sse.
445 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
448 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
449 of cgraph_local_info for null before attempting to use it.
451 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
453 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
454 (current_function_dynamic_alloc_count): Delete.
455 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
456 (expand_builtin_nonlocal_goto): Remove obsolete comment.
457 (expand_builtin_update_setjmp_buf): Remove dead code.
458 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
459 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
461 * function.c (instantiate_virtual_regs): Likewise.
462 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
463 for a block with a single abnormal incoming edge.
464 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
465 (SETJMP_VIA_SAVE_AREA): Delete.
466 * config/sparc/sparc-protos.h (load_got_register): Declare.
467 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
468 (load_got_register): Make global.
469 (sparc_frame_pointer_required): Add 'static'.
470 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
471 (sparc_builtin_setjmp_frame_value): New function.
472 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
473 (save_stack_nonlocal): New expander.
474 (restore_stack_nonlocal): Likewise.
475 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
476 (nonlocal_goto_internal): New insn.
477 (goto_handler_and_restore): Delete.
478 (builtin_setjmp_setup): Likewise.
479 (do_builtin_setjmp_setup): Likewise.
481 (builtin_setjmp_receiver): New expander.
483 2011-06-01 David Li <davidxl@google.com>
486 * tree-pretty-print.c (dump_function_header): Format cleanup.
488 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
491 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
492 needed when original operands are used for msw_skip comparison.
494 2011-06-01 Jakub Jelinek <jakub@redhat.com>
497 * var-tracking.c (add_uses, add_stores): Don't call
498 cselib_subst_to_values on ENTRY_VALUE.
500 2011-06-01 Diego Novillo <dnovillo@google.com>
502 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
503 output_record_start with LTO_null instead of output_zero.
504 (lto_output_ts_binfo_tree_pointers): Likewise.
505 (lto_output_tree): Likewise.
506 (output_eh_try_list): Likewise.
507 (output_eh_region): Likewise.
508 (output_eh_lp): Likewise.
509 (output_eh_regions): Likewise.
510 (output_bb): Likewise.
511 (output_function): Likewise.
512 (output_unreferenced_globals): Likewise.
513 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
514 instead of NUM_TREE_CODES.
515 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
516 (lto_output_int_in_range): Change << to >> when shifting VAL.
518 2011-06-01 Diego Novillo <dnovillo@google.com>
520 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
521 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
523 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
526 * optabs.h (valid_multiword_target_p): Declare.
527 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
528 doing multi-word operations.
529 * optabs.c (expand_binop): Likewise.
530 (expand_doubleword_bswap): Likewise.
531 (expand_absneg_bit): Likewise.
532 (expand_unop): Likewise.
533 (expand_copysign_bit): Likewise.
534 (multiword_target_p): New function.
536 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
538 PR rtl-optimization/48830
539 PR rtl-optimization/48808
540 PR rtl-optimization/48792
541 * reload.c (push_reload): Check contains_reg_of_mode.
542 * reload1.c (strip_paradoxical_subreg): New function.
543 (gen_reload_chain_without_interm_reg_p): Use it to handle
545 (emit_output_reload_insns, gen_reload): Likewise.
547 2011-06-01 David Li <davidxl@google.com>
549 * predict.c : Change pass name
552 * tree-profile.c: Ditto.
555 2011-06-01 David Li <davidxl@google.com>
557 * tree-pretty-print.c (dump_function_header): New function.
558 * final.c (rest_of_clean_state): Use header dumper.
559 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
560 * passes.c (pass_init_dump_file): Use header dumper.
562 2011-06-01 Jakub Jelinek <jakub@redhat.com>
564 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
565 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
566 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
568 (mem_loc_descriptor): Use them.
570 * var-tracking.c (create_entry_value): New function.
571 (vt_add_function_parameter): Use it.
573 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
575 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
576 Include <signal.h>, <ucontext.h>.
577 (sigill_caught): Define.
578 (sigill_hdlr): New function.
579 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
580 insns can be executed.
581 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
582 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
584 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
586 * config/t-slibgcc-darwin: Move to ...
587 * config/t-slibgcc-dummy: ... this. Clarify comments.
588 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
589 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
590 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
591 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
592 Remove i386/t-crtstuff from tmake_file.
593 (i[34567]86-*-solaris2*): Remove t-svr4,
594 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
596 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
597 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
598 sparc/t-crtfm from tmake_file.
599 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
600 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
602 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
603 * config/i386/t-nwld (SHLIB_LINK): Remove.
604 * config/i386/t-rtems-i386: Rename to ...
605 * config/i386/t-rtems: ... this.
606 ($(T)crti.o, $(T)crtn.o): Remove.
607 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
608 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
609 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
610 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
611 EXTRA_MULTILIB_PARTS): Remove.
612 * config/sparc/t-sol2-64: Likewise.
613 * config/sparc/t-sol2: Remove.
614 * config/sparc/t-crtin: Remove.
615 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
616 * config/i386/gmon-sol2.c: Remove.
617 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
618 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
619 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
620 * config/i386/sol2-gc1.asm: Remove.
621 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
622 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
623 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
624 * config/t-slibgcc-sld: Remove.
626 2011-06-01 Jakub Jelinek <jakub@redhat.com>
628 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
629 base_type_for_mode with op_mode instead of mode.
631 2011-06-01 Paul Brook <paul@cpodesourcery.com>
633 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
635 * config/arm/arm-tune.md: Regenerate.
636 * config/arm/arm-tables.opt: Regenerate.
637 * config/arm/arm.c (FL_DIV): Rename...
638 (FL_THUMB_DIV): ... to this.
639 (FL_ARM_DIV): Define.
640 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
641 (arm_arch_hwdiv): Remove.
642 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
643 (arm_issue_rate): Add cortexr5.
644 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
645 __ARM_ARCH_EXT_IDIV__.
646 (TARGET_IDIV): Define.
647 (arm_arch_hwdiv): Remove.
648 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
649 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
650 (divsi3, udivsi3): New patterns.
651 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
652 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
654 2011-06-01 Martin Jambor <mjambor@suse.cz>
656 * ipa-utils.c (ipa_dfs_info): New field scc_no.
657 * ipa-utils.c (searchc): Set scc_no.
659 2011-06-01 Martin Jambor <mjambor@suse.cz>
661 * ipa-utils.c (searchc_env): New field allow_overwritable.
662 (searchc): do not ignore edges to overwritable nodes if indicated
663 by env->allow_overwritable.
664 (ipa_reduced_postorder): Set env.allow_overwritable.
666 2011-06-01 Richard Guenther <rguenther@suse.de>
668 * tree.c (free_lang_data): Do not reset boolean_type_node nor
670 * lto-streamer.c (lto_record_common_node): Take node pointer,
671 do not register types.
672 (lto_preload_common_nodes): Explicitly skip preloading nodes
673 that differ between frontends.
675 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
677 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
680 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
682 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
683 parameter value for dump. Dump cost on outermost call only.
684 (rs6000_memory_move_cost): Dump cost on outermost call only.
686 2011-05-31 Jakub Jelinek <jakub@redhat.com>
688 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
689 DW_OP_GNU_convert ops.
691 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
692 cselib_preserve_constants.
693 (cselib_lookup_1): If cselib_preserve_constants,
694 a new VALUE is being created for REG and there is a VALUE for the
695 same register in wider mode, add another loc with lowpart SUBREG of
697 (cselib_subst_to_values): Handle ENTRY_VALUE.
698 * var-tracking.c (replace_expr_with_values): Return NULL for
700 * dwarf2out.c (convert_descriptor_to_signed): New function.
701 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
702 instead of two shifts.
703 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
704 the right mode if needed.
705 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
706 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
707 convert_descriptor_to_signed.
708 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
709 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
712 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
714 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
716 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
717 of X87MODEI12 and SWI48x instead of SSEMODEI24.
718 (SWI248x): New mode iterator, rename from X87MODEI.
719 (X87MODEI): Remove mode iterator.
723 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
725 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
726 * doc/invoke.texi: Document max-vartrack-expr-depth.
727 * var-tracking.c (EXPR_DEPTH): New.
728 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
730 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
732 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
733 * config/i386/sse.md: Add n to negated FMA pattern names.
735 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
737 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
739 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
741 * gengtype-state.c (read_state_params_structs): Initialize previous.
743 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
745 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
746 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
748 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
750 * config/i386/i386.md (*movtf_internal): Avoid allocating general
751 registers. Penalize F*r->o alternative to prevent partial memory
752 stalls. Slightly penalize *roF->*r alternative. Generate SSE
753 CONST_DOUBLE immediates when optimizing function for size. Do not move
754 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
755 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
756 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
757 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
759 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
761 (fp_register_operand splitters): Use fp_register_operand
762 constraint. Do not use FP_REG_P in insn condition.
763 (any_fp_register_operand splitters): Use any_fp_register_operand
764 constraint. Do not use ANY_FP_REG_P in insn condition.
766 2011-05-31 Jan Hubicka <jh@suse.cz>
768 * cgraph.h (cgraph_inline_failed_t): Give enum a name
769 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
770 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
771 (lto_output_edge): Use output_enum and var_len_unsigned.
772 (lto_output_varpool_node): Likewise.
773 (input_overwrite_node): Do not take resolution parameter;
774 extract it from a bitpack.
775 (input_node): Do not read resolution; use input_enum and
777 (input_varpool_node): Likewise.
778 (input_edge): Likewise.
779 (input_cgraph_1): Likewise.
781 2011-05-31 Richard Guenther <rguenther@suse.de>
783 * gimple.c (gimple_register_canonical_type): Do not register
784 any types via gimple_register_type.
786 2011-05-31 Jan Hubicka <jh@suse.cz>
788 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
791 2011-05-31 Jakub Jelinek <jakub@redhat.com>
793 PR rtl-optimization/49235
794 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
795 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
797 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
799 PR tree-optimization/49093
800 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
803 2011-05-31 Dodji Seketeli <dodji@redhat.com>
806 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
807 for concrete functions containing the code of cloned functions.
809 2011-05-31 Richard Guenther <rguenther@suse.de>
811 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
813 (forward_propagate_into_comparison_1): ... this.
814 (forward_propagate_comparison): Rename to ...
815 (forward_propagate_into_comparison): ... this. Split out
816 real forward propagation code to ...
817 (forward_propagate_comparison): ... this.
818 (forward_propagate_into_gimple_cond): Remove looping.
819 (forward_propagate_into_cond): Likewise.
820 (simplify_not_neg_expr): Return whether we have done something.
821 (simplify_gimple_switch): Likewise.
822 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
823 (ssa_forward_propagate_and_combine): ... this. Re-structure
824 to do a forward forward-propagation walk on BBs and a backward
825 stmt combining walk on BBs. Consistently re-scan changed statements.
826 (pass_forwprop): Adjust.
828 2011-05-30 Ian Lance Taylor <iant@google.com>
830 * godump.c (go_format_type): Correct length of name added to
831 obstack for anonymous field.
833 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
836 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
837 part of the second operand is 0.
839 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
841 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
842 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
843 to memory for !TARGET_MEMORY_MISMATCH_STALL.
844 (*movdf_internal_rex64): Do not penalize F->r alternative.
845 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
846 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
847 when optimizing function for size. Do not move CONST_DOUBLEs
848 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
849 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
850 SUBREGs. Do not check for MEM_P operands in the insn condition,
851 check for ANY_FP_REGNO_P instead.
852 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
853 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
855 * config/i386/i386.c (ix86_option_override_internal): Do not
856 set TARGET_INTEGER_DFMODE_MOVES here.
858 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
861 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
863 2011-05-30 Jakub Jelinek <jakub@redhat.com>
865 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
866 DW_TAG_rvalue_reference_type even for
867 -gdwarf-4 -fno-debug-types-section.
869 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
871 PR tree-optimization/46728
872 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
873 (build_and_insert_binop): New.
874 (gimple_expand_builtin_pow): Reorder args for
875 build_and_insert_call; use build_and_insert_binop; add more
876 optimizations for fractional exponents.
878 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
883 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
885 * tree.h (struct tree_identifier): Inherit from tree_typed, not
887 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
888 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
889 TS_BASE instead of TS_COMMON.
890 * varasm.c (assemble_name): Remove assert.
892 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
894 * config.gcc: Keep obselete list sorted.
896 2011-05-30 Jakub Jelinek <jakub@redhat.com>
897 Eric Botcazou <ebotcazou@adacore.com>
899 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
900 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
901 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
902 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
903 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
905 2011-05-30 Richard Guenther <rguenther@suse.de>
907 * gimple.c (gimple_types_compatible_p_1): Compare record
908 and union type members properly.
910 2011-05-30 Richard Guenther <rguenther@suse.de>
912 PR tree-optimization/49210
913 * ipa-split.c (split_function): Care for the case where the call
914 result is not trivially convertible to the result holding variable.
916 2011-05-30 Richard Guenther <rguenther@suse.de>
918 PR tree-optimization/49218
919 * tree-vrp.c (adjust_range_with_scev): Properly check whether
922 2011-05-30 Richard Guenther <rguenther@suse.de>
924 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
925 New function split out from ...
926 (forward_propagate_into_gimple_cond): ... here. Adjust.
927 (forward_propagate_into_cond): Likewise.
928 (forward_propagate_comparison): Also propagate into
929 comparisons on assignment RHS. Change return value to
930 behave similar to forward_propagate_into_cond.
931 (tree_ssa_forward_propagate_single_use_vars): Handle
932 strict-overflow warnings properly for forward_propagate_comparison.
934 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
936 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
938 * configure: Regenerate.
940 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
942 PR tree-optimization/49199
943 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
944 non-reduction operands are either defined in the loop or by induction.
946 2011-05-29 Xinliang David Li <davidxl@google.com>
948 * opts-global.c (handle_common_deferred_options): Handle new options.
949 * passes.c (register_one_dump_file): Call register_pass_name.
950 (execute_one_pass): Check explicit enable/disable flag.
951 (passr_hash): New function.
953 (register_pass_name): Ditto.
954 (get_pass_by_name): Ditto.
957 (enable_pass): Ditto.
958 (disable_pass): Ditto.
959 (is_pass_explicitly_enabled_or_disabled): Ditto.
961 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
963 * config/i386/i386.md (*movoi_internal_avx): Use
964 standard_sse_constant_opcode for alternative 0.
965 (*movti_internal_sse): Ditto.
966 (*movti_internal_rex64): Use standard_sse_constant_opcode for
968 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
970 (*movsi_internal): Ditto.
971 (*movdi_internal): Ditto. Add ssecvt type moves.
973 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
976 * rtlanal.c (simplify_subreg_regno): Adjust comment.
978 2011-05-29 Jakub Jelinek <jakub@redhat.com>
980 PR rtl-optimization/49095
981 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
982 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
984 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
987 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
988 recurse_p argument. Only follow register copies if it is set,
989 and prevent mips_find_pic_call_symbol from recursing.
990 (mips_find_pic_call_symbol): Add a recurse_p argument.
991 Pass it to mips_pic_call_symbol_from_set.
992 (mips_annotate_pic_calls): Update accordingly.
994 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
996 * emit-rtl.c (try_split): Use a loop to search for
997 NOTE_INSN_CALL_ARG_LOCATIONs.
999 2011-05-29 Richard Guenther <rguenther@suse.de>
1001 PR tree-optimization/49217
1002 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1004 2011-05-28 Jan Hubicka <jh@suse.cz>
1006 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1008 (string_slot_free): Remove
1009 (create_output_block): Initialize obstack.
1010 (destroy_output_block): Free obstack.
1011 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1012 the string unless it needs to be added into the hash.
1013 (lto_output_string_with_length): Add persistent attribute;
1014 handle NULL strings.
1015 (lto_output_string): Add PERSISTENT parameter.
1016 (output_string_cst, output_identifier): Simplify.
1017 (lto_output_location_bitpack): Update.
1018 (lto_output_builtin_tree): Update.
1019 * lto-streamer.h (struct output_block): Add obstack.
1020 (lto_output_string, lto_output_string_with_length): Remove
1021 declarations; functions are static now.
1023 2011-05-28 Jan Hubicka <jh@suse.cz>
1025 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1026 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1027 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1028 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1029 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1030 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1031 unpack_ts_decl_with_vis_value_fields,
1032 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1033 lto_get_builtin_tree): Use enum and variable length i/o.
1034 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1035 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1037 (bp_pack_enum, bp_unpack_enum): New macros.
1039 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1041 * genrecog.c: Remove redundant forward declarations.
1043 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1045 * config.gcc: Deprecate mips*-*-openbsd*.
1047 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1050 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1053 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1056 * gengtype.c (vec_prefix_type): New function.
1057 (note_def_vec): Use vec_prefix_type and change the length
1058 attribute to be based on the prefix.
1059 * vec.c: Include coretypes.h before vec.h.
1060 (struct vec_prefix): Remove.
1061 (vec_gc_p_reserve): Change the offsetof to sizeof.
1062 (vec_gc_p_reserve_exact): Likewise.
1063 (vec_heap_p_reserve): Likewise.
1064 (vec_heap_p_reserve_exact): Likewise.
1065 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1066 (vec_stack_p_reserve): Change the offsetof to sizeof.
1067 (vec_stack_p_reserve_exact): Likewise.
1068 * vec.h (struct vec_prefix): New struct definition.
1069 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1070 (VEC_T_GTY(T,B)): Likewise.
1071 (DEF_VEC_FUNC_P(T)): Use prefix field.
1072 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1073 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1075 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1077 PR tree-optimization/46728
1078 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1079 (powi_as_mults): Add gimple_set_location.
1080 (build_and_insert_call): New.
1081 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1082 0.5, 0.25, 0.75, 1./3., or 1./6.
1084 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1086 * doc/contrib.texi: Update copyright years.
1087 (Contributors): Add Zdenek Sojka.
1089 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1091 * c-decl.c (c_push_function_context): Copy the current statement
1093 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1094 (finish_struct): Call building_stmt_list_p instead of checking
1096 * c-parser.c (c_parser_postfix_expression): Likewise.
1097 * c-typeck.c (c_end_compound_stmt): Likewise.
1098 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1099 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1100 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1101 (free_stmt_list): Likewise.
1102 * tree.h (struct tree_statement_list): Include typed_tree instead
1104 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1105 as TS_TYPED instead of TS_COMMON.
1107 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1108 Uros Bizjak <ubizjak@gmail.com>
1110 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1111 (HAVE_AS_IX86_TLSGDPTL): Define.
1112 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1113 (HAVE_AS_IX86_TLSLDMPLT): Define.
1114 * configure: Regenerate.
1115 * config.in: Regenerate.
1116 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1117 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1118 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1119 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1120 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1122 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1124 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1126 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1128 (INSN_COND, INSN_REVERSE_COND): New macros.
1129 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1131 (sched_get_condition_with_rev): Cache the results, and look them up
1133 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1134 are clobbered by the current insn.
1135 * target.def (exposed_pipline): New sched data hook.
1136 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1137 * doc/tm.texi: Regenerate.
1139 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1141 PR tree-optimization/49170
1142 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1145 2011-05-27 Richard Guenther <rguenther@suse.de>
1148 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1151 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1153 * haifa-sched.c (sched_scan_info): Remove.
1154 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1156 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1158 (sched_scan): Remove.
1159 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1160 static. All callers changed.
1161 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1162 static. All callers changed.
1163 (sched_init_luids): Remove all arguments except the first. All
1164 callers changed. Don't use sched_scan.
1165 (haifa_init_h_i_d): Likewise.
1166 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1167 manually rather than using sched_init_luids. Likewise with
1168 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1169 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1170 rather than sched_init_luids with NULL args.
1171 * sel-sched-ir.c (new_insns): Remove variable.
1172 (sched_scan): New static function, previously in haifa-sched.c. Remove
1173 all arguments but the first two; all callers changed.
1174 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1175 rather than sched_init_luids.
1176 (sel_init_bbs): Remove second argument. All callers changed.
1177 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1178 with NULL arguments.
1179 (create_insn_rtx_from_pattern): Likewise.
1180 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1181 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1182 (sched_init_insn_luid, sched_extend_luids): Declare.
1183 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1186 2011-05-27 Richard Guenther <rguenther@suse.de>
1189 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1190 A CMP B ? (T) true : (T) false for non-integral types T again.
1192 2011-05-27 Jan Hubicka <jh@suse.cz>
1194 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1195 so 0 means NULL string.
1196 (lto_output_string_with_length): ... here.
1197 (lto_output_string, output_string_cst, output_identifier): Update
1198 handling of NULL strings.
1199 (lto_output_location_bitpack): New function.
1200 (lto_output_location): Use it.
1201 (lto_output_tree_ref): Use output_record_start.
1202 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1204 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1206 (input_string_internal): ... here;
1207 (input_string_cst, input_identifier, lto_input_string): Update handling
1209 (lto_input_location_bitpack): New function
1210 (lto_input_location): Use it.
1211 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1213 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1214 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1215 (bp_pack_value): Sanity check the value range.
1216 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1218 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1221 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1223 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1224 call_arg_location instructions down the floor.
1226 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1228 PR rtl-optimization/49154
1229 * ira.c (setup_pressure_classes): Process class without sublcasses
1230 as a candidate for pressure classes.
1232 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1234 PR rtl-optimization/48575
1235 * genrecog.c (position_type): New enum.
1236 (position): New structure.
1237 (decision): Use position structure instead of a string.
1238 (root_pos, peep2_insn_pos_list): New variables.
1239 (next_position, compare_positions): New functions.
1240 (new_decision): Use position structures instead of strings.
1241 (maybe_both_true): Likewise.
1242 (change_state): Likewise.
1243 (write_tree): Likewise.
1244 (make_insn_sequence): Likewise.
1246 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1248 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1249 TS_BASE instead of TS_COMMON.
1250 (find_decls_types_r): Check for TS_TYPED structure before looking at
1252 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1254 (BLOCK_CHAIN): Use new chain field.
1256 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1258 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1259 moves expensive on Power7 also.
1261 2011-05-26 Richard Guenther <rguenther@suse.de>
1263 * fold-const.c (fold_unary_loc): Remove bogus code.
1265 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1267 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1269 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1270 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1271 TS_BASE instead of TS_COMMON.
1272 * varasm.c (assemble_name): Remove assert.
1274 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1276 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1278 * libgcc-std.ver: Delete file.
1280 2011-05-26 Richard Guenther <rguenther@suse.de>
1282 PR tree-optimization/48702
1283 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1284 only when we know the base address is within bounds.
1285 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1286 assume the base address of TARGET_MEM_REFs is in bounds.
1288 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1291 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1292 declaration in TARGET_SOLARIS.
1294 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1296 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1297 The instruction is then expanded explicitly.
1298 (supported_compare): Callable instruction.
1299 (compare): Likewise.
1301 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1304 * gimplify.c (shortcut_cond_r): Don't special case
1305 COND_EXPRs if they have void type on one of their arms.
1307 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1309 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1310 to reduce duplication, and to achieve a slightly more logical order
1313 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1315 PR tree-optimization/49161
1316 * tree-vrp.c (struct case_info): New type.
1317 (compare_case_labels): Sort case_info structs instead of
1318 trees, and not primarily by CASE_LABEL uids but by
1319 label_for_block indexes.
1320 (find_switch_asserts): Put case labels into struct case_info
1321 array instead of TREE_VEC, adjust sorting, compare label_for_block
1322 values instead of CASE_LABELs.
1324 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1326 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1327 ("orndi3_neon"): Likewise.
1328 ("bic<mode>3_neon"): Likewise.
1330 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1332 PR tree-optimization/49038
1333 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1334 Ensure at least one epilogue iteration if required by data
1336 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1337 to mark loops that require peeling for gaps.
1338 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1339 (vect_get_known_peeling_cost): Take peeling for gaps into
1341 (vect_transform_loop): Generate epilogue if required by data
1343 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1344 loop as requiring an epilogue if there are gaps in the end of
1347 2011-05-25 Ian Lance Taylor <iant@google.com>
1349 * godump.c (go_format_type): Output the first field with a usable
1352 2011-05-25 Ian Lance Taylor <iant@google.com>
1354 * godump.c (go_format_type): Check for invalid type names, pointer
1355 target types, and struct field types.
1357 2011-05-25 Jason Merrill <jason@redhat.com>
1359 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1361 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1363 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1365 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1367 * config/i386/i386.md (*movqi_extv_1)): Put back
1368 "register_operand" check in "type" calculation.
1369 (*movqi_extzv_2): Likewise.
1371 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1373 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1375 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1378 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1379 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1380 __divxc3, __divtc3): Wrap definitions in #ifndef.
1382 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1385 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1386 "register_operand" check and replace q_regs_operand with
1387 QIreg_operand in "type" calculation.
1388 (*movqi_extv_1): Likewise.
1389 (*movqi_extzv_2_rex64): Likewise.
1390 (*movqi_extzv_2): Likewise.
1392 * config/i386/predicates.md (QIreg_operand): New.
1394 2011-05-25 Richard Guenther <rguenther@suse.de>
1396 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1397 type-based offset disambiguation, streamline MEM_REF and
1398 TARGET_MEM_REF handling.
1400 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1402 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1403 (bdesc_special_args): Add pause intrinsic.
1405 * config/i386/i386.md (UNSPEC_PAUSE): New.
1408 * config/i386/ia32intrin.h (__pause): Likewise.
1410 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1413 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1415 PR tree-optimization/46728
1416 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1417 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1419 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1421 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1422 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1423 instead of TS_COMMON.
1425 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1427 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1428 LIBGCC2_GNU_PREFIX is defined.
1430 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1431 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1432 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1433 __clz_tab): Define using __N.
1434 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1435 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1436 * target.def (libfunc_gnu_prefix): New hook.
1437 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1438 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1439 * doc/tm.texi: Regenerate.
1440 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1441 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1443 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1444 (init_optabs): Likewise for the bswap libfuncs.
1445 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1447 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1448 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1449 * libgcc-std.ver: Remove.
1450 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1451 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1453 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1454 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1455 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1456 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1457 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1458 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1459 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1460 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1461 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1462 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1464 2011-05-25 Jan Hubicka <jh@suse.cz>
1466 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1467 (lto_output_tree): Use output_record_start.
1468 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1469 (lto_get_pickled_tree): Use input_record_start.
1470 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1471 (lto_value_range_error): New function.
1472 * lto-streamer.h (lto_value_range_error): Declare.
1473 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1474 (lto_output_enum, lto_input_enum): New macros.
1476 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1478 * common.opt (flag_stack_usage_info): New variable.
1479 (-Wstack-usage): New option.
1480 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1481 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1482 <OPT_fstack_usage>: Likewise.
1483 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1484 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1485 of flag_stack_usage.
1486 (emit_library_call_value_1): Likewise.
1487 * explow.c (allocate_dynamic_stack_space): Likewise.
1488 * function.c (instantiate_virtual_regs ): Likewise.
1489 (prepare_function_start): Likewise.
1490 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1491 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1492 * config/arm/arm.c (arm_expand_prologue): Likewise.
1493 (thumb1_expand_prologue): Likewise.
1494 * config/avr/avr.c (expand_prologue): Likewise.
1495 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1496 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1497 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1498 * config/mips/mips.c (mips_expand_prologue): Likewise.
1499 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1500 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1501 * config/s390/s390.c (s390_emit_prologue): Likewise.
1502 * config/sh/sh.c (sh_expand_prologue): Likewise.
1503 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1504 * config/spu/spu.c (spu_expand_prologue): Likewise.
1506 2011-05-25 Richard Guenther <rguenther@suse.de>
1508 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1509 (gimple_canonical_types_compatible_p): Likewise.
1511 2011-05-25 Jan Hubicka <jh@suse.cz>
1514 * ipa.c (function_and_variable_visibility): Only add to same
1515 comdat group list if DECL_ONE_ONLY.
1517 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1519 PR rtl-optimization/49014
1520 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1522 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1525 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1527 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1529 PR rtl-optimization/48757
1530 * ira-build.c (loop_with_eh_edge_p): Rename to
1531 loop_with_complex_edge_p, check edges on complexity, make function
1533 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1536 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1538 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1539 force flag_ira_share_save_slots to 0.
1541 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1543 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1544 (vt_initialize): Set PROLOGUE_BB unconditionally.
1545 Add block comment about CFA_BASE_RTX machinery.
1546 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1547 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1549 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1552 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1553 parsing of syntax error in ObjC instance variable lists. In
1554 particular, avoid an infinite loop if there is a stray ']'.
1555 Updated error message.
1557 2011-05-24 Ian Lance Taylor <iant@google.com>
1559 * godump.c (go_define): Don't accept a string immediately after
1562 2011-05-24 Ian Lance Taylor <iant@google.com>
1564 * godump.c (struct godump_container): Add invalid_hash field.
1565 (go_format_type): Return false if type is found in invalid_hash.
1566 (go_output_typedef): Add invalid type to invalid_hash.
1567 (go_finish): Create and delete invalid_hash.
1569 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1571 PR tree-optimization/46728
1572 * tree-ssa-math-opts.c (powi_table): New.
1573 (powi_lookup_cost): New.
1575 (powi_as_mults_1): New.
1576 (powi_as_mults): New.
1577 (gimple_expand_builtin_powi): New.
1578 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1579 (gate_cse_sincos): Remove sincos/cexp restriction.
1581 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1584 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1586 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1587 * mips-tdump.c: Likewise.
1589 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1592 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1593 add -mno-XXX. Handle FMA.
1595 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1597 PR rtl-optimization/48633
1598 * ira-build.c (loop_with_eh_edge_p): New function.
1599 (mark_loops_for_removal): Use it.
1601 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1603 PR rtl-optimization/48971
1604 * ira.c (setup_pressure_classes): Don't check register move cost
1605 for classes with one registers. Don't add pressure class if there
1606 is a pressure class with the same available hard registers.
1607 Check contains_reg_of_mode. Fix a typo in collecting
1608 temp_hard_regset. Ignore hard registers not belonging to a class.
1610 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1613 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1615 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1616 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1618 PR gcov-profile/48845
1619 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1621 2011-05-24 Richard Guenther <rguenther@suse.de>
1623 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1624 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1625 (gimple_types_compatible_p_1): Adjust.
1626 (iterative_hash_canonical_type): Do not bother about complete vs.
1628 (gimple_canonical_types_compatible_p): Likewise.
1630 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1632 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1634 2011-05-24 Richard Guenther <rguenther@suse.de>
1637 * gimple.c (gimple_register_canonical_type): Revert
1639 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1640 does not for a tree for the case where it matters. Cache
1641 pointer-type alias-sets.
1643 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1645 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1646 (OBJS): Remove options.o, opts-common.o and prefix.o.
1647 (OBJS-libcommon-target): New.
1648 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1649 (BACKEND): Include libcommon-target.a.
1650 (MOSTLYCLEANFILES): Include libcommon-target.a.
1651 (libcommon-target.a): New.
1652 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1655 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1657 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1658 parts of output shared with the driver.
1659 * optc-gen.awk: Don't generate parts of output not shared with the
1661 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1662 * doc/options.texi (SourcerInclude): Mention options-save.c.
1663 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1664 (OBJS): Add options-save.o.
1665 (options-save.c, options-save.o): New.
1666 (options.o): Update dependencies.
1667 (gcc-options.o): Remove.
1668 (mostlyclean): Remove options-save.c.
1670 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1673 * dbxout.c: Include cgraph.h.
1674 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1675 and without value expr, return NULL if no varpool node exists for
1676 it or if it is not needed.
1677 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1680 * c-decl.c (start_decl): Convert expr to void_type_node.
1682 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1684 PR rtl-optimization/48826
1685 * emit-rtl.c (try_split): When splitting a call that is followed
1686 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1688 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1690 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1691 parameters passed in memory prefer using DECL_INCOMING_RTL over
1692 the pseudos it will be copied into.
1694 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1697 * config/i386/i386.c (ix86_option_override_internal): Save the
1698 initial options after checking vzeroupper.
1700 2011-05-23 David Li <davidxl@google.com>
1702 PR tree-optimization/48988
1703 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1704 Initialize has_valid_pred for each pred chain.
1706 2011-05-23 Richard Guenther <rguenther@suse.de>
1708 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1709 (iterative_hash_gimple_type): Always hash type names.
1711 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1713 * c-typeck.c (build_function_call_vec): Tweak call to
1714 check_function_arguments.
1716 2011-05-23 Richard Guenther <rguenther@suse.de>
1718 PR tree-optimization/49115
1719 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1720 is not necessarily carried out, do not claim it kills the ref.
1721 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1723 2011-05-23 Richard Guenther <rguenther@suse.de>
1726 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1727 what pointer types we accept for folding.
1729 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1731 * gthr-gnat.c: Remove.
1732 * gthr-gnat.h: Remove.
1733 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1734 * config/t-freebsd (LIB2ADDEH): Likewise.
1735 * config/t-linux (LIB2ADDEH): Likewise.
1736 * config/t-sol2 (LIB2ADDEH): Likewise.
1737 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1738 * configure.ac (target_thread_file): Remove gnat handling.
1739 * configure: Regenerate.
1740 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1742 2011-05-23 Tristan Gingold <gingold@adacore.com>
1743 Eric Botcazou <ebotcazou@adacore.com>
1745 * gcov.c (create_file_names): If no object directory is specified,
1746 keep the directory of the file.
1748 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1750 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1751 * configure: Regenerate.
1753 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1756 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1757 failed and the comparison has a single bit signed type, use
1758 constm1_rtx instead of const1_rtx for true value.
1759 (do_store_flag): If ops->type is single bit signed type, disable
1760 signel bit test optimization and pass -1 instead of 1 as last
1761 parameter to emit_store_flag_force.
1763 2011-05-23 Tom de Vries <tom@codesourcery.com>
1766 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1768 (infer_loop_bounds_from_undefined): Use new function.
1770 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1772 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1773 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1774 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1776 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1778 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1780 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1781 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1784 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1786 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1788 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1790 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1791 UNSPEC_MOVE_PIC pattern.
1793 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1795 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1796 (sparc-*-rtems*): Likewise.
1797 (sparc64-*-elf*): Likewise.
1798 (sparc64-*-rtems*): Likewise.
1799 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1800 * config/sparc/t-crtin: New file.
1801 * config/sparc/t-sol2 (crti.o): Delete rule.
1803 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1804 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1805 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1806 (ENDFILE_SPEC): Add crtn.o.
1808 2011-05-22 Tom de Vries <tom@codesourcery.com>
1811 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1812 CODE_CONTAINS_STRUCT (TS_COMMON).
1814 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1817 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1818 only after deciding which mode to use.
1820 2011-05-22 Tom de Vries <tom@codesourcery.com>
1823 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1824 for call to get_shiftadd_cost.
1826 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1829 * config/i386/cpuid.h (bit_MMXEXT): New define.
1831 2011-05-22 Nick Clifton <nickc@redhat.com>
1833 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1834 initialisation of non-existant args[2] element. Use args[] array
1835 not arg[] array to pass arguments to build_function_type_list.
1837 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1839 PR tree-optimization/49087
1840 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1842 2011-05-21 Jason Merrill <jason@redhat.com>
1845 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1846 static storage duration.
1848 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1850 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1853 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1855 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1856 false if there are call-saved registers here...
1857 (sparc_can_use_return_insn_p): ...but here instead.
1858 (save_or_restore_regs): Fix thinko.
1859 (sparc_expand_prologue): Use current_function_is_leaf.
1860 (sparc_frame_pointer_required): Likewise.
1862 2011-05-21 Nick Clifton <nickc@redhat.com>
1865 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1867 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1869 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1870 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1872 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1874 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1875 * optc-gen.awk: Move common code to opt-read.awk.
1876 * opth-gen.awk: Likewise.
1877 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1879 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1881 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1883 2011-05-20 Tom de Vries <tom@codesourcery.com>
1886 * tree-ssa-loop-ivopts.c: Include expmed.h.
1887 (get_shiftadd_cost): New function.
1888 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1890 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1893 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1894 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1896 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1898 * Makefile.in: Update comment referring to $(OBJS-common).
1900 2011-05-20 Ian Lance Taylor <iant@google.com>
1902 * godump.c (go_output_typedef): Put enum constants in the macro
1903 hash table to avoid duplicate Go const definitions.
1905 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1907 * Makefile.in (LIBDEPS): Add libcommon.a.
1909 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1910 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1911 pretty-print.o and version.o.
1912 (OBJS-libcommon): New.
1913 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1914 (BACKEND): Add libcommon.a.
1915 (MOSTLYCLEANFILES): Likewise.
1917 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1918 (cpp$(exeext)): Likewise.
1919 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1920 pretty-print.o and input.o.
1921 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1922 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1924 (mips-tfile): Don't explicitly use version.o.
1925 (mips-tdump): Likewise.
1926 (gcov.o): Depend on $(DIAGNOSTIC_H).
1927 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1928 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1929 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1930 * gcov-dump.c: Include intl.h and diagnostic.h.
1931 (main): Initialize diagnostics.
1932 * gcov.c: Include diagnostic.h.
1934 (main): Initialize diagnostics.
1935 * lto-wrapper.c: Include diagnostic.h.
1936 (main): Initialize diagnostics.
1938 2011-05-20 Michael Matz <matz@suse.de>
1940 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1942 2011-05-20 Michael Matz <matz@suse.de>
1943 Richard Guenther <rguenther@suse.de>
1945 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1946 use lto_streamer_cache_append directly instead of returning a VEC.
1947 (preload_common_node): Remove.
1948 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1950 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1952 2011-05-20 Richard Guenther <rguenther@suse.de>
1954 PR tree-optimization/49079
1955 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1956 MEM_REFs correctly for the trailing array access detection.
1957 Special case constants the same way as decls for overall size
1960 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1962 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1965 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1967 PR tree-optimization/49073
1968 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1969 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1970 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1972 2011-05-20 Richard Guenther <rguenther@suse.de>
1975 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1976 of pointer types the same way the middle-end does.
1978 2011-05-20 Richard Guenther <rguenther@suse.de>
1980 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1981 or pointer-to chains. Delay all fixup to uniquify_nodes.
1983 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1985 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1986 (fma4_fmaddsub): Likewise
1988 2011-05-19 Jan Hubicka <jh@suse.cz>
1990 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1991 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1992 (type_pair_cache): New static var.
1993 (lookup_type_pair): Use fixed sized custom hash; make inline.
1994 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1995 calls of lookup_type_pair.
1996 (print_gimple_types_stats): Remove cache stats.
1997 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2000 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2002 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2003 when TARGET_RDRND is active.
2004 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2005 Generate dummy SImode target register when target is NULL.
2007 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2009 * config/arm/arm-fpus.def: New.
2010 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2012 * config/arm/arm-tables.opt: Regenerate.
2013 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2014 (arm_option_override): Don't decode FPU name to string here.
2015 * config/arm/arm.opt (mfpu=): Use Enum.
2016 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2017 Update dependencies.
2019 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2021 * collect2.c: Include diagnostic.h.
2022 (fatal_perror, fatal, error, fancy_abort): Remove.
2023 (main): Set progname. Call xmalloc_set_program_name and
2024 diagnostic_initialize.
2025 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2026 scan_libraries, resolve_lib_name): Call fatal_error instead of
2027 fatal and fatal_perror.
2028 * collect2.h (error, fatal, fatal_perror): Don't declare.
2029 * tlink.c: Include diagnostic-core.h.
2030 (recompile_files): Call fatal_error instead of fatal_perror.
2031 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2032 pretty-print.o and input.o.
2033 (collect2.o, tlink.o): Update dependencies.
2035 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2037 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2039 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2042 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2043 COMDAT group syntax, both SPARC and x86 variants.
2044 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2045 * configure: Regenerate.
2046 * config/sol2.h (TARGET_SOLARIS): Define.
2047 (PUSHSECTION_FORMAT): Remove.
2048 (SECTION_NAME_FORMAT): Define.
2049 * config/sol2.c: Include hashtab.h.
2050 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2051 expansion, using SECTION_NAME_FORMAT.
2052 (solaris_comdat_htab): New variable.
2053 (struct comdat_entry): Define.
2054 (comdat_hash): New function.
2055 (comdat_eq): New function.
2056 (solaris_elf_asm_comdat_section): New function.
2057 (solaris_define_comdat_signature): New function.
2058 (solaris_code_end): New function.
2059 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2060 (solaris_code_end): Declare.
2061 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2062 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2064 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2065 Remove ATTRIBUTE_UNUSED.
2066 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2067 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2068 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2069 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2070 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2071 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2072 (PUSHSECTION_FORMAT): Remove.
2073 (SECTION_NAME_FORMAT): Redefine.
2075 2011-05-19 Kai Tietz <ktietz@redhat.com>
2077 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2078 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2079 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2081 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2082 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2084 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2086 2011-05-19 Richard Guenther <rguenther@suse.de>
2089 * tree-object-size.c (addr_object_size): If the pointed-to
2090 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2092 2011-05-19 Richard Guenther <rguenther@suse.de>
2094 * gimple.c (gimple_types_compatible_p_1): Compare names of
2095 the types themselves.
2096 (iterative_hash_gimple_type): And hash them that way.
2097 (gimple_register_type_1): If we register a main variant properly
2098 initialize the leader to ourselves.
2100 2011-05-19 Tom de Vries <tom@codesourcery.com>
2103 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2104 get_loop_invariant_expr_id.
2105 (get_loop_invariant_expr_id): Use get_expr_id.
2106 (parm_decl_cost): New function.
2107 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2108 Improve bound cost estimation. Use different inv_expr_id for elim and
2111 2011-05-19 Tom de Vries <tom@codesourcery.com>
2114 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2115 cost_base.cost == 0.
2117 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2120 * config/i386/sse.md
2121 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2124 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2126 PR tree-optimization/49039
2127 * tree-vrp.c (extract_range_from_binary_expr): For
2128 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2129 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2131 2011-05-18 Tom de Vries <tom@codesourcery.com>
2134 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2136 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2138 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2139 (*tls_global_dynamic_64): Ditto.
2140 (*tls_local_dynamic_base_32_gnu): Ditto.
2141 (*tls_local_dynamic_base_64): Ditto.
2142 (tls_initial_exec_64_sun): Ditto.
2144 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2146 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2147 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2149 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2150 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2151 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2152 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2153 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2154 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2155 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2157 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2159 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2160 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2161 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2162 target_thread_pointer, arm_structure_size_boundary, struct
2163 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2164 struct abi_name, arm_all_abis): Remove.
2165 (arm_option_override) Don't process most enumerated option values here.
2166 Don't process target_fpe_name here. Work with integer not string for
2167 structure size boundary; use separate diagnostics for each case.
2168 * config/arm/arm.h (enum float_abi_type, enum
2169 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2171 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2172 arm_structure_size_boundary): Remove.
2173 * config/arm/arm.opt (mabi=): Use Enum and Init.
2174 (arm_abi_type): New Enum and EnumValue entries.
2175 (mfloat-abi=): Use Enum and Init.
2176 (float_abi_type): New Enum and EnumValue entries.
2177 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2178 (mfp16-format=): Use Enum and Init.
2179 (arm_fp16_format_type): New Enum and EnumValue entries.
2180 (mstructure-size-boundary=): Use UInteger and Init.
2181 (mtp=): Use Enum and Init.
2182 (arm_tp_type): New Enum and EnumValue entries.
2184 2011-05-18 Richard Guenther <rguenther@suse.de>
2186 PR tree-optimization/49018
2187 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2188 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2189 gimple_has_side_effects.
2191 2011-05-18 Richard Guenther <rguenther@suse.de>
2193 * gimple.c (gimple_register_type_1): New function, split out from ...
2194 (gimple_register_type): ... here. Avoid infinite recursion.
2196 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2198 PR tree-optimization/41881
2199 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2200 reduction_chains along with a macro for its access.
2201 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2202 (destroy_loop_vec_info): Free reduction chains.
2203 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2204 (vect_is_slp_reduction): New function.
2205 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2206 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2207 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2208 definition types for reduction chains.
2209 (vect_supported_load_permutation_p): Don't allow permutations for
2211 (vect_analyze_slp_instance): Support reduction chains.
2212 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2213 (vect_get_constant_vectors): Handle reduction chains.
2214 (vect_schedule_slp_instance): Mark the first statement of the
2215 reduction chain as reduction.
2217 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2219 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2220 names for group elements access.
2221 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2222 reduction chains as well. Remove data reference and interleaving
2223 related words from the fields names.
2224 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2226 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2227 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2228 vect_update_interleaving_chain, vect_same_range_drs,
2229 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2230 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2231 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2232 vect_analyze_group_access, vect_analyze_data_ref_access,
2233 vect_create_data_ref_ptr, vect_transform_strided_load,
2234 vect_record_strided_load_vectors): Likewise.
2235 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2236 vect_model_load_cost, vectorizable_store, vectorizable_load,
2237 vect_remove_stores, new_stmt_vec_info): Likewise.
2238 * tree-vect-slp.c (vect_build_slp_tree,
2239 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2241 2011-05-18 Richard Guenther <rguenther@suse.de>
2244 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2245 operand verification.
2246 (verify_gimple_assign_binary): Likewise.
2247 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2248 to non-1-precision BOOLEAN_TYPEs.
2250 2011-05-18 Tom de Vries <tom@codesourcery.com>
2253 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2255 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2257 PR tree-optimization/49000
2258 * tree-ssa.c (execute_update_addresses_taken): Call
2259 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2260 be rewritten and decl has been marked for renaming, reset
2263 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2265 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2266 enum_opts_set when testing if attributes have set -mfpmath=.
2268 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2270 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2272 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2274 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2276 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2277 id.transform_lang_insert_block with NULL.
2279 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2281 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2282 (output_fp_compare): Change args 3 and 4 to bool.
2283 (ix86_expand_call): Change arg 6 to bool.
2284 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2285 (ix86_attr_length_vex_default): Change arg 3 to bool.
2286 * config/i386/i386.md: Update all uses.
2287 * config/i386/i386.c: Ditto.
2288 (ix86_flags_dependent): Change return type to bool.
2290 2011-05-17 Richard Guenther <rguenther@suse.de>
2292 * gimple.c (type_hash_pair_compare): Fix comparison.
2294 2011-05-17 Richard Guenther <rguenther@suse.de>
2296 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2297 case some more, fix final hash value of the non-singleton case.
2299 2011-05-17 Richard Guenther <rguenther@suse.de>
2303 2011-05-16 Richard Guenther <rguenther@suse.de>
2305 * gimple.c (gimple_types_compatible_p_1): Use names of the
2306 type itself, not its main variant.
2307 (iterative_hash_gimple_type): Likewise.
2309 2011-05-17 Richard Guenther <rguenther@suse.de>
2311 * gimple.c (gimple_register_canonical_type): Use the main-variant
2312 leader for computing the canonical type.
2314 2011-05-17 Nick Clifton <nickc@redhat.com>
2316 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2319 * config/rx/rx.md: Add peephole to remove redundant extensions
2321 (bitset_in_memory): Use rx_restricted_mem_operand.
2322 (bitinvert_in_memory): Likewise.
2323 (bitclr_in_memory): Likewise.
2325 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2326 Nick Clifton <nickc@redhat.com>
2328 * config/rx/rx.md: Add peepholes to match a register move followed
2329 by a comparison of the moved register. Replace these with an
2330 addition of zero that does both actions in one instruction.
2332 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2335 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2336 predicate to allow CONST_INT.
2337 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2339 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2341 * opts-common.c (opt_enum_arg_to_value): New.
2342 * opts.h (opt_enum_arg_to_value): Declare.
2343 * config/i386/i386.opt (fpmath): Remove.
2344 (mfpmath=): Use Enum, Init and Save.
2345 (fpmath_unit): New Enum and EnumValue entries.
2346 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2347 name for function fpmath state.
2348 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2349 * config/i386/i386.c: Include diagnostic.h.
2350 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2351 (ix86_target_string): Take enum fpmath_unit value instead of string.
2352 (ix86_debug_options): Update call to ix86_target_string.
2353 (ix86_option_override_internal): Don't process fpmath strings here.
2354 (x86_function_specific_save, ix86_function_specific_restore):
2355 Don't handle fpmath state specially.
2356 (ix86_function_specific_print): Pass fpmath state to
2357 ix86_target_string instead of printing in this function.
2358 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2359 Handle enum attributes.
2360 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2361 (ix86_valid_target_attribute_tree): Update option_strings
2362 handling. Handle fpmath as enum option.
2363 (ix86_can_inline_p): Update field names for function fpmath state.
2364 (ix86_expand_builtin): Update call to ix86_target_string.
2365 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2366 (ix86_fpmath): Remove.
2367 * config/i386/t-i386 (i386.o): Update dependencies.
2369 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2371 PR preprocessor/48677
2372 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2373 from decoded_options[0], not from itself.
2375 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2377 * config/i386/constraints.md (z): New constraint.
2378 * config/i386/i386.c (c): New mode attribute.
2379 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2380 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2381 constraint for operand 0.
2382 (*call_vzeroupper): Ditto.
2383 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2384 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2385 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2386 Use "lzm" constraint for operand 0.
2387 (*call_pop_vzeroupper): Ditto.
2388 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2389 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2390 constraint for operand 0.
2391 (*sibcall_vzeroupper): Ditto.
2392 (*sibcall_rex64_ms_sysv): Ditto.
2393 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2394 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2395 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2396 (*sibcall_pop_vzeroupper): Ditto.
2397 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2398 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2399 mode iterator. Use "<c>zm" constraint for operand 1.
2400 (*call_value_vzeroupper): Ditto.
2401 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2403 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2404 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2405 *call_value_pop_1. Use "lzm" constraint for operand 1.
2406 (*call_value_pop_vzeroupper): Ditto.
2407 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2408 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2409 mode iterator. Use "Uz" constraint for operand 1.
2410 (*sibcall_value_vzeroupper): Ditto.
2411 (*sibcall_value_rex64_ms_sysv): Ditto.
2412 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2413 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2414 constraint for operand 1.
2415 (*sibcall_value_pop_vzeroupper): Ditto.
2416 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2417 and "z" constraint for operand 2.
2418 (*tls_global_dynamic_32_gnu): Ditto.
2419 (*tls_local_dynamic_base_32_gnu): Ditto.
2420 (*tls_local_dynamic_base_64): Ditto.
2421 (*tls_local_dynamic_32_once): Ditto.
2422 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2424 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2426 2011-05-16 Richard Guenther <rguenther@suse.de>
2428 * gimple.c (gimple_types_compatible_p_1): Use names of the
2429 type itself, not its main variant.
2430 (iterative_hash_gimple_type): Likewise.
2432 2011-05-16 Richard Guenther <rguenther@suse.de>
2434 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2435 always visit pointer target and function result and argument types.
2437 2011-05-16 Jason Merrill <jason@redhat.com>
2440 * tree-inline.c (copy_statement_list): Put back recursion.
2442 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2446 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2447 * config/avr/avr.md ("*ior<mode>qi.byte0",
2448 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2450 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2453 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2454 register is needed for a function argument.
2456 2011-05-16 Richard Guenther <rguenther@suse.de>
2458 * gimple.c (struct type_hash_pair): New type.
2459 (type_hash_pair_compare): New function.
2460 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2462 2011-05-16 Revital Eres <revital.eres@linaro.org>
2464 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2466 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2468 * config/i386/i386.md (floating point move splitters): Fix
2469 usage of standard_80387_constant_p.
2470 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2472 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2474 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2476 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2478 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2479 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2480 (tree_ssa_lim_finalize): Likewise.
2482 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2484 * config/i386/constraint.md (Yd, Yx): New register constraints.
2485 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2486 Yd conditional register constraint.
2487 (*movtf_internal): Use standard_sse_constant_opcode.
2488 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2489 Yx conditional register constraint.
2490 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2491 Yd conditional register constraint. Use standard_sse_constant_p to
2492 check for valid SSE constants and call standard_sse_constant_opcode to
2494 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2495 constants and call standard_sse_constant_opcode to output SSE insn.
2496 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2497 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2498 optimize_size is set.
2499 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2501 2011-05-14 Tobias Burnus <burnus@net-b.de>
2503 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2505 2011-05-13 Martin Jambor <mjambor@suse.cz>
2507 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2508 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2509 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2510 (evaluate_conditions_for_ipcp_clone): Removed.
2511 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2512 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2513 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2515 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2517 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2518 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2519 lieu of MAY_HAVE_DEBUG_STMTS.
2520 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2521 debug statements if !MAY_HAVE_DEBUG_STMTS.
2523 2011-05-13 Martin Thuresson <martint@google.com>
2525 PR gcov-profile/47793
2526 * libgcov.c (gcov_exit): Support relative profile paths.
2527 * doc/invoke.texi (-fprofile-dir): Update for above change.
2529 2011-05-13 Richard Guenther <rguenther@suse.de>
2531 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2532 type-pair caching, do not compare hashes.
2534 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2537 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2538 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2540 2011-05-13 Kai Tietz <ktietz@redhat.com>
2542 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2543 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2544 compatible type for TRUTH_NOT_EXPR.
2546 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2548 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2549 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2550 can_create_pseudo_p ().
2552 2011-05-13 Richard Guenther <rguenther@suse.de>
2555 * gimple.c (iterative_hash_gimple_type): Revert change in
2556 pointer target and function result and argument hashing.
2558 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2560 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2561 (*movxf_internal_nointeger): Ditto.
2562 (*movdf_internal_rex64): Ditto.
2563 (*movdf_internal): Ditto.
2564 (*movdf_internal_nointeger): Ditto.
2565 (*movsf_internal): Ditto.
2566 (sincos splitters): Use can_create_pseudo ().
2568 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2570 * config/i386/i386-opts.h: New.
2571 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2572 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2573 ix86_section_threshold): Remove.
2574 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2575 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2577 (ix86_option_override_internal): Don't decode strings for options
2578 other than -march=, -mtune= and -mfpmath=. Don't allow for
2579 __attribute__ uses in remaining diagnostics for options with
2580 string arguments. Don't check for integer arguments being negative.
2581 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2582 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2583 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2584 ix86_branch_cost, ix86_section_threshold): Remove.
2585 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2587 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2589 (masm=): Use Enum and Init.
2590 (asm_dialect): New Enum and EnumValue entries.
2591 (mbranch-cost=): Use UInteger.
2592 (mlarge-data-threshold=): Use UInteger and Init.
2593 (mcmodel=): Use Enum and Init.
2594 (cmodel): New Enum and EnumValue entries.
2595 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2596 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2597 mregparm=): Use UInteger.
2598 (mstringop-strategy=): Use Enum and Init.
2599 (stringop_alg): New Enum and EnumValue entries.
2600 (mtls-dialect=): Use Enum and Init.
2601 (tls_dialect): New Enum and EnumValue entries.
2602 (mabi=): Use Enum and Init.
2603 (calling_abi): New Enum and EnumValue entries.
2604 (mveclibabi=): Use Enum and Init.
2605 (ix86_veclibabi): New Enum and EnumValue entries.
2607 2011-05-13 Nick Clifton <nickc@redhat.com>
2609 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2610 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2612 2011-05-13 Kai Tietz <ktietz@redhat.com>
2615 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2616 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2617 (gimple_boolify): Check for cast for boolean_type_node instead for
2620 2011-05-13 Richard Guenther <rguenther@suse.de>
2622 PR tree-optimization/48172
2623 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2624 multiplying by number of iterations for equal step.
2625 (vect_create_cond_for_alias_checks): Likewise.
2627 2011-05-13 Andreas Schwab <schwab@redhat.com>
2629 * configure.ac: Use AS_HELP_STRING throughout.
2630 * configure: Regenerate.
2632 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2634 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2635 (ix86_emit_restore_regs_using_mov): Likewise.
2636 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2638 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2640 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2641 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2642 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2643 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2644 RTX_OK_FOR_OLO10_P): ...here.
2645 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2648 2011-05-12 Kai Tietz <ktietz@redhat.com>
2650 * gimplify.c (gimple_boolify): Re-boolify expression
2651 arguments even if expression type is of kind BOOLEAN_TYPE.
2652 (gimplify_boolean_expr): Removed.
2653 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2654 and XOR. Additional take care that we keep expression's type.
2655 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2656 of TRUTH_AND|OR|XOR_EXPR.
2658 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2660 PR tree-optimization/48975
2661 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2662 on all bbs here and free and clear ifc_bbs at the end.
2664 2011-05-12 Richard Guenther <rguenther@suse.de>
2666 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2667 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2668 until after simple checks.
2669 (gimple_types_compatible_p): Likewise.
2670 (iterative_hash_gimple_type): Always hash pointer targets
2671 and function return and argument types.
2672 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2673 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2674 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2675 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2676 completely in the simple compare section.
2677 (gimple_register_canonical_type): Query the cache again after
2680 2011-05-12 Richard Guenther <rguenther@suse.de>
2682 PR tree-optimization/48172
2683 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2684 the number of iterations from the segment size calculation.
2685 (vect_create_cond_for_alias_checks): Adjust.
2687 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2690 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2691 if validate_subreg fails.
2693 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2695 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2696 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2699 2011-05-12 DJ Delorie <dj@redhat.com>
2701 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2702 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2703 created builtin into rx_builtins array.
2704 (rx_builtin_decl): New function.
2705 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2707 2011-05-12 DJ Delorie <dj@redhat.com>
2708 Nick Clifton <nickc@redhat.com>
2710 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2711 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2712 (rx_is_legitimate_address): Add pre-decrement and post-increment
2713 addressing in HImode and QImode. Fix test for out of range
2715 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2716 (rx_align_for_label): Test label before extracting its usage count.
2717 (rx_adjust_insn_lengths): Fix selection of insn codes.
2718 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2720 2011-05-11 Jason Merrill <jason@redhat.com>
2722 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2724 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2726 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2727 reindent the subsequent block.
2729 2011-05-11 Satoru Takabayashi <satorux@google.com>
2730 Paul Pluzhnikov <ppluzhnikov@google.com>
2732 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2733 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2734 * config.in: Add LINKER_HASH_STYLE.
2735 * configure.ac: Add --with-linker-hash-style.
2736 * configure: Regenerate.
2738 2011-05-11 Richard Guenther <rguenther@suse.de>
2741 * gimple.c (iterative_hash_canonical_type): Fix typo.
2743 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2745 * config/i386/i386.c (legitimize_tls_address)
2746 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2747 expanders directly for TARGET_GNU2_TLS. Determine pic and
2748 __tls_get_addr symbol reference here. Update call to
2749 gen_tls_global_dynamic_{32,64} for added arguments.
2750 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2751 expanders directly for TARGET_GNU2_TLS. Determine
2752 __tls_get_addr symbol reference here. Update call to
2753 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2754 unique UNSPEC REG_EQUIV to libcall block.
2755 (ix86_tls_get_addr): Declare static.
2756 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2757 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2758 Do not determine pic and __tls_get_addr symbol reference here. Do not
2759 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2760 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2761 (tls_global_dynamic_64): Add operand 2. Do not determine
2762 __tls_get_addr symbol reference here. Do not call
2763 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2764 (tls_local_dynamic_base64): Ditto for operand 1.
2766 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2768 * function.c (expand_function_start): Initialize stack_check_probe_note
2769 only if the generic stack checking mechanism is used.
2771 2011-05-11 Richard Guenther <rguenther@suse.de>
2773 PR tree-optimization/15256
2774 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2775 (A & B) | C, combine (A op CST1) op CST2.
2776 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2777 visit assigns that have uses.
2779 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2781 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2782 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2783 (unpack_ts_type_common_value_fields): ...this. Update comment.
2784 (unpack_value_fields): Adjust for renaming.
2785 (lto_input_ts_type_tree_pointers): Split into...
2786 (lto_input_ts_type_common_tree_pointer): ...this and...
2787 (lto_input_ts_type_non_common_tree_pointers): ...this.
2788 (lto_input_tree_pointers): Adjust for above split.
2789 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2790 (pack_ts_type_common_value_fields): ...this. Update comment.
2791 (lto_output_ts_type_tree_pointers): Split into...
2792 (lto_output_ts_type_common_tree_pointers): ...this and...
2793 (lto_output_ts_type_non_common_tree_pointers): ...this.
2794 (lto_output_tree_pointers): Adjust for above split.
2795 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2796 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2797 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2798 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2800 (struct tree_type): Split into...
2801 (struct tree_type_common: ...this and...
2802 (struct tree_type_with_lang_specific): ...this and...
2803 (struct tree_type_non_common): ...this. Adjust accessor macros
2805 (TYPE_VALUES_RAW): Define.
2806 (union tree_node): Update for above changes.
2807 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2809 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2810 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2811 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2812 * treestructu.def (TS_TYPE): Remove.
2813 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2816 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2819 * tree-ssa.c (reset_debug_uses): New function.
2820 * tree-flow.h (reset_debug_uses): New prototype.
2821 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2822 * tree-loop-distribution.c (generate_loops_for_partition): Call
2823 reset_debug_uses on the stmts that will be removed. Keep around
2824 all debug stmts, don't count them as bits in partition bitmap.
2825 (generate_builtin): Don't count debug stmts or labels as bits in
2828 2011-05-11 Richard Guenther <rguenther@suse.de>
2830 * gimple.c (gimple_type_hash_1): Merge with ...
2831 (gimple_type_hash): ... this.
2832 (gtc_visit): Remove mode parameter and simplify accordingly.
2833 (gimple_types_compatible_p_1): Likewise.
2834 (gimple_types_compatible_p): Likewise.
2835 (iterative_hash_gimple_type): Likewise.
2837 (gimple_type_eq): Adjust.
2839 2011-05-11 Revital Eres <revital.eres@linaro.org>
2841 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2842 enters the branch create an anti edge in the opposite direction
2843 to prevent the creation of reg-moves.
2844 * modulo-sched.c: Adjust comment to reflect the fact we are
2845 scheduling closing branch.
2846 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2847 (stage_count): New field in struct partial_schedule.
2848 (calculate_stage_count): New function.
2849 (normalize_sched_times): Rename to reset_sched_times and handle
2850 incrementing the sched time of the nodes by a constant value
2851 passed as parameter.
2852 (duplicate_insns_of_cycles): Skip closing branch.
2853 (sms_schedule_by_order): Schedule closing branch.
2854 (ps_insn_find_column): Handle closing branch.
2855 (sms_schedule): Call reset_sched_times and adjust the code to
2856 support scheduling of the closing branch.
2857 (ps_insert_empty_row): Update calls to normalize_sched_times
2858 and rotate_partial_schedule functions.
2860 2011-05-11 Richard Guenther <rguenther@suse.de>
2863 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2865 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2867 * opts.c (finish_options): Move warning settings from process_options.
2868 * toplev.c (process_options): Move warning settings to finish_options.
2870 2011-05-11 Richard Guenther <rguenther@suse.de>
2872 PR tree-optimization/18041
2873 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2874 (simplify_bitwise_binary): ... this. Handle operand conversions
2875 by applying them to the result instead.
2876 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2878 2011-05-11 Richard Guenther <rguenther@suse.de>
2880 * gimple.c (gimple_canonical_types_compatible_p): Split out
2881 from gimple_types_compatible_p and friends. Do not recurse
2882 to pointed-to types.
2883 (gimple_canonical_type_eq): Use it.
2884 (iterative_hash_canonical_type): Split out from
2885 iterative_hash_gimple_type and friends. Do not recurse
2886 to pointed-to types.
2887 (gimple_canonical_type_hash): Use it, allocate the hash here.
2889 2011-05-11 Revital Eres <revital.eres@linaro.org>
2891 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2894 2011-05-11 Revital Eres <revital.eres@linaro.org>
2896 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2897 instead of PREV_INSN.
2899 2011-05-11 Revital Eres <revital.eres@linaro.org>
2901 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2902 * loop-doloop.c (doloop_condition_get): Likewise.
2903 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2905 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2907 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2909 * tree.def (CASE_LABEL_EXPR): Add an operand.
2910 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2912 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2914 * c-decl.c (c_override_global_bindings_to_false): Remove.
2915 (global_bindings_p): Don't check
2916 c_override_global_bindings_to_false.
2917 * c-tree.h (c_override_global_bindings_to_false): Remove.
2918 * c-typeck.c (composite_type): Don't set
2919 c_override_global_bindings_to_false.
2921 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2923 PR target/48857, 48495
2924 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2926 (VSX_MOVE_MODE): Ditto.
2927 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2928 VSX vector types. Add V2DImode.
2929 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2930 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2931 (MODES_TIEABLE_P): Ditto.
2933 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2934 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2936 (init_cumulative_args): Ditto.
2937 (rs6000_function_arg_boundary): Ditto.
2938 (rs6000_function_arg_advance_1): Ditto.
2939 (rs6000_function_arg): Ditto.
2940 (rs6000_function_ok_for_sibcall): Ditto.
2941 (emit_frame_save): Ditto.
2942 (rs6000_function_value): Ditto.
2943 (rs6000_libcall_value): Ditto.
2945 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2947 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2948 i386/darwin-lib.h to $libgcc_tm_file.
2949 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2951 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2953 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2955 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2957 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2958 * config/rs6000/rs6000-tables.opt: New file (generated).
2959 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2960 rs6000/rs6000-tables.opt to extra_options.
2961 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2962 * config/rs6000/rs6000.c (rs6000_select): Remove.
2963 (processor_target_table): Move contents to rs6000-cpus.def.
2964 (darwin_rs6000_override_options): Check
2965 global_options_set.x_rs6000_cpu_index instead of
2966 rs6000_select[1].string.
2967 (rs6000_option_override_internal): Likewise.
2968 (rs6000_handle_option): Don't assert that global structures are in
2969 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2970 (rs6000_default_cpu): New variable.
2971 (rs6000_file_start): Set it instead of local default_cpu. Check
2972 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2973 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2974 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2975 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2976 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2977 rs6000_select): Remove.
2978 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2980 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2981 * config/rs6000/t-rs6000
2982 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2983 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2984 global_options_set.x_rs6000_cpu_index instead of
2985 rs6000_select[1].string.
2986 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2987 global_options_set.x_rs6000_cpu_index instead of
2988 rs6000_select[1].string.
2990 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2992 * config.gcc (libgcc_tm_file): Define instead of including files
2993 from ../../libgcc/config/ in tm_file.
2994 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2995 * configure: Regenerate.
2996 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2997 libgcc_tm.h, cs-libgcc_tm.h): New.
2998 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2999 (clean): Remove libgcc_tm.h.
3000 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3001 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3002 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3004 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3007 * config/avr/avr.c (avr_ret_register): Return unsigned int
3009 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3010 it to avr_libcall_value.
3011 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3013 (avr_expand_binop_builtin): Ditto.
3014 (avr_expand_unop_builtin): Ditto.
3016 2011-05-10 DJ Delorie <dj@redhat.com>
3018 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3019 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3020 * config/rx/rx.c (rx_align_for_label): Add label and
3021 uses_threshold parameters. Do not align when the label is not
3023 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3025 2011-05-10 Richard Guenther <rguenther@suse.de>
3027 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3028 a series of conversions and apply foldings similar to what
3030 (tree_ssa_forward_propagate_single_use_vars): Call it.
3032 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3034 PR tree-optimization/48611
3035 PR tree-optimization/48794
3036 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3037 referenced from RESX or EH_DISPATCH arguments.
3040 * dfp.c (decimal_to_decnumber): Handle conversion from
3041 dconst{1,2,m1,half}.
3043 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3045 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3046 for !flag_prefer_avx128.
3047 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3049 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3051 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3052 (fold_ternary_loc): Use expr_location_or.
3054 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3057 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3058 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3059 Pmode and mem_mode is not VOIDmode.
3061 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3063 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3064 TYPE_QUAL_RESTRICT): Convert to enum.
3066 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3068 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3069 (const_pow2_1_to_8_operand): Ditto.
3070 (const_pow2_1_to_128_operand): Ditto.
3071 (const_pow2_1_to_32768_operand): Ditto.
3072 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3073 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3074 in insn constraint to check integer value of operand 3.
3075 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3077 (PINSR_MODE): New mode iterator.
3078 (sse2p4_1): New mode attribute.
3079 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3080 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3081 iterator. Use const_int_operand instead of
3082 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3083 exact_log2 in insn constraint to check integer value of operand 3.
3085 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3087 * config/i386/sse.md (blendbits): Remove mode attribute.
3088 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3089 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3090 Check integer value of operand 3 in insn constraint.
3092 2011-05-09 Richard Guenther <rguenther@suse.de>
3094 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3096 (lto_symtab_merge): Likewise. Do not register types here.
3097 (lto_symtab_merge_decls_2): Likewise.
3098 (lto_symtab_merge_decls_1): Likewise.
3099 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3100 * gimple.c (enum gtc_mode): Declare.
3101 (gimple_types_compatible_p): Make static.
3103 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3105 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3106 temporary register to match Pmode.
3108 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3110 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3111 and *vec_concatv4si_1_avx.
3113 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3115 PR rtl-optimization/48927
3116 * ira-conflicts.c (commutative_constraint_p): Use
3117 recog_data.alternative_enabled_p to disable alternatives where
3118 "enabled" attribute is false.
3119 (get_dup_num): Ditto.
3120 * ira-lives.c (single_reg_class): Ditto.
3121 (ira_implicitly_set_insn_hard_regs): Ditto.
3123 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3125 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3126 (dataflow_set_preserve_mem_locs): Likewise.
3128 2011-05-09 Philipp Thomas <pth@suse.de>
3130 * config/mep/mep.c (mep_validate_vliw): Syntax description
3131 should not be translated.
3133 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3135 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3136 * config/mips/mips-tables.opt: New file (generated).
3137 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3138 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3139 MIPS_ARCH_OPTION_NATIVE): Define.
3140 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3142 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3143 mips_parse_cpu): Remove.
3144 (mips_cpu_info_from_opt, mips_default_arch): New.
3145 (mips_handle_option): Don't assert that global structures are in
3146 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3147 (mips_option_override): Use new variables and functions to set
3148 state of these options. Use strcmp to check for individual CPU names.
3149 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3151 * config/mips/mips.opt (march=): Use ToLower and Enum.
3152 (mips): Use ToLower, Enum and Var.
3153 (mtune=): Use ToLower and Enum.
3154 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3156 2011-05-08 Jan Hubicka <jh@suse.cz>
3158 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3159 Arrange type pairs to be UID ordered.
3160 (gimple_lookup_type_leader): Make inline.
3162 2011-05-09 Nick Clifton <nickc@redhat.com>
3165 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3169 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3172 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3174 * combine.c (simplify_comparison): Abstract out parts into...
3175 (simplify_compare_const): ... new function.
3176 (try_combine): Generalize parallel arithmetic/compare combining
3177 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3179 2011-05-08 Jan Hubicka <jh@suse.cz>
3181 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3182 (cgraph_create_virtual_clone): Call hooks once virtual clone
3184 * cgraph.h (cgraph_clone_node): Update prototype.
3185 * ipa-cp.c (ipcp_estimate_growth): Use
3186 estimate_ipcp_clone_size_and_time.
3187 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3188 * lto-cgraph.c (input_node): Update.
3189 * ipa-inline.c (recursive_inlining): Update.
3190 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3191 (evaluate_conditions_for_known_args): Break out from ...
3192 (evaluate_conditions_for_edge): ... here.
3193 (evaluate_conditions_for_ipcp_clone): New function.
3194 (inline_node_duplication_hook): Update clone summary based
3196 (estimate_callee_size_and_time): Rename to ...
3197 (estimate_node_size_and_time): take NODE instead of EDGE;
3198 take POSSIBLE_TRUTHS as argument.
3199 (estimate_callee_size_and_time): Update.
3200 (estimate_ipcp_clone_size_and_time): New function.
3201 (do_estimate_edge_time): Update.
3203 2011-05-08 Richard Guenther <rguenther@suse.de>
3207 * expmed.c (expand_shift_1): Compute adjusted constant shift
3210 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3212 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3214 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3216 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3218 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3220 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3222 2011-05-07 Jan Hubicka <jh@suse.cz>
3224 * ipa-inline-transform.c (inline_call): Account when program size
3226 * ipa-inline.c (relative_time_benefit): New function.
3227 (edge_badness): Reorganize to be power 2 based; fix thinko when
3228 computing badness for negative growth; update comments to match
3229 reality; better dumps.
3231 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3233 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3234 type to bool and adjust comment.
3235 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3236 (fold_mathfn_compare): Remove calls to global_bindings_p.
3237 (fold_inf_compare): Likewise.
3238 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3239 * c-tree.h (global_bindings_p): Adjust prototype.
3240 * c-decl.c (global_bindings_p): Return bool and simplify.
3242 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3244 PR tree-optimization/48837
3245 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3246 when accumulator transformation is performed.
3248 2011-05-06 Jan Hubicka <jh@suse.cz>
3250 * i386.h (ix86_tune_indices): Add
3251 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3252 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3253 * i386.c (initial_ix86_tune_features): Add
3254 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3255 (software_prefetching_beneficial_p): Remove predicate.
3256 (ix86_option_override_internal): Use new macro.
3258 2011-05-06 Jan Hubicka <jh@suse.cz>
3260 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3262 2011-05-06 Jan Hubicka <jh@suse.cz>
3264 * cgraph.c (cgraph_add_thunk): Create real function node instead
3265 of alias node; finalize it and mark needed/reachale; arrange visibility
3266 to be right and add it into the corresponding same comdat group list.
3267 (dump_cgraph_node): Dump thunks.
3268 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3269 cgraph_function_with_gimple_body_p,
3270 cgraph_first_function_with_gimple_body,
3271 cgraph_next_function_with_gimple_body): New functions.
3272 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3274 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3275 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3276 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3277 devirtualization when optimizing.
3278 (verify_cgraph_node): Verify thunks.
3279 (cgraph_analyze_function): Analyze thunks.
3280 (cgraph_mark_functions_to_output): Output thunks only in combination
3281 with function they are assigned to.
3282 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3283 alias into normal node.
3284 (assemble_thunks): New functoin.
3285 (cgraph_expand_function): Use it.
3286 * lto-cgraph.c (lto_output_node): Stream thunks.
3287 (input_overwrite_node): Stream in thunks.
3288 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3289 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3290 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3291 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3292 (inline_analyze_function): Do not care about thunk jump functions.
3293 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3294 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3295 cgraph_function_with_gimple_body_p.
3296 * passes.c (do_per_function_toporder): Use
3297 cgraph_function_with_gimple_body_p.
3298 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3299 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3300 (function_called_by_processed_nodes_p): Likewise.
3302 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3304 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3305 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3307 (mabi=): Replace with separate entries for mabi=altivec,
3308 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3309 mabi=ieeelongdouble and mabi=ibmlongdouble.
3310 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3311 check for -mabi=spe without SPE ABI support here.
3312 (rs6000_handle_option): Replace OPT_mabi_ handling with
3313 OPT_mabi_altivec and OPT_mabi_spe handling.
3315 2011-05-06 Cary Coutant <ccoutant@google.com>
3317 * dwarf2out.c (contains_subprogram_definition): New function.
3318 (should_move_die_to_comdat): Call it.
3320 2011-05-06 Jeff Law <law@redhat.com>
3322 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3323 remove_ctrl_stmt_and_useless_edges.
3324 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3325 (fixup_template_block, thread_single_edge): Likewise.
3326 (mark_threaded_blocks): Use THREAD_TARGET.
3328 2011-05-06 Alan Modra <amodra@gmail.com>
3331 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3332 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3334 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3336 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3337 constraint modifier to "r".
3339 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3341 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3342 fall through for OPT_mcmodel_.
3344 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3346 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3348 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3350 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3353 * config/arm/arm.opt (marm): Document it.
3354 (mthumb): Reject negative variant.
3356 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3359 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3360 Fix typo in "ccvt" variable name.
3362 2011-05-06 Tristan Gingold <gingold@adacore.com>
3365 * config/vms/vms-ar.c (main): Remove cwd variable.
3367 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3370 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3372 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3374 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3375 * gimplify.c (gimplify_switch_expr): Likewise.
3376 * omp-low.c (expand_omp_sections): Likewise.
3377 * tree-eh.c (lower_try_finally_switch): Likewise.
3378 (lower_eh_dispatch): Likewise.
3379 * tree.h (build_case_label): Declare.
3380 * tree.c (build_case_label): Define.
3382 2011-05-05 Jason Merrill <jason@redhat.com>
3385 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3386 (copy_statement_list): Don't recurse.
3387 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3390 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3392 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3393 through from -mfpu= handling.
3394 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3396 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3398 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3401 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3403 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3405 (hppa[12]*-*-hpux11*): Ditto.
3406 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3407 * config/ia64/hpux-unix2003.h: New.
3408 * config/pa/pa-hpux1131.opt: New.
3409 * config/pa/pa-hpux1131.h: New.
3410 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3411 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3412 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3414 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3417 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3418 instead of mode as 3rd argument to recursive call.
3419 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3420 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3422 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3423 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3424 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3425 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3427 2011-05-05 Julian Brown <julian@codesourcery.com>
3429 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3430 parenthesis in D-register case.
3432 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3434 * opt-functions.awk (var_type_struct): Handle Enum options.
3435 * optc-gen.awk: Don't check range of variables of character type.
3436 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3437 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3438 rs6000_sdata_name, rs6000_explicit_options): Remove.
3439 (rs6000_option_override_internal): Check for -malign-power here.
3440 Use global_options_set instead of rs6000_explicit_options.
3441 (rs6000_parse_fpu_option): Remove.
3442 (rs6000_handle_option): Access variables via opts and opts_set
3443 pointers. Use error_at and warning_at. Add fall-through
3444 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3445 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3446 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3447 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3448 here. Don't use rs6000_parse_fpu_option.
3449 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3450 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3451 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3453 (mspe): Use Var and Save.
3454 (mtraceback=): Use Enum and Var.
3455 (rs6000_traceback_type): New Enum and EnumValue entries.
3456 (mfloat-gprs=): Use Enum, Var and Save.
3457 (rs6000_float_gprs): New Enum and EnumValue entries.
3458 (mlong-double-): use Var and Save.
3459 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3460 (malign-): Use Enum and Var.
3461 (rs6000_alignment_flags): New Enum and EnumValue entries.
3463 (fpu_type_t): New Enum and EnumValue entries.
3464 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3465 global_options_set instead of rs6000_explicit_options.
3466 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3467 global_options_set instead of rs6000_explicit_options.
3468 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3469 global_options_set instead of rs6000_explicit_options.
3470 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3471 global_options_set instead of rs6000_explicit_options.
3472 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3473 global_options_set instead of rs6000_explicit_options.
3474 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3475 global_options_set instead of rs6000_explicit_options.
3476 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3478 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3479 global_options_set instead of rs6000_explicit_options.
3480 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3481 (rs6000_cmodel): New Enum and EnumValue entries.
3482 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3483 global_options_set instead of rs6000_explicit_options.
3484 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3485 (mtls-size=): Use Enum and Var.
3486 (rs6000_tls_size): New Enum and EnumValue entries.
3488 2011-05-05 Michael Matz <matz@suse.de>
3490 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3491 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3492 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3493 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3494 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3495 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3496 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3497 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3498 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3499 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3500 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3501 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3502 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3503 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3504 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3505 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3507 2011-05-05 Richard Guenther <rguenther@suse.de>
3509 * expmed.c (expand_variable_shift): Rename to ...
3510 (expand_shift_1): ... this. Take an expanded shift amount.
3511 For rotates recurse directly not building trees for the shift amount.
3512 (expand_variable_shift): Wrap around expand_shift_1.
3513 (expand_shift): Adjust.
3515 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3517 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3519 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3521 * tree.h (get_pending_sizes): Remove prototype.
3522 (put_pending_size): Likewise.
3523 (put_pending_sizes): Likewise.
3524 * stor-layout.c (pending_sizes): Delete.
3525 (get_pending_sizes): Likewise.
3526 (put_pending_size): Likewise.
3527 (put_pending_sizes): Likewise.
3528 (variable_size): Do not call put_pending_size and tidy up.
3529 * function.h (struct function): Remove dont_save_pending_sizes_p.
3530 * lto-streamer-in.c (input_function): Do not stream it.
3531 * lto-streamer-out.c (output_function): Likewise.
3532 * tree-inline.c (initialize_cfun): Do not copy it.
3533 * c-decl.c (store_parm_decls): Do not set it.
3534 * omp-low.c (create_task_copyfn): Likewise.
3535 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3537 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3539 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3541 (*movdf_internal): Ditto.
3542 (*movdf_internal_nointeger): Ditto.
3543 (*movsf_internal): Ditto.
3545 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3547 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3548 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3549 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3550 (c_variable_size): Remove.
3551 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3552 call put_pending_sizes.
3553 (get_parm_info): Add parameter expr. Use it to set
3554 arg_info->pending_sizes.
3555 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3557 * c-parser.c (c_parser_parms_declarator): Update call to
3558 c_parser_parms_list_declarator.
3559 (c_parser_parms_list_declarator): Take parameter expr. Update
3560 call to push_parm_decl. Update recursive call. Don't call
3561 get_pending_sizes. Update calls to get_parm_info.
3562 (c_parser_objc_method_definition): Update calls to
3563 c_parser_objc_method_decl and objc_start_method_definition.
3564 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3565 (c_parser_objc_method_decl): Add parameter expr. Update call to
3567 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3568 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3569 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3571 2011-05-05 Michael Hope <michael.hope@linaro.org>
3574 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3577 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3579 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3580 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3581 (spu_output_mi_thunk): New function.
3583 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3585 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3586 targetm.asm_out.print_operand.
3587 * config/sol2.c: Include target.h.
3589 2011-05-04 Jan Hubicka <jh@suse.cz>
3591 * ipa-inline.c (reset_edge_caches): New function.
3592 (update_caller_keys): Add check_inlinablity_for; do not
3593 reset edge caches; remove now unnecesary loop.
3594 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3595 (update_all_callee_keys): Likewise.
3596 (inline_small_functions): Sanity check cache; update code
3599 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3601 PR rtl-optimization/47612
3602 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3603 as the last insn of the sequence to be moved.
3605 2011-05-04 Tobias Burnus <burnus@net-b.de>
3608 * doc/invoke.texi (Ofast): Document that it
3609 enables Fortran's -fno-protect-parens.
3611 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3613 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3615 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3617 * stor-layout.c (variable_size): Do not issue errors.
3619 2011-05-04 Richard Guenther <rguenther@suse.de>
3621 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3622 for array-ref indices.
3623 (tree_coverage_counter_addr): Likewise.
3624 (build_fn_info_type): Use size_int for index types.
3625 (build_gcov_info): Likewise.
3627 2011-05-04 Richard Guenther <rguenther@suse.de>
3629 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3631 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3632 for constructor indices.
3633 (push_init_level): Likewise.
3635 2011-05-04 Richard Guenther <rguenther@suse.de>
3637 * explow.c (promote_mode): Move variable declarations before code.
3639 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3641 * tree.h (build_function_type_array): Declare.
3642 (build_varargs_function_type_array): Declare.
3643 (build_function_type_vec, build_varargs_function_type_vec): Define.
3644 * tree.c (build_function_type_array_1): New function.
3645 (build_function_type_array): New function.
3646 (build_varargs_function_type_array): New function.
3648 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3650 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3651 before setting STMT_VINFO_TYPE.
3653 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3655 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3656 instead of spu_pass_by_reference.
3658 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3660 * calls.c (emit_library_call_value_1): Invoke
3661 promote_function_mode hook on libcall arguments.
3662 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3663 argument being NULL.
3664 * targhooks.c (default_promote_function_mode): Lisewise.
3665 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3666 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3668 * doc/tm.texi: Document that TYPE argument might be NULL.
3670 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3672 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3674 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3677 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3679 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3681 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3682 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3684 * mips-tfile.c: ... here.
3685 Don't include coretypes.h, tm.h, filenames.h.
3686 (saber_stop): Remove definition and all calls.
3687 [__SABER__]: Remove.
3688 (__LINE__): Remove default.
3689 (Size_t, Ptrdiff_t): Remove definitions.
3690 Replace by size_t, ptrdiff_t.
3691 [!MIPS_DEBUGGING_INFO]: Remove.
3692 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3693 (progname): Add const.
3695 Replace all uses by static.
3696 (ALIGN_SYMTABLE_OFFSET): Remove default.
3697 * mips-tdump.c: Don't include coretypes.h, tm.h.
3698 Remove !MIPS_IS_STAB guard.
3699 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3700 $(TM_H), filenames.h dependencies.
3701 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3703 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3706 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3707 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3709 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3712 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3713 account and save/restore RETS.
3714 (PROFILE_BEFORE_PROLOGUE): Define.
3715 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3716 the push insn to use predecrement.
3718 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3721 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3723 2011-05-04 Nick Clifton <nickc@redhat.com>
3725 * config/mn10300/mn10300.c: Include cfgloop.h.
3727 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3728 Lcc or a FLcc insn into the instruction stream.
3729 (mn10300_block_contains_call): New function. Returns true if the
3730 given basic block contains a CALL insn.
3731 (mn10300_loop_contains_call_insn): New function. Returns true if
3732 the given loop contains a CALL insn.
3733 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3734 to use the SETLB and Lcc or FLcc insns.
3735 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3736 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3737 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3738 disable the SETLB optimization.
3739 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3740 __SETLB__ or __NO_SETLB__.
3741 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3742 (movsf_internal): Handle MDR register.
3743 (cmpsi): Make visible.
3744 (setlb): New pattern.
3746 (FLcc): New pattern.
3748 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3751 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3752 for reg<->xmm moves.
3753 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3754 (vec_concatv2di_rex64_sse): Ditto.
3755 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3756 (*vec_extractv2di_1_rex64): Ditto.
3759 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3761 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3763 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3765 2011-05-04 Richard Guenther <rguenther@suse.de>
3767 * tree.h (int_const_binop): Remove notrunc argument.
3768 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3769 create integer constants that are properly truncated.
3770 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3771 (const_binop): Remove zero notrunc argument to int_const_binop.
3772 (size_binop_loc): Likewise.
3773 (fold_div_compare): Likewise.
3774 (maybe_canonicalize_comparison_1): Likewise.
3775 (fold_comparison): Likewise.
3776 (fold_binary_loc): Likewise.
3777 (multiple_of_p): Likewise.
3778 * expr.c (store_constructor): Likewise.
3779 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3780 (maybe_fold_stmt_addition): Likewise.
3781 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3782 * stor-layout.c (layout_type): Likewise.
3783 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3784 * tree-sra.c (build_ref_for_offset): Likewise.
3785 (build_user_friendly_ref_for_offset): Likewise.
3786 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3787 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3788 * tree-ssa-loop-niter.c (inverse): Likewise.
3789 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3790 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3791 * tree-switch-conversion.c (check_range): Likewise.
3792 (build_constructors): Likewise.
3793 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3794 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3795 (extract_range_from_assert): Likewise.
3796 (vrp_int_const_binop): Likewise.
3797 (extract_range_from_binary_expr): Likewise.
3798 (extract_range_from_unary_expr): Likewise.
3799 (check_array_ref): Likewise.
3800 (find_case_label_range): Likewise.
3801 (simplify_div_or_mod_using_ranges): Likewise.
3802 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3803 comparing case labels for merging.
3805 2011-05-03 Mark Wielaard <mjw@redhat.com>
3807 * dwarf2out.c (debug_str_hash_forced): Removed.
3808 (gen_label_for_indirect_string): Removed.
3809 (get_debug_string_label): Removed.
3810 (AT_string_form): Generate label directly.
3811 (output_indirect_string): Test indirect_string_node for
3812 DW_FORM_strp instead of checking label and refcount.
3813 (prune_indirect_string): Removed.
3814 (prune_unused_types): Don't check debug_str_hash_forced or
3815 call prune_indirect_string.
3817 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3820 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3822 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3826 * combine.c (try_combine): Skip debug insns at m_split tests.
3828 2011-04-26 Mark Wielaard <mjw@redhat.com>
3831 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3832 when info_section_emitted.
3834 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3836 * config/mips/mips-opts.h: New.
3837 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3839 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3840 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3841 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3843 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3845 (mips_abi, mips_code_readable): Don't declare.
3846 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3847 (mabi=): Use Enum and Var.
3848 (mips_abi): New Enum and EnumValue entries.
3849 (mcode-readable=): Use Enum and Var.
3850 (mips_code_readable_setting): New Enum and EnumValue entries.
3851 (mr10k-cache-barrier=): Use Enum and Var.
3852 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3854 2011-05-03 Jan Hubicka <jh@suse.cz>
3856 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3857 replace hash by pointer map.
3858 (cgraph_node_set_element_def, cgraph_node_set_element,
3859 const_cgraph_node_set_element, varpool_node_set_element_def,
3860 varpool_node_set_element, const_varpool_node_set_element): Remove.
3861 (free_cgraph_node_set, free_varpool_node_set): New function.
3862 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3863 * tree-emutls.c: Free varpool node set.
3864 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3865 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3866 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3867 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3868 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3869 Move here from ipa.c; implement using pointer_map
3870 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3871 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3872 debug_cgraph_node_set, varpool_node_set_new,
3873 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3874 dump_varpool_node_set, debug_varpool_node_set):
3875 Move to ipa-uitls.c.
3876 * passes.c (ipa_write_summaries): Update.
3878 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3880 From Mike Frysinger:
3881 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3882 bf542/bf544/bf547/bf548/bf549.
3884 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3886 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3888 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3891 * config/bfin/bfin.md (MOVCC): New mode_macro.
3892 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3893 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3894 comments from generated assembly.
3896 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3899 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3900 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3901 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3902 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3903 * config/bfin/lib1funcs.asm (___muldi3): New function.
3905 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3907 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3908 build_function_type_list instead of build_function_type.
3909 Rearrange initialization of `args' to do so.
3911 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3913 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3914 instead of build_function_type.
3916 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3918 * config/rs6000/rs6000.c (spe_init_builtins): Call
3919 build_function_type_list instead of build_function_type.
3920 (paired_init_builtins, altivec_init_builtins): Likewise.
3921 (builtin_function_type): Likewise.
3923 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3925 * config/sh/sh.c (sh_media_init_builtins): Call
3926 build_function_type_list instead of build_function_type.
3928 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3930 * config/sparc/sparc.c (sparc_file_end): Call
3931 build_function_type_list instead of build_function_type.
3933 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3935 * config/alpha/alpha.c (alpha_init_builtins): Call
3936 build_function_type_list instead of build_function_type.
3938 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3940 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3941 build_function_type_list instead of build_function_type.
3943 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3945 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3946 build_function_type_list instead of build_function_type.
3947 Delete `endlink' variable.
3949 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3951 * config/avr/avr.c (avr_init_builtins): Call
3952 build_function_type_list instead of build_function_type.
3954 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3956 * config/picochip/picochip.c (picochip_init_builtins): Call
3957 build_function_type_list instead of build_function_type.
3958 Delete `endlink' variable.
3960 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3962 * config/bfin/bfin.c (bfin_init_builtins): Call
3963 build_function_type_list instead of build_function_type.
3965 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3968 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3969 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3971 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3974 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3975 libbffastfp overrides libgcc when -mfast-fp.
3977 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3979 Originally from Bernd Schmidt
3980 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3981 * config/bfin/bfin.c (override_options): Test it and error if
3984 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3986 Originally From Bernd Schmidt
3987 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3990 2011-05-03 Jeff Law <law@redhat.com>
3992 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3993 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3994 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3995 than accessing AUX field directly. Free the AUX field before
3997 (thread_block, thread_through_loop_header): Likewise.
3998 (thread_single_edge, mark_threaded_blocks): Likewise.
3999 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4000 (register_jump_thread): Do not attempt to thread to a NULL edge.
4002 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4004 * function.c (init_function_start): Call decide_function_section.
4005 * varasm.c (decide_function_section): New function.
4006 (assemble_start_function): When not using
4007 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4008 or first_function_block_is_cold.
4009 * rtl.h (decide_function_section): Declare.
4011 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4012 Jakub Jelinek <jakub@redhat.com>
4015 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4016 only succeed if req_mode is the same as set_mode.
4018 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4020 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4021 * genemit.c (gen_exp): Handle RETURN.
4022 * emit-rtl.c (verify_rtx_sharing): Likewise.
4023 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4024 * rtl.c (copy_rtx): RETURN is shared.
4025 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4027 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4028 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4029 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4030 * config/cris/cris.c (cris_expand_return): Likewise.
4031 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4032 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4033 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4034 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4035 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4037 * config/v850/v850.c (expand_epilogue): Likewise.
4038 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4039 * config/arm/arm.md (epilogue): Likewise.
4040 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4041 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4042 variable to ret_reg.
4044 2011-05-03 Richard Guenther <rguenther@suse.de>
4047 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4048 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4049 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4051 2011-05-03 Richard Guenther <rguenther@suse.de>
4053 * c-decl.c (grokdeclarator): Instead of looking at
4054 TREE_OVERFLOW check if the constant fits in the index type.
4056 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4058 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4059 (vec_store_lanes<mode><mode>): Likewise.
4061 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4063 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4064 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4065 convert_optab_index values.
4066 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4067 * genopinit.c (optabs): Initialize the new optabs.
4068 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4069 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4070 (expand_STORE_LANES): New functions.
4071 * tree.h (build_array_type_nelts): Declare.
4072 * tree.c (build_array_type_nelts): New function.
4073 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4074 (vect_model_load_cost): Likewise.
4075 (vect_store_lanes_supported, vect_load_lanes_supported)
4076 (vect_record_strided_load_vectors): Declare.
4077 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4078 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4079 (vect_transform_strided_load): Split out statement recording into...
4080 (vect_record_strided_load_vectors): ...this new function.
4081 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4082 (write_vector_array, create_array_ref): New functions.
4083 (vect_model_store_cost): Add store_lanes_p argument.
4084 (vect_model_load_cost): Add load_lanes_p argument.
4085 (vectorizable_store): Try to use store-lanes functions for
4087 (vectorizable_load): Likewise load-lanes and loads.
4088 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4089 to vect_model_store_cost.
4090 (vect_build_slp_tree): Likewise vect_model_load_cost.
4092 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4094 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4095 * hooks.c (hook_bool_mode_uhwi_false): New function.
4096 * target.def (array_mode_supported_p): New hook.
4097 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4098 * doc/tm.texi: Regenerate.
4099 * stor-layout.c (mode_for_array): New function.
4100 (layout_type): Use it.
4101 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4102 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4104 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4107 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4108 for -fstack-check if the size to allocate is negative.
4110 2011-05-02 Lawrence Crowl <crowl@google.com>
4112 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4113 (timevar_cond_start): New for starting a timer only when it is not
4115 (timevar_cond_stop): New for stopping a timer when it was not already
4118 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4119 (timevar_cond_start): New as above.
4120 (timevar_cond_stop): New as above.
4122 * timevar.def: Add start/stop timers for compiler phases,
4123 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4124 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4125 and TV_PHASE_FINALIZE.
4126 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4127 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4128 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4129 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4130 Make unused TV_OVERLOAD into a start/stop timer.
4132 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4133 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4134 to indicate that they are start/stop timers.
4136 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4137 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4138 Move initialization to do_compile.
4139 (do_compile): Add initialization from above.
4140 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4142 * c-decl.c (c_write_global_declarations): Add start/stop of
4143 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4145 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4146 or TV_PARSE_INLINE, as appropriate.
4147 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4148 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4150 2011-05-02 Jason Merrill <jason@redhat.com>
4153 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4155 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4158 * c-decl.c (finish_decl): Only create a composite if the types are
4161 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4163 * config/fr30/fr30-protos.h (Mmode): Don't define.
4164 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4165 definition where used.
4166 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4167 define. Expand definitions where used.
4168 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4169 Expand definitions where used.
4170 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4171 rx_function_arg, rx_function_arg_advance,
4172 rx_function_arg_boundary): Expand definitions of those macros.
4173 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4174 definition where used.
4176 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4178 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4180 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4181 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4182 with *movv2sf_internal_rex64_avx.
4183 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4184 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4185 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4186 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4187 "vex" in "prefix" attribute calculation.
4188 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4190 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4193 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4194 inputs match the output.
4196 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4199 * config/m68k/m68k.c (m68k_expand_prologue): Set
4200 current_function_static_stack_size.
4202 2011-05-02 Jan Hubicka <jh@suse.cz>
4204 * lto-streamer.c (lto_streamer_cache_insert_1,
4205 lto_streamer_cache_lookup, lto_streamer_cache_create,
4206 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4207 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4209 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4211 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4212 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4213 config/m68k/t-opts: New files.
4214 * config/m68k/m68k-tables.opt: New file (generated).
4215 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4216 extra_options and m68k/t-opts to tmake_file.
4217 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4218 (all_isas): Initialize using m68k-isas.def.
4219 (all_microarchs): Initialize using m68k-microarchs.def.
4220 (m68k_find_selection): Remove.
4221 (m68k_handle_option): Don't assert that global structures are in
4222 use. Use error_at. Access variables via opts pointer. Don't
4223 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4224 directly for -m68020-40 and -m68020-60.
4225 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4226 m68k_tune_entry here.
4227 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4229 (m68k_library_id_string): Remove declaration.
4230 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4231 (m68k_library_id_string): New Variable.
4232 (march=, mcpu=, mtune=): Use Enum and Var.
4234 2011-05-02 Richard Guenther <rguenther@suse.de>
4236 * varasm.c (output_constructor_regular_field): Compute zero-based
4237 index with double-ints. Make sure to ICE instead of producing
4239 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4240 in asserts. Properly use a signed type.
4242 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4244 * config/i386/sse.md (V): New mode iterator.
4245 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4247 (V_256): Rename from AVX256MODE.
4248 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4249 condition to all users.
4251 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4252 condition to all users.
4253 (VF_128): Make V4SF mode unconditional.
4254 (VF_256): Rename from AVX256MODEF2P.
4255 (VI4F_128): Rename from SSEMODE4S.
4256 (VI8F_128): Rename from SSEMODE2D.
4257 (VI4F_256): Rename from AVX256MODE8P.
4258 (VI8F_256): Rename from AVX256MODE4P.
4259 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4260 (ssescalarmodesuffix): Remove SF and DF modes.
4261 (SSEMODE124): Remove.
4262 (SSEMODE1248): Ditto.
4263 (SSEMODEF2P): Ditto.
4264 (AVXMODEF2P): Ditto.
4265 (AVXMODEFDP): Ditto.
4266 (AVXMODEFSP): Ditto.
4267 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4269 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4271 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4272 xop_pcmov_<mode>256. Use V mode iterator.
4274 Adjust RTX patterns globally for renamed mode attributes.
4276 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4278 * haifa-sched.c (sched_emit_insn): Emit insn before first
4279 non-scheduled insn. Inform back-end about new insn. Add
4280 new insn to scheduled_insns list.
4282 2011-05-02 Richard Guenther <rguenther@suse.de>
4284 PR tree-optimization/48822
4285 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4286 (process_scc): Indicate which iteration we start.
4288 2011-05-02 Jan Hubicka <jh@suse.cz>
4290 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4291 (lto_section_overrun): New.
4292 * lto-section-out.c (append_block): Rename to ...
4293 (lto_append_block): ... this one; export.
4294 (lto_output_1_stream): Move lto lto-streamer.h
4295 (lto_output_data_stream): Update.
4296 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4297 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4300 2011-05-02 Richard Guenther <rguenther@suse.de>
4302 * tree.c (tree_code_counts): New global array.
4303 (record_node_allocation_statistics): Count individual tree codes.
4304 (dump_tree_statistics): Dump individual code stats.
4306 2011-05-01 Jan Hubicka <jh@suse.cz>
4308 * ipa-inline.c (caller_growth_limits): Fix thinko when
4309 looking for largest stack frame.
4310 * ipa-inline.h (dump_inline_summary): Declare.
4311 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4313 (dump_inline_summary): Export.
4314 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4316 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4318 * reginfo.c (memory_move_cost): Change rclass argument type form
4319 'enum reg_class' to reg_class_t.
4320 * reload.h (memory_move_cost): Update prototype.
4321 * postreload.c reload_cse_simplify_set): Change type dclass var to
4323 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4325 (ira_allocate_and_set_costs): Change aclass argument type form
4326 'enum reg_class' to reg_class_t.
4327 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4328 Change aclass argument type to reg_class_t.
4329 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4331 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4332 memory_move_cost call.
4334 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4335 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4336 Change type tmp var to reg_class_t.
4338 2011-04-30 Jan Hubicka <jh@suse.cz>
4340 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4341 inlining into function with flatten attribute.
4342 (want_inline_small_function_p): Be more realistic about inlining
4343 cold calls where callee size grows.
4345 2011-04-30 Jan Hubicka <jh@suse.cz>
4347 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4350 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4352 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4353 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4354 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4355 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4356 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4357 (print_operand): Rename to...
4358 (sparc_print_operand): ...this. Make static. Adjust
4359 sparc_print_operand function call.
4360 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4363 2011-04-30 Jan Hubicka <jh@suse.cz>
4366 * ipa-inline.c (early_inliner): Disable when doing late
4367 addition of function.
4369 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4371 * dwarf2out.c (get_address_mode): New inline.
4372 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4373 if not dwarf_strict emit
4374 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4375 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4376 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4377 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4378 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4379 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4380 mem_loc_descriptor callers.
4381 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4382 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4383 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4384 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4385 (base_types): New variable.
4386 (get_base_type_offset, calc_base_type_die_sizes,
4387 base_type_for_mode, mark_base_types, base_type_cmp,
4388 move_marked_base_types): New functions.
4389 (calc_die_sizes): Assert that die_offset is 0 or equal to
4391 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4392 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4393 callers. If not dwarf_strict, call mem_loc_descriptor even for
4394 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4395 (gen_subprogram_die): Don't give up on call site parameters
4396 with non-integral or large integral modes. Adjust
4397 mem_loc_descriptor callers.
4398 (prune_unused_types): Call prune_unused_types_mark on base_types
4400 (resolve_addr): Call mark_base_types.
4401 (dwarf2out_finish): Call move_marked_base_types.
4403 PR tree-optimization/48809
4404 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4406 (gen_inbound_check): Don't compute index_expr - range_min in utype
4407 again, instead reuse SSA_NAME initialized in build_arrays.
4408 Remove two useless gsi_for_stmt calls.
4410 2011-04-29 Jeff Law <law@redhat.com>
4412 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4414 2011-04-29 Martin Jambor <mjambor@suse.cz>
4416 * cgraph.h (cgraph_postorder): Remove declaration.
4417 * ipa-utils.h (ipa_free_postorder_info): Declare.
4418 (ipa_reverse_postorder): Likewise.
4419 * cgraphunit.c: Include ipa-utils.h.
4420 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4421 * ipa-inline.c: Include ipa-utils.h.
4422 (ipa_inline): Update call to ipa_reverse_postorder.
4423 * ipa-pure-const.c (propagate_pure_const): Update call to
4424 ipa_reduced_postorder and ipa_print_order. Call
4425 ipa_free_postorder_info to clean up.
4426 (propagate_nothrow): Likewise.
4427 * ipa-reference.c (propagate): Removed a useless call to
4428 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4429 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4430 * ipa.c: Include ipa-utils.h.
4431 (ipa_profile): Update call to ipa_reverse_postorder.
4432 (cgraph_postorder): Moved to...
4433 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4434 (ipa_utils_print_order): Renamed to ipa_print_order.
4435 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4437 (ipa_free_postorder_info): New function.
4438 * passes.c: Include ipa-utils.h.
4439 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4440 (ipa_write_summaries): Likewise.
4441 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4442 (cgraphunit.o): Likewise.
4444 (ipa-inline.o): Likewise.
4446 2011-04-29 Jan Hubicka <jh@suse.cz>
4448 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4449 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4450 * ipa-inline.h (clause_t): Turn into unsigned int.
4451 * ipa-inline-analysis.c (add_clause): Do more simplification.
4452 (and_predicates): Shortcut more cases.
4453 (predicates_equal_p): Move forward; check that clauses are properly
4455 (or_predicates): Shortcut more cases.
4456 (edge_execution_predicate): Rewrite as...
4457 (set_cond_stmt_execution_predicate): ... this function; handle
4458 __builtin_constant_p.
4459 (set_switch_stmt_execution_predicate): New .
4460 (compute_bb_predicates): New.
4461 (will_be_nonconstant_predicate): Update TODO.
4462 (estimate_function_body_sizes): Use compute_bb_predicates
4463 and free them later, always try to estimate if stmt is constant.
4464 (estimate_time_after_inlining, estimate_size_after_inlining):
4465 Gracefully handle optimized out edges.
4466 (read_predicate): Fix off by one error.
4468 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4470 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4472 2011-04-27 Xinliang David Li <davidxl@google.com>
4474 * tree-profile.c (init_ic_make_global_vars): Set
4475 tls attribute on ic vars.
4476 * coverage.c (coverage_end_function): Initialize
4477 function_list with zero.
4479 2011-04-29 Richard Guenther <rguenther@suse.de>
4481 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4482 for the type of the result.
4483 (fold_builtin_isascii): Likewise.
4484 (fold_builtin_toascii): Use integer_type_node where appropriate.
4485 (fold_builtin_logb): Likewise.
4486 (fold_builtin_frexp): Likewise.
4487 (fold_builtin_strstr): Likewise.
4488 (fold_builtin_strpbrk): Likewise.
4489 (fold_builtin_fputs): Likewise.
4490 (fold_builtin_sprintf): Likewise.
4491 (fold_builtin_snprintf): Likewise.
4492 (fold_builtin_printf): Likewise.
4493 (do_mpfr_remquo): Use a proper type for the assigned constant.
4494 (do_mpfr_lgamma_r): Likewise.
4495 * dwarf2out.c (resolve_one_addr): Use size_int.
4496 * except.c (init_eh): Likewise.
4497 (assign_filter_values): Use integer_type_node for filter values.
4498 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4500 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4501 for EH region numbers.
4502 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4503 for the shift amount.
4505 2011-04-29 Richard Guenther <rguenther@suse.de>
4507 * expr.h (expand_shift): Rename to ...
4508 (expand_variable_shift): ... this.
4509 (expand_shift): Take a constant shift amount.
4510 * expmed.c (expand_shift): Rename to ...
4511 (expand_variable_shift): ... this.
4512 (expand_shift): New wrapper around expand_variable_shift.
4513 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4514 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4515 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4516 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4517 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4518 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4519 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4520 emit_store_flag_1, emit_store_flag): Likewise.
4521 * builtins.c (expand_builtin_signbit): Likewise.
4522 * calls.c (load_register_parameters): Likewise.
4523 * function.c (assign_parm_setup_block): Likewise.
4524 * lower-subreg.c (resolve_shift_zext): Likewise.
4525 * optabs.c (widen_bswap, expand_abs_nojump,
4526 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4527 * spu/spu.c (spu_expand_extv): Likewise.
4528 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4530 2011-04-29 Richard Guenther <rguenther@suse.de>
4532 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4533 for the remapped region number.
4534 * predict.c (build_predict_expr): Use integer_type_node for the
4536 * fold-const.c (fold_binary_loc): Use integer_type_node for
4537 the shift amount. Use a proper type for the PLUS_EXPR operand.
4539 2011-04-29 Michael Matz <matz@suse.de>
4541 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4542 other trees that just builtins.
4543 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4545 2011-04-29 Richard Guenther <rguenther@suse.de>
4547 * tree-nested.c (get_trampoline_type): Use size_int.
4548 (get_nl_goto_field): Likewise.
4549 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4551 (lower_eh_constructs_2): Likewise.
4552 (lower_resx): Likewise.
4553 (lower_eh_dispatch): Likewise.
4554 * tree-mudflap.c (mf_build_string): Use size_int.
4555 (mudflap_register_call): Use integer_type_node for the flag.
4556 (mudflap_enqueue_constant): Use size_int.
4557 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4558 instead of rebuilding it.
4560 2011-04-29 Richard Guenther <rguenther@suse.de>
4562 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4563 Handle OBJ_TYPE_REF.
4564 (find_func_aliases_for_call): Use it more consistently.
4566 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4568 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4569 (rank_for_schedule): Use it.
4570 (schedule_block): Set it.
4572 2011-04-28 David Li <davidxl@google.com>
4574 * tree.c (crc32_string): Use crc32_byte.
4575 (crc32_byte): New function.
4576 * tree.h (crc32_byte): New function.
4577 * gcov.c (read_graph_file): Handle new cfg_cksum.
4578 (read_count_file): Ditto.
4579 * profile.c (instrument_values): Ditto.
4580 (get_exec_counts): Ditto.
4581 (read_profile_edge_counts): Ditto.
4582 (compute_branch_probabilities): Ditto.
4583 (compute_value_histograms): Ditto.
4584 (branch_prob): Ditto.
4585 (end_branch_prob): Ditto.
4586 * coverage.c (read_counts_file): Ditto.
4587 (get_coverage_counts): Ditto.
4588 (tree_coverage_counter_addr): Ditto.
4589 (coverage_checksum_string): Ditto.
4590 (coverage_begin_output): Ditto.
4591 (coverage_end_function): Ditto.
4592 (build_fn_info_type): Ditto.
4593 (build_fn_info_value): Ditto.
4594 * libgcov.c (gcov_exit): Ditto.
4595 * gcov-dump.c (tag_function): Ditto.
4596 (compute_checksum): Remove.
4598 2011-04-29 Alan Modra <amodra@gmail.com>
4600 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4601 unspec plus offset. Tidy macho code.
4603 2011-04-29 Martin Jambor <mjambor@suse.cz>
4605 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4606 node instead of a decl. Update all callers.
4607 * cgraph.h: Update declaration.
4609 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4611 PR tree-optimization/48765
4612 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4613 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4614 to indicate if loop aware SLP is being used. Scan the statements
4615 and update the vectorization factor according to the type of
4616 vectorization before statement analysis.
4617 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4618 pass it to vect_analyze_loop_operations.
4619 (vectorizable_reduction): Set number of copies to 1 in case of pure
4621 * tree-vect-stmts.c (vectorizable_conversion,
4622 vectorizable_assignment, vectorizable_shift,
4623 vectorizable_operation, vectorizable_type_demotion,
4624 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4626 (vectorizable_condition): Move the check that it is not SLP
4627 vectorization before the number of copies check.
4628 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4629 to vectorize the loop using SLP.
4631 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4634 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4637 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4639 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4640 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4641 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4642 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4643 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4645 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4646 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4647 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4648 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4649 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4650 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4652 * config/i386/linux.h (REG_NAME): Don't define.
4653 * config/i386/linux64.h (REG_NAME): Don't define.
4654 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4655 Undefine before defining.
4657 2011-04-28 Jan Hubicka <jh@suse.cz>
4659 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4660 nonconstant_names array.
4661 (estimate_function_body_sizes): Build nonconstant_names array; handle
4662 BUILT_IN_CONSTANT_P.
4664 2011-04-28 Richard Guenther <rguenther@suse.de>
4668 2011-04-28 Richard Guenther <rguenther@suse.de>
4670 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4671 as late as possible.
4673 2011-04-28 Richard Guenther <rguenther@suse.de>
4675 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4676 (debug_constraint): Do it here.
4677 (dump_constraints): And here.
4678 (rewrite_constraints): And here.
4679 (dump_constraint_edge): Remove.
4680 (dump_constraint_graph): Rewrite to produce DOT output.
4681 (solve_constraints): Build succ graph as late as possible.
4682 Dump constraint graphs before and after solving.
4684 2011-04-28 Richard Guenther <rguenther@suse.de>
4686 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4687 New function split out from ...
4688 (find_func_aliases): ... here. Call it.
4689 (find_func_aliases_for_call): Likewise.
4691 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4693 * internal-fn.h (internal_fn_name_array): Declare.
4694 (internal_fn_flags_array): Likewise.
4696 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4698 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4699 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4701 (ssemodefsuffix): Remove.
4702 (ssevecmodesuffix): New mode attribute.
4703 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4704 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4705 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4706 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4707 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4708 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4709 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4710 ssemodesuffix mode attribute.
4711 (float splitters): Use ssevecmodesuffix mode attribute.
4712 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4713 (sseinsmode): Rename from avxvecmode.
4714 (avxsizesuffix): Rename from avxmodesuffix.
4715 (sseintvecmode): Rename from avxpermvecmode.
4716 (ssedoublevecmode): Rename from ssedoublesizemode.
4717 (ssehalfvecmode): Rename from avxhalfvecmode.
4718 (ssescalarmode): Rename from avxscalarmode.
4719 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4720 templates for ssemodesuffix mode attribute.
4721 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4724 Adjust RTX patterns globally for renamed mode attributes.
4726 2011-04-27 Jan Hubcika <jh@suse.cz>
4728 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4729 * ipa-inline-analysis.c: Include alloc-pool.h.
4730 (edge_predicate_pool): New.
4731 (trye_predicate_p): New function
4732 (false_predicate_p): New function.
4733 (add_clause): Sanity check that false clauses are "optimized";
4734 never add clauses to predicate that is already known to be false.
4735 (and_predicate): Use flase_predicate_p.
4736 (evaulate_predicate): Rename to ...
4737 (evaluate_predicate): ... this one; update all callers; assert
4738 that false is not listed among possible truths.
4739 (dump_predicate): Use true_predicate_p.
4740 (account_size_time): Use false_predicate_p.
4741 (evaulate_conditions_for_edge): Rename to ...
4742 (evaluate_conditions_for_edge) ... this one.
4743 (edge_set_predicate): New function.
4744 (inline_edge_duplication_hook): Duplicate edge predicates.
4745 (inline_edge_removal_hook): Free edge predicates.
4746 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4747 (dump_inline_summary): Update.
4748 (estimate_function_body_sizes): Set edge predicates.
4749 (estimate_calls_size_and_time): Handle predicates.
4750 (estimate_callee_size_and_time): Update.
4751 (remap_predicate): Add toplev_predicate; update comment.
4752 (remap_edge_predicates): New function.
4753 (inline_merge_summary): Compute toplev predicate; update.
4754 (read_predicate): New function.
4755 (read_inline_edge_summary): Use it.
4756 (inline_read_section): Likewise.
4757 (write_predicate): New function.
4758 (write_inline_edge_summary): Use it.
4759 (inline_write_summary): Likewise.
4760 (inline_free_summary): Free alloc pool and edge summary vec.
4762 2011-04-27 Richard Guenther <rguenther@suse.de>
4764 * tree-ssa-structalias.c (changed_count): Remove.
4765 (changed): Use a bitmap.
4766 (unify_nodes): Adjust.
4767 (do_sd_constraint): Likewise.
4768 (do_ds_constraint): Likewise.
4769 (do_complex_constraint): Likewise.
4770 (solve_graph): Likewise.
4772 2011-04-27 Jan Hubicka <jh@suse.cz>
4774 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4776 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4778 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4779 (avx_vperm2f128_*_operand): Ditto.
4780 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4781 Use avx_vpermilp_parallel in insn condition.
4782 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4783 Use avx_vperm2f128_parallel in insn condition.
4785 2011-04-27 Richard Guenther <rguenther@suse.de>
4787 * Makefile.in (tree-ssa-structalias.o): Remove
4788 gt-tree-ssa-structalias.h dependency.
4789 (GTFILES): Remove tree-ssa-structalias.c.
4790 * tree.c (allocate_decl_uid): New function.
4791 (make_node_stat): Use it.
4792 (copy_node_stat): Likewise.
4793 * tree.h (allocate_decl_uid): Declare.
4794 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4795 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4796 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4797 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4798 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4799 (struct heapvar_map): Likewise.
4800 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4801 heapvar_insert): Likewise.
4802 (make_heapvar_for): Rename to ...
4803 (make_heapvar): ... this. Simplify.
4804 (fake_var_decl_obstack): New global var.
4805 (build_fake_var_decl): New function.
4806 (make_constraint_from_heapvar): Adjust.
4807 (handle_lhs_call): Likewise.
4808 (create_function_info_for): Likewise.
4809 (intra_create_variable_infos): Likewise.
4810 (init_alias_vars): Allocate fake_var_decl_obstack.
4811 (init_alias_heapvars, delete_alias_heapvars): Remove.
4812 (compute_points_to_sets): Do not call init_alias_heapvars.
4813 (ipa_pta_execute): Likewise.
4814 (delete_points_to_sets): Free fake_var_decl_obstack.
4816 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4818 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4819 (si_from_UTItype, si_to_UTItype): New functions.
4820 (__udivmodti4): Use them to implement type-punning.
4821 * config/spu/multi3.c (union qword_TItype): New data type.
4822 (si_from_TItype, si_to_TItype): New functions.
4823 (__multi3): Use them to implement type-punning.
4825 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4827 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4829 2011-04-27 Jan Hubicka <jh@suse.cz>
4831 * ipa-prop.c (function_insertion_hook_holder): New holder.
4832 (ipa_add_new_function): New function.
4833 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4834 Register/deregister holder.
4836 2011-04-27 Richard Guenther <rguenther@suse.de>
4838 PR tree-optimization/48772
4839 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4841 2011-04-27 Richard Guenther <rguenther@suse.de>
4843 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4844 TARGET_MEM_REF handling.
4846 2011-04-27 Nick Clifton <nickc@redhat.com>
4848 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4849 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4850 (REG_CLASS_NAMES): Likewise.
4851 (REG_CLASS_CONTENTS): Likewise.
4852 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4853 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4854 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4855 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4856 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4857 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4858 duplicate register classes.
4859 (frv_class_likely_spilled_p): Likewise.
4860 (frv_register_move_cost): Likewise.
4862 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4863 end of the regno_reg_class array.
4865 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4868 * c-typeck.c (build_binary_op): Don't wrap arguments if
4869 int_operands is true.
4871 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4874 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4875 targetm.calls.must_pass_in_stack for void type.
4877 2011-04-26 Jan Hubicka <jh@suse.cz>
4879 * cgraphbuild.c (build_cgraph_edges): Update call
4880 of cgraph_create_edge and cgraph_create_indirect_edge.
4881 * cgraph.c (cgraph_create_edge_including_clones,
4882 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4883 cgraph_update_edges_for_call_stmt_node): Do not take nest
4884 argument; do not initialize call_stmt_size/time.
4885 (dump_cgraph_node): Do not dump nest.
4886 (cgraph_clone_edge): Do not take loop_nest argument;
4887 do not propagate it; do not clone call_stmt_size/time.
4888 (cgraph_clone_node): Likewise.
4889 (cgraph_create_virtual_clone): Update.
4890 * cgraph.h (struct cgraph_edge): Remove
4891 call_stmt_size/call_stmt_time/loop_nest.
4892 (cgraph_create_edge, cgraph_create_indirect_edge,
4893 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4895 * tree-emutls.c (gen_emutls_addr): Update.
4896 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4897 loop_nest; handle indirect calls, too.
4898 (clone_inlined_nodes): Do not care about updating inline summaries.
4899 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4900 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4901 stream call_stmt_size/call_stmt_time/loop_nest.
4902 * ipa-inline.c (edge_badness): Update.
4903 (ipa_inline): dump summaries after inlining.
4904 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4906 (inline_edge_summary): New function.
4907 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4908 (inline_edge_removal_hook): Handle edge summaries.
4909 (inline_edge_duplication_hook): New hook.
4910 (inline_summary_alloc): Alloc hooks.
4911 (initialize_growth_caches): Do not register removal hooks.
4912 (free_growth_caches); Do not free removal hook.
4913 (dump_inline_edge_summary): New function.
4914 (dump_inline_summary): Use it.
4915 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4916 (inline_update_callee_summaries): New function.
4917 (inline_merge_summary): Use it.
4918 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4919 (read_inline_edge_summary): New function.
4920 (inline_read_section): Use it.
4921 (write_inline_edge_summary): New function.
4922 (inline_write_summary): Use it.
4923 (inline_free_summary): Free edge new holders.
4924 * tree-inline.c (copy_bb): Update.
4926 2011-04-26 Jason Merrill <jason@redhat.com>
4928 * tree-eh.c (lower_try_finally_switch): Create the label along with
4929 the CASE_LABEL_EXPR.
4931 2011-04-26 David S. Miller <davem@davemloft.net>
4932 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4934 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4935 * configure: Regenerate.
4937 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4940 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4942 (VEC_reduc): New code iterator and splitters for vector reduction.
4943 (VEC_reduc_name): Ditto.
4944 (VEC_reduc_rtx): Ditto.
4945 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4946 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4948 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4949 support for extracting SF on VSX.
4951 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4952 generating xscvspdp.
4953 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4954 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4955 double add, minimum, maximum vector reduction.
4956 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4957 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4958 optimize double vector reduction.
4959 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4961 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4963 * config/fr30/fr30.h (inhibit_libc): Don't define.
4964 * config/m32r/m32r-protos.h: Correct comment.
4965 * config/v850/v850.h (GHS_default_section_names,
4966 GHS_current_section_names): Use tree, not union tree_node *.
4968 2011-04-26 Xinliang David Li <davidxl@google.com>
4970 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4971 * c-family/c-opts.c (c_common_handle_option): Set
4972 warn_maybe_uninitialized.
4973 * opts.c (common_handle_option): Ditto.
4974 * common.opt: New option.
4975 * tree-ssa.c (warn_uninit): Add one more parameter.
4976 (warn_uninitialized_var): Pass warning code.
4977 * tree-flow.h: Interface change.
4979 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4981 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4982 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4983 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4985 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4987 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4988 * config/mips/mips.opt (mmips-tfile): Remove.
4990 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4991 mips-tdump reference to ...
4992 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4993 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4994 reference by Tru64 UNIX.
4996 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4999 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5000 is error_mark_node, set value to NULL.
5002 PR tree-optimization/48734
5003 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5004 if return value from maybe_fold_*_comparsions isn't something
5005 the code is prepared to handle.
5007 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5009 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5011 (ext_QIreg_nomode_operands): Remove.
5012 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5016 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5018 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5020 2011-04-26 Richard Guenther <rguenther@suse.de>
5022 * c-typeck.c (build_unary_op): Do not expand array-refs via
5023 pointer arithmetic. Only adjust qualifiers for function types.
5025 2011-04-26 Richard Guenther <rguenther@suse.de>
5028 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5029 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5030 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5031 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5033 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5035 * doc/extend.texi: Document __underlying_type.
5037 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5039 * config/rs6000/titan.md (automata_option "progress"): Remove.
5041 2011-04-25 Jeff Law <law@redhat.com>
5043 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5045 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5047 * system.h (ENUM_BITFIELD): Remove.
5049 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5050 Eric Botcazou <ebotcazou@adacore.com>
5052 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5053 for STORE_FLAG_VALUE==-1 case.
5055 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5058 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5059 LEGITIMATE_PIC_OPERAND_P.
5061 2011-04-24 Jan Hubicka <jh@suse.cz>
5063 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5065 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5066 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5067 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5068 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5069 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5070 Sanity check predicate length.
5071 (remap_predicate): Likewise; sanity check jump functions.
5072 (inline_read_section, inline_write_summary): Sanity check
5075 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5078 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5079 __is_literal_type, and __is_trivial; update throughout about
5080 possibly cv-qualified void types.
5082 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5084 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5085 testsuite and make it version agnostic.
5087 2011-04-22 Jan Hubicka <jh@suse.cz>
5089 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5091 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5094 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5095 to VOID_TYPE even around MODIFY_EXPR.
5097 2011-04-22 Mike Stump <mikestump@comcast.net>
5099 * gensupport.c (read_md_rtx): Fix typo in comment.
5100 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5103 2011-04-22 Jan Hubicka <jh@suse.cz>
5105 * gengtype.c (open_base_files): Add ipa-inline.h include.
5106 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5107 ipa-prop.c; update all uses.
5108 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5109 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5110 merge summary of inlined function into former caller.
5111 * ipa-inline.c (max_benefit): Remove.
5112 (edge_badness): Compensate for removal of benefits.
5113 (update_caller_keys): Use
5114 reset_node_growth_cache/reset_edge_growth_cache.
5115 (update_callee_keys): Likewise.
5116 (update_all_callee_keys): Likewise.
5117 (inline_small_functions): Do not collect max_benefit; do not reset
5118 estimated_growth; call free_growth_caches and initialize_growth_caches.
5119 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5120 struct size_time_entry): New structures.
5121 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5122 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5123 and estimated_growth.
5124 (edge_growth_cache_entry): New structure.
5125 (node_growth_cache, edge_growth_cache): New global vars.
5126 (estimate_growth): Turn into inline.
5127 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5128 initialize_growth_caches, free_growth_caches): Declare.
5129 (estimate_edge_growth): Rewrite.
5130 (estimate_edge_time): Implement as inline cache lookup.
5131 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5133 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5134 (NUM_CONDITIONS): New constant.
5135 (predicate_conditions): New enum.
5136 (IS_NOT_CONSTANT): New constant.
5137 (edge_removal_hook_holder): New var.
5138 (node_growth_cache, edge_growth_cache): New global vars.
5139 (true_predicate, single_cond_predicate, false_predicate,
5140 not_inlined_predicate, add_condition, add_clause, and_predicates,
5141 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5142 dump_clause, dump_predicate, account_size_time,
5143 evaulate_conditions_for_edge): New functions.
5144 (inline_summary_alloc): Move to heap.
5145 (inline_node_removal_hook): Clear condition and entry vectors.
5146 (inline_edge_removal_hook): New function.
5147 (initialize_growth_caches, free_growth_caches): New function.
5148 (dump_inline_summary): Update.
5149 (edge_execution_predicate): New function.
5150 (will_be_nonconstant_predicate): New function.
5151 (estimate_function_body_sizes): Compute BB and constantness predicates.
5152 (compute_inline_parameters): Do not clear estimated_growth.
5153 (estimate_edge_size_and_time): New function.
5154 (estimate_calls_size_and_time): New function.
5155 (estimate_callee_size_and_time): New function.
5156 (remap_predicate): New function.
5157 (inline_merge_summary): New function.
5158 (do_estimate_edge_time): New function based on...
5159 (estimate_edge_time): ... this one.
5160 (do_estimate_edge_growth): New function.
5161 (do_estimate_growth): New function based on....
5162 (estimate_growth): ... this one.
5163 (inline_analyze_function): Analyze after deciding on jump functions.
5164 (inline_read_section): New function.
5165 (inline_read_summary): Use it.
5166 (inline_write_summary): Write all the new data.
5167 * ipa-prop.c (ipa_get_param_decl_index): Export.
5168 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5169 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5171 (ipa_get_lattice): Move here from ipa-cp.c
5172 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5173 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5174 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5175 cgraph_edge_inlinable_p): Remove.
5176 * cgraphunit.c: Include ipainline.h
5177 (cgraph_process_new_functions): Update call of
5178 compute_inline_parameters.
5180 2011-04-22 Richard Guenther <rguenther@suse.de>
5182 * tree.c (build_int_cst): Properly create canonicalized integer
5184 (build_int_cst_type): Remove scary comments.
5186 2011-04-22 Xinliang David Li <davidxl@google.com>
5188 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5189 by default when -Wno-error is not specified.
5190 * opts-global.c (decode_options): Remove call to
5191 control_warning_options.
5193 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5195 PR tree-optimization/48717
5196 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5197 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5199 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5201 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5202 definition where used.
5204 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5207 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5208 TREE_STATIC variables declared inside of some OpenMP construct.
5210 2011-04-22 Martin Jambor <mjambor@suse.cz>
5213 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5215 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5218 * c-typeck.c (pop_init_level): Do not warn about initializing
5221 2011-04-22 Alan Modra <amodra@gmail.com>
5223 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5224 when returning call_cookie.
5225 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5226 pointers, to functions with no more vector args than the current
5227 function, and some non-local calls for ABI_V4.
5228 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5229 sibcall_nonlocal_aix64): Combine to ..
5230 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5231 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5232 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5233 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5234 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5236 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5237 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5238 sibcall_value_symbolic_64): Delete.
5240 2011-04-21 Xinliang David Li <davidxl@google.com>
5242 * cgraph.h: Remove pid.
5243 * cgraph.c: Remove pid.
5244 * value-prof.c (init_node_map): New function.
5245 (del_node_map): New function.
5246 (find_func_by_funcdef_no): New function.
5247 (gimple_ic_transform): Call new function.
5248 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5249 * function.c (get_last_funcdef_no): New function.
5250 * function.h (get_last_funcdef_no): New function.
5251 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5252 to libgcov function.
5253 (tree-profiling): Call node map init and delete function.
5255 2011-04-21 Ian Lance Taylor <iant@google.com>
5257 * godump.c (go_format_type): Use exported Go name for anonymous
5260 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5262 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5263 Call builtin_function_type_list instead of builtin_function_type.
5264 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5266 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5268 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5269 build_function_type_list instead of build_function_type.
5270 Delete variable `endlink'.
5272 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5274 * config/s390/s390.c (s390_init_builtins): Call
5275 build_function_type_list instead of build_function_type.
5277 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5279 * config/ia64/ia64.c (ia64_init_builtins): Call
5280 build_function_type_list instead of builtin_function_type.
5282 2011-04-21 Easwaran Raman <eraman@google.com>
5284 * cfgexpand.c (stack_var): Remove OFFSET...
5285 (add_stack_var): ...and its reference here...
5286 (expand_stack_vars): ...and here.
5287 (stack_var_cmp): Sort by descending order of size.
5288 (partition_stack_vars): Change heuristic.
5289 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5290 (dump_stack_var_partition): Add newline after each partition.
5292 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5293 Jeff Law <law@redhat.com>
5295 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5296 * gengtype.c (matching_file_name_substitute): Likewise.
5298 2011-04-21 Richard Guenther <rguenther@suse.de>
5301 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5303 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5305 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5307 2011-04-21 Richard Guenther <rguenther@suse.de>
5309 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5312 2011-04-21 Richard Guenther <rguenther@suse.de>
5314 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5315 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5316 Use DECL_P, not SSA_VAR_P.
5317 (ptr_derefs_may_alias_p): Likewise.
5318 (ptr_deref_may_alias_ref_p_1): Likewise.
5319 (decl_refs_may_alias_p): Likewise.
5320 (refs_may_alias_p_1): Likewise.
5321 (ref_maybe_used_by_call_p_1): Likewise.
5322 (call_may_clobber_ref_p_1): Likewise.
5323 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5324 are either MEM_REF or TARGET_MEM_REF.
5325 (indirect_refs_may_alias_p): Likewise.
5326 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5327 for MEM_EXPR of indirect calls.
5329 2011-04-21 Tristan Gingold <gingold@adacore.com>
5331 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5332 (dst_file_info_struct): Remove flen field.
5333 (lookup_filename): Remove code that set flen field.
5335 2011-04-21 Tristan Gingold <gingold@adacore.com>
5337 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5339 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5342 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5343 vec_extract and vec_concat for non-SSE4_1 targets.
5345 2011-04-21 Richard Guenther <rguenther@suse.de>
5347 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5350 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5352 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5354 (FILE): Don't undefine.
5356 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5358 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5360 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5362 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5363 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5364 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5366 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5367 definitions where used.
5368 * config/microblaze/microblaze.h (struct microblaze_args): Use
5369 rtx, not struct rtx_def *.
5370 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5372 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5373 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5374 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5375 not struct rtx_def *.
5376 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5378 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5380 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5382 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5384 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5385 operand_equal_p to compare DR_BASE_ADDRESSes.
5386 (vect_check_interleaving): Likewise.
5388 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5391 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5392 for all Neon struct constants.
5394 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5396 * target.def (legitimate_constant_p): New hook.
5397 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5398 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5399 * doc/tm.texi: Regenerate.
5400 * hooks.h (hook_bool_mode_rtx_true): Declare.
5401 * hooks.c (hook_bool_mode_rtx_true): Define.
5402 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5403 * calls.c (precompute_register_parameters): Replace uses of
5404 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5405 (emit_library_call_value_1): Likewise.
5406 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5407 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5408 * ira-costs.c (scan_one_insn): Likewise.
5409 * recog.c (general_operand, immediate_operand): Likewise.
5410 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5411 * reload1.c (init_eliminable_invariants): Likewise.
5413 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5415 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5416 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5418 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5419 * config/alpha/predicates.md (input_operand): Update call to
5420 alpha_legitimate_constant_p.
5422 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5423 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5424 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5425 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5426 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5427 (arm_legitimate_constant_p): New functions.
5428 (arm_cannot_force_const_mem): Make static.
5430 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5432 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5433 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5434 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5435 instead of bfin_legitimate_constant_p.
5436 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5437 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5439 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5441 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5443 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5444 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5445 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5446 (frv_legitimate_constant_p): Make static. Add a mode argument.
5448 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5449 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5450 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5452 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5453 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5454 * config/i386/i386.c (legitimate_constant_p): Rename to...
5455 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5457 (ix86_cannot_force_const_mem): Update accordingly.
5458 (ix86_legitimate_address_p): Likewise.
5459 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5460 * config/i386/i386.md: Update commentary.
5462 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5463 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5464 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5465 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5467 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5469 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5470 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5471 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5472 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5474 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5475 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5476 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5478 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5479 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5480 (m32r_legitimate_constant_p): New function.
5482 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5483 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5484 LEGITIMATE_CONSTANT_P.
5485 (LEGITIMATE_CONSTANT_P): Delete.
5486 * config/m68k/m68k.c (m68k_expand_prologue): Call
5487 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5488 (m68k_legitimate_constant_p): New function.
5489 * config/m68k/m68k.md: Update comments.
5491 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5492 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5493 (mcore_legitimate_constant_p): New function.
5495 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5496 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5497 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5498 Add a mode argument.
5499 (mep_legitimate_address): Update accordingly.
5500 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5502 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5504 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5505 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5506 static. Check OP's mode for VOIDmode.
5507 (microblaze_legitimate_constant_p): New function.
5508 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5510 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5511 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5512 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5513 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5514 * config/mips/predicates.md: Update comments.
5516 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5517 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5518 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5519 (mmix_legitimate_constant_p): Make static, return a bool, and take
5521 (mmix_print_operand_address): Update accordingly.
5523 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5525 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5526 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5527 static. Add a mode argument.
5528 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5530 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5532 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5533 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5534 (pa_legitimate_constant_p): New function.
5536 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5538 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5539 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5540 (pdp11_legitimate_constant_p): New function.
5542 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5543 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5544 (rs6000_legitimate_constant_p): New function.
5546 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5547 (rx_legitimate_constant_p): ...this.
5548 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5549 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5550 (rx_legitimate_constant_p): ...this.
5551 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5552 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5554 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5555 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5556 * config/s390/s390.c (legitimate_constant_p): Rename to...
5557 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5558 and add a mode argument.
5559 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5561 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5563 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5564 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5565 (sh_legitimate_constant_p): New function.
5567 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5568 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5569 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5570 (legitimate_constant_p): Rename to...
5571 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5573 (constant_address_p): Update accordingly.
5575 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5576 argument and return a bool.
5577 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5578 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5579 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5580 (spu_rtx_costs): Update accordingly.
5581 * config/spu/predicates.md (vec_imm_operand): Likewise.
5583 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5585 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5586 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5587 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5589 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5590 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5591 * config/vax/vax.c (legitimate_constant_p): Likewise.
5593 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5594 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5595 (xtensa_legitimate_constant_p): New function.
5597 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5599 * target.def (cannot_force_const_mem): Add a mode argument.
5600 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5601 * doc/tm.texi: Regenerate.
5602 * hooks.h (hook_bool_mode_rtx_false): Declare.
5603 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5604 (hook_bool_mode_const_rtx_true): Likewise.
5605 (hook_bool_mode_rtx_false): New function.
5606 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5607 to be non-VOID. Update call to cannot_force_const_mem.
5608 (find_reloads): Update accordingly.
5609 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5610 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5612 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5613 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5614 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5615 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5616 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5617 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5618 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5619 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5620 (m68k_cannot_force_const_mem): ...this new function.
5621 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5623 (mips_const_insns, mips_legitimize_const_move): Update calls.
5624 (mips_secondary_reload_class): Likewise.
5625 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5626 (pa_cannot_force_const_mem): ...this new function.
5627 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5628 (rs6000_cannot_force_const_mem): ...this new function.
5629 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5631 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5632 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5634 (xtensa_cannot_force_const_mem): ...this new function.
5636 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5638 * config/mips/mips.c (mips16_build_function_stub): Call
5639 build_function_type_list instead of build_function_type.
5640 (mips16_build_call_stub): Likewise.
5642 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5644 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5645 instead of build_function_type.
5647 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5649 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5650 instead of build_function_type.
5652 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5655 * config/i386/i386.md (insv): Change operand 0 constraint to
5656 "register_operand". Change operand 1 and 2 constraint to
5657 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5658 * config/i386/sse.md (sse4_1_pinsrb): Export.
5659 (sse2_pinsrw): Ditto.
5660 (sse4_1_pinsrd): Ditto.
5661 (sse4_1_pinsrq): Ditto.
5662 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5663 * config/i386/i386.c (ix86_expand_pinsr): New.
5665 2011-04-20 Easwaran Raman <eraman@google.com>
5667 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5668 containing union type only with -fstrict-aliasing.
5670 2011-04-20 Jim Meyering <meyering@redhat.com>
5672 Remove useless if-before-free tests.
5673 * calls.c (expand_call, save_area): Likewise.
5674 * cfgcleanup.c (try_forward_edges): Likewise.
5675 * collect2.c (collect_execute): Likewise.
5676 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5677 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5678 * coverage.c (coverage_checksum_string): Likewise.
5679 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5680 * cselib.c (cselib_init): Likewise.
5681 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5682 (df_set_clean_cfg): Likewise.
5683 * function.c (free_after_compilation): Likewise.
5684 * gcc.c (do_spec_1, main): Likewise.
5685 * gcov.c (create_file_names): Likewise.
5686 * gensupport.c (identify_predicable_attribute): Likewise.
5687 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5688 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5689 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5690 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5691 * ipa-pure-const.c (local_pure_const): Likewise.
5692 * ipa-reference.c (propagate): Likewise.
5693 * ira-costs.c (free_ira_costs): Likewise.
5694 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5695 * matrix-reorg.c (mat_free): Likewise.
5696 * prefix.c (get_key_value): Likewise.
5697 * profile.c (compute_value_histograms): Likewise.
5698 * reload1.c (free_reg_equiv): Likewise.
5699 * sched-deps.c (free_deps): Likewise.
5700 * sel-sched-ir.c (fence_clear): Likewise.
5701 * sese.c (set_rename, if_region_set_false_region): Likewise.
5702 * tree-data-ref.c (free_rdg): Likewise.
5703 * tree-eh.c (lower_try_finally): Likewise.
5704 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5705 * tree-ssa-live.c (delete_var_map): Likewise.
5706 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5707 * tree-ssa-pre.c (phi_trans_add): Likewise.
5709 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5711 PR tree-optimization/48611
5712 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5713 beyond ERT_MUST_NOT_THROW region.
5715 2011-04-20 Catherine Moore <clm@codesourcery.com>
5717 * config/mips/mips.opt (mfix-24k): New.
5718 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5719 * config/mips/mips.md (length): Increase by 4 for stores if
5721 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5722 all noreorder if fixing 24K errata.
5723 * doc/invoke.texi: Document mfix-24k.
5725 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5727 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5728 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5730 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5732 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5733 (const_ok_for_op): ... to here.
5735 2011-04-20 Kai Tietz <ktietz@redhat.com>
5737 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5738 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5740 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5742 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5744 2011-04-20 Richard Guenther <rguenther@suse.de>
5746 PR tree-optimization/47892
5747 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5750 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5752 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5754 2011-04-20 Tristan Gingold <gingold@adacore.com>
5756 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5758 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5762 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5763 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5764 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5765 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5766 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5768 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5771 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5772 (avr_asm_named_section, avr_asm_output_aligned_common,
5773 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5774 New functions to update...
5775 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5776 (avr_asm_init_sections): Overwrite section callbacks for
5777 data_section, bss_section.
5778 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5780 (avr_file_end): ...here.
5782 2011-04-20 Richard Guenther <rguenther@suse.de>
5785 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5786 objects and types here. Adjust for their offset before comparing.
5788 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5790 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5793 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5795 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5796 (GIMPLE_H): Include $(INTERNAL_FN_H).
5797 (OBJS-common): Add internal-fn.o.
5798 (internal-fn.o): New rule.
5799 * internal-fn.def: New file.
5800 * internal-fn.h: Likewise.
5801 * internal-fn.c: Likewise.
5802 * gimple.h: Include internal-fn.h.
5803 (GF_CALL_INTERNAL): New gf_mask.
5804 (gimple_statement_call): Put fntype into a union with a new
5806 (gimple_build_call_internal): Declare.
5807 (gimple_build_call_internal_vec): Likewise.
5808 (gimple_call_same_target_p): Likewise.
5809 (gimple_call_internal_p): New function.
5810 (gimple_call_internal_fn): Likewise.
5811 (gimple_call_fntype): Return null for internal calls.
5812 (gimple_call_set_fntype): Assert that the function is not internal.
5813 (gimple_call_set_fn): Likewise.
5814 (gimple_call_set_fndecl): Likewise.
5815 (gimple_call_set_internal_fn): New function.
5816 (gimple_call_addr_fndecl): Handle null functions.
5817 (gimple_call_return_type): Likewise null types.
5818 * gimple.c (gimple_build_call_internal_1): New function.
5819 (gimple_build_call_internal): Likewise.
5820 (gimple_build_call_internal_vec): Likewise.
5821 (gimple_call_same_target_p): Likewise.
5822 (gimple_call_flags): Handle calls to internal functions.
5823 (gimple_call_fnspec): New function.
5824 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5825 (gimple_has_side_effects): Handle null functions.
5826 (gimple_rhs_has_side_effects): Likewise.
5827 (gimple_call_copy_skip_args): Handle calls to internal functions.
5828 * cfgexpand.c (expand_call_stmt): Likewise.
5829 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5830 * gimple-fold.c (gimple_fold_call): Handle null functions.
5831 (gimple_fold_stmt_to_constant_1): Don't fold
5832 calls to internal functions.
5833 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5835 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5836 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5837 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5838 (do_warn_unused_result): Likewise.
5839 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5840 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5841 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5842 the target of a call.
5843 (initialize_hash_element): Update accordingly.
5844 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5845 (iterative_hash_hashable_expr): Handle calls to internal functions.
5846 (print_expr_hash_elt): Likewise.
5847 * tree-ssa-pre.c (can_value_number_call): Likewise.
5848 (eliminate): Handle null functions.
5849 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5850 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5851 (find_func_aliases): Likewise.
5852 * value-prof.c (gimple_ic_transform): Likewise.
5853 (gimple_indirect_call_to_profile): Likewise.
5854 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5855 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5857 2011-04-19 Jan Hubicka <jh@suse.cz>
5859 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5860 * ipa-inline.c (inline_small_functions): Compute summaries first,
5861 populate heap later.
5863 2011-04-19 Jan Hubicka <jh@suse.cz>
5865 * cgraph.h (save_inline_function_body): Remove.
5866 * ipa-inline-transform.c: New file, broke out of...
5867 * ipa-inline.c: ... this one; Update toplevel comment.
5868 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5870 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5871 (cgraph_mark_inline_edge): Rename to inline_call; move to
5872 ipa-inline-transform.c.
5873 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5874 move to ipa-inline-transform.c
5875 (recursive_inlining, inline_small_functions, flatten_function,
5876 ipa_inline, inline_always_inline_functions,
5877 early_inline_small_functions): Update.
5878 (inline_transform): Move to ipa-inline-transform.c.
5879 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5881 * Makefile.in (ipa-inline-transform.o): New file.
5882 * cgraphunit.c (save_inline_function_body): Move to
5883 ipa-inline-transform.c
5885 2011-04-19 DJ Delorie <dj@redhat.com>
5887 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5888 registers if we already know there aren't any.
5889 (m32c_emit_epilogue): Don't emit a barrier here.
5890 (m32c_emit_eh_epilogue): Likewise.
5891 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5892 operands at expand time.
5893 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5895 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5896 duplicates. Provide aliases instead.
5897 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5898 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5901 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5903 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5904 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5905 (general_or_i64_p, sparc_register_move_cost): New function.
5907 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5909 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5910 Add lynx, mipssde. Sort table.
5912 2011-04-19 Xinliang David Li <davidxl@google.com>
5914 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5917 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5920 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5921 is a SUBREG with non-MODE_INT mode inside of it.
5923 2011-04-19 Martin Jambor <mjambor@suse.cz>
5925 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5926 also according to actual contants.
5927 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5928 (gimple_fold_call): Use it.
5929 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5931 2011-04-19 Martin Jambor <mjambor@suse.cz>
5933 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5934 non-pointer assignments.
5936 2011-04-19 Martin Jambor <mjambor@suse.cz>
5938 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5939 account anc_offset and otr_type from the indirect edge info.
5940 * ipa-prop.c (get_ancestor_addr_info): New function.
5941 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5942 get_ancestor_addr_info, call it.
5943 (ipa_note_param_call): Do not initialize information about polymorphic
5944 calls, return the indirect call graph edge. Remove the last
5945 parameter, adjust all callers.
5946 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5947 parameters. Initialize polymorphic information in the indirect edge.
5949 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5952 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5953 the types if they have different enumeration identifiers.
5955 2011-04-19 Jan Hubicka <jh@suse.cz>
5957 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5958 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5959 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5960 (optimize_function_for_size_p) ... here.
5962 2011-04-19 Richard Guenther <rguenther@suse.de>
5965 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5968 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5970 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5971 if DECL_NO_INLINE_WARNING_P is set on the function.
5973 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5976 * reload1.c (inc_for_reload): Return void. All callers changed.
5977 (emit_input_reload_insns): Don't try to delete previous output
5978 reloads to a register, or record spill_reg_store for autoincs.
5980 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5982 * gengtype.h: Updated copyright year.
5983 (struct input_file_st): Add inpisplugin field.
5984 (type_fileloc): New function.
5986 (write_typed_struct_alloc_def): Add gcc_assert.
5987 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5988 (write_typed_alloc_defns): Don't output for plugin files.
5989 (input_file_by_name): Clear inpisplugin field.
5990 (main): Set inpisplugin field for plugin files.
5992 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5994 * gengtype-state.c (string_eq): New.
5995 (read_state): Use string_eq instead of strcmp when creating the
5998 2011-04-19 Wei Guozhi <carrot@google.com>
6001 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6002 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6004 * config/arm/constraints.md (Uu): New constraint.
6005 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6007 2011-04-19 Tristan Gingold <gingold@adacore.com>
6009 * config.gcc (-*-*-*vms): Added.
6010 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6012 * config/vms/vms-ld.c: New file.
6013 * config/vms/vms-ar.c: New file.
6014 * config/vms/t-vmsnative: New file.
6016 2011-04-18 Xinliang David Li <davidxl@google.com>
6018 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6020 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6023 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6024 if TREE_TYPE (v) is non-NULL.
6026 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6027 gimple_get_virt_mehtod_for_binfo.
6028 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6029 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6031 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6033 2011-04-18 Michael Matz <matz@suse.de>
6034 Steve Ellcey <sje@cup.hp.com>
6036 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6037 use its mode as source mode if it isn't VOIDmode.
6039 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6041 * doc/passes.texi: Fill crossref nodes.
6043 2011-04-18 Jim Meyering <meyering@redhat.com>
6045 Fix doubled-word typos in comments and strings
6046 * config/alpha/vms-unwind.h: s/for for/for/
6047 * config/arm/unwind-arm.h: Likewise.
6048 * config/microblaze/microblaze.c: Likewise.
6049 * config/sh/constraints.md: s/in in/in/
6050 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6052 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6054 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6055 (AVX_FLOAT_MODE_P): Ditto.
6056 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6057 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6058 (AVX_VEC_FLOAT_MODE_P): Ditto.
6059 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6060 (UNSPEC_MASKSTORE): Ditto.
6061 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6062 Merge from <sse>_movmsk<ssemodesuffix> and
6063 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6064 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6066 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6067 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6068 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6070 2011-04-18 Jan Hubicka <jh@suse.cz>
6072 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6074 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6075 (want_inline_function_called_once_p): Break out the logic from
6077 (edge_badness): Ensure that profile is not misupdated.
6078 (lookup_recursive_calls): Prioritize by call frequencies.
6079 (inline_small_functions): Move program size estimates here;
6080 actually process whole queue even when unit growth has been
6081 met. (to properly compute inline_failed reasons and for the
6082 case unit size decrease.) Revisit comments on recursive inlining.
6083 (ipa_inline): Remove unit summary code; first inline hot calls
6084 of functions called once, cold calls next.
6085 (order, nnodes): Remove unused variables.
6086 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6087 (GTFILES): Remove ipa-inline.c
6088 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6090 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6092 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6094 2011-04-18 Jie Zhang <jie@codesourcery.com>
6095 Richard Earnshaw <rearnsha@arm.com>
6097 * arm.c (neon_builtin_type_bits): Remove.
6098 (typedef enum neon_builtin_mode): New.
6099 (T_MAX): Don't define.
6100 (typedef enum neon_builtin_datum): Remove bits, codes[],
6101 num_vars and base_fcode. Add mode, code and fcode.
6102 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6103 VAR10): Change accordingly.
6104 (neon_builtin_data[]): Change accordingly
6105 (arm_init_neon_builtins): Change accordingly.
6106 (neon_builtin_compare): Remove.
6107 (locate_neon_builtin_icode): Remove.
6108 (arm_expand_neon_builtin): Change accordingly.
6110 * arm.h (enum arm_builtins): Move to ...
6111 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6113 * arm.c (arm_builtin_decl): Declare.
6114 (TARGET_BUILTIN_DECL): Define.
6115 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6116 (arm_builtin_decls[]): New.
6117 (arm_init_neon_builtins): Store builtin declarations in
6118 arm_builtin_decls[].
6119 (arm_init_tls_builtins): Likewise.
6120 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6121 (arm_builtin_decl): New.
6123 2011-04-18 Richard Guenther <rguenther@suse.de>
6125 * tree.c (upper_bound_in_type): Build properly canonicalized
6127 (lower_bound_in_type): Likewise.
6129 2011-04-18 Richard Guenther <rguenther@suse.de>
6131 * gimple.h (gimple_call_addr_fndecl): New function.
6132 (gimple_call_fndecl): Use it.
6133 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6135 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6136 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6138 2011-04-18 Richard Guenther <rguenther@suse.de>
6141 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6143 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6146 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6147 DECL_IN_CONSTANT_POOL without RTL.
6149 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6150 Ira Rosen <ira.rosen@linaro.org>
6153 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6154 to match neon_vzip/vuzp/vtrn_internal.
6155 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6156 outputs explicitly dependent on both inputs.
6157 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6159 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6161 PR tree-optimization/48616
6162 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6163 whether the shift is by scalar or vector based on whether all SLP
6164 scalar stmts have the same rhs.
6166 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6168 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6171 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6174 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6177 2011-04-17 Jan Hubicka <jh@suse.cz>
6179 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6180 * cgrpahunit.c (cgraph_finalize_function): Do not set
6181 finalized_by_frontend.
6182 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6183 finalized_by_frontend.
6185 2011-04-17 Jan Hubicka <jh@suse.cz>
6187 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6188 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6189 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6190 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6192 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6194 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6196 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6199 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6200 is non-null before accessing it.
6201 (input_cgraph): Remove trailing spaces.
6203 2011-04-17 Revital Eres <revital.eres@linaro.org>
6205 * params.def (sms-min-sc): New param flag.
6206 * modulo-sched.c (sms_schedule): Use it.
6207 * doc/invoke.texi (sms-min-sc): Document it.
6209 2011-04-17 Jan Hubicka <jh@suse.cz>
6211 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6212 present, also set gimple_call_set_cannot_inline.
6213 * ipa-inline.c: Update toplevel comment.
6215 (cgraph_clone_inlined_nodes): Fix linebreaks.
6216 (cgraph_check_inline_limits): Restructure to ...
6217 (caller_growth_limits): ... this one; be more tolerant
6218 on growth in nested inline chains; add explanatory comment;
6219 fix stack accounting thinko introduced by previous patch.
6220 (cgraph_default_inline_p): Remove.
6221 (report_inline_failed_reason): New function.
6222 (can_inline_edge_p): New function.
6223 (can_early_inline_edge_p): New function.
6224 (leaf_node_p): Move upwards in file.
6225 (want_early_inline_function_p): New function.
6226 (want_inline_small_function_p): New function.
6227 (want_inline_self_recursive_call_p): New function.
6228 (cgraph_edge_badness): Rename to ...
6229 (edge_badness) ... this one; fix linebreaks.
6230 (update_edge_key): Update call of edge_baddness; add
6231 detailed dump about queue updates.
6232 (update_caller_keys): Use can_inline_edge_p and
6233 want_inline_small_function_p.
6234 (cgraph_decide_recursive_inlining): Rename to...
6235 (recursive_inlining): Use can_inline_edge_p and
6236 want_inline_self_recursive_call_p; simplify and remove no longer
6238 (cgraph_set_inline_failed): Remove.
6239 (add_new_edges_to_heap): Use can_inline_edge_p and
6240 want_inline_small_function_p.
6241 (cgraph_decide_inlining_of_small_functions): Rename to ...
6242 (inline_small_functions): ... this one; cleanup; use
6243 can/want predicates; cleanup debug ouput; work edges till fibheap
6244 is exhausted and do not stop once unit growth is reached; remove
6245 later loop processing remaining edges.
6246 (cgraph_flatten): Rename to ...
6247 (flatten_function): ... this one; use can_inline_edge_p
6248 and can_early_inline_edge_p predicates.
6249 (cgraph_decide_inlining): Rename to ...
6250 (ipa_inline): ... this one; remove unreachable nodes before
6251 inlining functions called once; simplify the pass.
6252 (cgraph_perform_always_inlining): Rename to ...
6253 (inline_always_inline_functions): ... this one; use
6254 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6255 (cgraph_decide_inlining_incrementally): Rename to ...
6256 (early_inline_small_functions): ... this one; simplify
6257 using new predicates; cleanup; make dumps prettier.
6258 (cgraph_early_inlining): Rename to ...
6259 (early_inliner): newer inline regular functions into always-inlines;
6260 fix updating of call stmt summaries.
6261 (pass_early_inline): Update for new names.
6262 (inline_transform): Fix formating.
6263 (gate_cgraph_decide_inlining): Rename to ...
6264 (pass_ipa_inline): ... this one.
6265 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6266 * ipa-inline-analysis.c (dump_inline_summary): Update.
6267 (compute_inline_parameters): Do not compute disregard_inline_limits;
6268 look for mismatching arguments.
6269 (estimate_growth): Fix handlig of non-trivial self recursion.
6270 (inline_read_summary): Do not read info->disregard_inline_limits.
6271 (inline_write_summary): Do not write info->disregard_inline_limits.
6272 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6273 and move all checks into can_inline_edge_p predicate; re-enable code
6274 comparing optimization levels.
6275 (expand_call_inline): Do not test inline_forbidden_into_p.
6276 * Makefile.in (ipa-inline.o): Update arguments.
6278 2011-04-17 Revital Eres <revital.eres@linaro.org>
6280 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6282 2011-04-17 Revital Eres <revital.eres@linaro.org>
6284 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6286 2011-04-17 Michael Matz <matz@suse.de>
6288 PR tree-optimization/48622
6290 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6291 in same order as they're written.
6293 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6295 * config/pa/predicates.md: Reorganize and simplify predicates.
6296 Eliminate duplicate code checks.
6297 (arith_operand): Rename to arith14_operand
6298 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6299 * config/pa/pa.md: Use renamed operands.
6300 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6301 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6302 arith11_operand, adddi3_operand, indexed_memory_operand,
6303 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6304 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6305 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6306 move_dest_operand, move_src_operand, prefetch_cc_operand,
6307 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6308 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6309 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6310 div_operand, int5_operand, movb_comparison_operator,
6311 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6312 arith_double_operand, ireg_operand, lhs_lshift_operand,
6313 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6314 integer_store_memory_operand): Likewise.
6315 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6316 (integer_store_memory_operand, read_only_operand,
6317 function_label_operand, borx_reg_operand,
6318 non_hard_reg_operand): Likewise.
6319 (eq_neq_comparison_operator): Delete unused operator.
6320 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6321 function_label_operand.
6322 (emit_move_sequence): Likewise.
6324 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6326 * config/i386/sse.md (sseunpackmode): New mode attribute.
6327 (ssepackmode): Ditto.
6328 (vec_pack_trunc_<mode>): Macroize expander from
6329 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6330 (vec_unpacks_lo_<mode>): Macroize expander from
6331 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6332 (vec_unpacks_hi_<mode>): Macroize expander from
6333 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6334 (vec_unpacku_lo_<mode>): Macroize expander from
6335 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6336 (vec_unpacku_hi_<mode>): Macroize expander from
6337 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6338 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6339 ix86_expand_sse4_unpack.
6340 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6342 2011-04-16 Jan Hubicka <jh@suse.cz>
6344 * cgraphbuild.c: Include ipa-inline.h.
6345 (reset_inline_failed): Use initialize_inline_failed.
6346 * cgraph.c: Include ipa-inline.h.
6347 (cgraph_create_node_1): Do not initialize estimated_growth.
6348 (initialize_inline_failed): More to ipa-inline-analysis.c
6349 (dump_cgraph_node): Do not dump inline flags.
6350 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6351 and disregard_inline_limits flags.
6352 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6353 time, size, estimated_growth.
6354 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6356 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6357 DECL_DISREGARD_INLINE_LIMITS.
6358 (cgraph_analyze_function): Do not initialize
6359 node->local.disregard_inline_limits.
6360 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6361 inlinable, versionable and disregard_inline_limits.
6362 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6363 cgraph_check_inline_limits, cgraph_default_inline_p,
6364 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6365 add_new_edges_to_heap): Update.
6366 (cgraph_decide_inlining_of_small_function): Update; set
6367 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6368 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6369 cgraph_decide_inlining_incrementally): Update.
6370 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6371 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6372 time, size and estimated_growth parameters.
6373 (estimate_edge_growth): Update.
6374 (initialize_inline_failed): Declare.
6375 * ipa-split.c: Include ipa-inline.h
6376 (execute_split_functions): Update.
6377 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6378 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6379 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6380 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6381 estimated_growth to INT_MIN.
6382 (inline_node_duplication_hook): Likewise.
6383 (dump_inline_summary): Dump new fields.
6384 (compute_inline_parameters): Update.
6385 (estimate_edge_time, estimate_time_after_inlining,
6386 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6387 inline_write_summary):
6388 (initialize_inline_failed): Move here from cgraph.c.
6389 * tree-sra.c: Include ipa-inline.h.
6390 (ipa_sra_preliminary_function_checks): Update.
6391 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6394 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6396 * config/i386/sse.md (V16): New mode iterator.
6398 (AVXMODEQI, AVXMODEDI): Remove.
6399 (sse2, sse3): New mode attribute.
6400 (mov<mode>): Use V16 mode iterator.
6401 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6402 (push<mode>1): Use V16 mode iterator.
6403 (movmisalign<mode>): Ditto.
6404 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6405 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6406 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6407 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6408 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6409 avx_movdqu<avxmodesuffix>.
6410 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6411 *avx_movdqu<avxmodesuffix>.
6412 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6413 avx_lddqu<avxmodesuffix>.
6414 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6415 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6416 avx_movnt<AVXMODEDI:mode>.
6417 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6418 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6420 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6423 * haifa-sched.c (prune_ready_list, schedule_block): Use
6424 sched_pressure_p rather than flag_sched_pressure.
6426 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6428 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6429 cgraph_get_node instead of cgraph_get_create_node.
6431 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6433 * cfgexpand.c (expand_debug_expr): Use
6434 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6436 2011-04-15 Michael Matz <matz@suse.de>
6438 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6439 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6440 * function.c (gimplify_parameters): Ditto.
6441 * gimplify.c (gimplify_vla_decl): Ditto.
6443 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6444 (gimple_call_set_alloca_for_var): New inline function.
6445 (gimple_call_alloca_for_var_p): Ditto.
6446 * gimple.c (gimple_build_call_from_tree): Remember
6447 CALL_ALLOCA_FOR_VAR_P state.
6448 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6450 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6451 calls if they were for VLA objects.
6453 2011-04-15 Martin Jambor <mjambor@suse.cz>
6455 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6458 2011-04-15 Martin Jambor <mjambor@suse.cz>
6461 * tree-emutls.c (lower_emutls_function_body): Call
6462 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6465 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6467 * c-decl.c (detect_field_duplicates): Call
6468 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6470 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6472 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6473 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6474 * ipa-pure-const.c (check_stmt): Call it.
6475 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6477 2011-04-15 Richard Guenther <rguenther@suse.de>
6479 PR tree-optimization/48290
6480 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6481 Properly decide inhibiting propagation based on the valueized
6482 operand. Do loop-closed SSA form preserving here ...
6483 (init_copy_prop): ... not here.
6485 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6488 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6489 (*ieee_smax<mode>3): Likewise.
6491 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6493 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6494 Replace match_operand with match_dup for the third operand in
6497 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6499 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6500 to track processing of conditionals. Update all callers.
6501 (try_combine, simplify_if_then_else): Update.
6503 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6505 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6508 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6510 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6511 instead of match_operand for operand 3.
6513 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6515 * recog.h (insn_operand_data): Add an "allows_mem" field.
6516 * genoutput.c (output_operand_data): Initialize it.
6517 * optabs.c (maybe_legitimize_operand_same_code): New function.
6518 (maybe_legitimize_operand): Use it when matching the original
6521 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6523 * gimplify.c: Fix issues in comments throughout.
6524 (voidify_wrapper_expr): Fix long line.
6525 (build_stack_save_restore): Likewise.
6526 (gimplify_loop_expr): Likewise.
6527 (gimplify_compound_lval): Likewise.
6528 (gimplify_init_ctor_eval): Likewise.
6529 (gimplify_modify_expr_rhs): Likewise.
6530 (omp_notice_threadprivate_variable): Likewise.
6532 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6534 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6535 original one if this is not a builtin function.
6537 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6540 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6541 offset it as needed based on top 2 bits in operands[3], change
6542 MEM mode to SFmode and mask those 2 bits away from operands[3].
6544 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6546 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6547 change from objc_declare_protocols() to objc_declare_protocol().
6549 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6551 * config/i386/sse.md (sse4_1): New mode attribute.
6552 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6553 avx_blend<ssemodesuffix><avxmodesuffix> and
6554 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6555 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6556 avx_blendv<ssemodesuffix><avxmodesuffix> and
6557 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6558 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6559 avx_dp<ssemodesuffix><avxmodesuffix> and
6560 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6561 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6562 (sse4_1_packusdw): Merge with *avx_packusdw.
6563 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6564 (sse4_1_pblendw): Merge with *avx_pblendw.
6565 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6566 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6567 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6569 (sse4_1_round<ssescalarmodesuffix>): Merge with
6570 *avx_round<ssescalarmodesuffix>.
6571 (aesenc): Merge with *avx_aesenc.
6572 (aesenclast): Merge with *avx_aesenclast.
6573 (aesdec): Merge with *avx_aesdec.
6574 (aesdeclast): Merge with *avx_aesdeclast.
6575 (pclmulqdq): Merge with *pclmulqdq.
6576 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6578 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6580 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6583 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6584 (align_local_variable): This. Update DECL_ALIGN.
6585 (add_stack_var): Updated.
6586 (expand_one_stack_var): Likewise.
6588 2011-04-14 Richard Guenther <rguenther@suse.de>
6590 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6592 (dse_initialize_block_local_data, dse_leave_block,
6593 record_voperand_set, get_stmt_uid): Likewise.
6594 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6595 (dse_optimize_stmt): Remove voperand set handling code.
6596 Simplify and improve to handle any kind of killing stmt.
6597 (dse_record_phi): Remove.
6598 (dse_enter_block): Simplify.
6599 (tree_ssa_dse): Likewise.
6600 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6602 2011-04-14 Jan Hubicka <jh@suse.cz>
6604 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6605 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6606 (cgraph_local_info): Remove inline_summary.
6607 * ipa-cp.c: Include ipa-inline.h.
6608 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6609 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6611 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6612 (input_overwrite_node): Do not set inline summary.
6613 (input_node): Do not stream inline summary.
6614 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6615 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6616 growth; we do not have inline parameters computed for that anyway.
6617 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6618 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6619 (inline_summary_t): New type and VECtor.
6620 (debug_inline_summary, dump_inline_summaries): Declare.
6621 (inline_summary): Use VOCtor.
6622 (estimate_edge_growth): Kill hack computing call stmt size directly.
6623 * lto-section-in.c (lto_section_name): Add inline section.
6624 * ipa-inline-analysis.c: Include lto-streamer.h
6625 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6626 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6627 (inline_summary_vec): Define.
6628 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6629 dump_inline_summaries): New functions.
6630 (estimate_function_body_sizes): Properly compute size/time of outgoing
6632 (compute_inline_parameters): Alloc inline_summary; do not compute
6633 size/time of incomming calls.
6634 (estimate_edge_time): Avoid missing time summary hack.
6635 (inline_read_summary): Read inline summary info.
6636 (inline_write_summary): Write inline summary info.
6637 (inline_free_summary): Free all hooks and inline summary vector.
6638 * lto-streamer.h: Add LTO_section_inline_summary section.
6639 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6640 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6642 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6644 * tree-vectorizer.h (vect_strided_store_supported): Add a
6645 HOST_WIDE_INT argument.
6646 (vect_strided_load_supported): Likewise.
6647 (vect_permute_store_chain): Return void.
6648 (vect_transform_strided_load): Likewise.
6649 (vect_permute_load_chain): Delete.
6650 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6651 count argument. Check that the count is a power of two.
6652 (vect_strided_load_supported): Likewise.
6653 (vect_permute_store_chain): Return void. Update after above changes.
6654 Assert that the access is supported.
6655 (vect_permute_load_chain): Likewise.
6656 (vect_transform_strided_load): Return void.
6657 * tree-vect-stmts.c (vectorizable_store): Update calls after
6658 above interface changes.
6659 (vectorizable_load): Likewise.
6660 (vect_analyze_stmt): Don't check for strided powers of two here.
6662 2011-04-14 Richard Guenther <rguenther@suse.de>
6664 PR tree-optimization/48590
6665 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6666 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6667 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6668 BUILT_IN_STACK_SAVE.
6669 * tree-ssa-dce.c (propagate_necessity): Handle
6670 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6672 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6674 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6677 2011-04-14 Richard Guenther <rguenther@suse.de>
6679 * tree.h (get_object_alignment_1): Declare.
6680 * builtins.c (get_object_alignment_1): Split out worker from ...
6681 (get_object_alignment): ... here.
6682 * fold-const.c (get_pointer_modulus_and_residue): Use
6683 get_object_alignment_1.
6685 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6687 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6689 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6690 parameter. Generalise code to handle arrays as well as vectors.
6691 (vect_setup_realignment): Update accordingly.
6692 * tree-vect-stmts.c (vectorizable_store): Likewise.
6693 (vectorizable_load): Likewise.
6695 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6697 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6698 within the per-copy loop.
6700 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6702 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6705 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6707 * doc/options.texi (Negative): Explicitly mention that the
6708 Negative chain must be circular.
6710 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6712 * function.h (block_chainon): Declare.
6713 * function.c (block_chainon): Define.
6715 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6716 Eric Weddington <eric.weddington@atmel.com>
6717 Georg-Johann Lay <avr@gjlay.de>
6719 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6721 (avr_init_builtins, avr_expand_builtin,
6722 avr_expand_delay_cycles, avr_expand_unop_builtin,
6723 avr_expand_binop_builtin ): New functions.
6724 (avr_builtin_id): New enum
6725 (struct avr_builtin_description): New struct
6726 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6727 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6729 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6730 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6731 UNSPECV_DELAY_CYCLES): new enumeration values
6732 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6733 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6734 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6735 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6736 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6737 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6738 "fmulsu"): New insns
6740 * config/avr/avr-c.c: fix line endings
6741 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6742 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6743 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6744 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6745 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6747 * doc/extend.texi (AVR Built-in Functions): New node
6748 (Target Builtins): Add documentation of AVR
6751 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6754 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6755 alone. Error if non-const data has attribute progmem.
6757 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6759 * tree.h (struct tree_constructor): Include tree_typed instead of
6761 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6762 TS_TYPED instead of TS_COMMON.
6764 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6766 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6767 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6768 (sse2_psadbw): Merge with *avx_psadbw.
6769 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6770 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6771 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6772 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6773 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6774 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6775 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6776 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6777 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6778 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6779 (ssse3_palignrti): Merge with *avx_palignrti.
6781 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6783 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6784 * tree-ssanames.c (fini_ssanames): VEC_free it.
6785 (make_ssa_name_fn): Update for VECness of free_ssanames.
6786 (release_ssa_name, release_dead_ssa_names): Likewise.
6787 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6789 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6790 TS_TYPED instead of TS_COMMON.
6792 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6794 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6795 statistics_counter_event.
6796 * tree-ssa-copyrename.c (stats): Define.
6797 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6798 statistics_counter_event.
6799 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6800 (bswap_stats, widen_mul_stats): Define.
6801 (insert_reciprocals): Increment rdivs_inserted.
6802 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6803 rfuncs_inserted. Add calls to statistics_counter_event.
6804 (execute_cse_sincos_1): Increment inserted.
6805 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6806 statistics_counter_event.
6807 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6808 of bswap_stats. Add calls to statistics_counter_event.
6809 (convert_mult_to_widen): Increment widen_mults_inserted.
6810 (convert_plusminus_to_widen): Increment maccs_inserted.
6811 (convert_mult_to_fma): Increment fmas_inserted.
6812 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6813 calls to statistics_counter_event.
6815 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6817 PR rtl-optimization/48455
6818 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6819 `temp_costs->mem_cost'.
6821 2011-04-13 Jan Hubicka <jh@suse.cz>
6823 * ipa-inline.h: New file.
6824 * ipa-inline-analysis.c: New file. Broken out of ...
6825 * ipa-inline.c: ... this file; update toplevel comment;
6826 include ipa-inline.h
6827 (inline_summary): Move to ipa-inline.h
6828 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6829 ipa-inline-analysis.c.
6830 (cgraph_estimate_time_after_inlining): Rename to
6831 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6832 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6833 to estimate_edge_growth.
6834 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6835 rename to estimate_size_after_inlining.
6836 (cgraph_mark_inline_edge): Update for new naming convention.
6837 (cgraph_check_inline_limits): Likewise.
6838 (cgraph_edge_badness): Likewise.
6839 (cgraph_decide_recursive_inlining): Likewise.
6840 (cgraph_decide_inlining_of_small_functions): Likewise.
6841 (cgraph_decide_inlining_incrementally): Likewise.
6842 (cgraph_estimate_growth): Rename to estimate_growth; move to
6843 ipa-inline-analysis.c.
6844 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6845 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6846 (compute_inline_parameters): Likewise.
6847 (compute_inline_parameters_for_current): Likewise.
6848 (pass_inline_parameters): Likewise.
6849 (inline_indirect_intraprocedural_analysis): Likewise.
6850 (analyze_function): Rename to inline_analyze_function; likewise.
6851 (add_new_function): Move to ipa-inline-analysis.c.
6852 (inline_generate_summary): Likewise.
6853 (inline_read_summary): Likewise.
6854 (inline_write_summary): Likewise.
6855 * Makefile.in (ipa-inline-analysis.c): New file.
6857 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6859 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6860 * configure: Regenerate.
6862 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6864 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6865 instead of tree_common.
6866 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6868 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6869 TS_TYPED rather than TS_COMMON.
6870 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6872 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6875 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6876 r20 around calls of __tablejump_elpm__
6878 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6881 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6883 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6885 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6887 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6888 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6889 (cfi_vec): New typedef.
6890 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6891 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6892 (cie_cfi_vec): New static variable.
6893 (cie_cfi_head): Delete.
6894 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6895 declaration changed. Use vector rather than list operations.
6896 (new_cfi): Don't initialize the dw_cfi_next field.
6897 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6898 rather than list operations.
6899 (lookup_cfa): Use vector rather than list operations.
6900 (output_cfis): New argument upto. Accept a cfi_vec rather than
6901 a dw_cfi_ref list head as argument. All callers changed.
6902 Iterate over the vector using upto as a maximum index.
6903 (output_all_cfis): New static function.
6904 (output_fde): Use vector rather than list operations. Use the
6905 new upto argument for output_cfis rather than manipulating a
6907 (dwarf2out_begin_prologue): Change initializations to match
6909 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6910 from the vector length rather than searching for the end of a list.
6911 Use output_all_cfis.
6912 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6914 2011-04-13 Nick Clifton <nickc@redhat.com>
6916 * config/rx/rx.md (movmemsi): Do not use this pattern when
6917 volatile pointers are involved.
6919 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6921 * config/i386/sse.md (pinsrbits): Remove.
6922 (sse2_packsswb): Merge with *avx_packsswb.
6923 (sse2_packssdw): Merge with *avx_packssdw.
6924 (sse2_packuswb): Merge with *avx_packuswb.
6925 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6926 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6927 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6928 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6929 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6930 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6931 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6932 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6933 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6934 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6935 (sse2_loadld): Merge with *avx_loadld.
6936 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6937 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6938 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6939 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6940 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6942 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6944 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6946 * print-tree.c (print_node): Likewise.
6947 * tree-inline.c (copy_tree_r): Likewise.
6948 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6949 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6950 instead of TS_COMMON.
6951 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6952 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6953 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6954 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6955 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6957 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6959 (TREE_CHAIN): Check for a TS_COMMON structure.
6960 (TREE_TYPE): Check for a TS_TYPED structure.
6962 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6964 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6965 cgraph_get_create_node instead of cgraph_node.
6967 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6969 * c-parser.c (c_parser_initelt): Updated call to
6970 objc_build_message_expr.
6971 (c_parser_postfix_expression): Likewise.
6973 2011-04-12 Kai Tietz <ktietz@redhat.com>
6975 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6976 MASK_MS_BITFIELD_LAYOUT bit.
6978 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6980 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6981 assert it is always true.
6982 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6985 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6987 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6988 compiling Objective-C to be more efficient.
6990 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6992 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6995 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6997 * recog.h, genoutput.c, optabs.c: Revert last patch.
6999 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7002 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7004 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7006 * recog.h (insn_operand_data): Add an "allows_mem" field.
7007 * genoutput.c (output_operand_data): Initialize it.
7008 * optabs.c (maybe_legitimize_operand_same_code): New function.
7009 (maybe_legitimize_operand): Use it when matching the original
7012 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7014 * genpreds.c (process_define_predicate): Move most processing
7015 to gensupport.c. Continue to validate the expression.
7016 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7017 (process_define_predicate): Move processing to gensupport.c.
7018 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7019 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7020 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7022 (valid_predicate_name_p): New function, split out from old
7023 genpreds.c:process_define_predicate.
7024 (process_define_predicate): New function, combining code from
7025 old genpreds.c and genrecog.c functions.
7026 (process_rtx): Call it for DEFINE_PREDICATE and
7027 DEFINE_SPECIAL_PREDICATE.
7029 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7031 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7032 size of a '%A' memory reference.
7033 (T_DREG, T_QREG): New neon_builtin_type_bits.
7034 (arm_init_neon_builtins): Assert that the load and store operands
7035 are neon_struct_operands.
7036 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7037 (NEON_ARG_MEMORY): New builtin_arg.
7038 (neon_dereference_pointer): New function.
7039 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7040 Handle NEON_ARG_MEMORY.
7041 (arm_expand_neon_builtin): Update after above interface changes.
7042 Use NEON_ARG_MEMORY for loads and stores.
7043 * config/arm/predicates.md (neon_struct_operand): New predicate.
7044 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7045 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7046 (V_four_elem): Tweak formatting.
7047 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7048 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7049 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7050 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7051 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7052 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7053 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7054 Use %A in the output template.
7055 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7056 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7057 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7058 the width of the memory access. Remove post-increment.
7059 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7061 2011-04-12 Nick Clifton <nickc@redhat.com>
7063 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7064 instruction for interrupt handlers if the target is the basic V850
7066 (expand_epilogue): Likewise.
7068 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7070 PR rtl-optimization/48549
7071 * combine.c (propagate_for_debug): Also stop after BB_END of
7072 this_basic_block. Process LAST and just stop processing after it.
7073 (combine_instructions): If last_combined_insn has been deleted,
7074 set last_combined_insn to its PREV_INSN.
7076 2011-04-12 Richard Guenther <rguenther@suse.de>
7078 PR tree-optimization/46076
7079 * gimple.h (struct gimple_statement_call): Add fntype field.
7080 (gimple_call_fntype): Adjust.
7081 (gimple_call_set_fntype): New function.
7082 * gimple.c (gimple_build_call_1): Set the call function type.
7083 * gimplify.c (gimplify_call_expr): Preserve the function
7084 type the frontend used for the call.
7085 (gimplify_modify_expr): Likewise.
7086 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7088 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7090 * tree-ssa.c (useless_type_conversion_p): Function pointer
7091 conversions are useless.
7093 2011-04-12 Martin Jambor <mjambor@suse.cz>
7095 * cgraph.h (cgraph_node): Remove function declaration.
7096 (cgraph_create_node): Declare.
7097 (cgraph_get_create_node): Likewise.
7098 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7099 Updated all callers.
7100 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7101 the decl does not already exist. Call cgraph_get_create_node instead
7103 (cgraph_get_create_node): New function.
7104 (cgraph_same_body_alias): Update comment.
7105 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7106 assert it does not return NULL.
7107 (cgraph_update_edges_for_call_stmt): Likewise.
7108 (cgraph_clone_edge): Likewise.
7109 (cgraph_create_virtual_clone): Likewise.
7110 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7111 instead of cgraph_node.
7112 (cgraph_add_new_function): Call cgraph_create_node or
7113 cgraph_get_create_node instead of cgraph_node.
7114 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7115 instead of cgraph_node.
7116 (record_eh_tables): Likewise.
7117 (mark_address): Likewise.
7118 (mark_load): Likewise.
7119 (build_cgraph_edges): Call cgraph_get_create_node instead
7121 (rebuild_cgraph_edges): Likewise.
7122 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7123 instead of cgraph_node.
7124 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7126 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7127 cgraph_create_node instead of cgraph_node.
7128 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7130 * lto-cgraph.c (input_node): Likewise.
7131 * lto-streamer-in.c (input_function): Likewise.
7132 * varasm.c (mark_decl_referenced): Likewise.
7133 (assemble_alias): Likewise.
7135 2011-04-12 Martin Jambor <mjambor@suse.cz>
7137 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7138 instead of cgraph_node and assert it does not return NULL.
7139 * lto-streamer-in.c (lto_read_body): Likewise.
7140 * omp-low.c (new_omp_context): Likewise.
7141 (create_task_copyfn): Likewise.
7142 * tree-emutls.c (lower_emutls_function_body): Likewise.
7143 * matrix-reorg.c (transform_allocation_sites): Likewise.
7145 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7148 * c-typeck.c (build_asm_expr): Error out on attempts to use
7149 void type outputs or inputs for constraints that allow reg or
7152 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7153 Richard Earnshaw <rearnsha@arm.com>
7156 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7157 to use sign-magnitude offsets. Reject unsupported unaligned
7158 cases. Add detailed description in comments.
7159 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7160 condition from TARGET_32BIT to TARGET_ARM.
7162 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7164 * tree.h (struct typed_tree): New.
7165 (struct tree_common): Include it instead of tree_base.
7166 (TREE_TYPE): Update for new location of type field.
7167 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7168 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7169 (union tree_node): Add typed field.
7170 * treestruct.def (TS_TYPED): New.
7171 * lto-streamer.c (check_handled_ts_structures): Handle it.
7172 * tree.c (MARK_TS_TYPED): New macro.
7173 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7175 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7177 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7178 (force_nonfallthru): Do not alter the loop nest if no basic block
7181 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7183 * config/i386/sse.md (VI): New mode iterator.
7185 (AVX256MODEI): Ditto.
7186 (AVXMODEF4P): Ditto.
7187 (avxvecpsmode): Ditto.
7188 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7189 (sse2_andnot<mode>3): New expander.
7190 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7191 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7192 (<any_logic:code><mode>3): Use VI mode iterator.
7193 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7194 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7195 (*andnottf3): Handle AVX three-operand constraints.
7196 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7198 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7199 Robert Millan <rmh@gnu.org>
7201 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7202 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7203 GNU_USER_DYNAMIC_LINKER64): Define.
7204 (REG_NAME): Don't undefine.
7205 (MD_UNWIND_SUPPORT): Undefine.
7206 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7207 (REG_NAME): Don't undefine.
7208 (MD_UNWIND_SUPPORT): Undefine.
7209 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7211 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7213 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7214 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7216 2011-04-11 Xinliang David Li <davidxl@google.com>
7218 * value-profile.c (check_ic_target): New function.
7219 (gimple_ic_transform): Sanity check indirect call target.
7220 * gimple-low.c (gimple_check_call_args): Interface change.
7221 (gimple_check_call_matching_types): New function.
7222 * tree-inline.c (tree_can_inline_p): Call new function.
7224 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7226 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7227 tree-pretty-print.h & realmpfr.h.
7229 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7232 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7233 (setup_allocno_and_important_classes): Ditto.
7235 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7237 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7238 GNU_USER_DYNAMIC_LINKER.
7239 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7240 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7241 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7242 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7243 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7244 GNU_USER_TARGET_OS_CPP_BUILTINS.
7245 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7246 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7247 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7248 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7249 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7250 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7251 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7252 GNU_USER_TARGET_OS_CPP_BUILTINS.
7253 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7254 GNU_USER_DYNAMIC_LINKER.
7255 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7256 GNU_USER_TARGET_OS_CPP_BUILTINS.
7257 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7258 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7259 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7260 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7261 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7262 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7263 GNU_USER_DYNAMIC_LINKER64): Remove.
7264 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7265 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7266 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7267 GNU_USER_DYNAMIC_LINKER.
7268 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7269 GNU_USER_TARGET_OS_CPP_BUILTINS.
7270 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7271 GNU_USER_TARGET_OS_CPP_BUILTINS.
7272 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7273 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7274 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7275 GNU_USER_TARGET_OS_CPP_BUILTINS.
7276 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7277 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7278 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7279 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7280 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7281 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7282 GNU_USER_DYNAMIC_LINKER.
7283 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7284 GNU_USER_TARGET_OS_CPP_BUILTINS.
7285 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7286 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7287 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7288 GNU_USER_DYNAMIC_LINKER.
7289 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7290 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7291 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7292 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7293 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7294 GNU_USER_DYNAMIC_LINKER.
7295 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7296 GNU_USER_DYNAMIC_LINKERN32.
7297 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7298 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7299 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7300 GNU_USER_DYNAMIC_LINKER32.
7301 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7302 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7303 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7304 GNU_USER_DYNAMIC_LINKER.
7305 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7306 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7307 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7308 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7309 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7310 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7311 GNU_USER_DYNAMIC_LINKER32.
7312 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7313 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7314 GNU_USER_DYNAMIC_LINKER.
7315 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7316 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7317 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7318 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7319 GNU_USER_DYNAMIC_LINKER64.
7320 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7321 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7322 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7323 GNU_USER_DYNAMIC_LINKER.
7324 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7325 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7326 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7327 GNU_USER_DYNAMIC_LINKER.
7328 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7329 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7330 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7331 GNU_USER_DYNAMIC_LINKER32.
7332 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7333 GNU_USER_DYNAMIC_LINKER64.
7334 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7335 GNU_USER_DYNAMIC_LINKER64.
7336 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7337 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7338 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7339 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7340 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7342 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7344 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7345 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7346 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7347 GNU_USER_DYNAMIC_LINKER.
7348 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7349 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7350 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7351 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7352 GNU_USER_DYNAMIC_LINKER64.
7353 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7354 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7355 GNU_USER_LINK_EMULATION.
7356 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7357 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7358 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7359 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7360 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7361 CPP_SPEC, CC1_SPEC): Remove.
7362 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7363 (GNU_USER_DYNAMIC_LINKER): Define.
7364 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7365 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7366 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7367 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7368 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7369 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7370 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7371 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7372 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7373 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7374 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7375 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7376 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7377 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7378 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7379 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7380 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7381 GNU_USER_DYNAMIC_LINKER.
7382 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7383 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7384 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7385 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7386 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7387 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7388 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7389 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7390 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7391 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7393 2011-04-11 Kai Tietz <ktietz@redhat.com>
7397 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7398 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7400 (ix86_is_msabi_thiscall): Removed.
7401 (ix86_is_type_thiscall): Likewise.
7402 (ix86_get_callcvt): New function.
7403 (ix86_comp_type_attributes): Simplify check.
7404 (ix86_function_regparm): Use ix86_get_callcvt for calling
7405 convention attribute checks.
7406 (ix86_return_pops_args): Likewise.
7407 (ix86_static_chain): Likewise.
7408 (x86_this_parameter): Likewise.
7409 (x86_output_mi_thunk): Likewise.
7410 (ix86_function_type_abi): Optimize check for types without attributes.
7411 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7412 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7413 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7415 (IX86_BASE_CALLCVT): Helper macro.
7416 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7417 Use ix86_get_callcvt for calling convention attribute checks and avoid
7418 symbol-decoration for stdcall in TARGET_RTD case.
7419 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7421 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7424 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7426 * config/i386/sse.md (VI_128): New mode iterator.
7427 (VI12_128): Rename from SSEMODE12.
7428 (VI14_128): Rename from SSEMODE14.
7429 (VI124_128): New mode iterator.
7430 (VI24_128): Rename from SSEMODE248.
7431 (VI248_128): Rename from SSEMODE248.
7432 (SSEMODE124C8): Remove.
7433 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7434 (*sse2_<plusminus_insn><mode>3): Merge with
7435 *avx_<plusminus_insn><mode>3.
7436 (*mulv8hi3): Merge with *avx_mulv8hi3.
7437 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7438 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7439 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7440 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7441 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7442 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7443 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7444 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7445 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7446 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7447 (*<smaxmin:code>v8hi3): Ditto.
7448 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7449 (*<smaxmin:code>v16qi3): Ditto.
7450 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7451 (*sse2_eq<mode>3): Ditto.
7452 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7453 (*sse2_gt<mode>3): Ditto.
7454 (vcondv2di): Split out of vcond<mode>.
7455 (vconduv2di): Split out of vcondu<mode>.
7457 2011-04-11 Richard Guenther <rguenther@suse.de>
7459 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7460 before calling tree_low_cst.
7462 2011-04-11 Richard Guenther <rguenther@suse.de>
7464 * stor-layout.c (layout_type): Compute all array index size operations
7465 in the original type.
7466 (initialize_sizetypes): Add comment.
7467 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7469 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7471 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7473 2011-04-11 Martin Jambor <mjambor@suse.cz>
7475 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7476 of cgraph_node, handle NULL return value.
7477 (cgraph_global_info): Likewise.
7478 (cgraph_rtl_info): Likewise.
7479 * tree-inline.c (estimate_num_insns): Likewise.
7480 * gimplify.c (unshare_body): Likewise.
7481 (unvisit_body): Likewise.
7482 (gimplify_body): Likewise.
7483 * predict.c (optimize_function_for_size_p): Likewise.
7484 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7485 (call_may_clobber_ref_p_1): Likewise.
7486 * varasm.c (function_section_1): Likewise.
7487 (assemble_start_function): Likewise.
7489 2011-04-11 Martin Jambor <mjambor@suse.cz>
7491 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7493 * final.c (rest_of_clean_state): Likewise.
7494 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7495 * passes.c (pass_init_dump_file): Likewise.
7496 (execute_all_ipa_transforms): Likewise.
7497 (function_called_by_processed_nodes_p): Likewise.
7498 * predict.c (maybe_hot_frequency_p): Likewise.
7499 (probably_never_executed_bb_p): Likewise.
7500 (compute_function_frequency): Likewise.
7501 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7502 (unnest_nesting_tree_1): Likewise.
7503 (lower_nested_functions): Likewise.
7504 * tree-optimize.c (execute_fixup_cfg): Likewise.
7505 (tree_rest_of_compilation): Likewise.
7506 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7507 * tree-sra.c (ipa_early_sra): Likewise.
7508 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7509 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7510 * ipa.c (record_cdtor_fn): Likewise.
7511 * ipa-inline.c (cgraph_early_inlining): Likewise.
7512 (compute_inline_parameters_for_current): Likewise.
7513 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7514 * ipa-pure-const.c (local_pure_const): Likewise.
7515 * ipa-split.c (split_function): Likewise.
7516 (execute_split_functions): Likewise.
7517 * cgraphbuild.c (build_cgraph_edges): Likewise.
7518 (rebuild_cgraph_edges): Likewise.
7519 (cgraph_rebuild_references): Likewise.
7520 (remove_cgraph_callee_edges): Likewise.
7521 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7522 (verify_cgraph_node): Likewise.
7523 (cgraph_analyze_functions): Likewise.
7524 (cgraph_preserve_function_body_p): Likewise.
7525 (save_inline_function_body): Likewise.
7526 (save_inline_function_body): Likewise.
7527 * tree-inline.c (copy_bb): Likewise.
7528 (optimize_inline_calls): Likewise.
7530 2011-04-11 Martin Jambor <mjambor@suse.cz>
7532 PR tree-optimization/48195
7533 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7534 ipa_check_create_edge_args.
7535 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7536 ipa_check_create_edge_args.
7537 * ipa-inline.c (inline_generate_summary): Do not call
7538 ipa_check_create_node_params and ipa_check_create_edge_args.
7539 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7540 ipa_check_create_edge_args.
7542 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7544 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7546 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7547 * function.c (record_hard_reg_sets): Likewise.
7548 * ira.c (compute_regs_asm_clobbered): Likewise.
7549 * sched-deps.c (sched_analyze_1): Likewise.
7550 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7552 2011-04-09 Xinliang David Li <davidxl@google.com>
7554 PR tree-optimization/PR48484
7555 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7556 has_valid_pred lazily
7558 2011-04-09 Duncan Sands <baldrick@free.fr>
7560 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7562 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7564 * combine.c (combine_validate_cost): Adjust comments. Set registered
7565 cost of I0 to zero at the end, if any.
7567 2011-04-08 Xinliang David Li <davidxl@google.com>
7569 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7570 to insane profile data.
7572 2011-04-08 Xinliang David Li <davidxl@google.com>
7574 * ipa-cp.c (ipcp_update_profiling): Correct
7575 negative scale factor due to insane profile data.
7577 2011-04-08 Xinliang David Li <davidxl@google.com>
7579 * final.c (dump_basic_block_info): New function.
7580 (final): Dump basic block.
7581 (final_scan_insn): Remove old dump.
7583 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7586 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7589 2011-04-08 Michael Matz <matz@suse.de>
7592 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7594 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7595 * rtl.h (rebuild_jump_labels_chain): Declare.
7596 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7597 insns inserted on edges.
7599 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7601 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7602 * config/arm/arm-arches.def: New.
7603 * config/arm/arm-opts.h: New.
7604 * config/arm/genopt.sh: New.
7605 * config/arm/arm-tables.opt: New (generated).
7606 * config/arm/arm.c (arm_handle_option, arm_target_help,
7607 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7608 (all_architectures): Get most table contents from arm-arches.def.
7609 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7610 arm_selected_tune here.
7611 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7612 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7613 (march=, mcpu=, mtune=): Use Enum and Var.
7614 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7615 (arm.o): Update dependencies.
7617 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7619 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7621 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7622 (write_typed_alloc_defns): Likewise.
7623 (main): Calls write_typed_alloc_defns with output_header.
7625 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7628 * ira-color.c (setup_profitable_hard_regs): Add comments.
7629 Don't take prohibited hard regs into account.
7630 (setup_conflict_profitable_regs): Rename to
7631 get_conflict_profitable_regs.
7632 (check_hard_reg_p): Check prohibited hard regs.
7634 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7636 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7637 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7638 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7640 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7643 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7644 move from floating point to shift amount register.
7645 (emit_move_sequence): Remove secondary reload support for floating
7646 point to shift amount amount register copies.
7647 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7648 amount register copies.
7649 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7650 register, return false if mode isn't a scalar integer mode.
7651 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7653 2011-04-08 Richard Guenther <rguenther@suse.de>
7655 * gimple.c (gimple_call_flags): Remove kludge.
7657 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7659 * sel-sched.c (sel_region_init): Move call to
7660 sel_setup_region_sched_flags after setup_current_loop_nest.
7662 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7664 PR rtl-optimization/48272
7665 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7666 init_insn_reg_pressure_info. Adjust a caller.
7667 * sched-int.h (init_insn_reg_pressure_info): Declare.
7668 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7669 when sched-pressure is enabled.
7671 2011-04-08 Richard Guenther <rguenther@suse.de>
7673 * gimple.c (gimple_set_modified): Do not queue calls to
7674 MODIFIED_NORETURN_CALLS here ...
7675 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7677 2011-04-08 Richard Guenther <rguenther@suse.de>
7680 * toplev.c (lang_dependent_init): Do not open asm_out_file
7681 in WPA mode, nor perform debug machinery initialization.
7682 (finalize): Do not unlink asm_out_file in WPA mode.
7684 2011-04-08 Richard Guenther <rguenther@suse.de>
7686 * gimple.h (gimple_call_fntype): New function.
7687 (gimple_call_return_type): Use it.
7688 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7689 * gimple-low.c (gimple_check_call_args): Likewise.
7690 * gimple.c (gimple_call_flags): Likewise.
7691 (gimple_call_arg_flags): Likewise.
7692 (gimple_call_return_flags): Likewise.
7693 * tree-cfg.c (verify_gimple_call): Likewise.
7694 (do_warn_unused_result): Likewise.
7695 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7696 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7698 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7700 PR rtl-optimization/48235
7701 * sel-sched.c (code_motion_process_successors): Recompute the last
7702 insn in basic block if control flow changed.
7703 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7704 Update condition for ilist_remove.
7706 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7708 PR rtl-optimization/48302
7709 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7710 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7711 it to record added preheader blocks.
7712 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7713 on to sel_add_loop_preheaders.
7714 (sel_region_init): Move call to setup_current_loop_nest after
7717 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7720 * cfgloop.h (loop_has_exit_edges): New helper.
7721 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7723 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7724 that have no exit edges.
7726 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7728 PR rtl-optimization/48442
7729 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7730 all callers. Adjust assert.
7732 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7734 PR tree-optimization/48377
7735 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7736 is_packed to true even for types with smaller TYPE_ALIGN than
7739 2011-04-08 Richard Guenther <rguenther@suse.de>
7742 * doc/tm.texi: Re-generate.
7744 2011-04-08 Wei Guozhi <carrot@google.com>
7747 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7748 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7749 * config/arm/arm.md (*push_multi): Change the length computation to
7752 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7754 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7755 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7756 * doc/tm.texi: Regenerate.
7757 * system.h (ASM_OUTPUT_BSS): Poison.
7758 * varasm.c (asm_output_bss): Remove function.
7759 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7761 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7762 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7763 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7764 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7766 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7768 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7770 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7772 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7774 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7777 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7779 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7780 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7781 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7783 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7784 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7785 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7786 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7787 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7788 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7789 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7790 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7791 options. Don't map other m68k options manually. Don't handle
7792 old-style options as canonical.
7793 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7794 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7796 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7798 * basic-block.h (force_nonfallthru): Move to...
7799 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7800 (force_nonfallthru): ...here.
7801 * cfghooks.c (force_nonfallthru): New function.
7802 * cfgrtl.c (force_nonfallthru): Rename into...
7803 (rtl_force_nonfallthru): ...this.
7804 (commit_one_edge_insertion): Do not set AUX field.
7805 (commit_edge_insertions): Do not discover new basic blocks.
7806 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7807 (cfg_layout_rtl_cfg_hooks): Likewise.
7808 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7809 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7810 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7812 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7814 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7817 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7819 * config/i386/sse.md: Update copyright year.
7820 (avxcvtvecmode): Remove.
7821 (sse_movhlps): Merge with *avx_movhlps.
7822 (sse_movlhps): Merge with *avx_movlhps.
7823 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7824 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7825 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7826 (sse_loadhps): Merge with *avx_loadhps.
7827 (sse_storelps): Merge with *avx_storelps.
7828 (sse_loadlps): Merge with *avx_loadlps.
7829 (sse_movss): Merge with *avx_movss.
7830 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7831 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7832 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7833 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7834 (vec_set<mode>_0): Ditto.
7835 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7836 (sse4_1_insertps): Merge with *avx_insertps.
7837 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7838 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7839 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7840 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7841 (sse2_storehpd): Merge with *avx_storehpd.
7842 (sse2_loadhpd): Merge with *avx_loadhpd.
7843 (sse2_loadlpd): Merge with *avx_loadlpd.
7844 (sse2_movsd): Merge with *avx_movsd.
7845 (*vec_concatv2df): Merge with *vec_concatv2df.
7847 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7850 * combine.c (combine_instructions): Add last_combined_insn,
7851 update it if insn is after it, pass it to all try_combine calls.
7852 (try_combine): Add last_combined_insn parameter, pass it instead of
7853 i3 to propagate_for_debug.
7855 2011-04-07 Nick Clifton <nickc@redhat.com>
7857 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7858 to handle MDR <-> data register transfers.
7859 (movhi_internal): Likewise.
7861 2011-04-07 Alan Modra <amodra@gmail.com>
7863 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7864 previous stack info.
7866 2011-04-07 Tom de Vries <tom@codesourcery.com>
7869 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7870 flow_find_cross_jump. Swap variables to implement backward replacement.
7871 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7873 2011-04-07 Tom de Vries <tom@codesourcery.com>
7876 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7877 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7879 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7880 src1 or src2. Redirect edges to the last basic block. Update
7881 frequency and count on multiple basic blocks in case of fallthru.
7883 2011-04-07 Tom de Vries <tom@codesourcery.com>
7886 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7888 (old_insns_match_p): Change return type. Replace return false/true
7889 with return dir_none/dir_both. Use can_replace_by.
7890 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7891 direction from dir_p. Register replacement direction in dir, last_dir
7892 and afterlast_dir. Handle new return type of old_insns_match_p using
7893 merge_dir. Return replacement direction in dir_p.
7894 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7895 return type of old_insns_match_p.
7896 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7897 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7898 flow_find_cross_jump.
7899 * basic-block.h (enum replace_direction): New type.
7900 (flow_find_cross_jump): Add parameter to declaration.
7902 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7904 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7905 (AVXMODEDCVTPS2DQ): Ditto.
7906 (VEC_FLOAT_MODE): Ditto.
7907 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7908 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7909 (<any_logic:code><mode>3): Use VF mode iterator.
7910 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7911 Use VF mode iterator.
7912 (copysign<mode>3): Use VF mode iterator.
7913 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7914 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7915 (*<any_logic:code><MODEF:mode>3): Merge with
7916 *avx_<any_logic:code><MODEF:mode>3.
7917 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7918 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7919 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7920 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7921 (sse2_cvtdq2ps): Use %v modifier.
7922 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7923 (avx_cvtps2dq<avxmodesuffix>): Remove.
7924 (sse2_cvtps2dq): Use %v modifier.
7925 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7926 (avx_cvttps2dq<avxmodesuffix>): Remove.
7927 (sse2_cvttps2dq): Use %v modifier.
7928 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7929 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7930 (sse2_cvtsd2siq): Fix insn template.
7931 (sse2_cvtsd2siq_2): Ditto.
7932 (sse2_cvttsd2siq): Ditto.
7933 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7934 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7936 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7938 * gcov-io.c: Use GCC Runtime Library Exception.
7940 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7943 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7944 as base_reg whatever register reg has been eliminated to, instead
7945 of hardcoding STACK_POINTER_REGNUM.
7947 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7949 * doc/tm.texi.in: Document C target hooks as separate from general
7951 * doc/tm.texi: Regenerate.
7952 * genhooks.c (struct hook_desc): Add docname field.
7953 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7955 (hook_array): Include c-target.def.
7956 (emit_documentation): Use docname field in output.
7957 (emit_init_macros): Take docname argument. Only emit definitions
7958 for hooks matching docname.
7959 (main): Expect additional arguments in all cases. Pass argument
7960 to emit_init_macros.
7961 * target.def: Move initial macro definitions and comments to
7962 target-hooks-macros.h.
7963 (gcc_targetcm): Move to c-family/c-target.def.
7964 * target.h (targetcm): Move declaration to c-family/c-target.h.
7965 * targhooks.c (default_handle_c_option): Move to
7967 * targhooks.h (default_handle_c_option): Move declaration to
7968 c-family/c-common.h.
7969 * target-hooks-macros.h: New file.
7970 * config.gcc (target_has_targetcm): Define and use to add to
7971 c_target_objs and cxx_target_objs.
7972 * config/default-c.c: New file.
7973 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7974 of target.h and target-def.h.
7975 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7976 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7977 darwin_check_cfstring_format_arg): Make static.
7978 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7979 TARGET_STRING_OBJECT_REF_TYPE_P,
7980 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7981 * config/darwin-protos.h (darwin_objc_construct_string,
7982 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7984 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7985 TARGET_STRING_OBJECT_REF_TYPE_P,
7986 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7987 * config/t-darwin (darwin-c.o): Update dependencies.
7988 * system.h (TARGET_HAS_TARGETCM): Poison.
7989 * Makefile.in (TARGET_H): Update.
7990 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7991 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7992 (default-c.o): New target.
7993 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7994 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7995 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7997 (build/genhooks.o): Update dependencies.
7999 2011-04-06 Richard Guenther <rguenther@suse.de>
8001 * ipa-inline.c (enum inlining_mode): Remove.
8002 (cgraph_flatten): Use some other token.
8003 (cgraph_edge_early_inlinable_p): New function, split out from ...
8004 (cgraph_perform_always_inlining): New function, split out from ...
8005 (cgraph_decide_inlining_incrementally): ... here.
8006 (cgraph_mark_inline_edge): Adjust.
8007 (cgraph_early_inlining): Re-structure.
8008 (pass_early_inline): Require SSA form.
8010 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8011 Julian Brown <julian@codesourcery.com>
8012 Mark Shinwell <shinwell@codesourcery.com>
8014 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8015 LO_REGS only for Thumb-1.
8016 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8017 be used in short instructions when optimising for size on Thumb-2.
8019 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8021 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8022 associated with user returns to be preserved.
8024 2011-04-06 Tristan Gingold <gingold@adacore.com>
8026 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8027 symbol_queue_size, DBXOUT_DECR_NESTING,
8028 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8029 if XCOFF_DEBUGGING_INFO.
8031 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8033 * config/i386/i386.md (attribute isa): New.
8034 (attribute enabled): New.
8035 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8036 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8037 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8038 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8039 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8040 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8041 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8042 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8044 * config/i386/sse.md (VF): New mode iterator.
8048 (SSEMODEF4): Remove.
8049 (attribute sse): Handle V8SF and V4DF modes.
8050 (<absneg:code><mode>2): Use VF mode iterator.
8051 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8053 (<plusminus_insn><mode>3): Use VF mode iterator.
8054 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8055 Use VF mode iterator.
8056 (<sse>_vm<plusminus_insn><mode>3): Merge with
8057 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8058 (mul<mode>3): Use VF mode iterator.
8059 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8060 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8062 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8063 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8064 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8065 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8067 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8068 Use VF1 mode iterator.
8069 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8070 (sqrt<VF2:mode>2): New expander.
8071 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8072 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8073 and sqrtv2df2. Use VF mode iterator.
8074 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8076 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8077 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8078 Use VF1 mode iterator.
8079 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8080 (<smaxmin:code><mode>3): Use VF mode iterator.
8081 (*<smaxmin:code><mode>3_finite): Merge with
8082 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8083 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8084 (<sse>_vm<smaxmin:code><mode>2): Merge with
8085 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8086 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8088 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8090 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8091 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8092 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8093 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8094 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8096 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8097 Use VF_128 mode iterator.
8098 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8100 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8101 VF_128 mode iterator.
8102 (vcond<mode>): Use VF mode iterator.
8103 * config/i386/predicates.md (sse_comparison_operator): Merge with
8104 avx_comparison_float_operator. Do not declare as special_predicate.
8105 * config/i386/i386.c (struct builtin_description): Update for renamed
8107 (ix86_expand_args_builtin): Ditto.
8108 (ix86_expand_sse_compare_mask): Ditto.
8110 2011-04-06 Richard Guenther <rguenther@suse.de>
8112 * tree-inline.c (estimate_num_insns): For calls simply account
8113 for all passed arguments and a used return value.
8115 2011-04-06 Richard Guenther <rguenther@suse.de>
8117 PR tree-optimization/47663
8118 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8119 call_stmt_time fields.
8120 (cgraph_edge_inlinable_p): Declare.
8121 (cgraph_edge_recursive_p): New inline function.
8122 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8123 (cgraph_clone_edge): Copy it.
8124 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8125 Account for call stmt time.
8126 (cgraph_estimate_time_after_inlining): Take edge argument.
8127 (cgraph_estimate_edge_growth): Account call stmt size.
8128 (cgraph_estimate_size_after_inlining): Take edge argument.
8129 (cgraph_mark_inline_edge): Adjust.
8130 (cgraph_check_inline_limits): Likewise.
8131 (cgraph_recursive_inlining_p): Remove.
8132 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8133 (cgraph_decide_recursive_inlining): Take edge argument and
8135 (cgraph_decide_inlining_of_small_functions): Do not avoid
8136 diags for recursive inlining here.
8137 (cgraph_flatten): Adjust.
8138 (cgraph_decide_inlining_incrementally): Likewise.
8139 (estimate_function_body_sizes): Remove call cost handling.
8140 (compute_inline_parameters): Initialize caller edge call costs.
8141 (cgraph_estimate_edge_growth): New function.
8142 (cgraph_estimate_growth): Use it.
8143 (cgraph_edge_badness): Likewise.
8144 (cgraph_check_inline_limits): Take an edge argument.
8145 (cgraph_decide_inlining_of_small_functions): Adjust.
8146 (cgraph_decide_inlining): Likewise.
8147 * tree-inline.c (estimate_num_insns): Only account for call
8148 return value if it is used.
8149 (expand_call_inline): Avoid diagnostics on recursive inline
8151 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8152 (input_edge): Input edge call costs.
8154 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8156 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8158 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8160 * doc/invoke.texi (Spec Files): Fix typo.
8162 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8164 * profile.c (branch_prob): Move declaration of local variable. Remove
8165 obsolete ??? comment. Expand the location explicitly instead of using
8166 the LOCATION_FILE and LOCATION_LINE macros.
8168 2011-04-06 Wei Guozhi <carrot@google.com>
8171 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8172 (arm_cond_branch): Likewise.
8173 (arm_cond_branch_reversed): Likewise.
8174 (arm_jump): Likewise.
8175 (push_multi): Likewise.
8176 * config/arm/constraints.md (Py): New constraint.
8178 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8181 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8183 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8184 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8185 #ifdef DBX_DEBUGGING_INFO.
8187 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8190 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8191 if old and new states differ.
8193 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8195 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8196 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8197 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8198 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8199 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8201 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8202 ColdFire options to -mcpu= options.
8204 2011-04-05 Jeff Law <law@redhat.com>
8206 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8207 check if BB is a successor of LOOP->header and return
8208 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8210 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8212 * cprop.c (struct reg_use): Remove.
8213 (reg_use_table): Make an array of RTX.
8214 (find_used_regs, constprop_register, local_cprop_pass,
8215 bypass_block): Simplify users of reg_use_table.
8216 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8217 on one of the uses found by find_used_regs.
8219 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8222 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8225 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8227 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8229 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8231 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8234 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8236 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8238 * combine.c: Include obstack.h.
8239 (struct insn_link): Define.
8240 (uid_log_links): Adjust type.
8241 (FOR_EACH_LOG_LINK): New macro.
8242 (insn_link_obstack): Declare.
8243 (alloc_insn_link): Define.
8244 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8245 type of link variables.
8246 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8247 (try_combine, record_promoted_values, distribute_notes): Likewise.
8248 (distribute_links): Likewise. Tweak prototype.
8249 (clear_log_links): Delete.
8250 (adjust_for_new_dest): Call alloc_insn_link.
8251 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8253 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8255 * gcse.c (modify_mem_list): Convert to an array of VECs.
8256 (canon_modify_mem_list, compute_transp): Tweak formatting.
8257 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8258 (load_killed_in_block_p): Likewise.
8259 (record_last_mem_set_info): Likewise.
8260 (clear_modify_mem_tables): Likewise.
8262 2011-04-05 Tom de Vries <tom@codesourcery.com>
8265 * function.c (emit_use_return_register_into_block): Only define if
8268 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8270 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8272 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8274 * config/rx/rx-opts.h: New.
8275 * config/rx/rx.c (rx_cpu_type): Remove.
8276 (rx_handle_option): Don't assert that global structures are in
8277 use. Access variables via opts pointer. Defer most handling of
8278 OPT_mint_register_. Use error_at.
8279 (rx_option_override): Handle deferred OPT_mint_register_ here.
8280 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8281 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8282 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8283 (rx_cpu_types): New Enum and EnumValue entries.
8284 (mint-register=): Use Defer and use Var accordingly.
8286 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8288 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8289 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8290 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8292 (debug_free_queue, debug_nesting, symbol_queue_index):
8294 * dbxout.c: ...to here. Make static.
8296 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8298 * gcse.c (modify_pair): Define. Define a VEC of it.
8299 (canon_modify_mem_list): Convert to an array of VECs.
8300 (free_insn_expr_list_list): Delete.
8301 (clear_modify_mem_tables): Call VEC_free instead.
8302 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8303 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8304 (canon_list_insert, compute_transp): Likewise.
8306 2011-04-05 Tom de Vries <tom@codesourcery.com>
8309 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8312 2011-04-05 Tom de Vries <tom@codesourcery.com>
8315 * function.c (emit_use_return_register_into_block): New function.
8316 (thread_prologue_and_epilogue_insns): Use
8317 emit_use_return_register_into_block.
8319 2011-04-05 Tom de Vries <tom@codesourcery.com>
8322 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8325 2011-04-05 Tom de Vries <tom@codesourcery.com>
8327 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8329 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8331 * config/arm/arm.md (define_constants for unspec): Replace with
8333 (define_constants for unspecv): Replace with define_c_enum.
8334 * config/arm/neon.md (define_constants for unspec): Replace with
8337 2011-04-04 Richard Henderson <rth@redhat.com>
8340 * dwarf2out.c (output_line_info): Always emit line info from
8341 at least one section.
8342 (dwarf2out_init): Create text_section_line_info here ...
8343 (set_cur_line_info_table): ... not here.
8345 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8348 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8351 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8353 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8355 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8356 (expr_equiv_p): Remove.
8357 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8358 (hash_scan_set): Update call to insert_set_in_table.
8359 (dump_hash_table): Dump <dest, src> pair.
8360 (lookup_set): Simplify. Lookup <dest, src> pair.
8361 (compute_transp): Remove, fold heavily simplified code into...
8362 (compute_local_properties): ...here. Expect COMP and TRANSP
8364 (find_avail_set): Take set directly from struct expr.
8365 (find_bypass-set): Likewise.
8366 (bypass_block): Likewise.
8367 (cprop_insn): Likewise. Remove redundant INSN_P test.
8369 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8370 checks on form of COND from find_implicit_sets to here.
8371 (find_implicit_sets): Cleanup control flow. Split critical edges
8372 if it exposes implicit sets. Allocate/resize implicit_sets as
8374 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8375 changed something. Run df_analyze after find_implicit_sets if any
8376 edges were split. Do not allocate implicit_sets here.
8378 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8379 (gcse_obstack): Renamed to cprop_obstack.
8380 (GNEW, GNEWVEC, GNEWVAR): Remove.
8382 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8383 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8384 (gcse_alloc): Likewise, and rename to cprop_alloc.
8385 (alloc_gcse_men, free_gcse_mem): Remove.
8386 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8387 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8388 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8390 * cprop.c (oprs_not_set_p): Remove.
8391 (mark_set, mark_clobber): Remove.
8392 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8393 (reg_not_set_p): New function.
8394 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8395 (cprop_insn): Likewise.
8396 (cprop_jump): Use FOR_EACH_EDGE.
8398 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8401 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8402 (rank_for_schedule): Use scheduled_insns vector instead of
8403 last_scheduled_insn.
8404 (ok_for_early_queue_removal): Likewise.
8405 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8407 (choose_ready): Likewise.
8408 (commit_schedule): Use VEC_iterate.
8409 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8410 a dbg_cnt, use it and ensure the first insn is in the ready list.
8411 (haifa_sched_init): Allocate scheduled_insns.
8412 (sched_extend_ready_list): Don't allocate it; reserve space.
8413 (haifa_sched_finish): Free it.
8415 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8417 * optc-gen.awk: Always remove type from Variable entry before
8418 recording in var_seen.
8420 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8422 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8423 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8424 call to tidy_fallthru_edges.
8426 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8428 * doc/options.texi (ToLower): Document.
8429 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8430 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8431 * opts.h (cl_option): Add cl_tolower field.
8432 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8433 arguments with lowercase strings.
8434 * config/rx/rx.opt (mcpu=): Add ToLower.
8435 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8438 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8440 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8442 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8444 * config/vax/vax.c: Include reload.h.
8446 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8448 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8449 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8450 (sparc_preferred_reload_class): New function.
8452 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8455 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8456 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8458 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8460 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8461 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8463 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8465 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8466 (ASM_OUTPUT_ALIGNED_BSS): Define.
8468 2011-04-03 Michael Matz <matz@suse.de>
8470 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8471 and next_slot members.
8472 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8473 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8474 (lto_streamer_cache_append): Declare.
8475 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8476 unsigned index, remove offset parameter, ensure that we append
8477 or update existing entries.
8478 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8479 parameter, update next_slot for append.
8480 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8482 (lto_streamer_cache_insert_at): Likewise.
8483 (lto_streamer_cache_append): New function.
8484 (lto_streamer_cache_lookup): Use unsigned index.
8485 (lto_streamer_cache_get): Likewise.
8486 (lto_record_common_node): Don't test tree_node_can_be_shared.
8487 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8488 (lto_streamer_cache_delete): Don't free offsets member.
8489 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8490 (lto_output_string_with_length): Use lto_output_data_stream.
8491 (lto_output_tree_header): Remove ix parameter, don't write it.
8492 (lto_output_builtin_tree): Likewise.
8493 (lto_write_tree): Adjust callers to above, don't track and write
8494 offset, write unsigned index.
8495 (output_unreferenced_globals): Don't emit all global vars.
8496 (write_global_references): Use unsigned indices.
8497 (lto_output_decl_state_refs): Likewise.
8498 (write_symbol): Likewise.
8499 * lto-streamer-in.c (lto_input_chain): Move earlier.
8500 (input_function): Use unsigned index.
8501 (input_alias_pairs): Don't read and then ignore all global vars.
8502 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8503 don't pass it back, use lto_streamer_cache_append.
8504 (lto_register_var_decl_in_symtab): Use unsigned index.
8505 (lto_register_function_decl_in_symtab): Likewise.
8506 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8508 (lto_get_builtin_tree): Don't read index, use
8509 lto_streamer_cache_append.
8510 (lto_read_tree): Adjust call to lto_materialize_tree.
8512 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8513 don't use function calls in arguments to MIN.
8515 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8518 * gimple.c (gimple_type_leader_entry): Mark deletable.
8520 2011-04-03 Alan Modra <amodra@gmail.com>
8522 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8524 2011-04-03 Michael Matz <matz@suse.de>
8526 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8528 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8530 2011-04-03 Michael Matz <matz@suse.de>
8532 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8533 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8534 without function context.
8535 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8536 current_function_decl and cfun.
8538 2011-04-03 Michael Matz <matz@suse.de>
8540 * tree.c (decl_init_priority_insert): Don't create entry for
8542 (decl_fini_priority_insert): Ditto.
8543 (fields_compatible_p, find_compatible_field): Remove.
8544 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8545 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8547 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8549 * combine.c (try_combine): Remove useless local variable.
8551 2011-04-03 Richard Guenther <rguenther@suse.de>
8552 Ira Rosen <ira.rosen@linaro.org>
8554 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8555 non-variable offsets and compare the remaining bases of the two
8556 accesses instead of looking for exact same data-ref.
8558 2011-04-02 Kai Tietz <ktietz@redhat.com>
8561 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8563 * i386.c (ix86_is_msabi_thiscall): New helper function.
8564 (ix86_is_type_thiscall): New helper function.
8565 (ix86_comp_type_attributes): Handle thiscall for method-functions
8567 (init_cumulative_args): Likewise.
8568 (find_drap_reg): Likewise.
8569 (ix86_static_chain): Likewise.
8570 (x86_this_parameter): Likewise.
8571 (x86_output_mi_thunk): Likewise.
8573 2011-04-01 Olivier Hainque <hainque@adacore.com>
8574 Nicolas Setton <setton@adacore.com>
8575 Eric Botcazou <ebotcazou@adacore.com>
8577 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8578 (add_gnat_descriptive_type_attribute): New function.
8579 (gen_array_type_die): Call it.
8580 (gen_enumeration_type_die): Likewise.
8581 (gen_struct_or_union_type_die): Likewise.
8582 (modified_type_die): Likewise.
8583 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8584 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8585 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8587 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8590 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8591 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8594 2011-03-17 Richard Guenther <rguenther@suse.de>
8597 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8598 origin for decls in other ltrans units.
8599 (input_varpool_node): Likewise.
8601 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8604 * expr.c (expand_assignment): Handle all possibilities
8605 if TO_RTX is CONCAT.
8606 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8607 (store_split_bit_field): If SUBREG_REG (op0) or
8608 op0 itself has smaller mode than word, return it
8609 for offset 0 and const0_rtx for out-of-bounds stores.
8610 If word is const0_rtx, skip it.
8612 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8614 * config/h8300/h8300.c (print_operand_address): Rename to...
8615 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8616 Call h8300_print_operand and h8300_print_operand_address instead of
8617 print_operand and print_operand_address. Declare.
8618 (print_operand): Renake to...
8619 (h8300_print_operand): ...this. Make static. Adjust comments.
8620 Call h8300_print_operand instead of print_operand. Declare.
8621 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8622 (h8300_register_move_cost): Likewise.
8623 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8624 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8625 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8626 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8627 * config/h8300/h8300-protos.h (print_operand): Delete.
8628 (print_operand_address): Delete.
8630 2011-04-01 Richard Henderson <rth@redhat.com>
8633 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8634 in strict mode before dwarf4. Re-order tests to early out
8635 before switching sections.
8637 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8639 * config/h8300/constraints.md: New file.
8640 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8641 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8642 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8643 * config/h8300/predicates.md (bit_operand): Likewise.
8644 (incdec_operand): Use satisfies_constraint_M and
8645 satisfies_constraint_O. Don't use C code block.
8646 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8647 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8648 (compute_mov_length): Use satisfies_constraint_G.
8649 (fix_bit_operand): Use satisfies_constraint_U.
8650 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8651 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8652 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8653 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8654 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8655 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8656 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8657 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8658 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8659 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8660 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8661 (EXTRA_MEMORY_CONSTRAINT): Delete.
8663 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8664 Michael Meissner <meissner@linux.vnet.ibm.com>
8667 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8668 operands, as per the specifications.
8670 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8671 (vec_extract_evenv4sf): Ditto.
8672 (vec_extract_evenv8hi): Ditto.
8673 (vec_extract_evenv16qi): Ditto.
8674 (vec_extract_oddv4si): Ditto.
8676 2011-03-31 Mark Wielaard <mjw@redhat.com>
8678 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8679 high_pc attribute if the CU has no associated code. Only output
8680 DW_AT_entry_pc for CU if not generating strict dwarf and
8683 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8685 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8686 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8688 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8689 * final.c (final_start_function): Call the new function rather
8690 than using a NULL argument for dwarf2out_frame_debug.
8692 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8693 that contains the prologue.
8695 * haifa-sched.c (queue_insn): New arg REASON. All callers
8696 changed. Print it in debugging output.
8698 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8700 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8701 Split most of the code into...
8702 (begin_move_insn): ... here. New function.
8703 (ebb_sched_info): Add a pointer to it.
8704 * haifa-sched.c (scheduled_insns): New static variable.
8705 (sched_extend_ready_list): Allocate it.
8706 (schedule_block): Use it to record the order of scheduled insns.
8707 Perform RTL changes to move insns only after all scheduling
8708 decisions have been made.
8709 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8710 begin_move_insn field.
8711 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8712 * sched-int.h (struct haifa_sched_info): Remove second argument
8713 from begin_schedule_ready hook. Add new member begin_move_insn.
8714 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8715 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8717 * haifa-sched.c (prune_ready_list): New function, broken out of
8719 (schedule_block): Use it.
8721 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8723 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8725 2011-04-01 Kai Tietz <ktietz@redhat.com>
8727 * config.gcc (*-*-mingw*): Allow as option the
8728 posix threading model.
8729 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8730 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8732 (CPP_SPEC): Add pthread/no-pthread handling.
8733 (LIB_SPEC): Likewise.
8734 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8735 (LIB_SPEC): Likewise.
8736 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8737 flag to pass -pthread option for shared libgcc build.
8738 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8739 for shared libgcc build.
8740 * config/i386/t-mingw-pthread: New file.
8741 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8742 New define to enable use of library pthread by default.
8743 * config/i386/mingw.opt (pthread): New driver option.
8744 (no-pthread): New driver option.
8745 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8746 * config/i386/mingw-w64.opt: Likewise.
8748 2011-04-01 Gary Funck <gary@intrepid.com>
8750 * c-decl.c (grokdeclarator): Fix formatting.
8752 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8754 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8755 instead of n_operands.
8756 (set_storage_via_setmem): Likewise.
8757 * optabs.c (maybe_gen_insn): Likewise.
8758 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8759 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8760 (mips_expand_builtin_direct): Likewise.
8761 * config/spu/spu.c (expand_builtin_args): Likewise.
8763 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8765 * recog.h (insn_data_d): Add n_generator_args.
8766 * genoutput.c (data): Likewise.
8767 (output_insn_data): Print it.
8768 (max_opno, num_dups): Delete.
8769 (scan_operands): Just fill in "d->operand[...]".
8770 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8772 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8774 * gensupport.h (pattern_stats): New structure.
8775 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8776 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8777 (max_operand_1, max_operand_vec): Delete.
8778 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8780 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8782 * emit-rtl.c (emit_pattern_after_setloc): New function.
8783 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8784 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8785 (emit_pattern_after): New function.
8786 (emit_insn_after, emit_jump_insn_after): Call it.
8787 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8788 (emit_pattern_before_setloc): New function.
8789 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8790 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8792 (emit_pattern_before): New function.
8793 (emit_insn_before, emit_jump_insn_before): Call it.
8794 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8796 2011-03-31 Richard Henderson <rth@redhat.com>
8798 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8799 (dw_separate_line_info_entry): Remove.
8800 (enum dw_line_info_opcode): New.
8801 (dw_line_info_entry): Use it.
8802 (dw_line_info_table, dw_line_info_table_p): New.
8803 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8804 (line_info_table, line_info_label_num): Remove.
8805 (line_info_table_in_use): Remove.
8806 (separate_line_info_table): Remove.
8807 (separate_line_info_table_allocated): Remove.
8808 (separate_line_info_table_in_use): Remove.
8809 (LINE_INFO_TABLE_INCREMENT): Remove.
8810 (line_info_label_num): New.
8811 (cur_line_info_table): New.
8812 (text_section_line_info, cold_text_section_line_info): New.
8813 (separate_line_info): New.
8814 (SEPARATE_LINE_CODE_LABEL): Remove.
8815 (print_dwarf_line_table): Remove.
8816 (debug_dwarf): Don't dump it.
8817 (output_one_line_info_table): New.
8818 (output_line_info): Use it.
8819 (new_line_info_table): New.
8820 (set_cur_line_info_table): New.
8821 (dwarf2out_switch_text_section): Use it.
8822 (dwarf2out_begin_function): Likewise.
8823 (push_dw_line_info_entry): New.
8824 (dwarf2out_source_line): Rewrite for new line info tables.
8825 (dwarf2out_init): Remove dead initailizations.
8827 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8829 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8831 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8832 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8833 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8834 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8835 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8836 * opt-functions.awk (flag_init, switch_bit_fields): New.
8837 (switch_flags): Don't handle flags moved to bit-fields. Don't
8838 generate CL_MISSING_OK or CL_SAVE.
8839 * optc-gen.awk: Update to generate bit-field output as well as
8841 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8842 bit-field instead of CL_REJECT_DRIVER flag.
8843 * opts-common.c (generate_canonical_option,
8844 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8845 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8846 instead of CL_REJECT_NEGATIVE flag.
8847 * toplev.c (print_switch_values): Use cl_report bit-field instead
8850 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8852 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8853 a zero minimum index only if it is redundant.
8855 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8857 PR rtl-optimization/48381
8858 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8859 instead of ira_class_hard_reg_index for calculating conflicting
8862 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8864 * cprop.c: Clean up hash table building.
8865 (reg_avail_info): Remove.
8866 (oprs_available_p): Remove.
8867 (record_last_reg_set_info): Remove.
8868 (record_last_set_info): Remove.
8869 (reg_available_p): New function.
8870 (gcse_constant_p): Do not treat unfolded conditions as constants.
8871 (make_set_regs_unavailable): New function.
8872 (hash_scan_set): Simplify with new reg_available_p.
8873 (compute_hash_table_work): Traverse insns stream only once.
8874 Do not compute reg_avail_info. Traverse insns in reverse order.
8875 Record implicit sets after recording explicit sets from the block.
8877 2011-03-31 Michael Matz <matz@suse.de>
8879 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8881 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8883 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8884 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8885 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8886 (h8300_mode_dependent_address_p): New function.
8887 (h8300_get_index): Make static.
8889 2011-03-31 Jeff Law <law@redhat.com>
8891 * reload1.c (elimination_effects): Fix typo in recent change.
8893 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8894 typo potentially leading to null pointer dereference.
8896 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8897 (setup_save_areas): Corresponding changes to avoid useless
8900 * jump.c (reversed_comparison_code_parts): Avoid successive return
8901 statements when REVERSE_CONDITION is defined.
8903 * expr.c (expand_assignment): Avoid useless assignments.
8904 (expand_expr_real_1): Likewise.
8905 (expand_expr_real_2): Avoid useless statements.
8907 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8909 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8911 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8914 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8916 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8919 * doc/tm.texi.in (TARGET_VERSION): Remove.
8920 * doc/tm.texi: Regenerate.
8921 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8922 * collect2.c (main): Don't use TARGET_VERSION.
8923 * mips-tdump.c (main): Don't use TARGET_VERSION.
8924 * mips-tfile.c (main): Don't use TARGET_VERSION.
8925 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8926 * config/rs6000/vxworksae.h: Remove.
8927 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8928 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8929 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8930 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8931 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8932 * config/arm/arm.h (TARGET_VERSION): Remove.
8933 * config/arm/coff.h (TARGET_VERSION): Remove.
8934 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8935 * config/arm/elf.h (TARGET_VERSION): Remove.
8936 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8937 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8938 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8939 * config/arm/pe.h (TARGET_VERSION): Remove.
8940 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8941 * config/arm/semi.h (TARGET_VERSION): Remove.
8942 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8943 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8944 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8945 * config/avr/avr.h (TARGET_VERSION): Remove.
8946 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8947 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8948 * config/frv/frv.h (TARGET_VERSION): Remove.
8949 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8950 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8951 * config/i386/darwin.h (TARGET_VERSION): Remove.
8952 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8953 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8954 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8955 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8956 * config/i386/gnu.h (TARGET_VERSION): Remove.
8957 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8958 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8959 * config/i386/linux.h (TARGET_VERSION): Remove.
8960 * config/i386/linux64.h (TARGET_VERSION): Remove.
8961 * config/i386/lynx.h (TARGET_VERSION): Remove.
8962 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8963 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8964 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8965 * config/i386/netware.h (TARGET_VERSION): Remove.
8966 * config/i386/nto.h (TARGET_VERSION): Remove.
8967 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8968 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8969 * config/ia64/elf.h (TARGET_VERSION): Remove.
8970 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8971 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8972 * config/ia64/linux.h (TARGET_VERSION): Remove.
8973 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8974 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8975 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8976 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8977 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8978 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8979 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8980 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8981 * config/m68k/linux.h (TARGET_VERSION): Remove.
8982 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8983 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8984 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8985 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8986 * config/mep/mep.h (TARGET_VERSION): Remove.
8987 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8988 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8989 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8990 * config/mips/linux.h (TARGET_VERSION): Remove.
8991 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8992 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8993 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8994 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8995 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8996 * config/pa/pa.h (TARGET_VERSION): Remove.
8997 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8998 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8999 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9000 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9001 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9002 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9003 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9004 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9005 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9006 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9007 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9008 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9009 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9010 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9011 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9012 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9013 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9014 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9015 * config/s390/linux.h (TARGET_VERSION): Remove.
9016 * config/s390/s390.h (TARGET_VERSION): Remove.
9017 * config/s390/tpf.h (TARGET_VERSION): Remove.
9018 * config/score/score.h (TARGET_VERSION): Remove.
9019 * config/sh/linux.h (TARGET_VERSION): Remove.
9020 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9021 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9022 * config/sh/sh.h (TARGET_VERSION): Remove.
9023 * config/sh/sh64.h (TARGET_VERSION): Remove.
9024 * config/sh/superh.h (TARGET_VERSION): Remove.
9025 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9026 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9027 * config/sparc/linux.h (TARGET_VERSION): Remove.
9028 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9029 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9030 TARGET_NAME32, TARGET_NAME): Remove.
9031 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9032 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9033 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9034 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9035 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9036 * config/spu/spu.h (TARGET_VERSION): Remove.
9037 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9038 * config/v850/v850.h (TARGET_VERSION): Remove.
9039 * config/vax/linux.h (TARGET_VERSION): Remove.
9040 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9041 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9042 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9044 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9047 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9048 frame-related from frame-unrelated adjustments to the stack pointer.
9050 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9052 * common.opt (fdebug-types-section): Move earlier.
9053 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9055 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9057 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9060 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9062 * tree.h (CASE_CHAIN): Define.
9063 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9064 (gimple_redirect_edge_and_branch): Likewise.
9066 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9069 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9072 2011-03-30 Jeff Law <law@redhat.com>
9074 * PR bootstrap/48371
9075 * reload1.c (reload): Fix botch in last change.
9077 * reload.h (struct reload): Fix typo introduced in last change.
9079 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9081 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9082 Undocumented. Remove help text.
9083 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9086 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9088 * doc/options.texi (NegativeAlias): Document.
9089 (Alias): Mention NegativeAlias.
9090 * opt-functions.awk: Handle NegativeAlias.
9091 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9092 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9093 * opts.h (CL_NEGATIVE_ALIAS): Define.
9094 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9095 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9097 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9099 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9100 mno-spe and mno-isel instead of mspe=no and -misel=no.
9102 2011-03-29 Mark Wielaard <mjw@redhat.com>
9104 * common.opt (fdebug-types-section): New flag.
9105 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9106 * dwarf2out.c (use_debug_types): New define.
9107 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9108 (print_die): Guard output of type unit signatures using
9110 (build_abbrev_table): Replace assert of dwarf_version >= 4
9111 with assert on use_debug_types.
9112 (size_of_die): Likewise.
9113 (unmark_dies): Likewise.
9114 (value_format): Decide AT_ref_external form on use_debug_types.
9115 (output_die): Replace dwarf_version version check guard with
9116 use_debug_types where appropriate.
9117 (modified_type_die): Likewise.
9118 (gen_reference_type_die): Likewise.
9119 (dwarf2out_start_source_file): Likewise.
9120 (dwarf2out_end_source_file): Likewise.
9121 (prune_unused_types_walk_attribs): Likewise.
9122 (dwarf2out_finish): Likewise.
9124 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9126 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9128 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9130 PR rtl-optimization/48332
9131 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9132 mode of input operand N and modeN to its actual mode.
9134 2011-03-30 Jeff Law <law@redhat.com>
9136 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9137 define accessor macro.
9138 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9139 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9140 (reg_equiv_init): Likewise.
9141 (reg_equivs_size): New variable.
9142 (reg_equiv_init_size): Remove.
9143 (allocate_initial_values): Move prototype to here from....
9144 * integrate.h (allocate_initial_values): Remove prototype.
9145 * integrate.c: Include reload.h.
9146 (allocate_initial_values): Corresponding changes.
9147 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9148 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9149 (update_equiv_regs): Corresponding changes.
9150 (ira): Corresponding changes.
9151 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9152 (push_secondary_reload): Corresponding changes.
9153 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9154 (make_memloc, find_reloads_address): Corresponding changes.
9155 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9156 (find_reloads_address_1): Corresponding changes.
9157 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9158 (refers_to_regno_for_reload_p): Corresponding changes.
9159 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9160 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9161 * reload1.c: Include ggc.h.
9162 (grow_reg_equivs): New function.
9163 (replace_pseudos_in, reload): Corresponding changes.
9164 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9165 (eliminate_regs_1, elimination_effects): Corresponding changes.
9166 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9167 (delete_output_reload): Likewise.
9168 * caller-save.c (mark_referenced_regs): Corresponding changes.
9169 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9170 * frv/predicates.md (frv_load_operand): Corresponding changes.
9171 * microblaze/microblaze.c (double_memory_operand): Corresponding
9173 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9174 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9175 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9176 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9177 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9179 * pa/pa.c (emit_move_sequence): Corresponding changes.
9180 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9182 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9185 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9186 structure modes. Don't check neon_vector_mem_operand for
9187 vector or structure modes.
9189 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9190 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9193 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9194 operand 1 and reshuffle the operands to match.
9195 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9197 2011-03-30 Christian Schüler <cschueler@gmx.de>
9200 * config/c.opt (F): Added 'Driver' to -F option.
9203 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9205 * config/darwin.opt: Added '-arch' option.
9207 2011-03-30 Nick Clifton <nickc@redhat.com>
9209 * config/rx/rx.md: Add peepholes and patterns to combine
9210 extending loads and simple arithmetic instructions.
9211 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9212 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9213 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9214 modes to use pre-decrement and post-increment addressing.
9215 (rx_is_restricted_memory_address): Add range checking of REG+INT
9217 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9218 (rx_memory_move_cost): Adjust cost of stores.
9219 (rx_adjust_insn_length): New function.
9221 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9224 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9225 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9226 matching arg00/arg01 types.
9228 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9230 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9231 last_location to UNKNOWN_LOCATION.
9233 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9236 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9239 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9240 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9243 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9245 (sparc_cpu): Likewise.
9246 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9249 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9253 PR rtl-optimization/48345
9254 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9255 hard regs for given mode from profitable regs when doing secondary
9258 2011-03-29 Jeff Law <law@redhat.com>
9261 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9262 do_not_duplicate field.
9263 (lookup_redirection_data): Corresponding changes.
9264 (create_duplicates): Always create a template block.
9265 (redirect_edges): Remove code which reused the original block
9266 when it was going to become unreachable code.
9267 (thread_block): Don't set do_not_duplicate field.
9269 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9271 * lto-opts.c (register_user_option_p, lto_register_user_option):
9272 Make type argument unsigned.
9273 * lto-streamer.h (lto_register_user_option): Make type argument
9275 * opth-gen.awk: Make CL_* macros unsigned.
9276 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9277 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9278 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9279 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9280 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9281 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9282 (find_opt): Make lang_mask argument unsigned.
9284 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9286 PR rtl-optimization/48331
9287 PR rtl-optimization/48334
9288 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9289 for any used algorithm.
9291 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9293 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9296 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9298 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9299 (alpha_option_override): Don't set alpha_sr_alias_set.
9300 (emit_frame_store_1): Use gen_frame_mem rather than calling
9302 (alpha_expand_epilogue): Ditto.
9304 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9306 PR tree-optimization/48290
9307 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9308 vectorization, check that relevant phis in the basic block after
9309 the inner loop are really inner loop's exit phis.
9311 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9314 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9315 (cached_dw_loc_list_def): New structure.
9316 (cached_dw_loc_list): New typedef.
9317 (cached_dw_loc_list_table): New variable.
9318 (cached_dw_loc_list_table_hash): New function.
9319 (cached_dw_loc_list_table_eq): Likewise.
9320 (add_location_or_const_value_attribute): Take a bool cache_p.
9321 Cache the list when the parameter is true.
9322 (gen_formal_parameter_die): Update caller.
9323 (gen_variable_die): Likewise.
9324 (dwarf2out_finish): Likewise.
9325 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9326 while generating debug info for the decl.
9327 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9328 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9329 (resolve_addr): Cache the result of resolving a chain of
9332 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9334 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9335 conflict object hard regset nodes have intersecting hard reg sets.
9337 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9338 after regstat_init_n_sets_and_refs.
9340 * ira.c: Add more comments at the top.
9341 (setup_stack_reg_pressure_class, setup_pressure_classes):
9342 Add comments how we compute the register pressure classes.
9343 (setup_allocno_and_important_classes): Add more comments.
9344 (setup_class_translate_array, reorder_important_classes)
9345 (setup_reg_class_relations): Add comments.
9347 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9350 * ira-color.c: Add 2011 to the Copyright line.
9351 (assign_hard_reg): Add more comments.
9352 (improve_allocation): Ditto.
9354 * ira-costs.c: Add 2011 to the Copyright line.
9355 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9357 (setup_regno_cost_classes_by_mode): Ditto.
9359 Initial patches from ira-improv branch:
9361 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9363 * ira-build.c (ira_create_object): Remove initialization of
9364 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9365 (ira_create_allocno): Remove initialization of
9366 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9367 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9368 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9369 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9370 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9371 Initialize ALLOCNO_ADD_DATA.
9372 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9373 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9375 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9376 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9378 * ira.c (ira_reallocate): Remove.
9379 (setup_pressure_classes): Call
9380 ira_init_register_move_cost_if_necessary. Use
9381 ira_register_move_cost instead of ira_get_register_move_cost.
9382 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9383 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9385 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9386 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9387 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9388 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9389 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9390 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9392 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9393 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9394 (struct allocno_color_data): New.
9395 (allocno_color_data_t): New typedef.
9396 (allocno_color_data): New definition.
9397 (ALLOCNO_COLOR_DATA): New macro.
9398 (struct object_color_data): New.
9399 (object_color_data_t): New typedef.
9400 (object_color_data): New definition.
9401 (OBJECT_COLOR_DATA): New macro.
9402 (update_copy_costs, calculate_allocno_spill_cost): Call
9403 ira_init_register_move_cost_if_necessary. Use
9404 ira_register_move_cost instead of ira_get_register_move_cost.
9405 (move_spill_restore, update_curr_costs): Ditto.
9406 (allocno_spill_priority): Make it inline.
9407 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9408 (struct coalesce_data, coalesce_data_t): New.
9409 (allocno_coalesce_data): New definition.
9410 (ALLOCNO_COALESCE_DATA): New macro.
9411 (merge_allocnos, coalesced_allocno_conflict_p): Use
9412 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9413 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9414 (coalesce_allocnos): Ditto.
9415 (setup_coalesced_allocno_costs_and_nums): Ditto.
9416 (collect_spilled_coalesced_allocnos): Ditto.
9417 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9418 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9419 (coalesce_spill_slots): Ditto.
9420 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9421 free allocno_coalesce_data.
9423 * ira-conflicts.c: Fix formatting.
9424 (process_regs_for_copy): Call
9425 ira_init_register_move_cost_if_necessary. Use
9426 ira_register_move_cost instead of ira_get_register_move_cost.
9427 (build_object_conflicts): Optimize.
9429 * ira-costs.c (record_reg_classes): Optimize. Call
9430 ira_init_register_move_cost_if_necessary. Use
9431 ira_register_move_cost, ira_may_move_in_cost, and
9432 ira_may_move_out_cost instead of ira_get_register_move_cost and
9433 ira_get_may_move_cost.
9434 (record_address_regs): Ditto.
9435 (scan_one_insn): Optimize.
9436 (find_costs_and_classes): Optimize.
9437 (process_bb_node_for_hard_reg_moves): Call
9438 ira_init_register_move_cost_if_necessary. Use
9439 ira_register_move_cost instead of ira_get_register_move_cost.
9441 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9442 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9443 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9444 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9446 (ira_initiate_emit_data, ira_finish_emit_data)
9447 (create_new_allocno): New functions.
9448 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9449 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9450 Use ira_register_move_cost instead of ira_get_register_move_cost.
9452 * ira-int.h: Fix some comments.
9453 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9454 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9455 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9456 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9458 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9459 bitfield after mode. Make hard_regno a short int. Make
9460 hard_regno short. Remove first_coalesced_allocno and
9461 next_coalesced_allocno. Move mem_optimized_dest_p,
9462 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9463 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9464 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9465 temp, colorable_p. Add new member add_data.
9466 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9467 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9468 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9469 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9470 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9471 (ALLOCNO_ADD_DATA): New macro.
9472 (ira_emit_data_t): New typedef.
9473 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9474 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9475 from struct ira_allocno.
9476 (ALLOCNO_EMIT_DATA): New macro.
9477 (ira_allocno_emit_data, allocno_emit_reg): New.
9478 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9479 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9480 (OBJECT_ADD_DATA): New macro.
9481 (ira_reallocate): Remove.
9482 (ira_initiate_emit_data, ira_finish_emit_data): New.
9483 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9484 (ira_init_register_move_cost_if_necessary): New.
9485 (ira_object_conflict_iter_next): Merge into
9486 ira_object_conflict_iter_cond.
9487 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9489 * ira-live.c (process_single_reg_class_operands): Call
9490 ira_init_register_move_cost_if_necessary. Use
9491 ira_register_move_cost instead of ira_get_register_move_cost.
9493 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9495 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9497 * ira-costs.c: Fix formatting.
9498 (cost_classes, cost_classes_num): Remove.
9499 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9500 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9501 (cost_classes_del, cost_classes_htab): New.
9502 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9503 (initiate_regno_cost_classes, setup_cost_classes): New.
9504 (setup_regno_cost_classes_by_aclass): New.
9505 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9506 (record_reg_classes): Use regno_cost_classes instead of
9507 cost_classes. Move checking opposite operand up.
9508 (record_address_regs): Use regno_cost_classes
9509 instead of cost_classes.
9510 (scan_one_insn): Ditto. Use always general register.
9511 (print_allocno_costs): Use regno_cost_classes instead of
9513 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9514 (find_costs_and_classes): Set up cost classes for each registers.
9515 Use also their mode for this. Use regno_cost_classes instead of
9517 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9519 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9520 (ira_costs, ira_set_pseudo_classes): Call
9521 initiate_regno_cost_classes and finish_regno_cost_classes.
9523 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9525 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9527 * target.def (ira_cover_classes): Remove.
9529 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9531 * doc/tm.texi.in: Ditto.
9533 * ira-conflicts.c: Remove mentioning cover classes from the file.
9534 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9535 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9537 * targhooks.c (default_ira_cover_classes): Remove.
9539 * targhooks.h (default_ira_cover_classes): Ditto.
9541 * haifa-sched.c: Remove mentioning cover classes from the file.
9542 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9543 ira_pressure_classes and ira_pressure_classes_num instead of
9544 ira_reg_class_cover_size and ira_reg_class_cover. Use
9545 sched_regno_pressure_class instead of sched_regno_cover_class.
9546 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9547 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9549 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9550 classes from the file.
9551 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9552 (struct object_hard_regs, struct object_hard_regs_node): New.
9553 (struct ira_object): New members profitable_hard_regs,
9554 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9555 (struct ira_allocno): Rename cover_class to aclass. Rename
9556 cover_class_cost and updated_cover_class_cost to class_cost and
9557 updated_class_cost. Remove splay_removed_p and
9558 left_conflict_size. Add new members colorable_p.
9559 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9560 (ALLOCNO_COLORABLE_P): New macro.
9561 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9562 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9563 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9564 (OBJECT_...): Rename parameter C to O.
9565 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9566 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9567 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9568 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9569 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9570 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9571 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9572 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9573 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9574 x_ira_reg_class_subunion.
9575 (ira_max_memory_move_cost, ira_max_register_move_cost)
9576 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9577 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9578 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9579 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9580 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9581 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9582 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9583 (ira_tune_allocno_costs_and_cover_classes): Rename to
9584 ira_tune_allocno_costs.
9585 (ira_debug_hard_regs_forest): New.
9586 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9587 (ira_object_conflict_iter_next): Fix comments.
9588 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9589 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9590 cover_class to aclass.
9591 (ira_allocate_and_accumulate_costs): Ditto.
9592 (ira_allocate_and_set_or_copy_costs): Ditto.
9594 * opts.c (decode_options): Remove ira_cover_class check.
9596 * ira-color.c: Remove mentioning cover classes from the file. Use
9597 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9598 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9599 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9600 (splay-tree.h): Remove include.
9601 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9602 before copy_freq_compare_func.
9603 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9604 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9606 (hard_regs_roots, hard_regs_node_vec): Ditto.
9607 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9608 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9609 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9610 (create_new_object_hard_regs_node): Ditto.
9611 (add_new_object_hard_regs_node_to_forest): Ditto.
9612 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9613 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9615 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9616 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9617 (remove_unused_object_hard_regs_nodes): Ditto.
9618 (enumerate_object_hard_regs_nodes): Ditto.
9619 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9620 (object_hard_regs_subnode_t): Ditto.
9621 (struct object_hard_regs_subnode): Ditto.
9622 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9623 (setup_object_hard_regs_subnode_index): Ditto.
9624 (get_object_hard_regs_subnodes_num): Ditto.
9625 (form_object_hard_regs_nodes_forest): Ditto.
9626 (finish_object_hard_regs_nodes_tree): Ditto.
9627 (finish_object_hard_regs_nodes_forest): Ditto.
9628 (allocnos_have_intersected_live_ranges_p): Rename to
9629 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9630 (pseudos_have_intersected_live_ranges_p): Rename to
9631 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9632 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9633 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9634 (update_copy_costs): Remove assert. Skip cost update if the hard
9635 reg does not belong the class.
9636 (assign_hard_reg): Process only profitable hard regs.
9637 (uncolorable_allocnos_num): Make it scalar.
9638 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9639 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9640 and ira_reg_class_max_nregs.
9641 (bucket_allocno_compare_func): Check frequency first.
9642 (sort_bucket): Add compare function as a parameter.
9643 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9644 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9645 (push_allocno_to_stack): Rewrite for checking new allocno
9647 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9648 (push_only_colorable): Pass new parameter to sort_bucket.
9649 (push_allocno_to_spill): Remove.
9650 (allocno_spill_priority_compare): Make it inline and rewrite.
9651 (splay_tree_allocate, splay_tree_free): Remove.
9652 (allocno_spill_sort_compare): New function.
9653 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9654 build and use splay tree. Choose first allocno in uncolorable
9655 allocno bucket to spill. Remove setting spill cost.
9656 (all_conflicting_hard_regs): Remove.
9657 (setup_allocno_available_regs_num): Check only profitable hard
9658 regs. Print info about hard regs nodes.
9659 (setup_allocno_left_conflicts_size): Remove.
9660 (put_allocno_into_bucket): Don't call
9661 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9662 (improve_allocation): New.
9663 (color_allocnos): Call setup_profitable_hard_regs,
9664 form_object_hard_regs_nodes_forest, improve_allocation,
9665 finish_object_hard_regs_nodes_forest. Setup spill cost.
9666 (print_loop_title): Use pressure classes.
9667 (color_allocnso): Ditto.
9668 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9669 and allocnos_for_spilling.
9670 (ira_sort_regnos_for_alter_reg): Don't setup members
9671 {first,next}_coalesced_allocno.
9672 (color): Remove allocating and freeing removed_splay_allocno_vec.
9673 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9674 prohibited_class_mode_regs.
9676 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9678 (update_allocno_pressure_excess_length): Use pressure classes.
9679 (inc_register_pressure, dec_register_pressure): Check for pressure
9681 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9682 pressure class. Use ira_reg_class_nregs instead of
9683 ira_reg_class_max_nregs.
9684 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9685 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9686 (single_reg_class): Use ira_reg_class_nregs instead of
9687 ira_reg_class_max_nregs.
9688 (process_bb_node_lives): Use pressure classes.
9690 * ira-emit.c: Remove mentioning cover classes from the file. Use
9691 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9692 (change_loop): Use pressure classes.
9693 (modify_move_list): Call ira_set_allocno_class instead of
9694 ira_set_allocno_cover_class.
9696 * ira-build.c: Remove mentioning cover classes from the file. Use
9697 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9698 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9699 ALLOCNO_UPDATED_CLASS_COST instead of
9700 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9701 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9702 (ira_create_allocno): Remove initialization of
9703 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9704 ALLOCNO_COLORABLE_P.
9705 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9706 Update conflict regs for the objects.
9707 (create_cap_allocno): Remove assert. Don't propagate
9708 ALLOCNO_AVAILABLE_REGS_NUM.
9709 (ira_free_allocno_costs): New function.
9710 (finish_allocno): Change a part of code into call of
9711 ira_free_allocno_costs.
9712 (low_pressure_loop_node_p): Use pressure classes.
9713 (object_range_compare_func): Don't compare classes.
9714 (setup_min_max_conflict_allocno_ids): Ditto.
9716 * loop-invariant.c: Remove mentioning cover classes from the file.
9717 Use ira_pressure_classes and ira_pressure_classes_num instead of
9718 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9719 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9720 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9721 Use reg_allocno_class instead of reg_cover_class.
9722 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9723 STACK_REG_COVER_CLASS.
9724 (get_regno_cover_class): Rename to get_regno_pressure_class.
9725 (move_loop_invariants): Initialize and finalize regstat.
9727 * ira.c: Remove mentioning cover classes from the file. Add
9728 comments about coloring without cover classes. Use ALLOCNO_CLASS
9729 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9730 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9731 setup_class_subset_and_memory_move_costs.
9732 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9733 (setup_cover_and_important_classes): Rename to
9734 setup_allocno_and_important_classes.
9735 (setup_class_translate_array): New.
9736 (setup_class_translate): Call it for allocno and pressure classes.
9737 (cover_class_order): Rename to allocno_class_order.
9738 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9739 of ira_class_translate.
9740 (reorder_important_classes): Set up ira_important_class_nums.
9741 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9742 (print_class_cover): Rename to print_classes. Add parameter.
9743 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9744 Print pressure classes too.
9745 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9746 setup_reg_subclasses.
9747 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9748 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9749 (setup_prohibited_class_mode_regs): Use
9750 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9751 (clarify_prohibited_class_mode_regs): New function.
9752 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9753 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9754 (ira_init_once): Initialize them.
9755 (free_register_move_costs): Process them.
9756 (ira_init): Move calls of find_reg_classes and
9757 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9758 Call clarify_prohibited_class_mode_regs.
9759 (ira_no_alloc_reg): Remove.
9760 (too_high_register_pressure_p): Use pressure classes.
9762 * sched-deps.c: Remove mentioning cover classes from the file.
9763 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9764 ira_pressure_classes and ira_pressure_classes_num instead of
9765 ira_reg_class_cover_size and ira_reg_class_cover.
9766 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9767 sched_regno_pressure_class instead of sched_regno_cover_class.
9768 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9769 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9771 * ira.h: Add 2010 to Copyright.
9772 (ira_no_alloc_reg): Remove external.
9773 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9774 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9775 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9776 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9777 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9778 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9779 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9780 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9781 x_ira_no_alloc_regs.
9782 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9783 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9784 ira_allocno_classes_num and ira_allocno_classes.
9785 (ira_class_translate): Rename to ira_allocno_class_translate.
9786 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9787 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9788 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9789 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9790 (ira_no_alloc_regs): New.
9792 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9793 classes from the file. Use ALLOCNO_CLASS instead of
9794 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9795 ALLOCNO_COVER_CLASS_COST.
9796 (regno_cover_class): Rename to regno_aclass.
9797 (record_reg_classes): Use ira_reg_class_subunion instead of
9798 ira_reg_class_union.
9799 (record_address_regs): Check overflow.
9800 (scan_one_insn): Ditto.
9801 (print_allocno_costs): Print total mem cost fore regional allocation.
9802 (print_pseudo_costs): Use REG_N_REFS.
9803 (find_costs_and_classes): Use classes intersected with them on the
9804 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9805 ira_reg_class_union. Use ira_allocno_class_translate and
9806 regno_aclass instead of ira_class_translate and regno_cover_class.
9807 Modify code for finding regno_aclass. Setup preferred classes for
9809 (setup_allocno_cover_class_and_costs): Rename to
9810 setup_allocno_class_and_costs. Use regno_aclass instead of
9811 regno_cover_class. Use ira_set_allocno_class instead of
9812 ira_set_allocno_cover_class.
9813 (init_costs, finish_costs): Use regno_aclass instead of
9815 (ira_costs): Use setup_allocno_class_and_costs instead of
9816 setup_allocno_cover_class_and_costs.
9817 (ira_tune_allocno_costs_and_cover_classes): Rename to
9818 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9819 by processing objects. Use ira_reg_class_max_nregs instead of
9820 ira_reg_class_nregs.
9822 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9824 * sched-int.h: Remove mentioning cover classes from the file.
9825 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9827 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9828 classes from the file.
9829 (struct reg_pref): Rename coverclass into allocnoclass.
9830 (reg_cover_class): Rename to reg_allocno_class.
9832 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9834 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9836 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9838 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9840 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9842 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9844 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9846 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9848 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9850 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9852 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9853 (i386_ira_cover_classes): Ditto.
9855 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9857 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9859 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9861 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9863 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9865 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9867 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9868 (mips_ira_cover_classes): Ditto.
9870 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9872 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9874 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9876 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9878 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9880 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9881 (IRA_COVER_CLASSES_VSX): Ditto.
9883 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9884 (rs6000_ira_cover_classes): Ditto.
9886 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9888 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9890 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9892 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9894 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9896 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9898 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9900 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9902 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9904 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9906 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9909 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9910 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9911 dw_fde_unlikely_section_end_label, cold_in_std_section,
9912 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9913 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9915 (output_fde): Use dw_fde_second_{begin,end} if second is
9916 true, otherwise dw_fde_{begin,end}.
9917 (output_call_frame_info): Test dw_fde_second_begin != NULL
9918 instead of dw_fde_switched_sections.
9919 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9920 fields, initialize new fields. Initialize in_std_section
9921 unconditionally from the first partition.
9922 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9923 dw_fde_second_begin is non-NULL.
9924 (dwarf2out_switch_text_section): Stop initializing removed
9925 dw_fde_struct fields, initialize new fields, initialize
9926 also dw_fde_end here. Set dw_fde_switch_cfi even when
9927 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9928 (struct var_loc_list_def): Add last_before_switch field.
9929 (arange_table, arange_table_allocated, arange_table_in_use,
9930 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9931 (size_of_aranges): Count !in_std_section and !second_in_std_section
9932 hunks in fdes, instead of looking at arange_table_in_use.
9933 (output_aranges): Add aranges_length argument, don't call
9934 size_of_aranges here. Instead of using aranges_table*
9935 emit ranges for fdes when !in_std_section resp.
9936 !second_in_std_section.
9937 (dw_loc_list): Break ranges crossing section switch.
9938 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9939 use dw_fde_second_end instead of dw_fde_end as end of last range.
9940 (gen_subprogram_die): Don't call add_arange. Use
9941 dw_fde_{begin,end} for first partition and if switched
9942 section dw_fde_second_{begin,end} for the second.
9943 (var_location_switch_text_section_1,
9944 var_location_switch_text_section): New functions.
9945 (dwarf2out_begin_function): Initialize cold_text_section even
9946 when function_section () isn't text_section.
9947 (prune_unused_types): Don't walk arange_table.
9948 (dwarf2out_finish): Don't needlessly test
9949 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9950 If info_section_emitted, call size_of_aranges and if it indicates
9951 non-empty .debug_aranges, call output_aranges with the computed
9952 size. Stop using removed dw_fde_struct fields, use
9953 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9957 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9958 create ENTRY_VALUE if incoming or address of incoming's MEM
9960 * dwarf2out.c (mem_loc_descriptor): Don't emit
9961 DW_OP_GNU_entry_value of DW_OP_fbreg.
9962 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9963 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9964 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9965 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9967 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9968 is a REG_P or MEM_P with REG_P address, compute hash directly
9969 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9970 (preserve_only_constants): Don't clear VALUES forwaring
9971 ENTRY_VALUE to some other VALUE.
9973 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9975 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9978 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9980 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9981 block before expanding the statement.
9982 (expand_gimple_stmt_1): Likewise. Set them here...
9983 (expand_gimple_stmt): ...and not here. Tidy.
9984 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9987 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9989 * Makefile.in: New rule for cprop.o.
9990 * gcse.c: Move constant/copy propagation to cprop.c.
9991 (compute_local_properties): Only handle expression tables.
9992 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9993 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9994 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9995 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9996 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9997 compute_cprop_data, find_used_regs, try_replace_reg,
9998 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9999 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10000 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10001 find_bypass_set, reg_killed_on_edge, bypass_block,
10002 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10003 execute_rtl_cprop, pass_rtl_cprop): Move to...
10004 * cprop.c: ...here. New file, constant/copy propagation for RTL
10005 moved from gcse.c to here with minor cleanups in duplicated code.
10007 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10009 * config/i386/i386.c (flag_opts): Fix a typo in
10010 -mavx256-split-unaligned-store.
10012 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10014 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10015 LIBCALL_VALUE): Remove macros.
10016 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10017 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10018 (h8300_function_value, h8300_libcall_value,
10019 h8300_function_value_regno_p): New functions.
10021 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10023 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10025 2011-03-28 Jeff Law <law@redhat.com>
10027 * tree-ssa-threadupdate.c (redirect_edges): Call
10028 create_edge_and_update_destination_phis as needed.
10029 (create_edge_and_update_destination_phis): Accept new BB argument.
10030 All callers updated.
10031 (thread_block): Do not update the profile when threading around
10032 intermediate blocks.
10033 (thread_single_edge): Likewise.
10034 (determine_bb_domination_status): If BB is not a successor of the
10035 loop header, return NONDOMINATING.
10036 (register_jump_thread): Note when we register a jump thread around
10037 an intermediate block.
10038 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10039 (thread_across_edge): Use it.
10041 2011-03-28 Tristan Gingold <gingold@adacore.com>
10043 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10044 when for_return is 2.
10046 2011-03-28 Jeff Law <law@redhat.com>
10048 * var-tracking.c (canonicalize_values_mark): Delete unused
10050 (canonicalize_values_star, set_variable_part): Likewise.
10051 (clobber_variable_part, delete_variable_part): Likewise.
10053 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10055 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10057 2011-03-28 Martin Jambor <mjambor@suse.cz>
10059 * tree-inline.c (expand_call_inline): Do not check that destination
10061 (optimize_inline_calls): Assert that destination node is analyzed.
10062 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10063 not call tree_lowering_passes.
10064 * cgraph.h (cgraph_analyze_function): Declare.
10065 * cgraphunit.c (cgraph_analyze_function): Make public.
10067 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10069 * config/sparc/sparc-opts.h: New.
10070 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10071 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10072 (sparc_option_override): Store processor_type enumeration rather
10073 than string in cpu_default. Remove name and enumeration from
10074 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10075 without using sparc_select. Use target_flags_explicit instead of
10077 * config/sparc/sparc.h (enum processor_type): Move to
10079 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10080 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10081 HeaderInclude entry.
10082 (mcpu=, mtune=): Use Var and Enum.
10083 (sparc_processor_type): New Enum and EnumValue entries.
10085 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10086 Iain Sandoe <iains@gcc.gnu.org>
10089 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10091 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10093 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10094 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10095 Insert new statements at it in lieu of STMT.
10096 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10097 * tree-vect-stmts.c (vectorizable_store): Likewise.
10098 (vectorizable_load): Likewise.
10100 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10102 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10107 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10109 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10110 unaligned 256bit load/store.
10111 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10112 (*avx_movdqu<avxmodesuffix>): Likewise.
10114 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10117 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10118 * config/pa/pa.md (iordi3): Use new predicate in expander.
10119 (iorsi3): Likewise.
10121 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10123 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10124 FUNCTION_VALUE_REGNO_P): Remove macros.
10125 * config/mips/mips-protos.h (mips_function_value): Remove.
10126 * config/mips/mips.c (mips_function_value): Rename to...
10127 (mips_function_value_1): ... this. Make static. Handle receiving
10128 the function type in 'fn_decl_or_type' argument.
10129 (mips_function_value, mips_libcall_value,
10130 mips_function_value_regno_p): New function.
10131 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10132 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10134 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10136 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10137 and -mavx256-split-unaligned-store.
10138 (ix86_option_override_internal): Split 32-byte AVX unaligned
10139 load/store by default.
10140 (ix86_avx256_split_vector_move_misalign): New.
10141 (ix86_expand_vector_move_misalign): Use it.
10143 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10144 -mavx256-split-unaligned-store.
10146 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10147 256bit load/store. Generate unaligned store on misaligned memory
10149 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10151 (*avx_movdqu<avxmodesuffix>): Likewise.
10153 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10154 -mavx256-split-unaligned-store.
10156 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10159 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10162 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10164 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10165 opno arguments with an expand_operand. Use create_input_operand.
10166 (mips_prepare_builtin_target): Delete.
10167 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10169 (mips_expand_builtin_direct): Use create_output_operand and
10170 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10171 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10172 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10174 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10176 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10178 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10180 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10182 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10183 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10184 basic blocks and call commit_edge_insertions directly.
10185 (fixup_abnormal_edges): Move from here to...
10186 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10187 on the edges and return whether some have actually been inserted.
10188 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10191 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10193 PR rtl-optimization/48144
10194 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10195 (merge_expr_data): ... here.
10196 (av_set_intersect): Rename to av_set_code_motion_filter.
10197 Update all callers. Call merge_history_vect when an expression
10198 is found in both sets.
10199 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10201 2011-03-26 Alan Modra <amodra@gmail.com>
10203 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10204 cmodel medium addresses.
10205 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10206 64-bit gpr loads and stores.
10207 (rs6000_secondary_reload_ppc64): New function.
10208 * config/rs6000/rs6000-protos.h: Declare it.
10209 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10211 2011-03-26 Alan Modra <amodra@gmail.com>
10214 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10215 GNU Go in traceback table.
10217 2011-03-25 Richard Henderson <rth@redhat.com>
10219 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10220 if there are exactly 6 operands.
10221 (set_storage_via_setmem): Similarly.
10223 2011-03-25 Kai Tietz <ktietz@redhat.com>
10225 * collect2.c (write_c_file_stat): Handle backslash
10226 as right-hand directory separator.
10227 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10228 checking just for slash.
10229 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10230 instead of checking for trailing slash.
10231 * gcc.c (record_temp_file): Use filename_cmp instead
10233 (do_spec_1): Likewise.
10234 (replace_outfile_spec_function): Likewise.
10235 (is_directory): Use filename_ncmp instead of strncmp.
10236 (print_multilib_info): Likewise.
10237 * gcov.c (find_source): Use filename_cmp instead
10239 (make_gcov_file_name): Fix order of slash/backslash
10241 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10242 (add_standard_paths): Likewise.
10243 * mips-tfile.c (saber_stop): Handle backslash.
10244 * prefix.c (update_path): Use filename_ncmp instead of
10246 * profile.c (output_location): Use filename_cmp instead
10248 * read-md.c (handle_toplevel_file): Handle backslash.
10249 * tlink.c (frob_extension): Likewise.
10250 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10252 * tree-dump.c (dequeue_and_dump): Handle backslash.
10253 * tree.c (get_file_function_name): Likewise.
10254 * gengtype.c (read_input_list): Likewise.
10255 (get_file_realbasename): Likewise.
10256 (get_output_file_with_visibility): Use filename_cmp
10259 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10261 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10264 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10266 * fold-const.c (expr_location_or): New function.
10267 (fold_truth_not_expr): Call it.
10269 2011-03-25 Jeff Law <law@redhat.com>
10271 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10273 * c-family/c-common.c (def_fn_type): Likewise.
10274 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10275 * emit-rtl.c (gen_rtvec): Likewise.
10276 * lto/lto-lang.c (def_fn_type): Likewise.
10278 2011-03-25 Richard Guenther <rguenther@suse.de>
10280 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10281 also generate copies.
10282 (fini_copy_prop): Handle constant values properly.
10284 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10286 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10287 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10288 (hash_loc_operands, compare_loc_operands): Handle
10289 DW_OP_GNU_entry_value.
10291 2011-03-25 Kai Tietz <ktietz@redhat.com>
10293 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10294 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10295 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10296 comment and use macro TARGET_64BIT_MS_ABI instead.
10297 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10298 and change default behavior for 32-bit MS_ABI.
10299 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10300 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10302 (ix86_cfun_abi): Likewise.
10303 (ix86_maybe_switch_abi): Adjust comment.
10304 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10305 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10306 instead of checking for SYSV_ABI.
10307 (ix86_nsaved_sseregs): Likewise.
10308 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10310 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10311 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10312 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10313 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10314 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10316 2011-03-25 Richard Guenther <rguenther@suse.de>
10318 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10319 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10320 (verify_gimple): Remove.
10321 * tree-cfg.c (verify_gimple_call): Merge verification
10323 (verify_gimple_phi): Merge verification from verify_stmts.
10324 (verify_gimple_label): New function.
10325 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10326 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10327 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10328 (verify_stmts): Rename to verify_gimple_in_cfg.
10329 (verify_gimple_in_cfg): New function.
10330 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10331 * tree-ssa.c (verify_ssa): Likewise.
10332 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10334 2011-03-25 Richard Guenther <rguenther@suse.de>
10336 * passes.c (init_optimization_passes): Add FRE pass after
10339 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10340 Andrew Stubbs <ams@codesourcery.com>
10342 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10344 (arm_movdi_vfp_cortexa8): New pattern.
10345 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10346 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10347 instructions when tuning for Cortex-A8. Set attribute "arch".
10348 * config/arm/arm.md: Move include arm-tune.md up a bit.
10349 (define_attr "arch"): Add "onlya8" and "nota8" values.
10350 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10352 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10356 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10358 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10359 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10360 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10361 * passes.c (init_optimization_passes): Move
10362 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10364 2011-03-25 Kai Tietz <ktietz@redhat.com>
10366 * c-typeck.c (comptypes_internal): Replace target
10367 hook call of comp_type_attributes by version in tree.c file.
10368 * gimple.c (gimple_types_compatible_p_1): Likewise.
10369 * tree-ssa.c (useless_type_conversion_p): Likewise.
10370 * tree.c (build_type_attribute_qual_variant): Likewise.
10371 (attribute_value_equal): New static helper function.
10372 (comp_type_attributes): New function.
10373 (merge_attributes): Use attribute_value_equal for comparison.
10374 (attribute_list_contained): Likewise.
10375 * tree.h (comp_type_attributes): New prototype.
10377 2011-03-25 Richard Guenther <rguenther@suse.de>
10379 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10380 of complex types at -O0.
10381 (verify_gimple_assign_binary): Likewise.
10382 (verify_gimple_assign_ternary): Likewise.
10384 2011-03-24 Mark Wielaard <mjw@redhat.com>
10386 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10387 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10389 2011-03-24 Mark Wielaard <mjw@redhat.com>
10392 * dwarf2out.c (output_abbrev_section): Only write table when
10393 abbrev_die_table_in_use > 1.
10395 2011-02-24 Richard Henderson <rth@redhat.com>
10397 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10398 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10399 (alpha_expand_unaligned_load_words): Use extql.
10400 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10401 (emit_insxl): Handle all modes for consistency.
10403 2011-02-24 Richard Henderson <rth@redhat.com>
10405 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10406 (alpha_expand_unaligned_load): Likewise.
10407 (alpha_expand_unaligned_store): Likewise.
10408 (alpha_expand_unaligned_load_words): Likewise.
10409 (alpha_expand_unaligned_store_words): Likewise.
10410 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10411 (alpha_split_lock_test_and_set_12): Likewise.
10412 (print_operand, alpha_fold_builtin_extxx): Likewise.
10413 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10414 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10415 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10416 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10417 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10418 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10419 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10420 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10421 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10422 (extwl, extll, extql): Similarly.
10423 (inswh, inslh, insqh): Similarly.
10424 (mskbl, mskwl, mskll, mskql): Similarly.
10425 (mskwh, msklh, mskqh): Similarly.
10427 2011-02-24 Richard Henderson <rth@redhat.com>
10429 * config/alpha/alpha.md (attribute isa): Add er, ner.
10430 (attribute enabled): Handle them.
10431 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10433 2011-02-24 Richard Henderson <rth@redhat.com>
10435 * config/alpha/alpha.md (attribute isa): Add vms.
10436 (attribute enabled): Handle it.
10437 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10438 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10439 (*movtf): Rename from *movtf_internal for consistency.
10440 (*movsi): Merge with *movsi_nt_vms.
10441 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10442 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10443 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10444 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10446 2011-02-24 Richard Henderson <rth@redhat.com>
10448 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10449 (extendqisi2, extendhisi2): Likewise.
10450 (extendqidi2): Simplify BWX/non-BWX expansions.
10451 (extendhidi2): Similarly.
10453 2011-02-24 Richard Henderson <rth@redhat.com>
10455 * config/alpha/alpha.md (attribute isa): New.
10456 (attribute enabled): New.
10457 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10458 (zero_extendqisi2, zero_extendqidi2): Similarly.
10459 (zero_extendhisi2, zero_extendhidi2): Similarly.
10460 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10462 2011-02-24 Richard Henderson <rth@redhat.com>
10464 * config/alpha/predicates.md (input_operand): Revert last change;
10465 update comment to mention 32-bit VMS rather than Windows.
10467 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10469 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10470 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10471 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10472 * passes.c (init_optimization_passes): Move
10473 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10475 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10477 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10479 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10481 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10484 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10487 * simplify-rtx.c (simplify_const_unary_operation): Call
10488 real_convert when changing mode class with FLOAT_EXTEND.
10490 2011-03-24 Nick Clifton <nickc@redhat.com>
10492 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10493 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10494 * config/rx/rx.c (rx_option_override): Set align_jumps,
10495 align_loops and align_labels if not set by the user.
10496 (rx_align_for_label): New function.
10497 (rx_max_skip_for_label): New function.
10498 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10499 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10500 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10501 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10502 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10504 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10506 PR rtl-optimization/48263
10507 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10508 and original commutative_p handling. Use maybe_gen_insn.
10510 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10512 * reload.c (find_reloads_subreg_address): Add address_reloaded
10513 parameter and return true there if the full address has been
10515 (find_reloads_toplev): Pass address_reloaded flag.
10516 (find_reloads_address_1): Don't use address_reloaded parameter.
10518 2011-03-24 Jeff Law <law@redhat.com>
10520 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10521 unused variable "ann".
10522 (remove_unused_locals): Likewise.
10524 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10527 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10530 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10532 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10533 for invalid symbolic addresses.
10534 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10537 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10539 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10540 the argument in calls to fold_truth_not_expr.
10542 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10544 * tree.c (record_node_allocation_statistics): New function.
10545 (make_node_stat, copy_node_stat, build_string): Call it.
10546 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10547 (build1_stat, build_omp_clause): Likewise.
10549 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10551 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10554 2011-03-24 Richard Guenther <rguenther@suse.de>
10556 PR tree-optimization/48271
10557 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10558 blocks that still exist.
10560 2011-03-24 Richard Guenther <rguenther@suse.de>
10562 PR tree-optimization/48270
10563 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10564 not free datarefs before ddrs.
10566 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10568 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10569 from the address built for a reference with variable offset.
10571 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10574 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10575 alternatives that can be handled with movq or movabsq insn.
10576 (*movdf_internal): Disable for !TARGET_64BIT.
10577 (*movdf_internal_nointeger): Ditto.
10578 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10580 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10582 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10583 (FUNCTION_ARG_ADVANCE): Likewise.
10584 * tm.texi.in: Change references to them to hook references.
10585 * tm.texi: Regenerate.
10586 * targhooks.c (default_function_arg): Eliminate check for target macro.
10587 (default_function_incoming_arg): Likewise.
10588 (default_function_arg_advance): Likewise.
10589 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10590 (function_arg_advance): Likewise.
10591 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10593 2011-03-24 Richard Guenther <rguenther@suse.de>
10595 PR middle-end/48269
10596 * tree-object-size.c (addr_object_size): Do not double-account
10597 for MEM_REF offsets.
10599 2011-03-24 Diego Novillo <dnovillo@google.com>
10601 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10602 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10603 (lto_input_data_block): Move from lto-opts.c. Make extern.
10605 (lto_input_string): Rename from input_string. Make extern.
10607 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10608 output_string_with_length.
10609 Output 0 to indicate a non-NULL string. Update all callers to
10611 (lto_output_string): Rename from output_string. Make extern.
10613 (lto_output_decl_state_streams): Make extern.
10614 (lto_output_decl_state_refs): Make extern.
10615 * lto-streamer.h (lto_input_string): Declare.
10616 (lto_input_data_block): Declare.
10617 (lto_output_string): Declare.
10618 (lto_output_string_with_length): Declare.
10619 (lto_output_decl_state_streams): Declare.
10620 (lto_output_decl_state_refs): Declare.
10622 2011-03-24 Richard Guenther <rguenther@suse.de>
10624 PR tree-optimization/46562
10625 * tree.c (build_invariant_address): New function.
10626 * tree.h (build_invariant_address): Declare.
10627 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10628 a renamed function moved ...
10629 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10630 Take valueization callback parameter.
10631 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10632 * gimple-fold.h: New file.
10633 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10634 (ccp_fold, fold_const_aggregate_ref,
10635 fold_ctor_reference, fold_nonarray_ctor_reference,
10636 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10637 get_base_constructor): Move ...
10638 * gimple-fold.c: ... here.
10639 (gimple_fold_stmt_to_constant_1): New function
10640 split out from ccp_fold. Take a valueization callback parameter.
10641 Valueize all operands.
10642 (gimple_fold_stmt_to_constant): New wrapper function.
10643 (fold_const_aggregate_ref_1): New function split out from
10644 fold_const_aggregate_ref. Take a valueization callback parameter.
10645 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10646 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10647 invariant POINTER_PLUS_EXPRs to invariant form.
10648 (vn_valueize): New function.
10649 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10650 * tree-vrp.c (vrp_valueize): New function.
10651 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10652 to fold statements to constants.
10653 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10654 function declarations.
10655 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10656 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10658 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10660 * config/h8300/predicates.md (jump_address_operand): Fix register
10663 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10665 * doc/invoke.texi (max-stores-to-sink): Document.
10666 * params.h (MAX_STORES_TO_SINK): Define.
10667 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10668 if either vectorization or if-conversion is disabled.
10669 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10670 tree-vect-data-refs.c vect_equal_offsets.
10671 (dr_equal_offsets_p): New function.
10672 (find_data_references_in_bb): Remove static.
10673 * tree-data-ref.h (find_data_references_in_bb): Declare.
10674 (dr_equal_offsets_p): Likewise.
10675 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10676 (vect_drs_dependent_in_basic_block): Update calls to
10677 vect_equal_offsets.
10678 (vect_check_interleaving): Likewise.
10679 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10680 (cond_if_else_store_replacement): Rename to...
10681 (cond_if_else_store_replacement_1): ... this. Change arguments and
10683 (cond_if_else_store_replacement): New function.
10684 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10685 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10687 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10690 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10691 to subtract lower bound instead of GEN_INT().
10693 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10698 * doc/extend.texi (Alignment): Move section to match order in TOC.
10699 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10700 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10702 2011-03-23 Jeff Law <law@redhat.com>
10704 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10705 before removing the edge.
10707 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10708 it may have been freed by redirect_branch_edge or
10709 redirect_edge_succ_nodup.
10711 2011-03-23 Richard Guenther <rguenther@suse.de>
10713 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10714 (check_va_list_escapes): Likewise.
10715 (check_all_va_list_escapes): Likewise.
10717 2011-03-23 Richard Guenther <rguenther@suse.de>
10719 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10720 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10721 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10722 (alias.o): Likewise.
10723 (ipa-type-escape.o): Remove.
10724 (ipa-struct-reorg.o): Likewise.
10725 (GTFILES): Remove ipa-struct-reorg.c.
10726 * alias.c: Do not include ipa-type-escape.h.
10727 * tree-ssa-alias.c: Likewise.
10728 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10729 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10730 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10731 and ipa-type-escape passes.
10732 * tree-pass.h (pass_ipa_type_escape): Remove.
10733 (pass_ipa_struct_reorg): Likewise.
10734 * ipa-struct-reorg.h: Remove.
10735 * ipa-struct-reorg.c: Likewise.
10736 * ipa-type-escape.h: Likewise.
10737 * ipa-type-escape.c: Likewise.
10738 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10739 (--param struct-reorg-cold-struct-ratio): Likewise.
10740 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10741 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10742 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10744 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10746 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10747 cpu attribute value.
10748 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10749 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10750 * config/s390/s390.c (processor_flags_table): New constant array.
10751 (s390_handle_arch_option): Remove.
10752 (s390_handle_option): Remove s390_handle_arch_option invocations
10753 and OPT_mwarn_framesize_ handling.
10754 (s390_option_override): Remove s390_handle_arch_option invocation.
10755 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10757 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10758 * config/s390/s390.opt (s390_tune, s390_arch)
10759 (march=): Replace s390_arch_option enum and values with
10760 processor_type. Set variable name to s390_arch. Set
10761 initialization value.
10762 (mtune=): Replace s390_arch_option with processor_type. Set
10763 variable name to s390_tune. Set initialization value.
10765 2011-03-23 Julian Brown <julian@codesourcery.com>
10767 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10768 accesses which are not naturally aligned.
10770 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10773 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10775 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10777 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10778 parameter from "int" to "enum insn_code".
10779 (expand_operand_type): New enum.
10780 (expand_operand): New structure.
10781 (create_expand_operand): New function.
10782 (create_fixed_operand, create_output_operand): Likewise
10783 (create_input_operand, create_convert_operand_to): Likewise.
10784 (create_convert_operand_from, create_address_operand): Likewise.
10785 (create_integer_operand): Likewise.
10786 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10787 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10788 (expand_insn, expand_jump_insn): Likewise.
10789 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10790 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10791 (expand_movstr, expand_builtin___clear_cache): Likewise.
10792 (expand_builtin_lock_release): Likewise.
10793 * explow.c (allocate_dynamic_stack_space): Likewise.
10794 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10795 and use the default handling in that case.
10796 * expmed.c (check_predicate_volatile_ok): Delete.
10797 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10798 (emit_cstore): Likewise.
10799 * expr.c (emit_block_move_via_movmem): Likewise.
10800 (set_storage_via_setmem, expand_assignment): Likewise.
10801 (emit_storent_insn, try_casesi): Likewise.
10802 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10803 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10804 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10805 (expand_twoval_unop, expand_twoval_binop): Likewise.
10806 (expand_unop_direct, emit_indirect_jump): Likewise.
10807 (emit_conditional_move, vector_compare_rtx): Likewise.
10808 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10809 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10810 (expand_sync_lock_test_and_set): Likewise.
10811 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10812 (emit_unop_insn): Likewise.
10813 (expand_copysign_absneg): Change icode to an insn_code.
10814 (create_convert_operand_from_type): New function.
10815 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10816 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10817 (expand_insn, expand_jump_insn): Likewise.
10818 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10819 than const_int_operand for operand 2.
10821 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10823 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10826 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10828 * emit-rtl.c (emit_pattern_before_noloc): New function.
10829 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10830 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10831 (emit_pattern_after_noloc): New function.
10832 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10833 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10835 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10837 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10838 (__ffsDI2): Likewise.
10840 2011-03-22 Richard Henderson <rth@redhat.com>
10842 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10843 of !TARGET_ABI_OPEN_VMS.
10844 (alpha_trampoline_init, alpha_start_function): Likewise.
10845 (alpha_expand_epilogue, alpha_file_start): Likewise.
10846 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10847 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10848 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10849 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10850 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10852 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10854 * config/s390/s390-opts.h: New.
10855 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10856 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10857 s390_stack_guard): Remove.
10858 (s390_handle_arch_option): Return void. Take enum
10859 s390_arch_option value instead of string and searching array.
10860 (s390_handle_option): Don't assert that global structures are in
10861 use. Access variables via opts pointer. Use error_at. Don't use
10862 sscanf for -mstack-guard= or -mstack-size=. Update call to
10863 s390_handle_arch_option.
10864 (s390_option_override): Update call to s390_handle_arch_option.
10865 (s390_emit_prologue): Use %d format for s390_stack_size in
10866 diagnostic. Use %wd for HOST_WIDE_INT.
10867 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10868 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10869 * config/s390/s390.opt (config/s390/s390-opts.h): New
10870 HeaderInclude entry.
10871 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10872 s390_arch_flags, s390_warn_framesize): New Variable entries.
10873 (s390_arch_option): New Enum and EnumValue entries.
10874 (march=): Use Enum instead of Var.
10875 (mstack-guard=, mstack-size=): Use UInteger and Var.
10876 (mtune=): Use Enum.
10878 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10880 * config/score/score.c (score_handle_option): Don't assert that
10881 global structures are in use. Access target_flags via opts
10882 pointer. Use value of -march= option to determine target_flags
10884 * config/score/score.opt (march=): Use Enum.
10885 (score_arch): New Enum and EnumValue entries.
10887 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10889 * config/mep/mep.c (option_mtiny_specified): Remove.
10890 (mep_option_override): Move register handling for -mivc2 from
10891 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10892 instead of option_mtiny_specified.
10893 (mep_handle_option): Access target_flags via opts pointer. Don't
10894 assert that global structures are in use. Defer part of -mivc2
10895 handling and move it to mep_option_override.
10896 * config/mep/mep.opt (IVC2): New Mask entry.
10897 (mivc2): Use Var and Defer instead of Mask.
10899 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10901 * config/v850/v850-opts.h: New.
10902 * config/v850/v850.c (small_memory): Replace with
10903 small_memory_physical_max array. Make that array static const.
10904 (v850_handle_memory_option): Take integer value of argument. Take
10905 gcc_options pointer, option text and location. Return void.
10906 Update for changes to small memory structures.
10907 (v850_handle_option): Access target_flags via opts pointer. Don't
10908 assert that global structures are in use. Update calls to
10909 v850_handle_memory_option.
10910 (v850_encode_data_area): Update references to small memory settings.
10911 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10912 (enum small_memory_type): Move to v850-opts.h.
10913 * config/v850/v850.opt (config/v850/v850-opts.h): New
10914 HeaderInclude entry.
10915 (small_memory_max): New Variable entry.
10916 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10917 (mtda, mzda): Likewise.
10919 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10921 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10922 pointer. Don't assert that global structures are in use.
10924 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10926 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10927 via opts pointer. Don't assert that global structures are in use.
10929 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10931 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10932 (munix=93): Use Var.
10933 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10934 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10935 * config/pa/pa-opts.h: New.
10936 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10937 (pa_handle_option): Don't assert that global structures are in
10938 use. Access target_flags via opts pointer. Don't handle
10939 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10941 (pa_option_override): Handle deferred OPT_mfixed_range_.
10943 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10945 * config/mn10300/mn10300-opts.h: New.
10946 * config/mn10300/mn10300.c (mn10300_processor,
10947 mn10300_tune_string): Remove.
10948 (mn10300_handle_option): Don't assert that global structures are
10949 in use. Access mn10300_processor via opts pointer. Don't handle
10951 * config/mn10300/mn10300.h (enum processor_type): Move to
10953 (mn10300_processor): Remove.
10954 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10955 HeaderInclude entry.
10956 (mn10300_processor): New Variable entry.
10959 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10961 * config/microblaze/microblaze.c: Don't include opts.h.
10962 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10963 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10964 (mno-clearbss): Use Var and Warn.
10966 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10968 * config/m32r/m32r-opts.h: New.
10969 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10970 (m32r_handle_option): Don't assert that global structures are in
10971 use. Access target_flags and m32r_cache_flush_func via opts
10972 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10973 OPT_mno_flush_trap here.
10974 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10975 include of m32r-opts.h.
10976 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10977 HeaderInclude entry.
10978 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10979 (mmodel=): Use Enum and Var.
10980 (m32r_model): New Enum and EnumValue entries.
10981 (mno-flush-trap): Use Var.
10982 (msdata=): Use Enum and Var.
10983 (m32r_sdata): New Enum and EnumValue entries.
10985 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10987 * config/m32c/m32c.c: Don't include opts.h.
10988 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10989 m32c_handle_option): Remove.
10990 (m32c_option_override): Check global_options_set.x_target_memregs
10991 instead of target_memregs_set.
10992 * config/m32c/m32c.h (target_memregs): Remove.
10993 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10996 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10998 * config/iq2000/iq2000-opts.h: New.
10999 * config/iq2000/iq2000.c: Don't include opts.h.
11000 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11001 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11002 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11003 HeaderInclude entry.
11004 (iq2000_tune): New Variable entry.
11005 (march=): Add comment. Use Enum.
11006 (iq2000_arch): New Enum and EnumValue entries.
11007 (mcpu=): Use Enum and Var.
11008 (iq2000_tune): New Enum and EnumValue entries.
11010 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11012 * config/ia64/ia64-opts.h: New.
11013 * config/ia64/ia64.c (ia64_tune): Remove.
11014 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11015 here. Use error_at.
11016 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11017 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11018 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11019 HeaderInclude entry.
11020 (ia64_tune): New Variable entry.
11021 (mfixed-range=): Use Defer and Var.
11022 (mtune=): Use Enum and Var.
11023 (ia64_tune): New Enum and EnumValue entries.
11025 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11027 * config/frv/frv-opts.h: New.
11028 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11030 (frv_cpu_type): Remove.
11031 * config/frv/frv.c: Don't include opts.h.
11032 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11033 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11034 (frv_cpu_type): New Variable entry.
11035 (frv_cpu): New Enum and EnumValue entries.
11037 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11039 * config/cris/cris.c (cris_handle_option): Access target_flags via
11040 opts pointer. Don't assert that global structures are in use.
11041 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11042 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11044 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11046 * config/bfin/bfin-opts.h: New.
11047 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11048 bfin_si_revision, bfin_workarounds): Remove.
11049 (bfin_cpus): Make static const.
11050 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11051 not bfin_lib_id_given.
11052 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11053 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11054 pointer. Use error_at. Don't assert that global structures are in use.
11055 * config/bfin/bfin.h: Include bfin-opts.h.
11056 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11057 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11058 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11059 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11062 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11064 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11065 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11066 or -msoft-float here.
11067 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11068 -msoft-float and -mhard-float.
11069 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11070 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11072 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11074 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11075 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11077 (LIBGCC_SPEC): Don't handle -msoft-float.
11078 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11080 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11082 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11083 -mfloat-abi=*, not -msoft-float and -mhard-float.
11084 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11086 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11087 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11088 mhard-float and msoft-float.
11089 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11090 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11091 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11092 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11094 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11095 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11097 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11099 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11102 2011-03-22 Richard Henderson <rth@redhat.com>
11104 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11105 TARGET_ABI_WINDOWS_NT.
11106 (alpha_output_function_end_prologue): Likewise.
11107 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11108 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11109 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11110 (trap, *movsi_nt_vms): Likewise.
11111 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11112 (*tablejump_osf_nt_internal): Remove.
11113 * config/alpha/predicates.md (input_operand): Only test Pmode.
11115 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11117 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11118 via opts pointer. Use error_at. Don't assert that global
11119 structures are in use.
11121 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11123 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11124 (ix86_handle_option): Access ix86_isa_flags and
11125 ix86_isa_flags_explicit via opts pointer. Don't assert that
11126 global structures are in use.
11127 (ix86_function_specific_save, ix86_function_specific_restore):
11128 Update ix86_isa_flags_explicit field name.
11129 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11130 (ix86_isa_flags_explicit): Rename TargetSave entry to
11131 x_ix86_isa_flags_explicit.
11133 2011-03-22 Richard Henderson <rth@redhat.com>
11135 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11136 (alpha_option_override, direct_return): Likewise.
11137 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11138 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11139 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11140 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11141 (alpha_expand_epilogue, alpha_end_function): Likewise.
11142 (alpha_init_libfuncs): Likewise.
11143 (struct machine_function): Remove unicosmk members.
11144 (print_operand) ['t']: Remove.
11145 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11146 unicosmk_output_module_name, unicosmk_output_common,
11147 current_section_align, unicosmk_output_text_section_asm_op,
11148 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11149 unicosmk_section_type_flags, unicosmk_unique_section,
11150 unicosmk_asm_named_section, unicosmk_insert_attributes,
11151 unicosmk_output_align, unicosmk_defer_case_vector,
11152 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11153 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11154 unicosmk_output_ssib, unicosmk_add_call_info_word,
11155 unicosmk_extern_head, unicosmk_output_default_externs,
11156 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11157 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11158 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11159 * config/alpha/alpha-protos.h: Update.
11160 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11161 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11162 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11163 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11164 (*mulsi_se, mulvsi3): Likewise.
11165 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11166 (*divmodsi_internal, call, call_value, realign): Likewise.
11167 (moddi3, umoddi3): Likewise; remove duplicate expander.
11168 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11169 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11170 (*movdi_nofix): Remove r/U alternative.
11171 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11172 * config/alpha/constraints.md ("U"): Remove.
11173 * config/alpha/predicates.md (call_operand"): Don't test
11174 TARGET_ABI_UNICOSMK.
11176 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11178 * target.def (handle_option): Take gcc_options and
11179 cl_decoded_option pointers and location_t.
11180 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11181 * doc/tm.texi: Regenerate.
11182 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11183 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11184 * lto-opts.c (lto_reissue_options): Generate option structure for
11185 targetm.handle_option call.
11186 * opts.c (target_handle_option): Update call to
11187 targetm.handle_option. Remove assertions about values now passed
11189 * targhooks.c (default_target_handle_option): New.
11190 * targhooks.h (default_target_handle_option): Declare.
11191 * config/alpha/alpha.c: Include opts.h.
11192 (alpha_handle_option): Update to new hook interface.
11193 * config/arm/arm.c: Include opts.h.
11194 (arm_handle_option): Update to new hook interface.
11195 * config/arm/t-arm (arm.o): Update dependencies.
11196 * config/bfin/bfin.c: Include opts.h.
11197 (bfin_handle_option): Update to new hook interface.
11198 * config/cris/cris.c: Include opts.h.
11199 (cris_handle_option): Update to new hook interface.
11200 * config/frv/frv.c: Include opts.h.
11201 (frv_handle_option): Update to new hook interface.
11202 * config/i386/i386.c: Include opts.h.
11203 (ix86_handle_option): Update to new hook interface.
11204 (ix86_valid_target_attribute_inner_p): Generate option structure
11205 for call to ix86_handle_option.
11206 * config/i386/t-i386 (i386.o): Update dependencies.
11207 * config/ia64/ia64.c: Include opts.h.
11208 (ia64_handle_option): Update to new hook interface.
11209 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11210 * config/iq2000/iq2000.c: Include opts.h.
11211 (iq2000_handle_option): Update to new hook interface.
11212 * config/m32c/m32c.c: Include opts.h.
11213 (m32c_handle_option): Update to new hook interface.
11214 * config/m32r/m32r.c: Include opts.h.
11215 (m32r_handle_option): Update to new hook interface.
11216 * config/m68k/m68k.c: Include opts.h.
11217 (m68k_handle_option): Update to new hook interface.
11218 * config/mep/mep.c: Include opts.h.
11219 (mep_handle_option): Update to new hook interface.
11220 * config/microblaze/microblaze.c: Include opts.h.
11221 (microblaze_handle_option): Update to new hook interface.
11222 * config/mips/mips.c: Include opts.h.
11223 (mips_handle_option): Update to new hook interface.
11224 * config/mn10300/mn10300.c: Include opts.h.
11225 (mn10300_handle_option): Update to new hook interface.
11226 * config/pa/pa.c: Include opts.h.
11227 (pa_handle_option): Update to new hook interface.
11228 * config/pdp11/pdp11.c: Include opts.h.
11229 (pdp11_handle_option): Update to new hook interface.
11230 * config/rs6000/rs6000.c: Include opts.h.
11231 (rs6000_handle_option): Update to new hook interface.
11232 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11233 * config/rx/rx.c: Include opts.h.
11234 (rx_handle_option): Update to new hook interface.
11235 * config/s390/s390.c: Include opts.h.
11236 (s390_handle_option): Update to new hook interface.
11237 * config/score/score.c: Include opts.h.
11238 (score_handle_option): Update to new hook interface.
11239 * config/sh/sh.c: Include opts.h.
11240 (sh_handle_option): Update to new hook interface.
11241 * config/sparc/sparc.c: Include opts.h.
11242 (sparc_handle_option): Update to new hook interface.
11243 * config/v850/v850.c: Include opts.h.
11244 (v850_handle_option): Update to new hook interface.
11246 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11248 * gcc.c (driver_unknown_option_callback): Only permit and save
11249 unknown -Wno- options.
11250 (driver_wrong_lang_callback): Save options directly instead of via
11251 driver_unknown_option_callback.
11253 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11255 * combine.c (simplify_set): Try harder to find the best CC mode when
11256 simplifying a nested COMPARE on the RHS.
11258 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11260 * config/alpha/gnu.h: Remove.
11261 * config/arc: Remove directory.
11262 * config/arm/netbsd.h: Remove.
11263 * config/arm/t-pe: Remove.
11264 * config/crx: Remove directory.
11265 * config/i386/netbsd.h: Remove.
11266 * config/m68hc11: Remove directory.
11267 * config/m68k/uclinux-oldabi.h: Remove.
11268 * config/mcore/mcore-pe.h: Remove.
11269 * config/mcore/t-mcore-pe: Remove.
11270 * config/netbsd-aout.h: Remove.
11271 * config/rs6000/gnu.h: Remove.
11272 * config/sh/sh-symbian.h: Remove.
11273 * config/sh/symbian-base.c: Remove.
11274 * config/sh/symbian-c.c: Remove.
11275 * config/sh/symbian-cxx.c: Remove.
11276 * config/sh/symbian-post.h: Remove.
11277 * config/sh/symbian-pre.h: Remove.
11278 * config/sh/t-symbian: Remove.
11279 * config/svr3.h: Remove.
11280 * config/vax/netbsd.h: Remove.
11281 * config.build: Don't handle i[34567]86-*-pe.
11282 * config.gcc: Remove handling of deprecations for most deprecated
11284 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11285 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11286 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11287 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11288 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11289 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11291 * config.host: Don't handle i[34567]86-*-pe.
11292 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11293 (ASM_SPEC32): Don't handle -mcall-gnu.
11294 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11296 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11297 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11298 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11299 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11300 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11301 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11302 conditional on SYMBIAN.
11303 * configure.ac: Don't handle powerpc*-*-gnu*.
11304 * configure: Regenerate.
11305 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11306 * doc/install-old.texi (m6811, m6812): Don't mention.
11307 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11308 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11309 (m68k-uclinuxoldabi): Don't mention.
11310 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11312 (-mcall-gnu): Remove.
11313 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11314 families): Remove constraint documentation.
11316 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11318 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11319 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11320 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11322 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11325 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11326 vector when peeking at the next token for vector, don't expand the
11329 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11331 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11332 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11333 * config/avr/avr.c (init_cumulative_args)
11334 (avr_function_arg_advance): Use it.
11335 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11337 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11338 (avr_function_ok_for_sibcall): ...this new function.
11339 (avr_lookup_function_attribute1): New static Function.
11340 (avr_naked_function_p, interrupt_function_p)
11341 (signal_function_p, avr_OS_task_function_p)
11342 (avr_OS_main_function_p): Use it.
11343 * config/avr/avr.md ("sibcall", "sibcall_value")
11344 ("sibcall_epilogue"): New expander.
11345 ("*call_insn", "*call_value_insn"): New insn.
11346 ("call_insn", "call_value_insn"): Remove
11347 ("call", "call_value", "epilogue"): Change expander to handle
11350 2011-03-21 Nick Clifton <nickc@redhat.com>
11352 * doc/invoke.texi (Overall Options): Move closing brace to end of
11354 (Optimization Options): Add missing @gol.
11355 (Directory Options): Likewise.
11356 (i386 and x86-64 Options): Likewise.
11357 (RS6000 and PowerPC Options): Likewise.
11358 (i386 and x86-64 Windows Options): Likewise.
11359 (V850 Options): Add text missing from descriptions.
11361 2011-03-22 Richard Henderson <rth@redhat.com>
11363 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11364 (avr_incoming_return_addr_rtx): New.
11365 (emit_push_byte): New.
11366 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11367 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11368 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11369 (emit_pop_byte): New.
11370 (expand_epilogue): Use it. Pop frame pointer by bytes.
11371 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11372 (INCOMING_RETURN_ADDR_RTX): New.
11373 (INCOMING_FRAME_SP_OFFSET): New.
11374 (ARG_POINTER_CFA_OFFSET): New.
11375 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11376 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11379 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11381 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11383 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11384 (FUNCTION_ARG_ADVANCE): Likewise.
11385 * tm.texi.in: Change references to them to hook references.
11386 * tm.texi: Regenerate.
11387 * targhooks.c (default_function_arg): Eliminate check for target
11389 (default_function_incoming_arg): Likewise.
11390 (default_function_arg_advance): Likewise.
11391 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11392 (function_arg_advance): Likewise.
11393 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11395 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11397 * tree.c (build_call_1): New function.
11398 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11400 2011-03-22 Richard Guenther <rguenther@suse.de>
11402 PR tree-optimization/48228
11403 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11404 for single-arg PHIs.
11406 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11408 PR rtl-optimization/48143
11409 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11410 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11411 sse2_cvtps2pd): Likewise.
11413 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11415 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11417 2011-03-22 Richard Guenther <rguenther@suse.de>
11419 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11420 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11421 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11422 and REALIGN_LOAD_EXPR.
11423 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11424 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11425 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11426 DOT_PROD_EXPR case ...
11427 (expand_expr_real_2): ... here.
11428 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11429 and REALIGN_LOAD_EXPR.
11430 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11431 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11432 (vect_create_epilog_for_reduction): Likewise.
11433 (vectorizable_reduction): Likewise.
11434 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11435 * tree-vect-stmts.c (vectorizable_load): Likewise.
11437 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11439 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11441 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11443 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11444 handling for PLTOFF/GOTOFF.
11446 2011-03-22 Nick Clifton <nickc@redhat.com>
11448 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11449 trailing backslash from the end of the macro definition.
11451 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11453 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11456 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11458 * expr.h (prepare_operand): Move to...
11459 * optabs.h (prepare_operand): ...here and change the insn code
11460 parameter from "int" to "enum insn_code".
11461 (insn_operand_matches): Declare.
11462 * expr.c (init_expr_target): Use insn_operand_matches.
11463 (compress_float_constant): Likewise.
11464 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11465 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11466 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11467 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11469 (gen_cond_trap): Likewise.
11470 (prepare_operand): Likewise. Change icode to an insn_code.
11471 (insn_operand_matches): New function.
11472 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11473 * reload1.c (gen_reload): Likewise.
11474 * targhooks.c (default_secondary_reload): Likewise.
11476 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11478 * config/alpha/alpha.md (unspec): New define_c_enum.
11481 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11484 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11485 between a call and its CALL_ARG_LOCATION note.
11487 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11489 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11491 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11495 * c-common.c (shorten_compare): If primopN is first sign-extended
11496 to opN and then zero-extended to result type, set primopN to opN.
11498 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11500 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11501 for barrier handlers.
11503 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11505 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11506 UNSPEC constants to be in the unspec enumeration, and redefine
11507 all UNSPECV constants to be in the unspecv enumeration, so that
11508 dumps print which unspec/unspec_volatile this is.
11509 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11510 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11511 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11512 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11513 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11515 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11516 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11517 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11518 * config/rs6000/sync.md (isync, lwsync): Ditto.
11520 2011-03-21 Richard Guenther <rguenther@suse.de>
11522 * params.def (lto-min-partition): Fix typo.
11524 2011-03-21 Richard Guenther <rguenther@suse.de>
11527 * c-decl.c (grokdeclarator): Drop to the main variant only
11528 for array types. Drop flag_gen_aux_info check.
11530 2011-03-21 Richard Guenther <rguenther@suse.de>
11532 PR translation/47911
11533 * params.def (lto-partitions): Fix typo.
11534 (lto-min-partition): Fix wording.
11536 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11538 * config/rs6000/t-freebsd: Remove duplication from file.
11540 2011-03-21 Richard Guenther <rguenther@suse.de>
11542 PR middle-end/47661
11543 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11545 2011-03-21 Richard Guenther <rguenther@suse.de>
11548 * params.def (lto-partitions): Require at least 1 partition.
11550 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11552 * gthr-solaris.h: Remove.
11553 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11554 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11555 (LIB_SPEC): Likewise.
11556 * config/sol2.opt (threads): Remove.
11557 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11558 (sparc*-*-solaris2*): Likewise.
11559 * configure.ac (enable_threads): Enable solaris support.
11560 * configure: Regenerate.
11561 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11562 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11565 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11567 * config.gcc: Obsolete *-*-solaris2.8*.
11568 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11570 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11573 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11574 reference. Solaris 8 perl works.
11576 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11579 * doc/install.texi (Prerequisites): Move jar etc. up.
11580 Explain support library version requirements.
11582 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11585 * doc/install.texi (Prerequisites): Move Perl to build
11586 requirements. Always necessary on Solaris 2 with Sun ld.
11588 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11590 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11592 (Specific, i?86-*-solaris2.[89]): Likewise.
11593 (Specific, i?86-*-solaris2.10): Likewise.
11594 (Specific, mips-sgi-irix6): Likewise.
11595 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11596 Update for binutils 2.21.
11598 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11600 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11601 Allow -fuse-linker-plugin for non-default plugin linker.
11602 * configure: Regenerate.
11604 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11607 * gengtype.c (files_rules): Added rule for cp/parser.h.
11609 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11612 * config/s390/s390.c (s390_delegitimize_address): Don't call
11613 lowpart_subreg if orig_x has BLKmode.
11615 2011-03-21 Kai Tietz <ktietz@redhat.com>
11618 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11619 * tree.h (attribute_spec): Add new member affects_type_identity.
11620 * attribs.c (empty_attribute_table): Adjust attribute_spec
11622 * config/alpha/alpha.c: Likewise.
11623 * config/arc/arc.c: Likewise.
11624 * config/arm/arm.c: Likewise.
11625 * config/avr/avr.c: Likewise.
11626 * config/bfin/bfin.c: Likewise.
11627 * config/crx/crx.c: Likewise.
11628 * config/darwin.h: Likewise.
11629 * config/h8300/h8300.c: Likewise.
11630 * config/i386/cygming.h: Likewise.
11631 * config/i386/i386.c: Likewise.
11632 * config/ia64/ia64.c: Likewise.
11633 * config/m32c/m32c.c: Likewise.
11634 * config/m32r/m32r.c: Likewise.
11635 * config/m68hc11/m68hc11.c: Likewise.
11636 * config/m68k/m68k.c: Likewise.
11637 * config/mcore/mcore.c: Likewise.
11638 * config/mep/mep.c: Likewise.
11639 * config/microblaze/microblaze.c: Likewise.
11640 * config/mips/mips.c: Likewise.
11641 * config/rs6000/rs6000.c: Likewise.
11642 * config/rx/rx.c: Likewise.
11643 * config/sh/sh.c: Likewise.
11644 * config/sol2.h: Likewise.
11645 * config/sparc/sparc.c: Likewise.
11646 * config/spu/spu.c: Likewise.
11647 * config/stormy16/stormy16.c: Likewise.
11648 * config/v850/v850.c: Likewise.
11650 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11652 * simplify-rtx.c (simplify_binary_operation_1): Handle
11653 (xor (and A B) C) case when B and C are both constants.
11655 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11657 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11659 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11662 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11664 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11666 PR rtl-optimization/48156
11667 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11668 assume df and df_lr are not NULL.
11670 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11673 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11674 between a call and its CALL_ARG_LOCATION note.
11676 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11679 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11680 between a call and its corresponding CALL_ARG_LOCATION note.
11682 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11684 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11685 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11686 * haifa-sched.c (setup_ref_regs): Ditto.
11687 * caller-save.c (add_used_regs_1): Ditto.
11688 * dse.c (look_for_hardregs): Ditto.
11689 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11690 * sched-rgn.c (check_live_1): Ditto.
11692 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11694 * c-decl.c (diagnose_mismatched_decls): Give an error for
11695 redefining a typedef with variably modified type.
11697 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11699 * c-decl.c (grokfield): Don't allow typedefs for structures or
11700 unions with no tag by default.
11701 * doc/extend.texi (Unnamed Fields): Update.
11703 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11705 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11706 Rewrite using indirect functions.
11707 (lwp_slwpcb): Ditto.
11708 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11709 (avx_vinsertf128<mode>): Ditto.
11711 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11713 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11716 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11718 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11719 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11721 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11723 PR rtl-optimization/48170
11724 * gcse.c (hoist_code): Remove bogus asserts.
11726 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11728 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11729 computation for prologue/epilogue.
11731 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11733 * Makefile.in (check-consistency): Remove.
11735 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11738 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11739 arange_table_in_use is 0, but either text_section_used or
11740 cold_text_section_used is true. Don't call it if
11741 !info_section_emitted.
11743 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11745 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11746 FUNCTION_VALUE_REGNO_P): Remove.
11747 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11749 * config/avr/avr.c (avr_ret_register): Make static inline.
11750 (avr_function_value_regno_p): New function.
11751 (avr_libcall_value): Make static. Add 'func' argument.
11752 (avr_function_value): Make static. Rename 'func' argument to
11753 'fn_decl_or_type', forward it to avr_libcall_value. Call
11754 avr_ret_register function instead of RET_REGISTER macro.
11755 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11757 2011-03-18 Jason Merrill <jason@redhat.com>
11760 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11762 2011-03-18 Richard Guenther <rguenther@suse.de>
11764 * doc/install.texi (--enable-gold): Remove.
11765 (--with-plugin-ld): Document.
11766 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11768 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11770 PR middle-end/47790
11771 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11772 again after expansion changes.
11774 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11776 * combine.c (try_combine): Do simplification only call of
11777 subst() on i2 even when i1 is present. Update comments.
11779 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11781 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11782 and UNSPEC_PCREL_SYMOFF.
11784 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11786 * config/s390/s390.md: Use define_c_enum for the unspec constant
11789 2011-03-18 Richard Henderson <rth@redhat.com>
11790 Jakub Jelinek <jakub@redhat.com>
11793 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11794 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11796 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11798 PR middle-end/47725
11799 * combine.c (cant_combine_insn_p): Don't check zero/sign
11800 extended hard registers.
11802 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11804 PR middle-end/47725
11805 * combine.c (cant_combine_insn_p): Check zero/sign extended
11808 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11810 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11811 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11812 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11813 Change return type to bool.
11814 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11816 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11819 * var-tracking.c (prepare_call_arguments): If CALL target
11820 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11821 pc instead of looking it up using cselib_lookup and use
11822 Pmode for it if x has VOIDmode.
11823 * dwarf2out.c (gen_subprogram_die): If also both first and
11824 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11827 * function.c (assign_parms): For data.passed_pointer parms
11828 use MEM of data.entry_parm instead of data.entry_parm itself
11829 as DECL_INCOMING_RTL.
11830 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11831 also when passed and declared mode is the same, DECL_RTL
11832 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11835 2011-03-16 Jeff Law <law@redhat.com>
11837 PR rtl-optimization/37273
11838 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11839 handle them like argument loads from stack slots. Do not double
11840 count memory for memory constants and argument loads from stack slots.
11842 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11845 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11847 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11850 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11852 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11855 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11857 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11858 Clear call_arg_locations and call_arg_loc_last always.
11860 PR middle-end/48152
11861 * var-tracking.c (prepare_call_arguments): If argument needs to be
11862 passed by reference, adjust argtype and mode.
11864 2011-03-17 Richard Guenther <rguenther@suse.de>
11866 PR middle-end/48134
11867 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11868 a value make sure to fold the statement.
11870 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11873 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11874 return condition with !cfun->calls_alloca.
11876 2011-03-17 Richard Guenther <rguenther@suse.de>
11879 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11880 origin for decls in other ltrans units.
11881 (input_varpool_node): Likewise.
11883 2011-03-17 Richard Guenther <rguenther@suse.de>
11885 PR middle-end/48165
11886 * tree-object-size.c (compute_object_offset): Properly return
11887 the offset operand of MEM_REFs as sizetype.
11889 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11891 PR rtl-optimization/48141
11892 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11893 * dse.c: Include params.h.
11894 (active_local_stores_len): New variable.
11895 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11897 (record_store, check_mem_read_rtx): Decrease it when removing
11899 (scan_insn): Likewise. Increase it when adding to chain, if it
11900 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11901 set active_local_stores to NULL before the addition.
11902 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11904 PR rtl-optimization/48141
11905 * dse.c (record_store): If no positions are needed in an insn
11906 that cannot be deleted, at least unchain it from active_local_stores.
11908 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11911 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11912 (lookup_type_die_strip_naming_typedef): ... here.
11913 (get_context_die): Use it.
11914 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11915 the anonymous struct named by the naming typedef.
11917 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11920 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11921 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11923 2011-03-16 Jeff Law <law@redhat.com>
11925 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11926 check for operands of conditional. Allow type to be a pointer.
11928 2011-03-16 Richard Guenther <rguenther@suse.de>
11930 PR tree-optimization/48149
11931 * fold-const.c (fold_binary_loc): Fold
11932 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11934 2011-03-16 Richard Guenther <rguenther@suse.de>
11936 PR tree-optimization/26134
11937 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11938 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11939 (non_rewritable_mem_ref_base): Handle complex type component
11940 accesses, constrain offsets for vector and complex extracts
11943 2011-03-16 Richard Guenther <rguenther@suse.de>
11945 PR tree-optimization/48146
11946 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11947 operands avoiding the need for renaming.
11949 2011-03-16 Richard Guenther <rguenther@suse.de>
11951 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11952 constant folding. Move MEM_REF canonicalization first.
11953 Rely on fold_const_aggregate_ref for initializer folding.
11954 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11956 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11958 PR middle-end/48136
11959 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11960 arg0/arg1 or their arguments are always fold converted to matching
11963 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11966 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11969 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11970 Handle in-tree gold.
11971 (ld_vers): Extract binutils version for gold.
11972 (gcc_cv_ld_hidden): Handle gold here.
11973 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11974 * configure: Regenerate.
11975 * config.in: Regenerate.
11976 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11977 -fuse-linker-plugin otherwise.
11978 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11979 (LINK_COMMAND_SPEC): Use it.
11980 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11982 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11984 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11985 * calls.c: Remove debug.h include.
11986 (emit_call_1): Don't call virtual_call_token debug hook.
11987 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11988 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11989 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11990 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11991 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11992 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11993 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11994 dwarf2out_virtual_call): Remove.
11995 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11996 copy_call_info and virtual_call hooks.
11997 (dwarf2out_init): Don't initialize vcall_insn_table,
11998 debug_dcall_section and debug_vcall_section.
11999 (prune_unused_types): Don't mark nodes from dcall_table.
12000 (dwarf2out_finish): Don't output dcall or vcall tables.
12001 * final.c (final_scan_insn): Don't call direct_call or
12002 virtual_call debug hooks.
12003 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12004 virtual_call_token, copy_call_info and virtual_call hooks.
12005 (debug_nothing_uid): Remove prototype.
12006 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12007 copy_call_info and virtual_call hooks.
12008 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12009 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12010 * debug.c (do_nothing_debug_hooks): Likewise.
12011 (debug_nothing_uid): Remove.
12012 * doc/invoke.texi (-fenable-icf-debug): Remove.
12013 * common.opt (-fenable-icf-debug): Likewise.
12015 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12016 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12017 call's MEM. Handle functions returning aggregate through a hidden
12018 first pointer. For virtual calls add clobbered pc to call arguments
12020 * dwarf2out.c (gen_subprogram_die): Emit
12021 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12025 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12026 * rtl.h (ENTRY_VALUE_EXP): Define.
12027 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12028 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12029 * print-rtl.c (print_rtx): Likewise.
12030 * gengtype.c (adjust_field_rtx_def): Likewise.
12031 * var-tracking.c (vt_add_function_parameter): Adjust
12032 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12033 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12034 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12035 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12036 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12038 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12039 Call var_location debug hook even on CALL_INSNs.
12040 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12041 * rtl.def (ENTRY_VALUE): New.
12042 * dwarf2out.c: Include cfglayout.h.
12043 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12044 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12045 (struct call_arg_loc_node): New type.
12046 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12047 tail_call_site_count): New variables.
12048 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12049 DW_TAG_GNU_call_site_parameter.
12050 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12051 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12052 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12053 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12054 and DW_AT_GNU_all_source_call_sites.
12055 (mem_loc_descriptor): Handle ENTRY_VALUE.
12056 (add_src_coords_attributes): Don't add enything if
12057 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12058 (dwarf2out_abstract_function): Save and clear call_arg_location,
12059 call_site_count and tail_call_site_count around dwarf2out_decl call.
12060 (gen_call_site_die): New function.
12061 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12062 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12063 (dwarf2out_function_decl): Clear call_arg_locations,
12064 call_arg_loc_last, set call_site_count and tail_call_site_count
12065 to -1 and free block_map.
12066 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12067 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12068 followed by any real instructions.
12069 (dwarf2out_begin_function): Set call_site_count and
12070 tail_call_site_count to 0.
12071 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12072 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12073 attempt to force a DIE for it and worst case remove the attribute.
12074 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12075 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12077 * var-tracking.c: Include tm_p.h.
12078 (vt_stack_adjustments): For calls call note_register_arguments.
12079 (argument_reg_set): New variable.
12080 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12081 ensure the VALUE is resolved.
12082 (call_arguments): New variable.
12083 (prepare_call_arguments): New function.
12084 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12085 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12086 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12087 always use the best expression.
12088 (vt_expand_loc): Add ignore_cur_loc argument.
12089 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12090 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12091 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12092 note for all calls.
12093 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12094 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12095 argument. Don't call cselib_preserve_only_values and
12096 cselib_reset_table.
12097 (note_register_arguments): New function.
12098 (vt_initialize): Compute argument_reg_set. Call
12099 vt_add_function_parameters before processing basic blocks instead of
12100 afterwards. For calls call prepare_call_arguments before calling
12101 cselib_process_insn.
12102 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12103 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12104 (var-tracking.o): Depend on $(TM_P_H).
12105 * cfglayout.h (insn_scope): New prototype.
12106 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12107 * cfglayout.c (insn_scope): No longer static.
12108 * insn-notes.def (CALL_ARG_LOCATION): New.
12109 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12110 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12111 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12112 nothing for DECL_EXTERNAL BLOCK_VARS.
12114 2011-03-16 Alan Modra <amodra@gmail.com>
12117 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12118 create invalid offset address for vsx splat insn.
12119 * config/rs6000/predicates.md (splat_input_operand): New.
12120 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12122 2011-03-15 Xinliang David Li <davidxl@google.com>
12125 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12126 (normalize_preds): New function.
12127 (is_use_properly_guarded): Normalize def predicates.
12129 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12132 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12133 in the output template.
12135 2011-03-15 Richard Guenther <rguenther@suse.de>
12137 PR middle-end/47650
12138 * tree-pretty-print.c (dump_function_declaration): Properly
12139 dump unprototyped and varargs function types.
12141 2011-03-15 Richard Guenther <rguenther@suse.de>
12143 PR tree-optimization/13954
12144 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12147 2011-03-15 Richard Guenther <rguenther@suse.de>
12149 PR tree-optimization/48037
12150 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12151 selects into BIT_FIELD_REFs.
12152 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12155 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12157 PR tree-optimization/48129
12158 * builtins.c (fold_builtin_snprintf): Convert to type of
12159 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12160 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12162 2011-03-15 Richard Guenther <rguenther@suse.de>
12164 PR tree-optimization/41490
12165 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12166 value but with VUSE.
12167 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12169 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12170 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12171 * tree-tailcall.c (find_tail_calls): Ignore returns.
12173 2011-03-15 Richard Guenther <rguenther@suse.de>
12175 PR middle-end/48031
12176 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12177 or variable-indexed array accesses when in gimple form.
12179 2011-03-15 Richard Guenther <rguenther@suse.de>
12181 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12183 2011-03-15 Alan Modra <amodra@gmail.com>
12186 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12187 presume symbol_refs without a symbol_ref_decl are suitably
12188 aligned, nor other trees we may see here. Handle anchor symbols.
12189 (legitimate_constant_pool_address_p): Comment. Add mode param.
12190 Check cmodel=medium addresses. Adjust all calls.
12191 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12192 creating cmodel=medium optimized access to locals.
12193 * config/rs6000/constraints.md (R): Pass QImode to
12194 legitimate_constant_pool_address_p.
12195 * config/rs6000/predicates.md (input_operand): Pass mode to
12196 legitimate_constant_pool_address_p.
12197 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12200 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12203 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12204 64-bit constants being loaded into registers other than GPRs such
12205 as loading 0 into a VSX register.
12207 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12209 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12211 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12213 PR middle-end/47917
12214 * builtins.c (fold_builtin_snprintf): New function.
12215 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12216 (fold_builtin_4): Likewise.
12218 PR middle-end/38878
12219 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12220 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12221 and C - X == X also strip nops from +/-/p+ operand.
12222 When optimizing -X == C, fold C to arg0's type.
12225 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12226 emit it as add_AT_int instead of add_AT_unsigned.
12228 2011-03-14 Tom Tromey <tromey@redhat.com>
12230 * unwind-dw2.c: Include sys/sdt.h if it exists.
12231 (_Unwind_DebugHook): Use STAP_PROBE2.
12232 * config.in, configure: Rebuild.
12233 * configure.ac: Check for sys/sdt.h.
12235 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12237 * config/i386/i386.md (ROUND_FLOOR): New constant.
12238 (ROUND_CEIL): Ditto.
12239 (ROUND_TRUNC): Ditto.
12240 (ROUND_MXCSR): Ditto.
12241 (ROUND_NO_EXC): Ditto.
12242 (rint<mode>2): Use new defines instead of numerical constants.
12243 (floor<mode>2): Ditto.
12244 (ceil<mode>2): Ditto.
12245 (btrunc<mode>2): Ditto.
12246 * config/i386/i386-builtin-types.def: Define ROUND function type
12248 * config/i386/i386.c (enum ix86_builtins): Add
12249 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12250 (struct builtin_description): Add
12251 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12252 (ix86_expand_sse_round): New static function.
12253 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12255 (ix86_builtin_vectorized_function): Handle
12256 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12258 2011-03-14 Tom Tromey <tromey@redhat.com>
12260 * c-parser.c (c_parser_asm_string_literal): Clear
12261 warn_overlength_strings.
12263 2011-03-14 Tom Tromey <tromey@redhat.com>
12265 * c-parser.c (disable_extension_diagnostics): Save
12266 warn_overlength_strings.
12267 (restore_extension_diagnostics): Restore warn_overlength_strings.
12269 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12271 * BASE-VER: Change to 4.7.0.
12273 2011-03-14 Richard Guenther <rguenther@suse.de>
12275 PR middle-end/48098
12276 * tree.c (build_vector_from_val): Adjust assert to requirements
12279 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12282 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12284 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12286 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12287 terms of target_flags_explicit. Adjust copyright year.
12289 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12290 * config/rs6000/t-freebsd: New file. Add override for
12293 2011-03-13 Chris Demetriou <cgd@google.com>
12295 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12296 (-fno-diagnostics-show-option): this, to reflect current default.
12297 (-Werror=): Update text about -fno-diagnostics-show-option.
12299 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12302 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12303 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12304 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12305 mode is not V2DImode or V2DFmode.
12306 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12307 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12308 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12310 (movdi_internal64): Likewise.
12312 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12314 PR tree-optimization/47127
12315 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12317 (set_cloog_options): Same.
12318 (scop_to_clast): Same.
12319 (print_clast_stmt): Do not call cloog_state_malloc and
12321 (print_generated_program): Same.
12323 * graphite-clast-to-gimple.h (cloog_state): Declared.
12324 (scop_to_clast): Adjust declaration.
12325 * graphite.c (cloog_state): Defined here.
12326 (graphite_initialize): Call cloog_state_malloc.
12327 (graphite_finalize): Call cloog_state_free.
12329 2011-03-11 Jason Merrill <jason@redhat.com>
12331 * attribs.c (lookup_attribute_spec): Take const_tree.
12334 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12336 * config/sparc/sparc.c (sparc_option_override): Use
12337 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12339 2011-03-11 Richard Guenther <rguenther@suse.de>
12341 PR tree-optimization/48067
12342 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12343 multiplication result will be only used once on the target
12346 2011-03-11 Richard Guenther <rguenther@suse.de>
12348 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12350 2011-03-11 Richard Guenther <rguenther@suse.de>
12353 * tree.c (find_decls_types_r): Do not walk types only reachable
12354 from IDENTIFIER_NODEs.
12356 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12358 PR middle-end/48044
12359 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12360 all vnode->force_output nodes as needed.
12362 2011-03-11 Jason Merrill <jason@redhat.com>
12365 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12366 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12368 2011-03-11 Martin Jambor <mjambor@suse.cz>
12370 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12373 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12375 PR tree-optimization/48063
12376 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12377 inline functions called once if !tree_can_inline_p (node->callers).
12379 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12381 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12383 * config/score/score3.c: Delete.
12384 * config/score/score3.h: Delete.
12385 * config/score/mul-div.S: Delete.
12386 * config/score/sfp-machine.h: Add new file.
12387 * config/score/constraints.md: Add new file.
12388 * config/score/t-score-softfp: Add new file.
12389 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12390 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12391 (score7_extra_constraint): Delete.
12392 (score7_option_override): Remove unused code.
12393 * config/score/score.c: Remove score3 and score5 define and code.
12394 * config/score/score.h: Remove score3 and score5 define and code.
12395 * config/score/score.md: Remove score3 template and unusual insn.
12396 * config/score/score.opt: Remove score3 and score5 options.
12398 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12400 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12401 when _HPUX_SOURCE is defined.
12402 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12404 2011-03-10 Jason Merrill <jason@redhat.com>
12407 * stor-layout.c (layout_type): Don't set structural equality
12408 on arrays of incomplete type.
12409 * tree.c (type_hash_eq): Handle comparing them properly.
12411 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12414 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12415 result mode matches original rtl mode.
12417 2011-03-10 Nick Clifton <nickc@redhat.com>
12419 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12420 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12422 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12424 PR rtl-optimization/47866
12425 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12426 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12427 if target wasn't scalar.
12428 * function.c (assign_stack_temp_for_type): Assert that neither
12429 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12430 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12432 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12434 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12436 * config/s390/s390-protos.h (s390_label_align): New prototype.
12437 * config/s390/s390.c (s390_label_align): New function.
12438 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12440 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12443 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12444 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12445 (output_vec_const_move): Ditto.
12447 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12449 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12450 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12451 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12452 Change 'rclass' argument and result type to reg_class_t.
12453 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12455 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12457 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12458 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12459 (TARGET_MEMORY_MOVE_COST): Define.
12460 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12462 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12465 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12468 PR tree-optimization/48022
12469 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12472 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12475 * var-tracking.c (find_use_val): Return NULL for
12476 cui->sets && cui->store_p BLKmode MEMs.
12478 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12480 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12482 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12483 xstormy16_print_operand_address): Remove.
12484 * config/stormy16/stormy16.c (xstormy16_print_operand,
12485 xstormy16_print_operand_address): Make static.
12486 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12488 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12491 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12492 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12495 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12498 * cfgloopmanip.c (fix_bb_placements): Return immediately
12499 if FROM is BASE_LOOP's header.
12501 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12503 * gimplify.c (gimplify_function_tree): Fix building calls
12504 to __builtin_return_address.
12506 2011-03-07 Alan Modra <amodra@gmail.com>
12508 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12509 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12510 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12511 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12513 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12514 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12515 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12516 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12517 * config/rs6000/rs6000.c
12518 (rs6000_elf_end_indicate_exec_stack): Rename to..
12519 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12520 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12521 (rs6000_file_start): ..here.
12522 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12523 file scope variables.
12524 (call_ABI_of_interest): New function.
12525 (init_cumulative_args): Set above vars when function return value
12526 is a float, vector, or small struct.
12527 (rs6000_function_arg_advance_1): Likewise for function args.
12528 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12529 references float args.
12531 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12533 * doc/cfg.texi: Remove "See" before @ref.
12534 * doc/invoke.texi: Likewise.
12536 2011-03-05 Jason Merrill <jason@redhat.com>
12538 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12540 2011-03-05 Anthony Green <green@moxielogic.com>
12542 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12544 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12546 PR rtl-optimization/47899
12547 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12548 to flow_loop_nested_p when moving the loop upward.
12550 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12553 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12555 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12557 PR tree-optimization/47967
12558 * ipa-cp.c (build_const_val): Return NULL instead of creating
12559 VIEW_CONVERT_EXPR for mismatching sizes.
12560 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12561 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12562 give up on versioning.
12564 2011-03-05 Alan Modra <amodra@gmail.com>
12567 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12568 full cmodel medium/large lo_sum + high addresses.
12570 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12572 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12573 pool references in UNSPEC_LTREL_OFFSET.
12575 2011-03-04 Jan Hubicka <jh@suse.cz>
12578 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12579 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12580 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12582 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12583 cgraph_add_thunk): Add node pointers.
12584 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12585 associated to right node.
12586 (input_node): Update use of cgraph_same_body_alias
12587 and cgraph_add_thunk.
12589 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12591 * config/i386/i386.opt (mprefer-avx128): New flag.
12592 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12593 modes when the flag -mprefer-avx128 is on.
12595 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12597 * dwarf2out.c (compare_loc_operands): Fix address handling.
12599 2011-03-04 Alan Modra <amodra@gmail.com>
12601 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12603 2011-03-04 Richard Guenther <rguenther@suse.de>
12605 PR middle-end/47968
12606 * expmed.c (extract_bit_field_1): Prefer vector modes that
12607 vec_extract patterns can handle.
12609 2011-03-04 Richard Guenther <rguenther@suse.de>
12611 PR middle-end/47975
12612 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12614 2011-03-04 Richard Henderson <rth@redhat.com>
12616 * explow.c (emit_stack_save): Remove 'after' parameter.
12617 (emit_stack_restore): Likewise.
12618 * expr.h: Update to match.
12619 * builtins.c, calls.c, stmt.c: Likewise.
12620 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12621 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12622 * function.c (expand_function_end): Insert the emit_stack_save
12623 sequence before parm_birth_insn instead of after.
12625 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12627 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12628 (ssse3_pmaddubsw128): Ditto.
12629 (ssse3_pmaddubsw): Ditto.
12631 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12633 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12635 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12638 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12639 on TYPE_SIZE_UNIT if it is a DECL.
12642 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12643 first operand is not is_gimple_mem_ref_addr, try to fold it.
12644 If the operand still isn't is_gimple_mem_ref_addr, clear
12647 2011-03-03 Richard Guenther <rguenther@suse.de>
12649 PR middle-end/47283
12650 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12652 (refs_may_alias_p_1): For release branches return true if
12653 we are confused by our input.
12655 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12657 * config/s390/s390.c (s390_function_value): Rename to ...
12658 (s390_function_and_libcall_value): ... this.
12659 (s390_function_value): New function.
12660 (s390_libcall_value): New function.
12661 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12662 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12663 target macro definitions.
12664 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12666 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12668 * config/i386/freebsd64.h (CC1_SPEC): Define.
12669 * config/i386/linux64.h (CC1_SPEC): Define.
12670 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12672 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12674 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12676 * config/stormy16/stormy16.c: Include reload.h.
12677 (xstormy16_memory_move_cost): New function.
12678 (TARGET_MEMORY_MOVE_COST): Define.
12680 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12682 PR rtl-optimization/47925
12683 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12684 with side effects. Remove the more-specific check for volatile asms.
12686 2011-03-02 Alan Modra <amodra@gmail.com>
12689 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12690 toc relative addresses for valid offsets.
12692 2011-03-01 Richard Guenther <rguenther@suse.de>
12694 PR tree-optimization/47890
12695 * tree-vect-loop.c (get_initial_def_for_induction): Set
12696 related stmt properly.
12698 2011-03-01 Richard Guenther <rguenther@suse.de>
12701 * lto-streamer.c (lto_record_common_node): Also register
12702 the canonical type.
12704 2011-03-01 Richard Guenther <rguenther@suse.de>
12707 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12708 Do not stream DECL_ABSTRACT_ORIGIN.
12709 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12710 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12711 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12712 Do not stream DECL_ABSTRACT_ORIGIN.
12713 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12714 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12716 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12718 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12719 FUNCTION_VALUE_REGNO_P): Remove.
12720 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12721 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12722 Add 'outgoing' argument.
12723 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12725 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12726 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12728 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12731 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12732 (lookup_filename): Likewise.
12733 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12735 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12736 Jakub Jelinek <jakub@redhat.com>
12738 PR middle-end/47893
12739 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12740 (assign_stack_local_1): Change last argument type to int.
12741 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12742 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12743 don't record padding space into frame_space_list nor use those areas.
12744 (assign_stack_local): Adjust caller.
12745 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12746 of assign_stack_local, pass 0 as last argument.
12747 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12750 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12753 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12754 Use target address_mode and pointer_mode hooks instead of hardcoded
12755 Pmode and ptr_mode. Handle some simple cases of extending if
12756 POINTERS_EXTEND_UNSIGNED < 0.
12757 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12758 Call convert_debug_memory_address.
12759 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12760 convert_debug_memory_address.
12762 PR middle-end/46790
12763 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12764 * configure: Regenerated.
12765 * config.in: Regenerated.
12766 * varasm.c (default_function_section): Return NULL
12767 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12769 2011-02-28 Martin Jambor <mjambor@suse.cz>
12771 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12772 the description to match the printed values.
12774 2011-02-28 Richard Guenther <rguenther@suse.de>
12776 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12777 of the copied scope tree.
12779 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12781 * doc/extend.texi (Function Attributes): Avoid deeply (and
12782 wrongly) nested tables.
12784 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12786 PR middle-end/47903
12787 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12788 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12789 r isn't op0 nor op1.
12791 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12793 * config/avr/avr.md: Remove magic comment for emacs.
12795 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12798 * config/avr/avr.c (avr_option_override): Use error on bad options.
12799 (avr_help): New function.
12800 (TARGET_HELP): Define.
12802 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12805 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12806 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12808 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12810 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12811 (ARM Options): Ditto.
12812 (i386 and x86-64 Options): Ditto.
12813 (RX Options): Ditto.
12814 (SPARC Options): Ditto.
12816 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12818 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12819 FreeBSD 6 and later. Generally use cpu generic.
12821 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12823 * doc/cpp.texi: Update copyright years.
12825 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12828 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12830 2011-02-25 Jon Beniston <jon@beniston.com>
12833 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12834 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12835 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12836 (lm32_block_move_inline): Add type cast to remove warning.
12837 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12838 (gen_int_relational): Move declarations to start of function.
12840 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12842 PR tree-optimization/45470
12843 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12844 can throw internally only.
12845 * tree-vect-stmts.c (vectorizable_call): Likewise.
12847 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12849 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12850 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12851 * config/stormy16/stormy16-protos.h
12852 (xstormy16_preferred_reload_class): Remove.
12853 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12854 static. Change 'rclass' argument and return type to reg_class_t.
12855 (TARGET_PREFERRED_RELOAD_CLASS,
12856 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12858 2011-02-24 Richard Guenther <rguenther@suse.de>
12860 * lto-streamer-in.c (input_bb): Do not find referenced vars
12861 in debug statements.
12863 2011-02-23 Jason Merrill <jason@redhat.com>
12865 * common.opt (fabi-version): Document v5 and v6.
12867 2011-02-23 Richard Guenther <rguenther@suse.de>
12869 PR tree-optimization/47849
12870 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12872 2011-02-23 Jie Zhang <jie@codesourcery.com>
12874 * opts-common.c (decode_cmdline_option): Print empty string
12875 argument as "" in decoded->orig_option_with_args_text.
12876 * gcc.c (execute): Print empty string argument as ""
12877 in the verbose output.
12878 (do_spec_1): Keep empty string argument.
12880 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12882 * config.gcc: Declare score-* and crx-* obsolete.
12884 2011-02-23 Jie Zhang <jie@codesourcery.com>
12886 PR rtl-optimization/47763
12887 * web.c (web_main): Ignore naked clobber when replacing register.
12889 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12891 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12894 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12897 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12899 2011-02-22 Mike Stump <mikestump@comcast.net>
12901 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12903 * configure: Regenerate.
12905 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12907 PR rtl-optimization/46002
12908 * ira-color.c (update_copy_costs): Change class intersection
12909 test to reg_class_contents[] test of 'hard_regno'.
12911 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12913 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12914 than Driver option.
12915 * config/hpux11.opt (mt): Likewise.
12916 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12917 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12918 * config/vax/elf.opt (mno-asm-pic): Likewise.
12919 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12921 2011-02-21 Mike Stump <mikestump@comcast.net>
12924 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12925 tree so we can get save the type.
12926 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12927 for CFString instead of trying to use past the end of the builtins.
12928 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12929 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12930 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12931 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12932 Rename to darwin_builtin_cfstring.
12933 (darwin_init_cfstring_builtins): Return the built type.
12935 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12938 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12939 (_mm256_insert_epi64): Use _mm_insert_epi64.
12941 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12943 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12944 * config/stormy16/stormy16-protos.h
12945 (xstormy16_mode_dependent_address_p): Remove.
12946 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12947 Make static. Change return type to bool. Change argument type to
12948 const_rtx. Remove dead code.
12949 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12951 2011-02-21 Richard Guenther <rguenther@suse.de>
12954 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12955 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12956 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12958 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12959 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12961 2011-02-20 Richard Guenther <rguenther@suse.de>
12964 * tree.c (free_lang_data_in_decl): Clean builtins from
12965 the TU decl BLOCK_VARS.
12967 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12971 * haifa-sched.c (fix_tick_ready): Skip tick computation
12974 2011-02-19 Richard Guenther <rguenther@suse.de>
12977 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12978 Remove lazy BLOCK_VARS streaming.
12979 (lto_input_ts_block_tree_pointers): Likewise.
12980 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12982 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12984 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12986 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12988 * config/i386/biarch32.h, config/i386/mach.h,
12989 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12991 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12994 * config/i386/i386.md (peephole2 for shift and plus): Use
12995 operands[1] original mode in the first insn.
12997 2011-02-18 Mike Stump <mikestump@comcast.net>
12999 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13001 2011-02-18 Jan Hubicka <jh@suse.cz>
13003 PR middle-end/47788
13004 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13005 to zero when the function is not inlinable at all.
13007 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13009 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13010 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13011 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13012 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13013 * config/pa/t-pa64: Likewise.
13014 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13016 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13019 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13021 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13024 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13026 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13028 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13029 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13030 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13031 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13032 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13033 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13034 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13035 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13036 m32r_legitimate_address_p): New functions.
13037 * config/m32r/constraints.md (constraint "S"): Don't use
13038 STORE_PREINC_PREDEC_P.
13039 (constraint "U"): Don't use LOAD_POSTINC_P.
13041 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13043 PR rtl-optimization/46178
13044 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13045 compute ira_hard_regno_cover_class[].
13047 2011-02-18 Richard Guenther <rguenther@suse.de>
13050 * lto-streamer.h (lto_global_var_decls): Declare.
13051 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13052 statics for global var processing.
13054 2011-02-18 Richard Guenther <rguenther@suse.de>
13056 PR tree-optimization/47737
13057 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13058 edge dominance check.
13060 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13063 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13064 avoid invalid rtx sharing.
13066 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13068 * doc/cpp.texi (Obsolete Features): Add background on the
13069 origin of assertions.
13071 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13073 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13075 * config/darwin.c (output_objc_section_asm_op): Added support for
13077 (is_objc_metadata): New.
13078 (darwin_objc2_section): New.
13079 (darwin_objc1_section): New.
13080 (machopic_select_section): Added support for ABI v1 and v2.
13081 (darwin_emit_objc_zeroed): New.
13082 (darwin_output_aligned_bss): Detect objc metadata and treat it
13084 (darwin_asm_output_aligned_decl_common): Same.
13085 (darwin_asm_output_aligned_decl_local): Same.
13086 * config/darwin-sections.def: Updated for ABI v1 and v2.
13087 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13088 compiling Objective-C code for the NeXT runtime, default to using
13089 ABI version 0 for 32-bit, and version 2 for 64-bit.
13091 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13093 * common.opt (optimize_fast): New Variable.
13094 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13095 instead of local variable ofast.
13097 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13099 * doc/invoke.texi (fobjc-abi-version): Documented.
13100 (fobjc-nilcheck): Documented.
13101 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13104 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13107 * common.opt (export-dynamic): New Driver option.
13108 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13110 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13112 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13114 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13115 Jan Hubicka <jh@suse.cz>
13119 * cfgexpand.c (account_used_vars_for_block): Remove.
13120 (estimated_stack_frame_size): Use referenced vars.
13121 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13122 that were referenced in the original function. Test src_fn
13123 rather than cfun. Drop redundant get_var_ann.
13124 (setup_one_parameter): Drop redundant get_var_ann.
13125 (declare_return_variable): Likewise.
13126 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13127 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13128 * ipa-inline.c (compute_inline_parameters): Do not compute
13129 disregard_inline_limits here.
13130 (compute_inlinable_for_current, pass_inlinable): New.
13131 (pass_inline_parameters): Require PROP_referenced_vars.
13132 * cgraphunit.c (cgraph_process_new_functions): Don't run
13133 compute_inline_parameters explicitly unless function is in SSA form.
13134 (cgraph_analyze_function): Set .disregard_inline_limits.
13135 * tree-sra.c (convert_callers): Compute inliner parameters
13136 only for functions already in SSA form.
13138 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13140 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13141 -mlittle-endian-data.
13143 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13145 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13146 -mno-fpu, not -fpu and -no-fpu.
13147 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13148 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13150 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13153 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13154 input reload with PLUS RTX.
13156 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13158 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13159 of InverseVar(MDMX).
13161 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13163 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13166 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13168 * config/mn10300/mn10300.opt (mno-crt0): New.
13170 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13172 * config/m68k/uclinux.opt (static-libc): New Driver option.
13174 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13176 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13178 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13180 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13181 %{muser-extend-enabled}.
13183 2011-02-16 Richard Guenther <rguenther@suse.de>
13185 PR tree-optimization/47738
13186 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13187 the TODO from tree_predictive_commoning.
13189 2011-02-15 Jeff Law <law@redhat.com>
13192 2011-01-25 Jeff Law <law@redhat.com>
13194 PR rtl-optimization/37273
13195 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13196 handle them like argument loads from stack slots. Do not double
13197 count memory for memory constants and argument loads from stack slots.
13199 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13201 PR middle-end/47725
13202 * combine.c (cant_combine_insn_p): Revert the last change.
13204 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13207 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13208 mode for vector constants. Remove code that checks for TImode.
13210 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13214 * cgraph.h (compute_inline_parameters): Return void.
13215 * ipa-inline.c (compute_inline_parameters): Adjust.
13217 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13221 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13223 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13224 * ipa-inline.c (compute_inline_parameters): Adjust.
13226 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13230 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13231 Adjust all users. Pass FN to...
13232 * tree-flow-inline.h (first_referenced_var): ... this. Add
13234 * ipa-struct-reorg.c: Adjust.
13235 * tree-dfa.c: Adjust.
13236 * tree-into-ssa.c: Adjust.
13237 * tree-sra.c: Adjust.
13238 * tree-ssa-alias.c: Adjust.
13239 * tree-ssa-live.c: Adjust.
13240 * tree-ssa.c: Adjust.
13241 * tree-ssanames.c: Adjust.
13242 * tree-tailcall.c: Adjust.
13244 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13248 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13249 Adjust all callers.
13250 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13251 * tree-flow-inline.h: Adjust.
13252 * gimple-pretty-print.c: Adjust.
13253 * tree-into-ssa.c: Adjust.
13254 * tree-ssa.c: Adjust.
13255 * cfgexpand.c: Adjust.
13257 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13259 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13260 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13261 (EXTRA_CONSTRAINT): Delete.
13262 * config/iq2000/constraints.md: New file.
13263 * config/iq2000/iq2000.md: Include it.
13264 (define_insn ""): Delete.
13265 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13266 unsupported constraint letters from patterns.
13267 (call_value, call_value_internal1): Likewise.
13268 (call_value_multiple_internal1): Likewise.
13270 2011-02-15 Nick Clifton <nickc@redhat.com>
13272 * config/mn10300/mn10300.c: Include tm-constrs.h.
13273 (struct liw_data): New data structure describing an LIW candidate
13275 (extract_bundle): Use struct liw_data. Allow small integer
13276 operands for some instructions.
13277 (check_liw_constraints): Use struct liw_data. Remove swapped
13278 parameter. Add comments describing the checks. Fix bug when
13279 assigning the source of liw1 to the source of liw2.
13280 (liw_candidate): Delete. Code moved into extract_bundle.
13281 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13283 * config/mn10300/predicates.md (liw_operand): New predicate.
13284 Allows registers and small integer constants.
13285 * config/mn10300/constraints.md (O): New constraint. Accetps
13286 integers in the range -8 to +7 inclusive.
13287 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13288 for moving a small integer into a register. Give this alternative
13290 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13291 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13292 using the J,K,L and M constraints,
13293 (liw): Remove SI mode on second operands to allow for HI and QI
13295 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13298 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13300 PR middle-end/47725
13301 * combine.c (cant_combine_insn_p): Check zero/sign extended
13304 2011-02-15 Richard Guenther <rguenther@suse.de>
13306 PR tree-optimization/47743
13307 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13308 for a non-type-compatible VN lookup bail out.
13310 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13312 * config/fr30/constraints.md: New file.
13313 * config/fr30/fr30.md: Include it.
13314 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13315 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13316 (EXTRA_CONSTRAINT): Delete.
13318 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13320 * config/frv/constraints.md: New file.
13321 * config/frv/predicates.md: Include it.
13322 * config/frv/frv.c (reg_class_from_letter): Delete.
13323 (frv_option_override): Don't initialize it.
13324 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13325 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13326 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13327 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13328 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13329 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13330 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13331 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13332 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13333 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13334 (REG_CLASS_FROM_CONSTRAINT): Delete.
13336 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13338 PR middle-end/47581
13339 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13340 if frame size is 0 in a leaf function.
13342 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13345 * config/alpha/host-osf.c: New file.
13346 * config/alpha/x-osf: New file.
13347 * config.host (alpha*-dec-osf*): Use it.
13349 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13351 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13352 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13353 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13354 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13356 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13358 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13360 * config/stormy16/constraints.md: New file.
13361 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13362 Use satisfies_constraint_Q and satisfies_constraint_R.
13363 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13365 (xstormy16_legitiamte_address_p): Declare.
13366 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13367 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13368 (EXTRA_CONSTRAINT): Delete.
13369 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13371 (xstormy16_extra_constraint_p): Delete.
13373 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13375 PR tree-optimization/46494
13376 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13377 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13378 (pass_rtl_loop_done): Add TODO_verify_flow.
13379 * fwprop.c (pass_rtl_fwprop): Likewise.
13380 * modulo-sched.c (pass_sms): Likewise.
13381 * tree-ssa-dom.c (pass_dominator): Likewise.
13382 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13383 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13384 (pass_tree_loop_done): Likewise.
13385 * tree-ssa-pre.c (execute_pre): Likewise.
13386 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13387 * tree-ssa-sink.c (pass_sink_code): Likewise.
13388 * tree-vrp.c (pass_vrp): Likewise.
13390 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13392 * config/v850/constraints.md: New file.
13393 * config/v850/v850.md: Include it.
13394 * config/v850/predicates.md (reg_or_0_operand): Use
13395 satisfies_constraint_G.
13396 (special_symbolref_operand): Use satisfies_constraint_K.
13397 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13398 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13399 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13400 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13401 (EXTRA_CONSTRAINT): Delete.
13402 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13403 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13404 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13406 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13409 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13412 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13414 * config/mcore/constraints.md: New file.
13415 * config/mcore/mcore.md: Include it.
13416 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13417 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13418 (REG_CLASS_FROM_LETTER): Delete.
13419 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13420 insn_const_int_ok_for_constraint.
13421 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13422 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13423 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13424 (EXTRA_CONSTRAINT): Delete.
13426 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13429 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13430 (IS_SIGHANDLER): Define.
13431 (sparc64_is_sighandler): New function, split off from
13432 sparc64_fallback_frame_state.
13433 (sparc_is_sighandler): New function, split off from
13434 sparc_fallback_frame_state.
13435 (sparc64_fallback_frame_state): Merge with ...
13436 (sparc_fallback_frame_state): ... this into ...
13437 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13438 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13439 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13440 stack instead of hardcoded offsets.
13442 2011-02-14 Andriy Gapon <avg@freebsd.org>
13445 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13447 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13449 * configure: Regenerate.
13451 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13454 * gcc.c (asm_options): Correct spec matching --target-help.
13456 2011-02-12 Martin Jambor <mjambor@suse.cz>
13458 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13459 to gimple call error.
13461 2011-02-12 Mike Stump <mikestump@comcast.net>
13463 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13464 comments in backslash regions.
13466 2011-02-12 Mike Stump <mikestump@comcast.net>
13467 Jakub Jelinek <jakub@redhat.com>
13468 Iain Sandoe <iains@gcc.gnu.org>
13471 * dwarf2out.c (output_cfa_loc): When required, apply the
13472 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13473 (output_loc_sequence): Likewise.
13474 (output_loc_operands_raw): Likewise.
13475 (output_loc_sequence_raw): Likewise.
13476 (output_cfa_loc): Likewise.
13477 (output_loc_list): Suppress register number adjustment when
13478 calling output_loc_sequence()
13479 (output_die): Likewise.
13481 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13483 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13485 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13486 xtensa_memory_move_cost): New functions.
13487 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13489 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13492 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13493 in the current directory.
13494 * configure: Rebuilt.
13496 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13498 * config/darwin.c (darwin_override_options): Add a hunk missed
13499 from the commit of r168571. Trim comment line lengths and
13500 correct indents of the preceding block.
13502 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13504 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13507 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13509 * common.opt (nostartfiles): New Driver option.
13511 2011-02-11 Xinliang David Li <davidxl@google.com>
13513 PR tree-optimization/47707
13514 * tree-chrec.c (convert_affine_scev): Keep type precision.
13516 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13518 PR tree-optimization/47420
13519 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13521 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13523 PR rtl-optimization/47614
13524 * rtl.h (check_for_inc_dec): Declare.
13525 * dse.c (check_for_inc_dec): Externalize...
13526 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13527 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13529 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13532 * gcc.c (main): Do not compile inputs if there were errors in
13534 * opts-common.c (read_cmdline_option): Check for wrong language
13535 after other error checks.
13537 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13539 * cgraph.c: Fix comment typos.
13540 * cgraph.h: Likewise.
13541 * cgraphunit.c: Likewise.
13542 * ipa-cp.c: Likewise.
13543 * ipa-inline.c: Likewise.
13544 * ipa-prop.c: Likewise.
13545 * ipa-pure-const.c: Likewise.
13546 * ipa-ref.c: Likewise.
13547 * ipa-reference.c: Likewise.
13549 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13552 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13554 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13557 * doc/sourcebuild.texi (Require Support): Document
13558 dg-require-ascii-locale.
13560 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13562 * doc/lto.texi (Write summary): Fix missing parentheses.
13564 2011-02-10 DJ Delorie <dj@redhat.com>
13566 * config/m32c/m32c.c (m32c_option_override): Disable
13567 -fcombine-stack-adjustments until flag value tracking and compare
13568 optimization can be rewritten.
13570 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13572 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13574 (PROCESSOR_DEFAULT64): Likewise.
13576 2011-02-10 Richard Henderson <rth@redhat.com>
13578 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13579 change from 2011-02-03.
13580 * config/rx/rx.c (flags_from_code): Likewise.
13581 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13582 is valid, n/pz otherwise.
13583 (rx_select_cc_mode): Return CCmode if Y is not zero.
13585 2011-02-10 Richard Guenther <rguenther@suse.de>
13587 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13589 2011-02-10 Richard Guenther <rguenther@suse.de>
13591 PR tree-optimization/47677
13592 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13594 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13597 * combine.c (make_compound_operation): Only change shifts into
13598 multiplication for SCALAR_INT_MODE_P.
13600 2011-02-10 Jie Zhang <jie@codesourcery.com>
13604 2011-02-05 Jie Zhang <jie@codesourcery.com>
13606 * web.c (entry_register): Don't clobber the number of the
13607 first uninitialized reference in used[].
13609 2011-02-09 Richard Guenther <rguenther@suse.de>
13611 PR tree-optimization/47664
13612 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13615 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13619 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13621 (PROCESSOR_DEFAULT64): Same.
13622 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13624 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13626 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13628 2011-02-09 Martin Jambor <mjambor@suse.cz>
13630 PR middle-end/45505
13631 * tree-sra.c (struct access): New flags grp_scalar_read and
13632 grp_scalar_write. Changed description of assignment read and write
13634 (dump_access): Dump new flags, reorder all of them.
13635 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13636 to detect multiple scalar reads.
13637 (analyze_access_subtree): Use the new scalar read write flags instead
13638 of the old flags. Adjusted comments.
13640 2011-02-08 DJ Delorie <dj@redhat.com>
13643 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13646 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13648 * config/m68k/uclinux.opt: New.
13649 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13651 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13653 * config/cris/elf.opt (sim): New Driver option.
13655 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13657 * config/xtensa/elf.opt: New.
13658 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13660 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13662 * config/vax/elf.opt: New.
13663 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13665 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13667 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13669 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13671 * config/gnu-user.opt: New.
13672 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13673 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13674 *-*-uclinux*): Use gnu-user.opt.
13676 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13678 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13679 * config/i386/gnu.h (CPP_SPEC): Likewise.
13681 2011-02-08 Ian Lance Taylor <iant@google.com>
13683 * common.opt (fcx-limited-range): Add SetByCombined flag.
13684 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13685 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13686 (fassociative-math, freciprocal-math): Likewise.
13687 (funsafe-math-optimizations): Likewise.
13688 * opth-gen.awk: Handle SetByCombined.
13689 * optc-gen.awk: Likewise.
13690 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13691 (set_unsafe_math_optimizations_flags): Likewise.
13692 * doc/options.texi (Option properties): Document SetByCombined.
13694 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13696 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13697 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13698 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13699 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13700 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13702 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13704 PR tree-optimization/46834
13705 PR tree-optimization/46994
13706 PR tree-optimization/46995
13707 * graphite-sese-to-poly.c (used_outside_reduction): New.
13708 (detect_commutative_reduction): Call used_outside_reduction.
13709 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13710 translate_scalar_reduction_to_array only when at least one
13711 loop-phi/close-phi tuple has been detected.
13713 2011-02-08 Richard Guenther <rguenther@suse.de>
13715 PR middle-end/47639
13716 * tree-vect-generic.c (expand_vector_operations_1): Update
13718 (expand_vector_operations): ... not here. Cleanup EH info
13719 and the CFG if required.
13721 2011-02-08 Richard Guenther <rguenther@suse.de>
13723 PR tree-optimization/47641
13724 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13725 require type compatibility.
13727 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13729 * gimple-low.c (lower_function_body): Don't remove the location of
13730 the return statement here.
13731 (lower_gimple_return): Do it here instead but only if the return
13732 statement is actually used twice.
13734 2011-02-08 Richard Guenther <rguenther@suse.de>
13736 PR tree-optimization/47632
13737 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13738 unused up_to_stmt parameter, return whether cfg-cleanup is
13739 necessary, remove EH info properly.
13740 (forward_propagate_into_gimple_cond): Adjust caller.
13741 (forward_propagate_into_cond): Likewise.
13742 (forward_propagate_comparison): Likewise.
13743 (tree_ssa_forward_propagate_single_use_vars): Make
13744 forward_propagate_comparison case similar to the two others.
13746 2011-02-08 Nick Clifton <nickc@redhat.com>
13748 * config/mn10300/mn10300.opt (mliw): New command line option.
13749 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13750 (liw_bundling): New automaton.
13751 (liw): New attribute.
13752 (liw_op): New attribute.
13753 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13754 (movsi_internal): Add LIW attributes.
13755 (andsi3): Likewise.
13756 (iorsi3): Likewise.
13757 (xorsi3): Likewise.
13758 (addsi3): Separate register and immediate alternatives.
13759 Add LIW attributes.
13760 (subsi3): Likewise.
13762 (aslsi3): Likewise.
13763 (lshrsi3): Likewise.
13764 (ashrsi3): Likewise.
13765 (liw): New pattern.
13766 * config/mn10300/mn10300.c (liw_op_names): New
13767 (mn10300_print_operand): Handle 'W' operand descriptor.
13768 (extract_bundle): New function.
13769 (check_liw_constraints): New function.
13770 (liw_candidate): New function.
13771 (mn10300_bundle_liw): New function.
13772 (mn10300_reorg): New function.
13773 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13774 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13775 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13776 __LIW__ or __NO_LIW__.
13777 * doc/invoke.texi: Describe the -mliw command line option.
13779 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13781 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13782 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13783 pthread_mutex_unlock): Remove.
13784 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13785 * config/pa/t-pa64: Likewise.
13786 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13787 shared libc if not linking against libpthread.
13788 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13790 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13793 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13794 on 10.6 and later to ensure that we always use the unwinder from
13795 the system. Only add -no_compact_unwind when tarteting darwin
13798 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13801 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13802 (vec_interleave_lowv2sf): Ditto.
13803 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13804 (vec_extract_oddv2sf): Ditto.
13806 2011-02-07 Mike Stump <mikestump@comcast.net>
13809 Add __ieee_divdc3 entry point.
13810 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13812 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13813 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13814 * config/darwin.c (darwin_rename_builtins): Add.
13815 * config/darwin-protos.h (darwin_rename_builtins): Add.
13817 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13820 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13823 2011-02-07 Mike Stump <mikestump@comcast.net>
13825 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13827 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13830 * config/avr/libgcc.S (exit): Move .endfunc
13832 2011-02-07 Richard Guenther <rguenther@suse.de>
13834 PR tree-optimization/47615
13835 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13836 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13837 (run_scc_vn): Initialize it.
13838 (visit_reference_op_load): Use it.
13839 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13841 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13843 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13844 DImode trapping arithmetic libfuncs.
13846 2011-02-07 Richard Guenther <rguenther@suse.de>
13848 PR tree-optimization/47621
13849 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13851 (execute_update_addresses_taken): ... here. Make it more
13852 conservative in what we accept.
13854 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13856 * config/sparc/freebsd.h (ASM_SPEC): Define.
13857 * config/sparc/vxworks.h (ASM_SPEC): Define.
13859 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13861 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13863 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13865 * doc/invoke.texi: Remove reference to compiler internals from
13866 user documentation.
13868 * reg-notes.def: Remove REG_VALUE_PROFILE.
13869 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13871 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13873 PR middle-end/47610
13874 * varasm.c (default_section_type_flags): If decl is NULL,
13875 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13877 2011-02-05 Jie Zhang <jie@codesourcery.com>
13880 * web.c (entry_register): Don't clobber the number of the
13881 first uninitialized reference in used[].
13883 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13885 PR tree-optimization/46194
13886 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13887 (build_classic_dist_vector_1): Do not represent classic distance
13888 vectors when the access functions are variating in different loops.
13890 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13892 * config/mips/iris6.opt: New.
13893 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13895 2011-02-04 Richard Henderson <rth@redhat.com>
13896 Steve Ellcey <sje@cup.hp.com>
13899 * config/ia64/predicates.md (mux1_brcst_element): New.
13900 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13901 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13902 (ia64_unpack_sign): New.
13903 (ia64_expand_unpack): Rewrite using new routines.
13904 (ia64_expand_widen_sum): Ditto.
13905 (ia64_expand_dot_prod_v8qi): Ditto.
13906 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13907 routines, add endian check.
13908 (pmpy2_even): Rename from pmpy2_r, add endian check.
13909 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13910 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13911 (vec_widen_smult_hi_v4hi): Ditto.
13912 (vec_widen_umult_lo_v4hi): Ditto.
13913 (vec_widen_umult_hi_v4hi): Ditto.
13914 (mulv2si3): Change endian checks.
13915 (sdot_prodv4hi): Rewrite with new calls.
13916 (udot_prodv4hi): New.
13917 (vec_pack_ssat_v4hi): Add endian check.
13918 (vec_pack_usat_v4hi): Ditto.
13919 (vec_pack_ssat_v2si): Ditto.
13920 (max1_even): Rename from max1_r, add endian check.
13921 (max1_odd): Rename from max1_l, add endian check.
13922 (*mux1_rev): Format change.
13923 (*mux1_mix): Ditto.
13924 (*mux1_shuf): Ditto.
13925 (*mux1_alt): Ditto.
13926 (*mux1_brcst_v8qi): Use new predicate.
13927 (vec_extract_evenv8qi): Remove endian check.
13928 (vec_extract_oddv8qi): Ditto.
13929 (vec_interleave_lowv4hi): Format change.
13930 (vec_interleave_highv4hi): Ditto.
13931 (mix2_even): Rename from mix2_r, add endian check.
13932 (mix2_odd): Rename from mux2_l, add endian check.
13933 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13934 (vec_extract_evenodd_helper): Format change.
13935 (vec_extract_evenv4hi): Remove endian check.
13936 (vec_extract_oddv4hi): Remove endian check.
13937 (vec_interleave_lowv2si): Format change.
13938 (vec_interleave_highv2si): Format change.
13939 (vec_initv2si): Remove endian check.
13940 (vecinit_v2si): Add endian check.
13941 (reduc_splus_v2sf): Add endian check.
13942 (reduc_smax_v2sf): Ditto.
13943 (reduc_smin_v2sf): Ditto.
13944 (vec_initv2sf): Remove endian check.
13945 (fpack): Add endian check.
13946 (fswap): Add endian check.
13947 (vec_interleave_highv2sf): Add endian check.
13948 (vec_interleave_lowv2sf): Add endian check.
13949 (fmix_lr): Add endian check.
13950 (vec_setv2sf): Format change.
13951 (*vec_extractv2sf_0_be): Use shift to extract operand.
13952 (*vec_extractv2sf_1_be): New.
13953 (vec_pack_trunc_v4hi): Add endian check.
13954 (vec_pack_trunc_v2si): Format change.
13956 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13958 PR inline-asm/23200
13959 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13960 do bb, locus and block comparison and disallow loads if it is not set.
13961 (stmt_is_replaceable_p): New function.
13962 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13964 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13965 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13967 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13969 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13971 * config/rs6000/xilinx.opt: New.
13972 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13974 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13976 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13978 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13980 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13981 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13982 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13983 secondary_reload_info, xtensa_secondary_reload): Remove.
13984 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13985 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13986 (xtensa_preferred_reload_class): Make static. Change return and
13987 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13988 Use CONST_DOUBLE_P predicate.
13989 (xtensa_preferred_output_reload_class): New function.
13990 (xtensa_secondary_reload): Make static.
13992 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13994 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13995 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13996 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13998 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14000 PR middle-end/31490
14001 * output.h (SECTION_RELRO): Define.
14002 (SECTION_MACH_DEP): Adjust.
14003 (get_variable_section): New prototype.
14004 * varpool.c (varpool_finalize_named_section_flags): New function.
14005 (varpool_assemble_pending_decls): Call it.
14006 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14007 * cgraphunit.c (cgraph_output_in_order): Call
14008 varpool_finalize_named_section_flags.
14009 * varasm.c (get_section): Allow section flags conflicts between
14010 relro and read-only sections if the section hasn't been declared yet.
14011 Set SECTION_OVERRIDE after diagnosing section type conflict.
14012 (get_variable_section): No longer static.
14013 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14014 readonly sections that need relocations.
14015 (decl_readonly_section_1): New function.
14016 (decl_readonly_section): Use it.
14019 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14020 Steve Ellcey <sje@cup.hp.com>
14022 PR middle-end/31490
14023 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14024 if section attribute used.
14026 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14028 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14029 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14030 (darwin_init_sections): Remove assertion.
14032 2011-02-03 Nick Clifton <nickc@redhat.com>
14034 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14036 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14037 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14038 instead of "n" and "pz".
14039 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14042 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14045 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14046 fma, expand FMA_EXPR as fma{,f,l} call.
14049 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14050 copy them into a unsigned char variable and pass address of it to
14051 lto_output_data_stream.
14054 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14055 around backend_init_target and lang_dependent_init_target calls.
14056 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14057 (verify_cgraph_node): Don't call set_cfun here. Use
14058 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14059 Set error_found for incorrectly represented calls to thunks.
14061 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14064 PR rtl-optimization/43494
14065 * rtl.h (for_each_inc_dec_fn): New type.
14066 (for_each_inc_dec): Declare.
14067 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14068 (for_each_inc_dec_find_inc_dec): New fn.
14069 (for_each_inc_dec_find_mem): New fn.
14070 (for_each_inc_dec): New fn.
14071 * dse.c (struct insn_size): Remove.
14072 (replace_inc_dec, replace_inc_dec_mem): Remove.
14073 (emit_inc_dec_insn_before): New fn.
14074 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14075 (canon_address): Pass mem modes to cselib_lookup.
14076 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14077 (cselib_lookup_from_insn): Likewise.
14078 (cselib_subst_to_values): Likewise.
14079 * cselib.c (find_slot_memmode): New var.
14080 (cselib_find_slot): New fn. Use it instead of
14081 htab_find_slot_with_hash everywhere.
14082 (entry_and_rtx_equal_p): Use find_slot_memmode.
14083 (autoinc_split): New fn.
14084 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14085 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14086 Deal with autoinc. Special-case recursion into MEMs.
14087 (cselib_hash_rtx): Likewise.
14088 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14089 address and MEM modes.
14090 (cselib_subst_to_values): Add memmode, pass it on.
14092 (cselib_lookup): Add memmode argument, pass it on.
14093 (cselib_lookup_from_insn): Add memmode.
14094 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14095 (struct cselib_record_autoinc_data): New.
14096 (cselib_record_autoinc_cb): New fn.
14097 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14098 mode to cselib_lookup. Reset autoinced REGs here instead of...
14099 (cselib_process_insn): ... here.
14100 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14102 (add_uses): Likewise, also to cselib_subst_to_values.
14103 (add_stores): Likewise.
14104 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14105 cselib_subst_to_values.
14106 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14107 * gcse.c (do_local_cprop): Adjusted.
14108 * postreload.c (reload_cse_simplify_set): Adjusted.
14109 (reload_cse_simplify_operands): Adjusted.
14110 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14112 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14114 PR tree-optimization/45122
14115 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14116 unsafe assumptions when there's more than one loop exit.
14118 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14121 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14122 Document using vector double with the load/store builtins, and
14123 that the load/store builtins always use Altivec instructions.
14125 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14126 to use altivec memory instructions, even on VSX.
14127 (vector_altivec_store_<mode>): Ditto.
14129 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14132 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14133 V2DF, V2DI support to load/store overloaded builtins.
14135 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14136 altivec load/store builtins for V2DF/V2DI types.
14138 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14139 set avoid indexed addresses on power6 if -maltivec.
14140 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14141 vector_altivec_load/vector_altivec_store builtins.
14142 (altivec_expand_st_builtin): Ditto.
14143 (altivec_expand_builtin): Add VSX memory builtins.
14144 (rs6000_init_builtins): Add V2DI types to internal types.
14145 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14146 load/store builtins.
14147 (rs6000_address_for_altivec): Insure memory address is appropriate
14150 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14151 vec_vsx_ld and vec_vsx_st.
14152 (vsx_store_<mode>): Ditto.
14154 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14155 variables to hold long long types for VSX vector memory builtins.
14156 (RS6000_BTI_unsigned_long_long): Ditto.
14157 (long_long_integer_type_internal_node): Ditti.
14158 (long_long_unsigned_type_internal_node): Ditti.
14160 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14161 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14162 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14164 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14166 (vec_vsx_st): Ditto.
14168 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14170 * config/pa/pa-hpux10.opt: New.
14171 * config/hpux11.opt (pthread): New Driver option.
14172 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14173 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14175 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14177 * config/ia64/vms.opt: New.
14178 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14180 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14183 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14184 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14185 generator functions.
14186 (vsx_floatuns<VSi><mode>2): Ditto.
14187 (vsx_fix_trunc<mode><VSi>2): Ditto.
14188 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14190 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14192 * config/i386/djgpp.opt (posix): New Driver option.
14194 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14196 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14197 Move to the unsupported targets list.
14199 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14201 PR rtl-optimization/47525
14202 * df-scan.c: Update copyright years.
14203 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14204 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14206 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14208 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14209 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14210 (ASM_OUTPUT_ASCII): Remove.
14211 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14213 2011-02-02 Jeff Law <law@redhat.com>
14215 PR middle-end/47543
14216 * reload.c (find_reloads_address): Handle reg+d address where both
14217 components are invalid by reloading the entire address.
14219 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14220 Richard Guenther <rguenther@suse.de>
14222 PR tree-optimization/40979
14224 * passes.c (init_optimization_passes): After LIM call copy_prop
14225 and DCE to clean up.
14226 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14228 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14230 PR tree-optimization/47576
14231 PR tree-optimization/47555
14232 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14233 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14234 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14235 * tree-scalar-evolution.c (follow_ssa_edge): Use
14236 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14238 2011-02-02 Richard Guenther <rguenther@suse.de>
14240 PR tree-optimization/47566
14241 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14243 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14247 * tree-inline.c (declare_return_variable): Remove unused caller
14252 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14253 * cfgexpand.c (account_used_vars_for_block): Use them.
14254 * tree-nrv.c (tree_nrv): Likewise.
14255 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14256 (dump_scope_block): Likewise.
14257 (remove_unused_locals): Likewise.
14261 * tree-inline.c (declare_return_variable): Add result decl to
14262 local decls only once.
14263 * gimple-low.c (record_vars_into): Mark newly-created variables
14266 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14272 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14274 (no_real_insns_p, schedule_block, set_priorities): Drop special
14275 treatment of boundary debug insns.
14276 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14277 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14278 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14279 (BOUNDARY_DEBUG_INSN_P): Likewise.
14280 (SCHEDULE_DEBUG_INSN_P): Likewise.
14281 * sched-rgn.c (init_ready_list): Drop special treatment of
14282 boundary debug insns.
14283 * final.c (rest_of_clean_state): Clear notes' BB.
14285 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14287 * config/openbsd.opt (assert=): New Driver option.
14289 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14291 * config/i386/nto.opt: New.
14292 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14294 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14296 * config/i386/netware.opt: New.
14297 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14299 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14301 * config/interix.opt (posix): New Driver option.
14303 2011-02-01 DJ Delorie <dj@redhat.com>
14305 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14307 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14310 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14312 PR tree-optimization/47561
14313 * toplev.c (process_options): Print the Graphite flags. Add
14314 flag_loop_flatten to the list of options requiring Graphite.
14316 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14318 * config/i386/cygming.opt (posix): New Driver option.
14320 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14322 * config/arm/vxworks.opt: New.
14323 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14325 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14327 * config/alpha/elf.opt: New.
14328 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14329 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14331 2011-02-01 Richard Guenther <rguenther@suse.de>
14333 PR tree-optimization/47559
14334 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14335 store-motion on references that can throw.
14337 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14339 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14340 * tree-pass.h (TDF_CSELIB): New macro.
14341 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14342 cselib_lookup): Check for it rather than for TDF_DETAILS.
14344 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14347 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14348 is HOST_BIT_BUCKET.
14350 * opts.c (finish_options): Don't add x_aux_base_name if it is
14353 2011-02-01 Richard Guenther <rguenther@suse.de>
14355 PR tree-optimization/47555
14357 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14359 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14361 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14364 * config/lm32/t-lm32: Add multilib for all CPU options.
14366 2011-02-01 Richard Guenther <rguenther@suse.de>
14368 PR tree-optimization/47541
14369 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14370 sure to have a field at offset zero.
14372 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14374 * config/arc/arc.opt (EB, EL): New Driver options.
14376 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14378 * config/alpha/osf5.opt: New.
14379 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14381 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14383 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14385 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14387 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14388 -floop-interchange.
14389 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14390 is an alias of -floop-interchange and that it requires the
14391 Graphite infrastructure.
14392 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14393 flag_loop_interchange based on the value of flag_tree_loop_linear.
14395 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14396 Richard Guenther <rguenther@suse.de>
14398 PR tree-optimization/47538
14399 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14400 type instead of r1type, except for comparisons. For right
14401 shifts and comparisons punt if there are mismatches in
14402 sizetype vs. non-sizetype types.
14404 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14406 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14409 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14411 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14413 * configure: Regenerate.
14415 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14417 * configure.ac (gcc_cv_ld_static_option): Define.
14418 (gcc_cv_ld_dynamic_option): Define.
14419 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14421 (HAVE_LD_STATIC_DYNAMIC): Update message.
14422 (LD_STATIC_OPTION): Define.
14423 (LD_DYNAMIC_OPTION): Define.
14424 * configure: Regenerate.
14425 * config.in: Regenerate.
14426 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14427 HAVE_LD_STATIC_DYNAMIC]: Use them.
14429 2011-01-31 Nick Clifton <nickc@redhat.com>
14431 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14432 registers inside interrupt handlers if the handler is not a leaf
14435 2011-01-31 Nick Clifton <nickc@redhat.com>
14437 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14438 reg_renumber returning an INVALID_REGNUM.
14440 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14443 * doc/install.texi: Document host options discarded when cross
14444 configuring target libraries.
14446 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14449 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14452 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14454 (no_real_insns_p, schedule_block, set_priorities): Drop special
14455 treatment of boundary debug insns.
14456 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14457 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14458 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14459 (BOUNDARY_DEBUG_INSN_P): Likewise.
14460 (SCHEDULE_DEBUG_INSN_P): Likewise.
14461 * sched-rgn.c (init_ready_list): Drop special treatment of
14462 boundary debug insns.
14463 * final.c (rest_of_clean-state): Clear notes' BB.
14465 2011-01-31 Alan Modra <amodra@gmail.com>
14467 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14468 toc relative expressions as we do in print_operand_address.
14470 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14472 * doc/extend.texi: Follow spelling conventions.
14473 * doc/invoke.texi: Fix a typo.
14475 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14477 * config/hpux11.opt: New.
14478 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14479 ia64*-*-hpux*): Use hpux11.opt.
14481 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14483 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14486 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14488 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14491 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14493 * doc/install.texi (Binaries): Remove outdated reference for
14494 Motorola 68HC11/68HC12 downloads.
14496 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14498 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14501 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14504 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14507 2011-01-28 Ahmad Sharif <asharif@google.com>
14509 * value-prof.c (check_counter): Corrected error message.
14511 2011-01-29 Jie Zhang <jie@codesourcery.com>
14513 * config/arm/arm.c (arm_legitimize_reload_address): New.
14514 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14515 arm_legitimize_reload_address.
14516 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14518 2011-01-28 Ian Lance Taylor <iant@google.com>
14520 * godump.c (go_define): Ignore macros whose definitions include
14521 two adjacent operands.
14523 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14526 * varasm.c (force_const_mem): Store copy of x in desc->constant
14527 instead of x itself.
14528 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14529 itself into REG_EQUAL note.
14531 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14533 * config/freebsd.opt (posix, rdynamic): New Driver options.
14535 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14537 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14538 -Bstatic/-Bdynamic.
14539 * configure: Regenerate.
14541 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14543 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14544 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14546 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14548 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14549 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14550 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14551 (s390_preferred_reload_class): Make static. Change return and
14552 'rclass' argument type to reg_class_t.
14554 2011-01-27 Jan Hubicka <jh@suse.cz>
14556 PR middle-end/46949
14557 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14558 (process_function_and_variable_attributes): Check defined weakrefs.
14560 2011-01-27 Martin Jambor <mjambor@suse.cz>
14562 PR tree-optimization/47228
14563 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14564 build_ref_for_offset.
14566 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14568 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14570 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14572 PR rtl-optimization/46856
14573 * postreload.c (reload_combine_recognize_const_pattern): Do not
14574 separate cc0 setter and user on cc0 targets.
14576 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14579 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14580 passed a VOID_TYPE expression, immediately emit an error and
14581 return error_mark_node.
14583 2011-01-26 Jeff Law <law@redhat.com>
14585 PR rtl-optimization/47464
14586 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14587 rather than may_trap_p as needed.
14589 2011-01-26 DJ Delorie <dj@redhat.com>
14591 PR rtl-optimization/46878
14592 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14593 setter/user dependency as well.
14595 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14597 PR rtl-optimization/44469
14598 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14599 after removing trivially dead basic blocks.
14601 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14603 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14604 * config/frv/frv.h (LINK_SPEC): Likewise.
14605 * config/i386/netware.h (LINK_SPEC): Likewise.
14606 * config/m68k/linux.h (ASM_SPEC): Likewise.
14607 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14608 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14609 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14610 * config/sparc/linux.h (ASM_SPEC): Likewise.
14611 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14612 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14614 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14616 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14617 * config/frv/frv.h (ASM_SPEC): Likewise.
14618 * config/m68k/linux.h (ASM_SPEC): Likewise.
14619 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14620 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14621 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14622 * config/sparc/linux.h (ASM_SPEC): Likewise.
14623 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14624 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14626 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14628 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14629 * config/frv/frv.h (LINK_SPEC): Likewise.
14630 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14632 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14634 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14635 * config/frv/frv.h (ASM_SPEC): Likewise.
14636 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14637 * config/m68k/linux.h (ASM_SPEC): Likewise.
14638 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14639 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14640 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14641 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14642 * config/sparc/linux.h (ASM_SPEC): Likewise.
14643 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14644 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14645 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14647 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14650 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14652 (vec_extract_evenodd_help): Ditto.
14653 (vec_extract_evenv4hi): Ditto.
14654 (vec_extract_oddv4hi): Ditto.
14655 (vec_interleave_lowv2si): Ditto.
14656 (vec_interleave_highv2si): Ditto.
14657 (vec_extract_evenv2si): Ditto.
14658 (vec_extract_oddv2si: Ditto.
14659 (vec_pack_trunc_v2si): Ditto.
14661 2011-01-22 Jan Hubicka <jh@suse.cz>
14664 * cgraph.h (cgraph_local_info): New field can_change_signature.
14665 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14666 signature can change.
14667 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14669 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14670 (cgraph_function_versioning): We can not change signature of functions
14671 that don't allow that.
14672 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14673 (lto_input_node): Likewise.
14674 * ipa-inline.c (compute_inline_parameters): Compute
14675 local.can_change_signature.
14676 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14677 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14678 functions that can not change signature.
14679 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14680 init_cumulative_args): Do not use local calling conventions
14681 for functions that can not change signature.
14683 2011-01-22 Jan Hubicka <jh@suse.cz>
14685 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14687 2011-01-26 Richard Guenther <rguenther@suse.de>
14689 PR tree-optimization/47190
14690 * cgraphunit.c (process_common_attributes): New function.
14691 (process_function_and_variable_attributes): Use it.
14693 2011-01-26 Richard Guenther <rguenther@suse.de>
14696 * cgraphbuild.c (record_eh_tables): Record reference to personality
14699 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14702 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14703 non-debug insns from moving up.
14705 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14708 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14709 t-dlldir{,-x} fragment for build and add it to tmake_file.
14710 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14711 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14712 * config/i386/t-dlldir: New file.
14713 (SHLIB_DLLDIR): Define.
14714 * config/i386/t-dlldir-x: New file.
14715 (SHLIB_DLLDIR): Define.
14716 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14717 (SHLIB_INSTALL): Use it.
14719 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14722 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14723 lower bound of the allowed Thumb-2 coprocessor load/store
14724 index range to -256. Add explaining comment.
14726 2011-01-25 Ian Lance Taylor <iant@google.com>
14728 * godump.c (go_define): Improve lexing of macro expansion to only
14729 accept expressions which match Go spec.
14731 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14734 * tree.c (handle_dll_attribute): Handle it.
14735 * doc/extend.texi (@item dllexport): Mention it.
14736 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14738 2011-01-25 Ian Lance Taylor <iant@google.com>
14740 PR tree-optimization/26854
14741 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14742 (decl_jump_unsafe): Move higher in file, with no other change.
14743 (bind): Set has_jump_unsafe_decl if appropriate.
14744 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14745 (check_earlier_gotos): Likewise.
14746 (c_check_switch_jump_warnings): Likewise.
14748 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14750 * doc/invoke.texi (Warning Options): Add missing hyphen.
14751 (-fprofile-dir): Minor grammatical fixes.
14752 (-fbranch-probabilities): Likewise.
14754 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14758 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14760 (no_real_insns_p, schedule_block, set_priorities): Drop special
14761 treatment of boundary debug insns.
14762 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14763 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14764 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14765 (BOUNDARY_DEBUG_INSN_P): Likewise.
14766 (SCHEDULE_DEBUG_INSN_P): Likewise.
14767 * sched-rgn.c (init_ready_list): Drop special treatment of
14768 boundary debug insns.
14769 * final.c (rest_of_clean-state): Clear notes' BB.
14771 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14773 * Makefile.in (LAMBDA_H): Removed.
14774 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14775 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14776 lambda-trans.o, and tree-loop-linear.o.
14777 (lto-symtab.o): Remove dependence on LAMBDA_H.
14778 (tree-loop-linear.o): Remove rule.
14779 (lambda-mat.o): Same.
14780 (lambda-trans.o): Same.
14781 (lambda-code.o): Same.
14782 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14783 (tree-vect-slp.o): Same.
14784 * hwint.h (gcd): Moved here.
14785 (least_common_multiple): Same.
14786 * lambda-code.c: Removed.
14787 * lambda-mat.c: Removed.
14788 * lambda-trans.c: Removed.
14789 * lambda.h: Removed.
14790 * tree-loop-linear.c: Removed.
14791 * lto-symtab.c: Do not include lambda.h.
14792 * omega.c (gcd): Removed.
14793 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14794 * tree-data-ref.c (print_lambda_vector): Moved here.
14795 (lambda_vector_copy): Same.
14796 (lambda_matrix_copy): Same.
14797 (lambda_matrix_id): Same.
14798 (lambda_vector_first_nz): Same.
14799 (lambda_matrix_row_add): Same.
14800 (lambda_matrix_row_exchange): Same.
14801 (lambda_vector_mult_const): Same.
14802 (lambda_vector_negate): Same.
14803 (lambda_matrix_row_negate): Same.
14804 (lambda_vector_equal): Same.
14805 (lambda_matrix_right_hermite): Same.
14806 * tree-data-ref.h: Do not include lambda.h.
14807 (lambda_vector): Moved here.
14808 (lambda_matrix): Same.
14809 (dependence_level): Same.
14810 (lambda_transform_legal_p): Removed declaration.
14811 (lambda_collect_parameters): Same.
14812 (lambda_compute_access_matrices): Same.
14813 (lambda_vector_gcd): Same.
14814 (lambda_vector_new): Same.
14815 (lambda_vector_clear): Same.
14816 (lambda_vector_lexico_pos): Same.
14817 (lambda_vector_zerop): Same.
14818 (lambda_matrix_new): Same.
14819 * tree-flow.h (least_common_multiple): Removed declaration.
14820 * tree-parloops.c (lambda_trans_matrix): Moved here.
14821 (LTM_MATRIX): Same.
14822 (LTM_ROWSIZE): Same.
14823 (LTM_COLSIZE): Same.
14824 (LTM_DENOMINATOR): Same.
14825 (lambda_trans_matrix_new): Same.
14826 (lambda_matrix_vector_mult): Same.
14827 (lambda_transform_legal_p): Same.
14828 * tree-pass.h (pass_linear_transform): Removed declaration.
14829 * tree-ssa-loop.c (tree_linear_transform): Removed.
14830 (gate_tree_linear_transform): Removed.
14831 (pass_linear_transform): Removed.
14832 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14833 flag_loop_interchange.
14835 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14837 PR tree-optimization/47265
14838 PR tree-optimization/47443
14839 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14840 if name still has some uses.
14842 2011-01-25 Martin Jambor <mjambor@suse.cz>
14844 PR tree-optimization/47382
14845 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14846 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14848 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14850 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14851 sjlj_except_unwind_info.
14853 2011-01-25 Richard Guenther <rguenther@suse.de>
14855 PR tree-optimization/47426
14856 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14857 visible functions results escape.
14859 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14862 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14863 (arm_get_frame_offsets): Use it.
14865 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14866 Jakub Jelinek <jakub@redhat.com>
14868 PR tree-optimization/47271
14869 * tree-if-conv.c (bb_postdominates_preds): New.
14870 (if_convertible_bb_p): Call bb_postdominates_preds.
14871 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14872 (predicate_scalar_phi): Call bb_postdominates_preds.
14874 2011-01-25 Nick Clifton <nickc@redhat.com>
14876 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14877 * config/rx/rx.c (rx_function_value): Likewise.
14878 (rx_promote_function_mode): Likewise.
14879 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14880 in order to make it legitimate.
14881 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14882 make sure that the first operand is the same as the result register.
14883 (addsi3_unspec): Delete.
14884 (subdi3): Do not accept immediate operands.
14885 (subdi3_internal): Likewise.
14887 2011-01-25 Jeff Law <law@redhat.com>
14889 PR rtl-optimization/37273
14890 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14891 handle them like argument loads from stack slots. Do not double
14892 count memory for memory constants and argument loads from stack slots.
14894 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14896 PR tree-optimization/47427
14897 PR tree-optimization/47428
14898 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14899 coalesce if the new root var would be TREE_READONLY.
14901 2011-01-25 Richard Guenther <rguenther@suse.de>
14903 PR middle-end/47414
14904 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14905 correct type for TBAA.
14907 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14909 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14910 (close_phi_written_to_memory): Call for_each_index with
14911 dr_indices_valid_in_loop.
14913 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14915 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14916 when it is initialized.
14918 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14920 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14921 call to graphite_find_data_references_in_stmt.
14922 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14923 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14924 call to graphite_find_data_references_in_stmt.
14925 (analyze_drs_in_stmts): Same.
14926 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14927 in which the scalar analysis of indices is performed.
14928 (create_data_ref): Same. Update call to dr_analyze_indices.
14929 (find_data_references_in_stmt): Update call to create_data_ref.
14930 (graphite_find_data_references_in_stmt): Same.
14931 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14933 (create_data_ref): Same.
14934 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14935 call to create_data_ref.
14937 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14939 * graphite-sese-to-poly.c (build_poly_scop): Move
14940 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14942 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14944 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14945 VAR_DECL, PARM_DECL, and RESULT_DECL.
14947 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14949 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14950 in a reduction PBB.
14951 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14952 that have already been marked as PBB_IS_REDUCTION.
14954 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14956 * graphite-scop-detection.c (same_close_phi_node): New.
14957 (remove_duplicate_close_phi): New.
14958 (make_close_phi_nodes_unique): New.
14959 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14961 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14963 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14964 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14965 of both data references to be the same.
14967 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14969 * graphite-dependences.c (build_lexicographical_constraint): Remove
14970 the gdim parameter.
14971 (build_lexicographical_constraint): Adjust call to
14972 ppl_powerset_is_empty.
14973 (dependence_polyhedron): Same.
14974 (graphite_legal_transform_dr): Same.
14975 (graphite_carried_dependence_level_k): Same.
14976 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14978 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14980 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14982 * graphite-sese-to-poly.c
14983 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14984 (close_phi_written_to_memory): New.
14985 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14988 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14990 * doc/install.texi: Update the expected version number of PPL to 0.11.
14991 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14992 #if PPL_VERSION_MINOR < 11.
14994 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14996 * graphite-dependences.c: Include graphite-cloog-util.h.
14997 (new_poly_ddr): Inlined into dependence_polyhedron.
14998 (free_poly_ddr): Moved close by new_poly_ddr.
14999 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15000 Early return NULL when ppl_powerset_is_empty returns true.
15001 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15002 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15003 (graphite_legal_transform_dr): Call new_poly_ddr.
15004 (graphite_carried_dependence_level_k): Same.
15005 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15006 (dot_transformed_deps_stmt_1): Removed.
15007 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15008 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15009 (dot_deps_1): Call dot_deps_2.
15010 * Makefile.in (graphite-dependences.o): Add missing dependence on
15011 graphite-cloog-util.h.
15013 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15015 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15016 (build_lexicographical_constraint): Same.
15017 (dependence_polyhedron_1): Same.
15018 (graphite_legal_transform_dr): Same.
15019 (graphite_carried_dependence_level_k): Same.
15020 * graphite-ppl.c (ppl_powerset_is_empty): New.
15021 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15022 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15026 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15027 the "a followed by b" relation and document it.
15029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15031 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15032 iteration when the bag of constraints is empty.
15034 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15036 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15038 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15040 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15041 nest and two loop depths as parameters.
15042 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15043 lst_perfect_nestify.
15045 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15047 * graphite-dependences.c (print_pddr): Call
15048 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15050 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15052 * graphite-ppl.c (debug_gmp_value): New.
15053 * graphite-ppl.h (debug_gmp_value): Declared.
15055 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15057 * doc/install.texi: Document availability of cloog-0.16.
15059 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15061 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15062 invalid postdominance info.
15064 2011-01-24 Jan Hubicka <jh@suse.cz>
15067 * doc/extend.texi (weak pragma): Drop claim that it must
15068 appear before definition.
15069 * varasm.c (merge_weak, declare_weak): Only sanity check
15070 that DECL is not output at a time it is declared weak.
15072 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15074 * machmode.def: Fixed comments.
15076 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15078 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15080 2011-01-24 Paul Koning <ni1d@arrl.net>
15082 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15085 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15088 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15089 (block_info): Add scanned and prev.
15090 (move_or_delete_vzeroupper_2): Return if the basic block
15091 has been scanned and the upper 128bit state is unchanged
15092 from the last scan.
15093 (move_or_delete_vzeroupper_1): Return true if the exit
15095 (move_or_delete_vzeroupper): Visit basic blocks using the
15096 work-list based algorithm based on vt_find_locations in
15099 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15101 2011-01-24 Nick Clifton <nickc@redhat.com>
15103 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15104 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15105 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15106 then define __v850e1__.
15107 * doc/invoke.texi: Document -mv850es.
15109 2011-01-24 Richard Henderson <rth@redhat.com>
15111 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15112 compound unordered comparisons.
15113 * config/rx/rx.c (rx_split_fp_compare): Remove.
15114 * config/rx/rx-protos.h: Update.
15115 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15116 (cbranchsf4): Don't call rx_split_fp_compare.
15117 (*cbranchsf4): Use rx_split_cbranch.
15118 (*cmpsf): Don't accept "i" constraint.
15119 (*conditional_branch): Only valid after reload.
15120 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15122 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15125 * config/rs6000/altivec.md (vector constant splitters): Add
15126 support for creating vector single precision constants if -mvsx is
15127 used and we would create the constant using Altivec primitives.
15129 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15130 Richard Sandiford <rdsandiford@googlemail.com>
15132 PR rtl-optimization/47166
15133 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15134 mechanism for PRE_MODIFY and POST_MODIFY.
15135 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15138 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15140 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15142 2011-01-22 Jan Hubicka <jh@suse.cz>
15145 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15147 2011-01-22 Jan Hubicka <jh@suse.cz>
15149 PR tree-optimization/43884
15151 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15152 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15154 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15156 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15157 * config/s390/s390.c (s390_register_move_cost,
15158 s390_memory_move_cost): New.
15159 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15161 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15163 PR middle-end/47401
15164 * except.c (sjlj_assign_call_site_values): Move setting the
15165 crtl->uses_eh_lsda flag to ...
15166 (sjlj_mark_call_sites): ... here.
15167 (sjlj_emit_function_enter): Support NULL dispatch label.
15168 (sjlj_build_landing_pads): In a function with no landing pads
15169 that still has must-not-throw regions, generate code to register
15170 a personality function with empty LSDA.
15172 2011-01-21 Richard Henderson <rth@redhat.com>
15174 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15176 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15178 * compare-elim.c: New file.
15179 * Makefile.in (OBJS-common): Add it.
15180 (compare-elim.o): New.
15181 * common.opt (fcompare-elim): New.
15182 * opts.c (default_options_table): Add OPT_fcompare_elim.
15183 * tree-pass.h (pass_compare_elim_after_reload): New.
15184 * passes.c (init_optimization_passes): Add it.
15185 * recog.h: Protect against re-inclusion.
15186 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15187 * doc/invoke.texi (-fcompare-elim): Document it.
15188 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15189 * doc/tm.texi: Rebuild.
15191 2011-01-22 Nick Clifton <nickc@redhat.com>
15193 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15194 rx_split_fp_compare.
15196 2011-01-22 Nick Clifton <nickc@redhat.com>
15198 * config/rx/rx.md (UNSPEC_CONST): New.
15199 (deallocate_and_return): Wrap the amount popped off the stack in
15200 an UNSPEC_CONST in order to stop it being rejected by
15201 -mmax-constant-size.
15202 (pop_and_return): Add a "(return)" rtx.
15203 (call): Drop the immediate operand.
15204 (call_internal): Likewise.
15205 (call_value): Likewise.
15206 (call_value_internal): Likewise.
15207 (sibcall_internal): Likewise.
15208 (sibcall_value_internal): Likewise.
15209 (sibcall): Likewise. Generate an explicit call using
15211 (sibcall_value): Likewise.
15212 (mov<>): FAIL if a constant operand is not legitimate.
15213 (addsi3_unpsec): New pattern.
15215 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15216 (ok_for_max_constant): New function.
15217 (gen_safe_add): New function.
15218 (rx_expand_prologue): Use gen_safe_add.
15219 (rx_expand_epilogue): Likewise.
15220 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15223 2011-01-21 Jeff Law <law@redhat.com>
15225 PR tree-optimization/47053
15226 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15227 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15228 statements are deleted.
15229 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15230 is nonempty, then purge dead edges and cleanup the CFG.
15232 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15235 Temporarily revert:
15236 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15238 * tree-dfa.c (create_var_ann): Mark variable as used.
15240 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15242 PR middle-end/45566
15243 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15244 notes from other section in hot/cold partitioning even if
15245 last_action is -3. Increment call_site_base.
15247 PR rtl-optimization/47366
15248 * fwprop.c (forward_propagate_into): Return bool. If
15249 any changes are made, -fnon-call-exceptions is used and
15250 REG_EH_REGION note is present, call purge_dead_edges
15251 and return true if it purged anything.
15252 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15253 any EH edges were purged.
15255 2011-01-21 Jeff Law <law@redhat.com>
15257 PR rtl-optimization/41619
15258 * caller-save.c (setup_save_areas): Break out code to determine
15259 which hard regs are live across calls by examining the reload chains
15260 so that it is always used.
15261 Eliminate code which checked REG_N_CALLS_CROSSED.
15263 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15265 PR tree-optimization/47355
15266 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15267 NOP has non-debug uses beyond PHIs in new_bb.
15269 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15272 * cfgexpand.c (account_used_vars_for_block): Only account vars
15273 that are annotated as used.
15274 (estimated_stack_frame_size): Don't set TREE_USED.
15275 * tree-dfa.c (create_var_ann): Mark variable as used.
15277 2011-01-21 Richard Guenther <rguenther@suse.de>
15279 PR middle-end/47395
15280 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15282 2011-01-21 Richard Guenther <rguenther@suse.de>
15284 PR tree-optimization/47365
15285 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15286 (vn_reference_lookup_pieces): Adjust.
15287 (vn_reference_lookup): Likewise.
15288 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15289 (vn_reference_lookup_3): Only look through kills if in
15290 VN_WALKREWRITE mode.
15291 (vn_reference_lookup_pieces): Adjust.
15292 (vn_reference_lookup): Likewise.
15293 (visit_reference_op_load): Likewise.
15294 (visit_reference_op_store): Likewise.
15295 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15296 (compute_avail): Likewise.
15297 (eliminate): Likewise.
15299 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15301 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15302 DECL_IGNORED_P non-reg vars if they are used.
15304 PR tree-optimization/47391
15305 * varpool.c (const_value_known_p): Return false if
15308 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15311 * config/i386/i386.c (ix86_local_alignment): Handle
15312 case for va_list_type_node is nil.
15313 (ix86_canonical_va_list_type): Likewise.
15315 2011-01-21 Alan Modra <amodra@gmail.com>
15317 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15318 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15320 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15322 * config/arm/arm.md (define_attr type): Rename f_load
15323 and f_store to f_fpa_load and f_fpa_store. Update.
15324 (write_conflict): Deal with rename fallout.
15325 (*push_fp_multi): Likewise.
15326 * config/arm/fpa.md (f_load): Use f_fpa_load.
15327 (f_store): Use f_fpa_store.
15328 (*movsf_fpa): Likewise.
15329 (*movdf_fpa): Likewise.
15330 (*movxf_fpa): Likewise.
15331 (*thumb2_movsf_fpa): Likewise.
15332 (*thumb2_movdf_fpa): Likewise.
15333 (*thumb2_movxf_fpa): Likewise.
15334 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15335 f_loadd and f_stored.
15336 (*thumb2_movdi_vfp): Likewise.
15337 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15338 (*thumb2_movsi_vfp): Likewise.
15339 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15340 Use f_loads instead of f_load.
15341 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15343 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15345 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15346 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15347 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15348 (xtensa_mode_dependent_address_p): New function.
15349 (constantpool_address_p): Make static. Change return type to bool.
15350 Change argument type to const_rtx. Use CONST_INT_P predicate.
15352 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15355 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15357 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15360 * cfgexpand.c (expand_debug_expr): Instead of generating
15361 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15364 2011-01-20 Richard Guenther <rguenther@suse.de>
15366 PR middle-end/47370
15367 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15368 the pointer operand of MEM_REFs.
15370 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15372 PR tree-optimization/46130
15373 * ipa-split.c (consider_split): If return_bb contains non-virtual
15374 PHIs other than for retval or if split_function would not adjust it,
15377 2011-01-20 Richard Guenther <rguenther@suse.de>
15379 PR tree-optimization/47167
15380 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15381 Revert previous change, only avoid enumeral type changes.
15383 2011-01-19 Mike Stump <mikestump@comcast.net>
15385 * doc/tm.texi.in (BRANCH_COST): Englishify.
15386 * doc/tm.texi (BRANCH_COST): Likewise.
15388 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15391 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15392 (gen_scheduled_generic_parms_dies): New functions.
15393 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15394 generation for the end of CU compilation.
15395 (dwarf2out_finish): Generate template parameters DIEs here.
15397 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15400 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15401 debug bind stmt on merge edges.
15403 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15407 * function.c (instantiate_expr): Instantiate incoming rtl of
15408 implicit arguments, and recurse on VALUE_EXPRs.
15409 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15410 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15412 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15414 * c-parser.c (c_parser_for_statement): Initialize
15415 collection_expression.
15417 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15419 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15421 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15423 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15424 (LINK_SHLIB_SPEC): Don't use %(link_path).
15425 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15427 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15429 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15430 (NO_SHARED_LIB_SUPPORT): Remove.
15431 (LINK_SHLIB_SPEC): Remove one conditional definition.
15433 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15435 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15437 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15438 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15439 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15440 %{call_shared} and conditionals on these options not being passed.
15441 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15444 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15446 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15449 * ipa-split.c: Spelling fixes.
15451 2011-01-19 Richard Henderson <rth@redhat.com>
15453 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15454 (*mulsi3): Likewise.
15456 * longlong.h [__mn10300__] (count_leading_zeros): New.
15457 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15458 [__mn10300__] (add_ssaaaa, subddmmss): New.
15459 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15460 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15462 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15464 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15466 2011-01-19 Richard Henderson <rth@redhat.com>
15468 * config/mn10300/mn10300.md (addsi3_flags): New.
15469 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15470 (subsi3_flags, subc_internal, subdi3): New.
15471 (subdi3_internal, *subdi3_degenerate): New.
15472 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15474 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15475 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15476 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15477 * config/mn10300/mn10300-protos.h: Update.
15478 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15479 (return_ret): Likewise. Rename from return_internal_regs.
15480 (return_internal): Remove.
15482 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15483 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15484 (mn10300_legitimate_constant_p): Likewise.
15485 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15486 (mn10300_frame_size): New.
15487 (mn10300_expand_prologue): Use it.
15488 (mn10300_expand_epilogue): Likewise.
15489 (mn10300_initial_offset): Likewise.
15490 * config/mn10300/mn10300-protos.h: Update.
15491 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15492 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15493 (prologue, epilogue, return_internal): Tidy output code.
15494 (mn10300_store_multiple_operation, return): Likewise.
15495 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15496 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15497 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15498 (load_pic, am33_load_pic): New.
15499 (mn10300_load_pic0, mn10300_load_pic1): New.
15501 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15502 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15503 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15504 (cc_flags_for_mode, cc_flags_for_code): New.
15505 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15506 overflow flag is not valid. Validate that the flags we need
15507 for the comparison are valid.
15508 (mn10300_output_cmp): Remove.
15509 (mn10300_output_add): New.
15510 (mn10300_select_cc_mode): Use cc_flags_for_code.
15511 (mn10300_split_cbranch): New.
15512 (mn10300_match_ccmode): New.
15513 (mn10300_split_and_operand_count): New.
15514 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15516 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15517 (addsi3): ... here. Use mn10300_output_add.
15518 (*addsi3_flags): New.
15519 (*am33_subsi3, *mn10300_subsi3): Merge...
15520 (subsi3): ... here. Use attribute isa.
15521 (*subsi3_flags): New.
15522 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15524 (*am33_andsi3, *mn10300_andsi3): Merge...
15525 (andsi3): ... here.
15526 (*andsi3_flags): New.
15527 (andsi3 splitters): New.
15528 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15529 (iorsi3): ... here.
15530 (*iorsi3_flags): New.
15531 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15532 (xorsi3): ... here.
15533 (*xorsi3_flags): New.
15534 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15535 (one_cmplsi2): ... here.
15536 (*one_cmplsi2_flags): New.
15537 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15538 instead of "dax" in constraints. Use mn10300_split_cbranch.
15539 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15540 use matching constraints to eliminate a self-comparison.
15541 (*integer_conditional_branch): Rename from integer_conditional_branch.
15542 Use int_mode_flags to match CC_REG.
15543 (*cbranchsi4_btst, *btstsi): New.
15544 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15545 mn10300_split_cbranch.
15546 (*am33_cmpsf): Rename from am33_cmpsf.
15547 (*float_conditional_branch): Rename from float_conditional_branch.
15548 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15549 (zero_extendqisi2): ... here.
15550 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15551 (zero_extendhisi2): ... here.
15552 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15553 (extendqisi2): ... here.
15554 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15555 (extendhisi2): ... here.
15556 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15557 (ashlsi3): ... here.
15558 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15559 (lshrsi3): ... here.
15560 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15561 (ashrsi3): ... here.
15562 (consecutive add peephole): Remove.
15563 * config/mn10300/predicates.md (label_ref_operand): New.
15564 (int_mode_flags): New.
15565 (CCZN_comparison_operator): New.
15567 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15568 (throughput_42_latency_43): New reservation.
15569 (mulsidi3, umulsidi3): New expanders.
15570 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15571 the MDR register to allocation; separately allocate the low and
15572 high parts of the DImode result.
15573 (umulsidi3_internal): Similarly.
15574 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15575 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15576 (udivsi3, umodsi3): Remove.
15577 (udivmodsi4, divmodsi4): New expanders.
15578 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15579 (*divmodsi4): Simiarly.
15580 (ext_internal): New.
15582 * config/mn10300/constraints.md ("z"): New constraint.
15583 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15584 (FIXED_REGISTERS): Don't fix MDR.
15585 (CALL_USED_REGSITERS): Reformat nicely.
15586 (REG_ALLOC_ORDER): Add MDR.
15587 (enum regclass): Add MDR_REGS.
15588 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15589 (IRA_COVER_CLASSES): Add MDR_REGS.
15590 (REGNO_REG_CLASS): Handle MDR_REG.
15591 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15592 (mn10300_register_move_cost): Likewise.
15593 * config/mn10300/mn10300.md (MDR_REG): New.
15594 (*movsi_internal): Handle moves to/from MDR_REGS.
15596 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15598 (mn10300_secondary_reload): Tidy combination reload classes.
15599 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15600 addresses for AM33. Allow symbolic offsets for reg+imm.
15601 (mn10300_regno_in_class_p): New.
15602 (mn10300_legitimize_reload_address): New.
15603 * config/mn10300/mn10300.h (enum reg_class): Remove
15604 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15605 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15606 SP_OR_GENERAL_REGS.
15607 (REG_CLASS_NAMES): Update to match.
15608 (REG_CLASS_CONTENTS): Likewise.
15609 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15610 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15611 (REGNO_IN_RANGE_P): Remove.
15612 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15613 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15614 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15615 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15616 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15617 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15618 (REGNO_GENERAL_P): New.
15619 (HAVE_POST_MODIFY_DISP): New.
15620 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15621 (LEGITIMIZE_RELOAD_ADDRESS): New.
15622 * config/mn10300/mn10300-protos.h: Update.
15624 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15625 DATA_REGS for AM33 stack-pointer destination.
15626 (mn10300_preferred_output_reload_class): Likewise.
15627 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15628 into a form appropriate for ...
15629 (TARGET_SECONDARY_RELOAD): New.
15630 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15631 * config/mn10300/mn10300-protos.h: Update.
15632 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15633 reload_insi; use the "A" constraint for the scratch; handle AM33
15634 moves of sp to non-address registers.
15636 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15637 (*movqi_internal): ... here.
15638 (*am33_movhi, *mn10300_movhi): Merge into...
15639 (*movhi_internal): ... here.
15640 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15641 as the source/destination of moves from/to SP.
15642 (movsf): Only allow for AM33-2.
15643 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15644 any integer constant constraint. Only allow for AM33-2. Tidy
15645 all of the alternative outputs.
15646 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15647 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15649 (udivsi3, umodsi3): New patterns for MN103 only.
15651 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15653 * doc/tm.texi.in: Spell out that a lack of register class unions
15655 * doc/tm.texi: Regenerate.
15657 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15659 PR rtl-optimization/47337
15660 * dce.c (check_argument_store): New function.
15661 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15663 PR tree-optimization/47290
15664 * tree-eh.c (infinite_empty_loop_p): New function.
15665 (cleanup_empty_eh): Use it.
15667 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15670 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15671 (a64_expand_widen_sum): Ditto.
15672 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15673 (vec_extract_evenodd_help): Ditto.
15674 (vec_extract_evenv4hi): Ditto.
15675 (vec_extract_oddv4hi): Ditto.
15676 (vec_extract_evenv2si): Ditto.
15677 (vec_extract_oddv2si): Ditto.
15678 (vec_extract_evenv2sf): Ditto.
15679 (vec_extract_oddv2sf): Ditto.
15680 (vec_pack_trunc_v4hi: Ditto.
15681 (vec_pack_trunc_v2si): Ditto.
15682 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15683 (vec_interleave_highv8qi): Ditto.
15685 (vec_extract_oddv8qi): Ditto.
15686 (vec_interleave_lowv4hi): Ditto.
15687 (vec_interleave_highv4hi): Ditto.
15688 (vec_interleave_lowv2si): Ditto.
15689 (vec_interleave_highv2si): Ditto.
15691 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15693 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15694 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15695 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15696 (pa_c_mode_for_suffix): New.
15697 (TARGET_EXPAND_BUILTIN): Define.
15698 (TARGET_C_MODE_FOR_SUFFIX): Define.
15699 (pa_builtins): Define.
15700 (pa_init_builtins): Register __float128 type and init new support
15702 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15703 * config/pa/quadlib.c (_U_Qfcopysign): New.
15705 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15707 PR middle-end/46894
15708 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15709 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15712 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15714 PR tree-optimization/47179
15715 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15716 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15718 2011-01-18 Richard Guenther <rguenther@suse.de>
15720 PR rtl-optimization/47216
15721 * emit-rtl.c: Include tree-flow.h.
15722 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15723 of replicating it with different semantics.
15724 * Makefile.in (emit-rtl.o): Adjust.
15726 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15728 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15729 (cortex_a9_dp): Handle neon types correctly.
15731 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15733 PR rtl-optimization/47299
15734 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15735 subtarget. Use normal multiplication if both operands are constants.
15736 * expmed.c (expand_widening_mult): Don't try to optimize constant
15737 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15740 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15742 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15743 spacing after 'e.g.', typos, comma, hyphenation.
15745 2011-01-17 Richard Henderson <rth@redhat.com>
15747 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15748 (rx_restricted_mem_operand): New.
15749 (rx_shift_operand): Use register_operand.
15750 (rx_source_operand, rx_compare_operand): Likewise.
15751 * config/rx/rx.md (addsi3_flags): New expander.
15752 (adddi3): Rewrite as expander.
15753 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15754 (subsi3_flags): New expander.
15755 (subdi3): Rewrite as expander.
15756 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15758 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15759 (rx_init_builtins): Remove sat builtin.
15760 (rx_expand_builtin): Likewise.
15761 * config/rx/rx.md (ssaddsi3): New.
15762 (*sat): Rename from sat. Represent the CC_REG input.
15764 * config/rx/predicates.md (rshift_operator): New.
15765 * config/rx/rx.c (rx_expand_insv): Remove.
15766 * config/rx/rx-protos.h: Update.
15767 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15768 operand to the canonical position.
15769 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15770 (*bitclr, *bitclr_in_memory): Similarly.
15771 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15772 (insv): Retain the zero_extract in the expansion.
15774 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15775 (bswaphi2, bitinvert, revw): Likewise.
15777 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15778 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15779 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15780 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15781 (bitset, bitset_in_memory): Likewise.
15782 (bitinvert, bitinvert_in_memory): Likewise.
15783 (bitclr, bitclr_in_memory): Likewise.
15784 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15785 (rx_strend, rx_cmpstrn): Likewise.
15786 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15787 (bitop peep2 patterns): Remove.
15789 * config/rx/rx.c (rx_match_ccmode): New.
15790 * config/rx/rx-protos.h: Update.
15791 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15792 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15793 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15794 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15795 (fix_truncsfsi2, floatsisf2): Likewise.
15796 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15797 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15798 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15799 (*subsi3_flags, *xorsi3_flags): New.
15801 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15803 * config/rx/rx.c (rx_print_operand): Remove workaround for
15804 unsplit comparison operations.
15806 * config/rx/rx.md (movsicc): Split after reload.
15807 (*movsicc): Merge *movsieq and *movsine via match_operator.
15808 (*stcc): New pattern.
15810 * config/rx/rx.c (rx_float_compare_mode): Remove.
15811 * config/rx/rx.h (rx_float_compare_mode): Remove.
15812 * config/rx/rx.md (cstoresi4): Split after reload.
15813 (*sccc): New pattern.
15815 * config/rx/predicates.md (label_ref_operand): New.
15816 (rx_z_comparison_operator): New.
15817 (rx_zs_comparison_operator): New.
15818 (rx_fp_comparison_operator): New.
15819 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15820 Validate that the flags are set properly for the comparison.
15821 (rx_gen_cond_branch_template): Remove.
15822 (rx_cc_modes_compatible): Remove.
15823 (mode_from_flags): New.
15824 (flags_from_code): Rename from flags_needed_for_conditional.
15825 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15826 (rx_select_cc_mode): Likewise.
15827 (rx_split_fp_compare): New.
15828 (rx_split_cbranch): New.
15829 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15830 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15831 (*cbranchsf4): Similarly.
15832 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15833 match_operator and rx_split_cbranch.
15834 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15835 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15836 (*cmpsi): Rename from cmpsi.
15837 (*tstsi): Rename from tstsi.
15838 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15839 (*conditional_branch): Rename from conditional_branch.
15840 (*reveresed_conditional_branch): Remove.
15841 (b<code>): Remove expander.
15842 * config/rx/rx-protos.h: Update.
15844 * config/rx/rx.c (rx_compare_redundant): Remove.
15845 * config/rx/rx.md (cmpsi): Don't use it.
15846 * config/rx/rx-protos.h: Update.
15848 * config/rx/rx-modes.def (CC_F): New mode.
15849 * config/rx/rx.c (rx_select_cc_mode): New.
15850 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15851 * config/rx/rx-protos.h: Update.
15853 2011-01-17 Richard Henderson <rth@redhat.com>
15855 * except.c (dump_eh_tree): Fix stray ; after for statement.
15857 2011-01-17 Richard Guenther <rguenther@suse.de>
15859 PR tree-optimization/47313
15860 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15861 handling before copying the body. Properly deal with
15862 by-reference result in SSA form.
15864 2011-01-17 Ian Lance Taylor <iant@google.com>
15867 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15868 (struct_value_alias_set): Don't define.
15869 (sparc_option_override): Don't set sparc_sr_alias_set and
15870 struct_value_alias_set.
15871 (save_or_restore_regs): Use gen_frame_mem rather than calling
15873 (sparc_struct_value_rtx): Likewise.
15875 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15878 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15879 (_mm_maskstore_pd): Likewise.
15880 (_mm_maskload_ps): Likewise.
15881 (_mm_maskstore_ps): Likewise.
15882 (_mm256_maskload_pd): Change mask to __m256i.
15883 (_mm256_maskstore_pd): Likewise.
15884 (_mm256_maskload_ps): Likewise.
15885 (_mm256_maskstore_ps): Likewise.
15887 * config/i386/i386-builtin-types.def: Updated.
15888 (ix86_expand_special_args_builtin): Likewise.
15890 * config/i386/i386.c (bdesc_special_args): Update
15891 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15892 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15893 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15894 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15896 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15897 Use <avxpermvecmode> on mask register.
15898 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15900 2011-01-17 Olivier Hainque <hainque@adacore.com>
15901 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15902 Eric Botcazou <ebotcazou@adacore.com>
15905 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15906 if <= USHRT_MAX in 32-bit mode.
15908 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15910 * doc/install.texi (Configuration, Specific): Wrap long
15911 lines in examples. Allow line wrapping in long options
15912 and URLs where beneficial for PDF output.
15914 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15916 * config/mips/mips.c (mips_classify_symbol): Don't return
15917 SYMBOL_PC_RELATIVE for nonlocal labels.
15919 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15921 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15923 2011-01-15 Jan Hubicka <jh@suse.cz>
15925 PR tree-optimization/47276
15926 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15927 declarations as needed.
15929 2011-01-15 Martin Jambor <mjambor@suse.cz>
15931 * common.opt (fdevirtualize): New flag.
15932 * doc/invoke.texi (Option Summary): Document it.
15933 * opts.c (default_options_table): Add devirtualize flag.
15934 * ipa-prop.c (detect_type_change): Return immediately if
15935 devirtualize flag is not set.
15936 (detect_type_change_ssa): Likewise.
15937 (compute_known_type_jump_func): Likewise.
15938 (ipa_analyze_virtual_call_uses): Likewise.
15940 2011-01-14 Martin Jambor <mjambor@suse.cz>
15942 PR tree-optimization/45934
15943 PR tree-optimization/46302
15944 * ipa-prop.c (type_change_info): New type.
15945 (stmt_may_be_vtbl_ptr_store): New function.
15946 (check_stmt_for_type_change): Likewise.
15947 (detect_type_change): Likewise.
15948 (detect_type_change_ssa): Likewise.
15949 (compute_complex_assign_jump_func): Check for dynamic type change.
15950 (compute_complex_ancestor_jump_func): Likewise.
15951 (compute_known_type_jump_func): Likewise.
15952 (compute_scalar_jump_functions): Likewise.
15953 (ipa_analyze_virtual_call_uses): Likewise.
15954 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15956 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15958 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15959 * config/i386/i386.opt (msse5): New Alias.
15961 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15963 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15964 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15965 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15966 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15968 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15970 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15972 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15973 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15974 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15975 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15977 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15979 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15981 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15983 2011-01-14 Mike Stump <mikestump@comcast.net>
15985 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15986 * config/fr30/fr30.md: Likweise
15987 (movsi_push): Likewise.
15988 (movsi_pop): Likewise.
15989 (enter_func): Likewise.
15990 * config/moxie/moxie.md (movsi_push): Likewise.
15991 (movsi_pop): Likewise.
15993 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15995 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15996 %{no_archive} %{exact_version}.
15997 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15998 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15999 %{no_archive} %{exact_version}.
16000 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16001 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16002 * config/mips/vxworks.h: Likewise.
16004 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16006 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16008 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16010 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16011 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16013 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16015 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16018 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16020 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16022 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16023 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16025 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16026 Don't handle -shlib.
16028 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16030 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16031 (CC1_SPEC): Don't handle -profile.
16033 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16035 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16036 * config/mips/mips.h (CC1_SPEC): Likewise.
16038 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16040 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16041 * config/mips/mips.h (CC1_SPEC): Likewise.
16043 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16045 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16046 * config/m32r/linux.h (LINK_SPEC): Likewise.
16047 * config/mips/linux.h (LINK_SPEC): Likewise.
16048 * config/mips/linux64.h (LINK_SPEC): Likewise.
16049 * config/sparc/linux.h (LINK_SPEC): Likewise.
16050 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16051 LINK_SPEC): Likewise.
16052 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16054 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16056 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16058 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16060 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16062 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16063 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16065 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16067 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16069 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16071 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16072 supports -Bstatic/-Bdynamic.
16073 * configure: Regenerate.
16075 2011-01-14 Jan Hubicka <jh@suse.cz>
16076 Jack Howarth <howarth@bromo.med.uc.edu>
16079 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16080 when checking debug_info_level. Test write_symbols instead of
16081 debug_hooks->var_location when setting flag_var_tracking_uninit.
16083 2011-01-14 Richard Guenther <rguenther@suse.de>
16085 PR tree-optimization/47179
16086 * target.def (ref_may_alias_errno): New target hook.
16087 * targhooks.h (default_ref_may_alias_errno): Declare.
16088 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16089 (default_ref_may_alias_errno): New function.
16090 * target.h (struct ao_ref_s): Declare.
16091 * tree-ssa-alias.c: Include target.h.
16092 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16093 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16094 (targhooks.o): Likewise.
16095 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16096 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16098 2011-01-14 Richard Guenther <rguenther@suse.de>
16100 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16102 2011-01-14 Richard Guenther <rguenther@suse.de>
16104 PR tree-optimization/47280
16105 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16106 return CFG changes.
16107 (tree_ssa_forward_propagate_single_use_vars): Deal with
16108 CFG changes from associate_plusminus.
16110 2011-01-14 Richard Guenther <rguenther@suse.de>
16112 PR middle-end/47281
16114 2011-01-11 Richard Guenther <rguenther@suse.de>
16116 PR tree-optimization/46076
16117 * tree-ssa.c (useless_type_conversion_p): Conversions from
16118 unprototyped to empty argument list function types are useless.
16120 2011-01-14 Richard Guenther <rguenther@suse.de>
16122 PR tree-optimization/47286
16123 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16125 2011-01-14 Martin Jambor <mjambor@suse.cz>
16127 PR middle-end/46823
16128 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16130 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16132 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16133 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16134 * config/xtensa/xtensa.c (xtensa_libcall_value,
16135 xtensa_function_value_regno_p): New functions.
16136 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16138 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16141 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16143 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16144 New function prototype.
16145 * config/i386/winnt.c (i386_pe_assemble_visibility):
16146 Warn only if attribute was specified by user.
16148 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16151 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16153 (floatunsdidf2_fcfidu): Ditto.
16155 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16157 * config/s390/s390.c (print_operand_address): Replace 'error' with
16158 'output_operand_lossage'.
16159 (print_operand): Likewise.
16161 2011-01-13 Jeff Law <law@redhat.com>
16163 PR rtl-optimization/39077
16164 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16165 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16166 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16167 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16168 * gcse.c (prune_insertions_deletions): New function.
16169 (compute_pre_data): Use it.
16171 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16174 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16176 (prune_unused_types_mark): Use it.
16178 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16180 PR rtl-optimization/45352
16181 * sel-sched.c: Update copyright years.
16182 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16183 in the advancing loop when we have issued issue_rate insns.
16185 2011-01-12 Richard Henderson <rth@redhat.com>
16187 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16188 (TARGET_MD_ASM_CLOBBERS): New.
16190 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16191 (TARGET_DELEGITIMIZE_ADDRESS): New.
16193 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16194 (clzsi2, *bsch): New patterns.
16196 * config/mn10300/mn10300.md (INT): New mode iterator.
16197 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16199 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16200 flag_split_wide_types.
16202 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16203 (mn10300_trampoline_init): Rewrite without a template, an immediate
16204 load and a direct branch.
16205 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16207 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16209 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16210 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16211 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16212 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16214 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16217 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16220 2011-01-12 Jan Hubicka <jh@suse.cz>
16223 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16224 (PLUGIN_COND_CLOSE): New macro.
16225 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16227 2011-01-12 Richard Guenther <rguenther@suse.de>
16230 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16231 register variables in a MEM_REF.
16233 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16235 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16236 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16237 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16238 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16239 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16240 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16241 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16242 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16243 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16244 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16245 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16246 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16247 * config/gnu-user.h: New. Copied from linux.h.
16248 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16249 GNU_USER_TARGET_STARTFILE_SPEC.
16250 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16251 GNU_USER_TARGET_ENDFILE_SPEC.
16252 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16253 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16254 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16255 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16256 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16257 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16258 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16259 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16260 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16261 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16262 * config/arm/linux-eabi.h (CC1_SPEC): Use
16263 GNU_USER_TARGET_CC1_SPEC.
16264 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16265 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16266 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16267 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16268 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16269 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16270 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16271 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16273 2011-01-12 Richard Guenther <rguenther@suse.de>
16276 * doc/invoke.texi (ffast-math): Document it is turned on
16279 2011-01-12 Jan Hubicka <jh@suse.cz>
16281 PR tree-optimization/47233
16282 * opts.c (common_handle_option): Disable ipa-reference with profile
16285 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16287 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16290 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16292 * c-parser.c (c_lex_one_token): Updated and reindented some
16293 comments. No changes in code.
16295 2011-01-11 Ian Lance Taylor <iant@google.com>
16297 * godump.c (go_output_var): Don't output the variable if there is
16298 already a type with the same name.
16300 2011-01-11 Ian Lance Taylor <iant@google.com>
16302 * godump.c (go_format_type): Don't generate float80.
16304 2011-01-11 Richard Henderson <rth@redhat.com>
16306 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16307 declaration. Rewrite for both speed and size.
16308 (mn10300_address_cost_1): Remove.
16309 (mn10300_register_move_cost): New.
16310 (mn10300_memory_move_cost): New.
16311 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16312 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16313 extensions, shifts, BSWAP, CLZ.
16314 (mn10300_wide_const_load_uses_clr): Remove.
16315 (TARGET_REGISTER_MOVE_COST): New.
16316 (TARGET_MEMORY_MOVE_COST): New.
16317 * config/mn10300/mn10300-protos.h: Update.
16318 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16320 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16321 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16322 * config/mn10300/mn10300-protos.h: Update.
16323 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16324 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16325 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16326 (*test_int_bitfield, *test_byte_bitfield): Remove.
16327 (*bit_test, *subreg_bit_test): Remove.
16328 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16330 * config/mn10300/constraints.md ("c"): Rename from "A".
16331 ("A", "D"): New constraint letters.
16332 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16333 (fmssf4, fnmasf4, fnmssf4): Likewise.
16335 * config/mn10300/mn10300.md (isa): New attribute.
16336 (enabled): New attribute.
16338 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16339 (abssf2, negsf2): Define only for hardware fp.
16340 (sqrtsf2): Reformat.
16341 (addsf3, subsf3, mulsf3): Merge expander and insn.
16343 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16344 (DEBUGGER_AUTO_OFFSET): Remove.
16345 (DEBUGGER_ARG_OFFSET): Remove.
16347 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16348 Emit register stores with the same offsets as the hardware.
16349 (mn10300_store_multiple_operation): Don't check that the register
16350 save offsets are monotonic.
16351 * config/mn10300/mn10300-protos.h: Update.
16353 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16355 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16356 in terms of the value on the stack, not the MDR register.
16358 2011-01-11 Jan Hubicka <jh@suse.cz>
16362 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16363 (symbol_alias_set_destroy, symbol_alias_set_contains,
16364 propagate_aliases_backward): Declare.
16365 * lto-streamer-out.c (struct sets): New sturcture.
16366 (trivally_defined_alias): New function.
16367 (output_alias_pair_p): Rewrite.
16368 (output_unreferenced_globals): Fix output of alias pairs.
16369 (produce_symtab): Likewise.
16370 * ipa.c (function_and_variable_visibility): Set weak alias destination
16372 * varasm.c (symbol_alias_set_t): Remove.
16373 (symbol_alias_set_destroy): Export.
16374 (propagate_aliases_forward, propagate_aliases_backward): New functions
16376 (compute_visible_aliases): ... this one; remove.
16377 (trivially_visible_alias): New
16378 (trivially_defined_alias): New.
16379 (remove_unreachable_alias_pairs): Rewrite.
16380 (finish_aliases_1): Reorganize code checking if alias is defined.
16381 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16384 2011-01-11 Richard Guenther <rguenther@suse.de>
16386 PR tree-optimization/46076
16387 * tree-ssa.c (useless_type_conversion_p): Conversions from
16388 unprototyped to empty argument list function types are useless.
16390 2011-01-11 Richard Guenther <rguenther@suse.de>
16392 PR middle-end/45235
16393 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16394 volatile MEMs as MEM_READONLY_P.
16396 2011-01-11 Richard Guenther <rguenther@suse.de>
16398 PR tree-optimization/47239
16399 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16401 2011-01-11 Jeff Law <law@redhat.com>
16403 PR tree-optimization/47086
16404 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16405 IVs from statements that might throw.
16407 2011-01-10 Jan Hubicka <jh@suse.cz>
16410 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16412 2011-01-10 Jan Hubicka <jh@suse.cz>
16415 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16416 when correcting profile.
16418 2011-01-10 Jan Hubicka <jh@suse.cz>
16421 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16422 DECL_FINI_PRIORITY.
16423 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16424 Restore DECL_FINI_PRIORITY.
16426 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16428 * doc/gimple.texi: Fix quoting of multi-word return values in
16429 @deftypefn statements. Ensure presence of return value. Wrap
16430 overlong @deftypefn lines.
16431 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16432 descriptions of removed functions.
16433 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16434 of multi-word return value in @deftypefn statement.
16436 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16438 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16439 (Conditional Expressions, Logical Operators)
16440 (Statement and operand traversals): Do not indent smallexample
16441 code. Fix duplicate function argument in example.
16443 2011-01-10 Jeff Law <law@redhat.com>
16445 PR tree-optimization/47141
16446 * ipa-split.c (split_function): Handle case where we are
16447 returning a value and the return block has a virtual operand phi.
16449 2011-01-10 Jan Hubicka <jh@suse.cz>
16451 PR tree-optimization/47234
16452 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16453 (pass_feedback_split_functions): Declare.
16454 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16456 * ipa-split.c (gate_split_functions): Update comments; disable
16457 split-functions for profile_arc_flag and branch_probabilities.
16458 (gate_feedback_split_functions): New function.
16459 (execute_feedback_split_functions): New function.
16460 (pass_feedback_split_functions): New global var.
16462 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16465 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16466 calling gimple_call_set_cannot_inline.
16468 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16470 * config/darwin-sections.def: Remove unused section.
16472 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16475 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16477 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16480 * c-parser.c (c_parser_declaration_or_fndef): Improved
16483 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16485 * config/i386/winnt.c (i386_pe_start_function): Make sure
16486 to switch back to function's section.
16488 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16492 * plugin.c: Move include of dlfcn.h from here...
16493 * system.h: ... to here.
16495 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16497 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16499 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16500 two extra empty pages in PDF output.
16502 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16505 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16506 for error recovery purposes behave as if it was not specified so
16507 that the default type is usd.
16509 2011-01-07 Jan Hubicka <jh@suse.cz>
16511 PR tree-optmization/46469
16512 * ipa.c (function_and_variable_visibility): Clear needed flags on
16513 nodes with external decls; handle weakrefs merging correctly.
16515 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16517 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16520 2011-01-07 Jan Hubicka <jh@suse.cz>
16522 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16523 and no longer claim that gold is required for linker plugin.
16524 * configure: Regenerate.
16525 * gcc.c (PLUGIN_COND): New macro.
16526 (LINK_COMMAND_SPEC): Use it.
16527 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16528 * config.in (HAVE_LTO_PLUGIN): New.
16529 * configure.ac (--with-lto-plugin): New parameter; autodetect
16532 2011-01-07 Jan Hubicka <jh@suse.cz>
16534 PR tree-optimization/46367
16535 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16536 when we can update original.
16537 (cgraph_mark_inline_edge): Sanity check.
16538 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16540 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16542 * config/spu/spu.h (ASM_COMMENT_START): Define.
16544 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16547 * gcc.c (%>S): New.
16548 (SWITCH_KEEP_FOR_GCC): Likewise.
16549 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16550 (do_spec_1): Handle "%>".
16552 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16554 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16557 * config/i386/i386.c (ix86_delegitimize_address): If
16558 simplify_gen_subreg fails, return orig_x.
16561 * value-prof.c (gimple_stringop_fixed_value): Handle
16562 lhs of the call properly.
16564 2011-01-07 Jan Hubicka <jh@suse.cz>
16567 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16569 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16571 * target.def (function_switched_text_sections): New hook.
16572 * doc/tm.texi: Regenerated.
16573 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16574 * final.c (default_function_switched_text_sections): New.
16575 (final_scan_insn): Call function_switched_text_sections when a
16576 mid-function section change occurs.
16577 * output.h (default_function_switched_text_sections): Declare.
16578 * config/darwin-protos.h (darwin_function_switched_text_sections):
16580 * config/darwin.c (darwin_function_switched_text_sections): New.
16581 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16583 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16585 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16586 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16587 the secondary code fragment when outputting for DWARF == 2.
16589 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16591 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16592 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16594 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16595 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16597 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16600 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16601 when it is not empty.
16603 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16606 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16607 (case ${target}): Add btver1.
16608 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16609 -march=native recognize btver1 processors.
16610 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16611 btver1 def_and_undef
16612 * config/i386/i386.c (struct processor_costs btver1_cost): New
16614 (m_BTVER1): New definition.
16615 (m_AMD_MULTIPLE): Includes m_BTVER1.
16616 (initial_ix86_tune_features): Add btver1 tune.
16617 (processor_target_table): Add btver1 entry.
16618 (static const char *const cpu_names): Add btver1 entry.
16619 (software_prefetching_beneficial_p): Add btver1.
16620 (ix86_option_override_internal): Add btver1 instruction sets.
16621 (ix86_issue_rate): Add btver1.
16622 (ix86_adjust_cost): Add btver1.
16623 * config/i386/i386.h (TARGET_BTVER1): New definition.
16624 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16625 (enum processor_type): Add PROCESSOR_BTVER1.
16626 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16628 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16631 * config/i386/i386.c (legitimize_tls_address)
16632 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16633 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16634 (tls_initial_exec_64_sun): New pattern.
16636 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16638 * doc/invoke.texi (Overall Options): Improve wording and markup
16639 of the description of -wrapper.
16641 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16643 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16644 rdynamic, threads): New Driver options.
16646 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16649 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16650 if coming from .tdata.
16651 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16653 2011-01-06 Jan Hubicka <jh@suse.cz>
16656 * collect2.c (main): Do not enable LTOmode when plugin is active.
16658 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16661 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16662 --version output if supported.
16663 * configure: Regenerate.
16665 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16667 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16670 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16673 * c-convert.c (convert): When converting a complex expression
16674 other than COMPLEX_EXPR to a different complex type, ensure
16675 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16676 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16677 when converting COMPLEX_TYPE.
16679 2011-01-06 Ira Rosen <irar@il.ibm.com>
16681 PR tree-optimization/47139
16682 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16683 only the last reduction value is used outside the loop. Update
16686 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16688 * config/rtems.opt: New.
16689 * config.gcc (*-*-rtems*): Use rtems.opt.
16691 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16693 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16694 processors do not support 3DNow instructions.
16696 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16698 * config/spu/spu.c (spu_option_override): Set parameter
16699 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16701 2011-01-05 Jan Hubicka <jh@suse.cz>
16703 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16704 at the command line.
16706 2011-01-05 Martin Jambor <mjambor@suse.cz>
16709 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16710 deltas on streamed outgoing edges.
16711 (output_node_opt_summary): Output info for outgoing edges only when
16712 the node is in new parameter set.
16713 (output_cgraph_opt_summary): New parameter set, passed to the two
16714 aforementioned functions. Update its forward declaration and its
16717 2011-01-05 Tom Tromey <tromey@redhat.com>
16719 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16720 operator to c_finish_omp_atomic.
16721 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16722 (build_unary_op): Update.
16723 (build_modify_expr): Update.
16724 (build_asm_expr): Update.
16726 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16728 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16729 newly inserted insns.
16730 (pad_bb): Likewise.
16731 (spu_emit_branch_hint): Likewise.
16732 (insert_hbrp_for_ilb_runout): Likewise.
16733 (spu_machine_dependent_reorg): Call df_finish_pass after
16734 schedule_insns returns.
16736 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16738 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16740 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16742 PR tree-optimization/47005
16743 * tree-sra.c (struct access): Add 'non_addressable' bit.
16744 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16745 (decide_one_param_reduction): Return 0 if the parameter is passed by
16746 reference and one of the accesses in the group is non_addressable.
16748 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16750 PR tree-optimization/47056
16751 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16752 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16753 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16755 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16757 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16758 initializer. Skip view conversions from aggregate types.
16760 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16763 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16765 2011-01-04 Philipp Thomas <pth@suse.de>
16767 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16770 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16772 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16773 on empty epilogue sequences.
16775 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16777 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16778 non-static): New Driver options.
16780 2011-01-04 Jie Zhang <jie@codesourcery.com>
16783 * gcc.c (default_compilers[]): Set combinable field to 0
16784 for all assembly languages.
16786 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16788 * config/mips/loongson3a.md: New file.
16789 * config/mips/mips.md: Include loongson3a.md.
16790 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16793 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16795 PR middle-end/47017
16796 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16797 instead of convert_memory_address_addr_space on the base expression.
16799 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16801 * config/spu/spu.c (spu_option_override): Update error text
16802 for bad -march= / -mtune= values.
16804 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16806 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16807 if branch-hint optimization will be performed.
16809 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16811 PR tree-optimization/47148
16812 * ipa-split.c (split_function): Convert arguments to
16813 DECL_ARG_TYPE if possible.
16815 PR tree-optimization/47155
16816 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16817 when computing uns.
16819 PR rtl-optimization/47157
16820 * combine.c (try_combine): If undobuf.other_insn becomes
16821 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16822 and set *new_direct_jump_p too.
16824 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16826 PR tree-optimization/47021
16827 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16829 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16831 * gcc.c (process_command): Update copyright notice dates.
16832 * gcov.c (print_version): Likewise.
16833 * gcov-dump.c (print_version): Likewise.
16834 * mips-tfile.c (main): Likewise.
16835 * mips-tdump.c (main): Likewise.
16837 2011-01-03 Martin Jambor <mjambor@suse.cz>
16839 PR tree-optimization/46801
16840 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16841 aggregate fields start at byte boundary instead of the bit-field flag.
16843 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16846 * gcc.c (main): Revert revision 168407.
16848 2011-01-03 Martin Jambor <mjambor@suse.cz>
16850 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16852 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16854 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16855 vector optab to expand vector/scalar shift, update gimple to vector.
16857 2011-01-03 Martin Jambor <mjambor@suse.cz>
16859 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16862 2011-01-03 Martin Jambor <mjambor@suse.cz>
16864 PR tree-optimization/46984
16865 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16867 (cgraph_create_indirect_edge): Fixed line length.
16868 (cgraph_indirect_call_info): Declare.
16869 (cgraph_make_edge_direct) Update declaration.
16870 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16871 (cgraph_create_indirect_edge): Use it.
16872 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16874 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16875 the new thunk_delta representation.
16876 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16878 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16879 (ipa_read_indirect_edge_info): Likewise.
16880 * lto-cgraph.c (output_edge_opt_summary): New function.
16881 (output_node_opt_summary): Call it on all outgoing edges.
16882 (input_edge_opt_summary): New function.
16883 (input_node_opt_summary): Call it on all outgoing edges.
16885 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16888 * gcc.c (main): Don't check have_o when settting combine_inputs.
16890 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16892 * regrename.c: Add general comment describing the pass.
16893 (struct du_head): Remove 'length' field.
16894 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16895 (regrename_optimize): Do not sort chains. Rework comments, add others.
16896 Force renaming to the preferred class (if any) in the first pass and do
16897 not consider registers that belong to it in the second pass.
16898 (create_new_chain): Do not set 'length' field.
16899 (scan_rtx_reg): Likewise.
16901 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16903 PR tree-optimization/47140
16904 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16905 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16906 to bit_value_binop.
16908 PR rtl-optimization/47028
16909 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16910 parm_birth_insn instead of at the beginning of first bb.
16912 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16914 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16915 Remove the word "see" before "@pxref".
16916 * doc/rtl.texi: Remove the word "see" before "@pxref".
16918 2011-01-01 Jan Hubicka <jh@suse.cz>
16920 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16923 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16926 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16929 Copyright (C) 2011 Free Software Foundation, Inc.
16931 Copying and distribution of this file, with or without modification,
16932 are permitted in any medium without royalty provided the copyright
16933 notice and this notice are preserved.