1 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
5 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
6 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
7 * config/mips/t-iris: Remove.
8 * config/mips/t-irix6: New file.
9 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13 * Makefile.in (LIB2ADDEHDEP): Remove.
14 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
15 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
16 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
17 * config/t-darwin (LIB2ADDEHDEP): Remove.
18 * config/t-freebsd (LIB2ADDEHDEP): Remove.
19 * config/t-linux (LIB2ADDEHDEP): Remove.
21 2011-06-03 Diego Novillo <dnovillo@google.com>
23 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
24 (lto_register_var_decl_in_symtab): Likewise.
25 (lto_register_function_decl_in_symtab): Likewise.
26 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
27 logic to lto_read_decls.
29 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31 * config/alpha/t-osf5: Remove.
32 * config/alpha/t-osf-pthread: Remove.
33 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
34 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
36 2011-06-03 Julian Brown <julian@codesourcery.com>
38 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
39 (strongarm1110): Use strongarm tuning.
40 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped
42 * config/arm/arm.c (arm_strongarm_tune): New.
43 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
44 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
45 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
46 setting, using previous defaults or 1 for Cortex-A5.
47 (arm_option_override): Set max_insns_skipped from current tuning.
49 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
51 * doc/install.texi (Options specification): Document --with-specs.
53 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
55 * config/arm/neon.md (orndi3_neon): Actually split it.
57 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
59 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
60 * var-tracking.c (reverse_op): Limite recurse depth to 5.
62 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
65 * target.def (delay_sched2, delay_vartrack): New.
66 * doc/tm.texi.in: Update.
67 * doc/tm.texi: Rebuild.
68 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
69 * var-tracking.c (gate_handle_var_tracking): Likewise.
70 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
71 (bfin_flag_var_tracking): Drop.
72 (output_file_start): Don't save and override flag_var_tracking.
73 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
74 (bfin_reorg): Test original variables.
75 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
76 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
77 (ia64_flag_var_tracking): Drop.
78 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
79 (ia64_file_start): Don't save and override flag_var_tracking.
80 (ia64_override_options_after_change): Ditto
81 flag_schedule_insns_after_reload.
82 (ia64_reorg): Test original variables.
83 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
84 (picochip_flag_var_tracking): Drop.
85 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
86 (picochip_option_override): Don't save and override
87 flag_schedule_insns_after_reload.
88 (picochip_asm_file_start): Ditto flag_var_tracking.
89 (picochip_reorg): Test original variables.
90 * config/spu/spu.c (spu_flag_var_tracking): Drop.
91 (TARGET_DELAY_VARTRACK): Define.
92 (spu_var_tracking): New.
93 (spu_machine_dependent_reorg): Call it.
94 (asm_file_start): Don't save and override flag_var_tracking.
96 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
99 * config/sh/predicates.md (general_movsrc_operand): Return 0
100 for memory and memory subreg of which address is an invalid
101 indexed address for QI and HImode.
102 (general_movdst_operand): Likewise.
104 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
106 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
107 edges only, when there is a non-local label in the function.
108 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
110 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
112 * config/i386/constraints.md (Y3): New register constraint.
113 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
114 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
115 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
116 *sse2_interleave_lowv2df.
118 2011-06-02 Julian Brown <julian@codesourcery.com>
120 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
121 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
122 (arm_cortex_a5_tune): New.
124 2011-06-02 Julian Brown <julian@codesourcery.com>
126 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
127 * config/arm/arm.c (arm_default_branch_cost): New.
128 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
129 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
130 (arm_fa726_tune): Set branch_cost field using
131 arm_default_branch_cost.
132 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
133 current_tune structure.
134 * dojump.c (tm_p.h): Include file.
136 2011-06-02 Julian Brown <julian@codesourcery.com>
138 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
140 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
141 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
142 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
144 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
145 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
146 (arm_fa726te_tune): Add prefer_constant_pool setting.
147 (arm_v6t2_tune, arm_cortex_tune): New.
148 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
149 prefer_constant_pool setting.
151 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
153 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
155 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
156 (*movdf_internal) <case 6,7,8>: Ditto.
158 * config/i386/constraints.md (Y4): New register constraint.
159 * config/i386/sse.md (vec_set<mode>_0): Merge with
160 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
161 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
162 *vec_extractv2di_1_sse.
163 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
164 and *vec_concatv2di_rex64_sse.
166 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
169 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
170 of cgraph_local_info for null before attempting to use it.
172 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
174 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
175 (current_function_dynamic_alloc_count): Delete.
176 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
177 (expand_builtin_nonlocal_goto): Remove obsolete comment.
178 (expand_builtin_update_setjmp_buf): Remove dead code.
179 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
180 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
182 * function.c (instantiate_virtual_regs): Likewise.
183 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
184 for a block with a single abnormal incoming edge.
185 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
186 (SETJMP_VIA_SAVE_AREA): Delete.
187 * config/sparc/sparc-protos.h (load_got_register): Declare.
188 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
189 (load_got_register): Make global.
190 (sparc_frame_pointer_required): Add 'static'.
191 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
192 (sparc_builtin_setjmp_frame_value): New function.
193 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
194 (save_stack_nonlocal): New expander.
195 (restore_stack_nonlocal): Likewise.
196 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
197 (nonlocal_goto_internal): New insn.
198 (goto_handler_and_restore): Delete.
199 (builtin_setjmp_setup): Likewise.
200 (do_builtin_setjmp_setup): Likewise.
202 (builtin_setjmp_receiver): New expander.
204 2011-06-01 David Li <davidxl@google.com>
207 * tree-pretty-print.c (dump_function_header): Format cleanup.
209 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
212 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
213 needed when original operands are used for msw_skip comparison.
215 2011-06-01 Jakub Jelinek <jakub@redhat.com>
218 * var-tracking.c (add_uses, add_stores): Don't call
219 cselib_subst_to_values on ENTRY_VALUE.
221 2011-06-01 Diego Novillo <dnovillo@google.com>
223 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
224 output_record_start with LTO_null instead of output_zero.
225 (lto_output_ts_binfo_tree_pointers): Likewise.
226 (lto_output_tree): Likewise.
227 (output_eh_try_list): Likewise.
228 (output_eh_region): Likewise.
229 (output_eh_lp): Likewise.
230 (output_eh_regions): Likewise.
231 (output_bb): Likewise.
232 (output_function): Likewise.
233 (output_unreferenced_globals): Likewise.
234 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
235 instead of NUM_TREE_CODES.
236 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
237 (lto_output_int_in_range): Change << to >> when shifting VAL.
239 2011-06-01 Diego Novillo <dnovillo@google.com>
241 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
242 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
244 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
247 * optabs.h (valid_multiword_target_p): Declare.
248 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
249 doing multi-word operations.
250 * optabs.c (expand_binop): Likewise.
251 (expand_doubleword_bswap): Likewise.
252 (expand_absneg_bit): Likewise.
253 (expand_unop): Likewise.
254 (expand_copysign_bit): Likewise.
255 (multiword_target_p): New function.
257 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
259 PR rtl-optimization/48830
260 PR rtl-optimization/48808
261 PR rtl-optimization/48792
262 * reload.c (push_reload): Check contains_reg_of_mode.
263 * reload1.c (strip_paradoxical_subreg): New function.
264 (gen_reload_chain_without_interm_reg_p): Use it to handle
266 (emit_output_reload_insns, gen_reload): Likewise.
268 2011-06-01 David Li <davidxl@google.com>
270 * predict.c : Change pass name
273 * tree-profile.c: Ditto.
276 2011-06-01 David Li <davidxl@google.com>
278 * tree-pretty-print.c (dump_function_header): New function.
279 * final.c (rest_of_clean_state): Use header dumper.
280 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
281 * passes.c (pass_init_dump_file): Use header dumper.
283 2011-06-01 Jakub Jelinek <jakub@redhat.com>
285 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
286 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
287 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
289 (mem_loc_descriptor): Use them.
291 * var-tracking.c (create_entry_value): New function.
292 (vt_add_function_parameter): Use it.
294 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
296 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
297 Include <signal.h>, <ucontext.h>.
298 (sigill_caught): Define.
299 (sigill_hdlr): New function.
300 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
301 insns can be executed.
302 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
303 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
305 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
307 * config/t-slibgcc-darwin: Move to ...
308 * config/t-slibgcc-dummy: ... this. Clarify comments.
309 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
310 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
311 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
312 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
313 Remove i386/t-crtstuff from tmake_file.
314 (i[34567]86-*-solaris2*): Remove t-svr4,
315 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
317 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
318 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
319 sparc/t-crtfm from tmake_file.
320 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
321 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
323 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
324 * config/i386/t-nwld (SHLIB_LINK): Remove.
325 * config/i386/t-rtems-i386: Rename to ...
326 * config/i386/t-rtems: ... this.
327 ($(T)crti.o, $(T)crtn.o): Remove.
328 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
329 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
330 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
331 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
332 EXTRA_MULTILIB_PARTS): Remove.
333 * config/sparc/t-sol2-64: Likewise.
334 * config/sparc/t-sol2: Remove.
335 * config/sparc/t-crtin: Remove.
336 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
337 * config/i386/gmon-sol2.c: Remove.
338 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
339 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
340 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
341 * config/i386/sol2-gc1.asm: Remove.
342 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
343 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
344 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
345 * config/t-slibgcc-sld: Remove.
347 2011-06-01 Jakub Jelinek <jakub@redhat.com>
349 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
350 base_type_for_mode with op_mode instead of mode.
352 2011-06-01 Paul Brook <paul@cpodesourcery.com>
354 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
356 * config/arm/arm-tune.md: Regenerate.
357 * config/arm/arm-tables.opt: Regenerate.
358 * config/arm/arm.c (FL_DIV): Rename...
359 (FL_THUMB_DIV): ... to this.
360 (FL_ARM_DIV): Define.
361 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
362 (arm_arch_hwdiv): Remove.
363 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
364 (arm_issue_rate): Add cortexr5.
365 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
366 __ARM_ARCH_EXT_IDIV__.
367 (TARGET_IDIV): Define.
368 (arm_arch_hwdiv): Remove.
369 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
370 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
371 (divsi3, udivsi3): New patterns.
372 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
373 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
375 2011-06-01 Martin Jambor <mjambor@suse.cz>
377 * ipa-utils.c (ipa_dfs_info): New field scc_no.
378 * ipa-utils.c (searchc): Set scc_no.
380 2011-06-01 Martin Jambor <mjambor@suse.cz>
382 * ipa-utils.c (searchc_env): New field allow_overwritable.
383 (searchc): do not ignore edges to overwritable nodes if indicated
384 by env->allow_overwritable.
385 (ipa_reduced_postorder): Set env.allow_overwritable.
387 2011-06-01 Richard Guenther <rguenther@suse.de>
389 * tree.c (free_lang_data): Do not reset boolean_type_node nor
391 * lto-streamer.c (lto_record_common_node): Take node pointer,
392 do not register types.
393 (lto_preload_common_nodes): Explicitly skip preloading nodes
394 that differ between frontends.
396 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
398 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
401 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
403 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
404 parameter value for dump. Dump cost on outermost call only.
405 (rs6000_memory_move_cost): Dump cost on outermost call only.
407 2011-05-31 Jakub Jelinek <jakub@redhat.com>
409 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
410 DW_OP_GNU_convert ops.
412 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
413 cselib_preserve_constants.
414 (cselib_lookup_1): If cselib_preserve_constants,
415 a new VALUE is being created for REG and there is a VALUE for the
416 same register in wider mode, add another loc with lowpart SUBREG of
418 (cselib_subst_to_values): Handle ENTRY_VALUE.
419 * var-tracking.c (replace_expr_with_values): Return NULL for
421 * dwarf2out.c (convert_descriptor_to_signed): New function.
422 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
423 instead of two shifts.
424 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
425 the right mode if needed.
426 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
427 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
428 convert_descriptor_to_signed.
429 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
430 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
433 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
435 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
437 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
438 of X87MODEI12 and SWI48x instead of SSEMODEI24.
439 (SWI248x): New mode iterator, rename from X87MODEI.
440 (X87MODEI): Remove mode iterator.
444 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
446 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
447 * doc/invoke.texi: Document max-vartrack-expr-depth.
448 * var-tracking.c (EXPR_DEPTH): New.
449 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
451 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
453 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
454 * config/i386/sse.md: Add n to negated FMA pattern names.
456 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
458 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
460 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
462 * gengtype-state.c (read_state_params_structs): Initialize previous.
464 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
466 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
467 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
469 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
471 * config/i386/i386.md (*movtf_internal): Avoid allocating general
472 registers. Penalize F*r->o alternative to prevent partial memory
473 stalls. Slightly penalize *roF->*r alternative. Generate SSE
474 CONST_DOUBLE immediates when optimizing function for size. Do not move
475 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
476 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
477 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
478 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
480 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
482 (fp_register_operand splitters): Use fp_register_operand
483 constraint. Do not use FP_REG_P in insn condition.
484 (any_fp_register_operand splitters): Use any_fp_register_operand
485 constraint. Do not use ANY_FP_REG_P in insn condition.
487 2011-05-31 Jan Hubicka <jh@suse.cz>
489 * cgraph.h (cgraph_inline_failed_t): Give enum a name
490 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
491 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
492 (lto_output_edge): Use output_enum and var_len_unsigned.
493 (lto_output_varpool_node): Likewise.
494 (input_overwrite_node): Do not take resolution parameter;
495 extract it from a bitpack.
496 (input_node): Do not read resolution; use input_enum and
498 (input_varpool_node): Likewise.
499 (input_edge): Likewise.
500 (input_cgraph_1): Likewise.
502 2011-05-31 Richard Guenther <rguenther@suse.de>
504 * gimple.c (gimple_register_canonical_type): Do not register
505 any types via gimple_register_type.
507 2011-05-31 Jan Hubicka <jh@suse.cz>
509 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
512 2011-05-31 Jakub Jelinek <jakub@redhat.com>
514 PR rtl-optimization/49235
515 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
516 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
518 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
520 PR tree-optimization/49093
521 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
524 2011-05-31 Dodji Seketeli <dodji@redhat.com>
527 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
528 for concrete functions containing the code of cloned functions.
530 2011-05-31 Richard Guenther <rguenther@suse.de>
532 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
534 (forward_propagate_into_comparison_1): ... this.
535 (forward_propagate_comparison): Rename to ...
536 (forward_propagate_into_comparison): ... this. Split out
537 real forward propagation code to ...
538 (forward_propagate_comparison): ... this.
539 (forward_propagate_into_gimple_cond): Remove looping.
540 (forward_propagate_into_cond): Likewise.
541 (simplify_not_neg_expr): Return whether we have done something.
542 (simplify_gimple_switch): Likewise.
543 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
544 (ssa_forward_propagate_and_combine): ... this. Re-structure
545 to do a forward forward-propagation walk on BBs and a backward
546 stmt combining walk on BBs. Consistently re-scan changed statements.
547 (pass_forwprop): Adjust.
549 2011-05-30 Ian Lance Taylor <iant@google.com>
551 * godump.c (go_format_type): Correct length of name added to
552 obstack for anonymous field.
554 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
557 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
558 part of the second operand is 0.
560 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
562 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
563 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
564 to memory for !TARGET_MEMORY_MISMATCH_STALL.
565 (*movdf_internal_rex64): Do not penalize F->r alternative.
566 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
567 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
568 when optimizing function for size. Do not move CONST_DOUBLEs
569 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
570 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
571 SUBREGs. Do not check for MEM_P operands in the insn condition,
572 check for ANY_FP_REGNO_P instead.
573 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
574 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
576 * config/i386/i386.c (ix86_option_override_internal): Do not
577 set TARGET_INTEGER_DFMODE_MOVES here.
579 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
582 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
584 2011-05-30 Jakub Jelinek <jakub@redhat.com>
586 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
587 DW_TAG_rvalue_reference_type even for
588 -gdwarf-4 -fno-debug-types-section.
590 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
592 PR tree-optimization/46728
593 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
594 (build_and_insert_binop): New.
595 (gimple_expand_builtin_pow): Reorder args for
596 build_and_insert_call; use build_and_insert_binop; add more
597 optimizations for fractional exponents.
599 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
604 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
606 * tree.h (struct tree_identifier): Inherit from tree_typed, not
608 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
609 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
610 TS_BASE instead of TS_COMMON.
611 * varasm.c (assemble_name): Remove assert.
613 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
615 * config.gcc: Keep obselete list sorted.
617 2011-05-30 Jakub Jelinek <jakub@redhat.com>
618 Eric Botcazou <ebotcazou@adacore.com>
620 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
621 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
622 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
623 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
624 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
626 2011-05-30 Richard Guenther <rguenther@suse.de>
628 * gimple.c (gimple_types_compatible_p_1): Compare record
629 and union type members properly.
631 2011-05-30 Richard Guenther <rguenther@suse.de>
633 PR tree-optimization/49210
634 * ipa-split.c (split_function): Care for the case where the call
635 result is not trivially convertible to the result holding variable.
637 2011-05-30 Richard Guenther <rguenther@suse.de>
639 PR tree-optimization/49218
640 * tree-vrp.c (adjust_range_with_scev): Properly check whether
643 2011-05-30 Richard Guenther <rguenther@suse.de>
645 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
646 New function split out from ...
647 (forward_propagate_into_gimple_cond): ... here. Adjust.
648 (forward_propagate_into_cond): Likewise.
649 (forward_propagate_comparison): Also propagate into
650 comparisons on assignment RHS. Change return value to
651 behave similar to forward_propagate_into_cond.
652 (tree_ssa_forward_propagate_single_use_vars): Handle
653 strict-overflow warnings properly for forward_propagate_comparison.
655 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
657 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
659 * configure: Regenerate.
661 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
663 PR tree-optimization/49199
664 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
665 non-reduction operands are either defined in the loop or by induction.
667 2011-05-29 Xinliang David Li <davidxl@google.com>
669 * opts-global.c (handle_common_deferred_options): Handle new options.
670 * passes.c (register_one_dump_file): Call register_pass_name.
671 (execute_one_pass): Check explicit enable/disable flag.
672 (passr_hash): New function.
674 (register_pass_name): Ditto.
675 (get_pass_by_name): Ditto.
678 (enable_pass): Ditto.
679 (disable_pass): Ditto.
680 (is_pass_explicitly_enabled_or_disabled): Ditto.
682 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
684 * config/i386/i386.md (*movoi_internal_avx): Use
685 standard_sse_constant_opcode for alternative 0.
686 (*movti_internal_sse): Ditto.
687 (*movti_internal_rex64): Use standard_sse_constant_opcode for
689 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
691 (*movsi_internal): Ditto.
692 (*movdi_internal): Ditto. Add ssecvt type moves.
694 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
697 * rtlanal.c (simplify_subreg_regno): Adjust comment.
699 2011-05-29 Jakub Jelinek <jakub@redhat.com>
701 PR rtl-optimization/49095
702 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
703 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
705 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
708 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
709 recurse_p argument. Only follow register copies if it is set,
710 and prevent mips_find_pic_call_symbol from recursing.
711 (mips_find_pic_call_symbol): Add a recurse_p argument.
712 Pass it to mips_pic_call_symbol_from_set.
713 (mips_annotate_pic_calls): Update accordingly.
715 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
717 * emit-rtl.c (try_split): Use a loop to search for
718 NOTE_INSN_CALL_ARG_LOCATIONs.
720 2011-05-29 Richard Guenther <rguenther@suse.de>
722 PR tree-optimization/49217
723 * ipa-pure-const.c (propagate_pure_const): Fix typos.
725 2011-05-28 Jan Hubicka <jh@suse.cz>
727 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
729 (string_slot_free): Remove
730 (create_output_block): Initialize obstack.
731 (destroy_output_block): Free obstack.
732 (lto_string_index): Add PERSISTENT parameter; do not duplicate
733 the string unless it needs to be added into the hash.
734 (lto_output_string_with_length): Add persistent attribute;
736 (lto_output_string): Add PERSISTENT parameter.
737 (output_string_cst, output_identifier): Simplify.
738 (lto_output_location_bitpack): Update.
739 (lto_output_builtin_tree): Update.
740 * lto-streamer.h (struct output_block): Add obstack.
741 (lto_output_string, lto_output_string_with_length): Remove
742 declarations; functions are static now.
744 2011-05-28 Jan Hubicka <jh@suse.cz>
746 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
747 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
748 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
749 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
750 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
751 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
752 unpack_ts_decl_with_vis_value_fields,
753 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
754 lto_get_builtin_tree): Use enum and variable length i/o.
755 * basic-block.h (profile_status_d): Add PROFILE_LAST.
756 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
758 (bp_pack_enum, bp_unpack_enum): New macros.
760 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
762 * genrecog.c: Remove redundant forward declarations.
764 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
766 * config.gcc: Deprecate mips*-*-openbsd*.
768 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
771 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
774 2011-05-27 Andrew Pinski <pinskia@gmail.com>
777 * gengtype.c (vec_prefix_type): New function.
778 (note_def_vec): Use vec_prefix_type and change the length
779 attribute to be based on the prefix.
780 * vec.c: Include coretypes.h before vec.h.
781 (struct vec_prefix): Remove.
782 (vec_gc_p_reserve): Change the offsetof to sizeof.
783 (vec_gc_p_reserve_exact): Likewise.
784 (vec_heap_p_reserve): Likewise.
785 (vec_heap_p_reserve_exact): Likewise.
786 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
787 (vec_stack_p_reserve): Change the offsetof to sizeof.
788 (vec_stack_p_reserve_exact): Likewise.
789 * vec.h (struct vec_prefix): New struct definition.
790 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
791 (VEC_T_GTY(T,B)): Likewise.
792 (DEF_VEC_FUNC_P(T)): Use prefix field.
793 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
794 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
796 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
798 PR tree-optimization/46728
799 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
800 (powi_as_mults): Add gimple_set_location.
801 (build_and_insert_call): New.
802 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
803 0.5, 0.25, 0.75, 1./3., or 1./6.
805 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
807 * doc/contrib.texi: Update copyright years.
808 (Contributors): Add Zdenek Sojka.
810 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
812 * c-decl.c (c_push_function_context): Copy the current statement
814 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
815 (finish_struct): Call building_stmt_list_p instead of checking
817 * c-parser.c (c_parser_postfix_expression): Likewise.
818 * c-typeck.c (c_end_compound_stmt): Likewise.
819 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
820 * tree-iterator.c (stmt_list_cache): Change to a VEC.
821 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
822 (free_stmt_list): Likewise.
823 * tree.h (struct tree_statement_list): Include typed_tree instead
825 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
826 as TS_TYPED instead of TS_COMMON.
828 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
829 Uros Bizjak <ubizjak@gmail.com>
831 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
832 (HAVE_AS_IX86_TLSGDPTL): Define.
833 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
834 (HAVE_AS_IX86_TLSLDMPLT): Define.
835 * configure: Regenerate.
836 * config.in: Regenerate.
837 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
838 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
839 TARGET_SUN_TLS, use @tlsgdplt or @plt.
840 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
841 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
843 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
845 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
847 * sched-int.h (struct _haifa_deps_insn_data): New members cond
849 (INSN_COND, INSN_REVERSE_COND): New macros.
850 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
852 (sched_get_condition_with_rev): Cache the results, and look them up
854 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
855 are clobbered by the current insn.
856 * target.def (exposed_pipline): New sched data hook.
857 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
858 * doc/tm.texi: Regenerate.
860 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
862 PR tree-optimization/49170
863 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
866 2011-05-27 Richard Guenther <rguenther@suse.de>
869 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
872 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
874 * haifa-sched.c (sched_scan_info): Remove.
875 (schedule_block): Call sched_extend_luids rather than sched_init_luids
877 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
879 (sched_scan): Remove.
880 (sched_extend_luids): Renamed from luids_extend_insn and no longer
881 static. All callers changed.
882 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
883 static. All callers changed.
884 (sched_init_luids): Remove all arguments except the first. All
885 callers changed. Don't use sched_scan.
886 (haifa_init_h_i_d): Likewise.
887 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
888 manually rather than using sched_init_luids. Likewise with
889 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
890 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
891 rather than sched_init_luids with NULL args.
892 * sel-sched-ir.c (new_insns): Remove variable.
893 (sched_scan): New static function, previously in haifa-sched.c. Remove
894 all arguments but the first two; all callers changed.
895 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
896 rather than sched_init_luids.
897 (sel_init_bbs): Remove second argument. All callers changed.
898 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
900 (create_insn_rtx_from_pattern): Likewise.
901 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
902 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
903 (sched_init_insn_luid, sched_extend_luids): Declare.
904 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
907 2011-05-27 Richard Guenther <rguenther@suse.de>
910 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
911 A CMP B ? (T) true : (T) false for non-integral types T again.
913 2011-05-27 Jan Hubicka <jh@suse.cz>
915 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
916 so 0 means NULL string.
917 (lto_output_string_with_length): ... here.
918 (lto_output_string, output_string_cst, output_identifier): Update
919 handling of NULL strings.
920 (lto_output_location_bitpack): New function.
921 (lto_output_location): Use it.
922 (lto_output_tree_ref): Use output_record_start.
923 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
925 * lto-streamer-in.c (string_for_index): Break out from ...; offset
927 (input_string_internal): ... here;
928 (input_string_cst, input_identifier, lto_input_string): Update handling
930 (lto_input_location_bitpack): New function
931 (lto_input_location): Use it.
932 (unpack_ts_type_common_value_fields): Pack align & alias in var len
934 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
935 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
936 (bp_pack_value): Sanity check the value range.
937 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
939 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
942 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
944 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
945 call_arg_location instructions down the floor.
947 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
949 PR rtl-optimization/49154
950 * ira.c (setup_pressure_classes): Process class without sublcasses
951 as a candidate for pressure classes.
953 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
955 PR rtl-optimization/48575
956 * genrecog.c (position_type): New enum.
957 (position): New structure.
958 (decision): Use position structure instead of a string.
959 (root_pos, peep2_insn_pos_list): New variables.
960 (next_position, compare_positions): New functions.
961 (new_decision): Use position structures instead of strings.
962 (maybe_both_true): Likewise.
963 (change_state): Likewise.
964 (write_tree): Likewise.
965 (make_insn_sequence): Likewise.
967 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
969 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
970 TS_BASE instead of TS_COMMON.
971 (find_decls_types_r): Check for TS_TYPED structure before looking at
973 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
975 (BLOCK_CHAIN): Use new chain field.
977 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
979 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
980 moves expensive on Power7 also.
982 2011-05-26 Richard Guenther <rguenther@suse.de>
984 * fold-const.c (fold_unary_loc): Remove bogus code.
986 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
988 * tree.h (struct tree_identifier): Inherit from tree_typed, not
990 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
991 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
992 TS_BASE instead of TS_COMMON.
993 * varasm.c (assemble_name): Remove assert.
995 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
997 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
999 * libgcc-std.ver: Delete file.
1001 2011-05-26 Richard Guenther <rguenther@suse.de>
1003 PR tree-optimization/48702
1004 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1005 only when we know the base address is within bounds.
1006 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1007 assume the base address of TARGET_MEM_REFs is in bounds.
1009 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1012 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1013 declaration in TARGET_SOLARIS.
1015 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1017 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1018 The instruction is then expanded explicitly.
1019 (supported_compare): Callable instruction.
1020 (compare): Likewise.
1022 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1025 * gimplify.c (shortcut_cond_r): Don't special case
1026 COND_EXPRs if they have void type on one of their arms.
1028 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1030 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1031 to reduce duplication, and to achieve a slightly more logical order
1034 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1036 PR tree-optimization/49161
1037 * tree-vrp.c (struct case_info): New type.
1038 (compare_case_labels): Sort case_info structs instead of
1039 trees, and not primarily by CASE_LABEL uids but by
1040 label_for_block indexes.
1041 (find_switch_asserts): Put case labels into struct case_info
1042 array instead of TREE_VEC, adjust sorting, compare label_for_block
1043 values instead of CASE_LABELs.
1045 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1047 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1048 ("orndi3_neon"): Likewise.
1049 ("bic<mode>3_neon"): Likewise.
1051 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1053 PR tree-optimization/49038
1054 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1055 Ensure at least one epilogue iteration if required by data
1057 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1058 to mark loops that require peeling for gaps.
1059 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1060 (vect_get_known_peeling_cost): Take peeling for gaps into
1062 (vect_transform_loop): Generate epilogue if required by data
1064 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1065 loop as requiring an epilogue if there are gaps in the end of
1068 2011-05-25 Ian Lance Taylor <iant@google.com>
1070 * godump.c (go_format_type): Output the first field with a usable
1073 2011-05-25 Ian Lance Taylor <iant@google.com>
1075 * godump.c (go_format_type): Check for invalid type names, pointer
1076 target types, and struct field types.
1078 2011-05-25 Jason Merrill <jason@redhat.com>
1080 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1082 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1084 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1086 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1088 * config/i386/i386.md (*movqi_extv_1)): Put back
1089 "register_operand" check in "type" calculation.
1090 (*movqi_extzv_2): Likewise.
1092 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1094 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1096 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1099 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1100 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1101 __divxc3, __divtc3): Wrap definitions in #ifndef.
1103 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1106 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1107 "register_operand" check and replace q_regs_operand with
1108 QIreg_operand in "type" calculation.
1109 (*movqi_extv_1): Likewise.
1110 (*movqi_extzv_2_rex64): Likewise.
1111 (*movqi_extzv_2): Likewise.
1113 * config/i386/predicates.md (QIreg_operand): New.
1115 2011-05-25 Richard Guenther <rguenther@suse.de>
1117 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1118 type-based offset disambiguation, streamline MEM_REF and
1119 TARGET_MEM_REF handling.
1121 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1123 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1124 (bdesc_special_args): Add pause intrinsic.
1126 * config/i386/i386.md (UNSPEC_PAUSE): New.
1129 * config/i386/ia32intrin.h (__pause): Likewise.
1131 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1134 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1136 PR tree-optimization/46728
1137 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1138 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1140 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1142 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1143 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1144 instead of TS_COMMON.
1146 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1148 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1149 LIBGCC2_GNU_PREFIX is defined.
1151 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1152 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1153 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1154 __clz_tab): Define using __N.
1155 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1156 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1157 * target.def (libfunc_gnu_prefix): New hook.
1158 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1159 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1160 * doc/tm.texi: Regenerate.
1161 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1162 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1164 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1165 (init_optabs): Likewise for the bswap libfuncs.
1166 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1168 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1169 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1170 * libgcc-std.ver: Remove.
1171 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1172 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1174 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1175 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1176 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1177 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1178 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1179 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1180 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1181 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1182 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1183 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1185 2011-05-25 Jan Hubicka <jh@suse.cz>
1187 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1188 (lto_output_tree): Use output_record_start.
1189 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1190 (lto_get_pickled_tree): Use input_record_start.
1191 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1192 (lto_value_range_error): New function.
1193 * lto-streamer.h (lto_value_range_error): Declare.
1194 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1195 (lto_output_enum, lto_input_enum): New macros.
1197 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1199 * common.opt (flag_stack_usage_info): New variable.
1200 (-Wstack-usage): New option.
1201 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1202 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1203 <OPT_fstack_usage>: Likewise.
1204 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1205 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1206 of flag_stack_usage.
1207 (emit_library_call_value_1): Likewise.
1208 * explow.c (allocate_dynamic_stack_space): Likewise.
1209 * function.c (instantiate_virtual_regs ): Likewise.
1210 (prepare_function_start): Likewise.
1211 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1212 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1213 * config/arm/arm.c (arm_expand_prologue): Likewise.
1214 (thumb1_expand_prologue): Likewise.
1215 * config/avr/avr.c (expand_prologue): Likewise.
1216 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1217 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1218 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1219 * config/mips/mips.c (mips_expand_prologue): Likewise.
1220 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1221 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1222 * config/s390/s390.c (s390_emit_prologue): Likewise.
1223 * config/sh/sh.c (sh_expand_prologue): Likewise.
1224 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1225 * config/spu/spu.c (spu_expand_prologue): Likewise.
1227 2011-05-25 Richard Guenther <rguenther@suse.de>
1229 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1230 (gimple_canonical_types_compatible_p): Likewise.
1232 2011-05-25 Jan Hubicka <jh@suse.cz>
1235 * ipa.c (function_and_variable_visibility): Only add to same
1236 comdat group list if DECL_ONE_ONLY.
1238 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1240 PR rtl-optimization/49014
1241 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1243 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1246 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1248 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1250 PR rtl-optimization/48757
1251 * ira-build.c (loop_with_eh_edge_p): Rename to
1252 loop_with_complex_edge_p, check edges on complexity, make function
1254 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1257 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1259 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1260 force flag_ira_share_save_slots to 0.
1262 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1264 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1265 (vt_initialize): Set PROLOGUE_BB unconditionally.
1266 Add block comment about CFA_BASE_RTX machinery.
1267 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1268 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1270 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1273 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1274 parsing of syntax error in ObjC instance variable lists. In
1275 particular, avoid an infinite loop if there is a stray ']'.
1276 Updated error message.
1278 2011-05-24 Ian Lance Taylor <iant@google.com>
1280 * godump.c (go_define): Don't accept a string immediately after
1283 2011-05-24 Ian Lance Taylor <iant@google.com>
1285 * godump.c (struct godump_container): Add invalid_hash field.
1286 (go_format_type): Return false if type is found in invalid_hash.
1287 (go_output_typedef): Add invalid type to invalid_hash.
1288 (go_finish): Create and delete invalid_hash.
1290 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1292 PR tree-optimization/46728
1293 * tree-ssa-math-opts.c (powi_table): New.
1294 (powi_lookup_cost): New.
1296 (powi_as_mults_1): New.
1297 (powi_as_mults): New.
1298 (gimple_expand_builtin_powi): New.
1299 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1300 (gate_cse_sincos): Remove sincos/cexp restriction.
1302 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1305 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1307 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1308 * mips-tdump.c: Likewise.
1310 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1313 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1314 add -mno-XXX. Handle FMA.
1316 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1318 PR rtl-optimization/48633
1319 * ira-build.c (loop_with_eh_edge_p): New function.
1320 (mark_loops_for_removal): Use it.
1322 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1324 PR rtl-optimization/48971
1325 * ira.c (setup_pressure_classes): Don't check register move cost
1326 for classes with one registers. Don't add pressure class if there
1327 is a pressure class with the same available hard registers.
1328 Check contains_reg_of_mode. Fix a typo in collecting
1329 temp_hard_regset. Ignore hard registers not belonging to a class.
1331 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1334 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1336 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1337 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1339 PR gcov-profile/48845
1340 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1342 2011-05-24 Richard Guenther <rguenther@suse.de>
1344 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1345 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1346 (gimple_types_compatible_p_1): Adjust.
1347 (iterative_hash_canonical_type): Do not bother about complete vs.
1349 (gimple_canonical_types_compatible_p): Likewise.
1351 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1353 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1355 2011-05-24 Richard Guenther <rguenther@suse.de>
1358 * gimple.c (gimple_register_canonical_type): Revert
1360 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1361 does not for a tree for the case where it matters. Cache
1362 pointer-type alias-sets.
1364 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1366 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1367 (OBJS): Remove options.o, opts-common.o and prefix.o.
1368 (OBJS-libcommon-target): New.
1369 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1370 (BACKEND): Include libcommon-target.a.
1371 (MOSTLYCLEANFILES): Include libcommon-target.a.
1372 (libcommon-target.a): New.
1373 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1376 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1378 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1379 parts of output shared with the driver.
1380 * optc-gen.awk: Don't generate parts of output not shared with the
1382 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1383 * doc/options.texi (SourcerInclude): Mention options-save.c.
1384 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1385 (OBJS): Add options-save.o.
1386 (options-save.c, options-save.o): New.
1387 (options.o): Update dependencies.
1388 (gcc-options.o): Remove.
1389 (mostlyclean): Remove options-save.c.
1391 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1394 * dbxout.c: Include cgraph.h.
1395 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1396 and without value expr, return NULL if no varpool node exists for
1397 it or if it is not needed.
1398 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1401 * c-decl.c (start_decl): Convert expr to void_type_node.
1403 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1405 PR rtl-optimization/48826
1406 * emit-rtl.c (try_split): When splitting a call that is followed
1407 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1409 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1411 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1412 parameters passed in memory prefer using DECL_INCOMING_RTL over
1413 the pseudos it will be copied into.
1415 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1418 * config/i386/i386.c (ix86_option_override_internal): Save the
1419 initial options after checking vzeroupper.
1421 2011-05-23 David Li <davidxl@google.com>
1423 PR tree-optimization/48988
1424 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1425 Initialize has_valid_pred for each pred chain.
1427 2011-05-23 Richard Guenther <rguenther@suse.de>
1429 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1430 (iterative_hash_gimple_type): Always hash type names.
1432 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1434 * c-typeck.c (build_function_call_vec): Tweak call to
1435 check_function_arguments.
1437 2011-05-23 Richard Guenther <rguenther@suse.de>
1439 PR tree-optimization/49115
1440 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1441 is not necessarily carried out, do not claim it kills the ref.
1442 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1444 2011-05-23 Richard Guenther <rguenther@suse.de>
1447 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1448 what pointer types we accept for folding.
1450 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1452 * gthr-gnat.c: Remove.
1453 * gthr-gnat.h: Remove.
1454 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1455 * config/t-freebsd (LIB2ADDEH): Likewise.
1456 * config/t-linux (LIB2ADDEH): Likewise.
1457 * config/t-sol2 (LIB2ADDEH): Likewise.
1458 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1459 * configure.ac (target_thread_file): Remove gnat handling.
1460 * configure: Regenerate.
1461 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1463 2011-05-23 Tristan Gingold <gingold@adacore.com>
1464 Eric Botcazou <ebotcazou@adacore.com>
1466 * gcov.c (create_file_names): If no object directory is specified,
1467 keep the directory of the file.
1469 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1471 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1472 * configure: Regenerate.
1474 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1477 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
1478 failed and the comparison has a single bit signed type, use
1479 constm1_rtx instead of const1_rtx for true value.
1480 (do_store_flag): If ops->type is single bit signed type, disable
1481 signel bit test optimization and pass -1 instead of 1 as last
1482 parameter to emit_store_flag_force.
1484 2011-05-23 Tom de Vries <tom@codesourcery.com>
1487 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
1489 (infer_loop_bounds_from_undefined): Use new function.
1491 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1493 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
1494 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
1495 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
1497 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
1499 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1501 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
1502 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
1505 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
1507 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
1509 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1511 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
1512 UNSPEC_MOVE_PIC pattern.
1514 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
1516 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
1517 (sparc-*-rtems*): Likewise.
1518 (sparc64-*-elf*): Likewise.
1519 (sparc64-*-rtems*): Likewise.
1520 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
1521 * config/sparc/t-crtin: New file.
1522 * config/sparc/t-sol2 (crti.o): Delete rule.
1524 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
1525 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
1526 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
1527 (ENDFILE_SPEC): Add crtn.o.
1529 2011-05-22 Tom de Vries <tom@codesourcery.com>
1532 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
1533 CODE_CONTAINS_STRUCT (TS_COMMON).
1535 2011-05-22 Jakub Jelinek <jakub@redhat.com>
1538 * expmed.c (extract_fixed_bit_field): Test whether target can be used
1539 only after deciding which mode to use.
1541 2011-05-22 Tom de Vries <tom@codesourcery.com>
1544 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
1545 for call to get_shiftadd_cost.
1547 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
1550 * config/i386/cpuid.h (bit_MMXEXT): New define.
1552 2011-05-22 Nick Clifton <nickc@redhat.com>
1554 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
1555 initialisation of non-existant args[2] element. Use args[] array
1556 not arg[] array to pass arguments to build_function_type_list.
1558 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
1560 PR tree-optimization/49087
1561 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
1563 2011-05-21 Jason Merrill <jason@redhat.com>
1566 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
1567 static storage duration.
1569 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1571 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
1574 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
1576 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
1577 false if there are call-saved registers here...
1578 (sparc_can_use_return_insn_p): ...but here instead.
1579 (save_or_restore_regs): Fix thinko.
1580 (sparc_expand_prologue): Use current_function_is_leaf.
1581 (sparc_frame_pointer_required): Likewise.
1583 2011-05-21 Nick Clifton <nickc@redhat.com>
1586 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
1588 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
1590 * gengtype.c (walk_type): Implemented "atomic" GTY option.
1591 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
1593 2011-05-21 Joseph Myers <joseph@codesourcery.com>
1595 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
1596 * optc-gen.awk: Move common code to opt-read.awk.
1597 * opth-gen.awk: Likewise.
1598 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
1600 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
1602 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
1604 2011-05-20 Tom de Vries <tom@codesourcery.com>
1607 * tree-ssa-loop-ivopts.c: Include expmed.h.
1608 (get_shiftadd_cost): New function.
1609 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
1611 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1614 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
1615 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
1617 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1619 * Makefile.in: Update comment referring to $(OBJS-common).
1621 2011-05-20 Ian Lance Taylor <iant@google.com>
1623 * godump.c (go_output_typedef): Put enum constants in the macro
1624 hash table to avoid duplicate Go const definitions.
1626 2011-05-20 Joseph Myers <joseph@codesourcery.com>
1628 * Makefile.in (LIBDEPS): Add libcommon.a.
1630 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
1631 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
1632 pretty-print.o and version.o.
1633 (OBJS-libcommon): New.
1634 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
1635 (BACKEND): Add libcommon.a.
1636 (MOSTLYCLEANFILES): Likewise.
1638 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
1639 (cpp$(exeext)): Likewise.
1640 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
1641 pretty-print.o and input.o.
1642 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
1643 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
1645 (mips-tfile): Don't explicitly use version.o.
1646 (mips-tdump): Likewise.
1647 (gcov.o): Depend on $(DIAGNOSTIC_H).
1648 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
1649 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
1650 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
1651 * gcov-dump.c: Include intl.h and diagnostic.h.
1652 (main): Initialize diagnostics.
1653 * gcov.c: Include diagnostic.h.
1655 (main): Initialize diagnostics.
1656 * lto-wrapper.c: Include diagnostic.h.
1657 (main): Initialize diagnostics.
1659 2011-05-20 Michael Matz <matz@suse.de>
1661 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
1663 2011-05-20 Michael Matz <matz@suse.de>
1664 Richard Guenther <rguenther@suse.de>
1666 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
1667 use lto_streamer_cache_append directly instead of returning a VEC.
1668 (preload_common_node): Remove.
1669 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
1671 (lto_streamer_cache_create): Call lto_preload_common_nodes.
1673 2011-05-20 Richard Guenther <rguenther@suse.de>
1675 PR tree-optimization/49079
1676 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
1677 MEM_REFs correctly for the trailing array access detection.
1678 Special case constants the same way as decls for overall size
1681 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
1683 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
1686 2011-05-20 Jakub Jelinek <jakub@redhat.com>
1688 PR tree-optimization/49073
1689 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
1690 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
1691 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
1693 2011-05-20 Richard Guenther <rguenther@suse.de>
1696 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
1697 of pointer types the same way the middle-end does.
1699 2011-05-20 Richard Guenther <rguenther@suse.de>
1701 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
1702 or pointer-to chains. Delay all fixup to uniquify_nodes.
1704 2011-05-19 Quentin Neill <quentin.neill@amd.com>
1706 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
1707 (fma4_fmaddsub): Likewise
1709 2011-05-19 Jan Hubicka <jh@suse.cz>
1711 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
1712 (GIMPLE_TYPE_PAIR_SIZE): New macro.
1713 (type_pair_cache): New static var.
1714 (lookup_type_pair): Use fixed sized custom hash; make inline.
1715 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
1716 calls of lookup_type_pair.
1717 (print_gimple_types_stats): Remove cache stats.
1718 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1721 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
1723 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1724 when TARGET_RDRND is active.
1725 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1726 Generate dummy SImode target register when target is NULL.
1728 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1730 * config/arm/arm-fpus.def: New.
1731 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1733 * config/arm/arm-tables.opt: Regenerate.
1734 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1735 (arm_option_override): Don't decode FPU name to string here.
1736 * config/arm/arm.opt (mfpu=): Use Enum.
1737 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1738 Update dependencies.
1740 2011-05-19 Joseph Myers <joseph@codesourcery.com>
1742 * collect2.c: Include diagnostic.h.
1743 (fatal_perror, fatal, error, fancy_abort): Remove.
1744 (main): Set progname. Call xmalloc_set_program_name and
1745 diagnostic_initialize.
1746 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1747 scan_libraries, resolve_lib_name): Call fatal_error instead of
1748 fatal and fatal_perror.
1749 * collect2.h (error, fatal, fatal_perror): Don't declare.
1750 * tlink.c: Include diagnostic-core.h.
1751 (recompile_files): Call fatal_error instead of fatal_perror.
1752 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1753 pretty-print.o and input.o.
1754 (collect2.o, tlink.o): Update dependencies.
1756 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1758 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1760 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1763 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1764 COMDAT group syntax, both SPARC and x86 variants.
1765 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1766 * configure: Regenerate.
1767 * config/sol2.h (TARGET_SOLARIS): Define.
1768 (PUSHSECTION_FORMAT): Remove.
1769 (SECTION_NAME_FORMAT): Define.
1770 * config/sol2.c: Include hashtab.h.
1771 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1772 expansion, using SECTION_NAME_FORMAT.
1773 (solaris_comdat_htab): New variable.
1774 (struct comdat_entry): Define.
1775 (comdat_hash): New function.
1776 (comdat_eq): New function.
1777 (solaris_elf_asm_comdat_section): New function.
1778 (solaris_define_comdat_signature): New function.
1779 (solaris_code_end): New function.
1780 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1781 (solaris_code_end): Declare.
1782 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1783 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1785 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1786 Remove ATTRIBUTE_UNUSED.
1787 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1788 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1789 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1790 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1791 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1792 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1793 (PUSHSECTION_FORMAT): Remove.
1794 (SECTION_NAME_FORMAT): Redefine.
1796 2011-05-19 Kai Tietz <ktietz@redhat.com>
1798 * tree-cfg.c (verify_gimple_assign_binary): Barf on
1799 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1800 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1802 2011-05-19 Anatoly Sokolov <aesok@post.ru>
1803 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1805 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1807 2011-05-19 Richard Guenther <rguenther@suse.de>
1810 * tree-object-size.c (addr_object_size): If the pointed-to
1811 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1813 2011-05-19 Richard Guenther <rguenther@suse.de>
1815 * gimple.c (gimple_types_compatible_p_1): Compare names of
1816 the types themselves.
1817 (iterative_hash_gimple_type): And hash them that way.
1818 (gimple_register_type_1): If we register a main variant properly
1819 initialize the leader to ourselves.
1821 2011-05-19 Tom de Vries <tom@codesourcery.com>
1824 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1825 get_loop_invariant_expr_id.
1826 (get_loop_invariant_expr_id): Use get_expr_id.
1827 (parm_decl_cost): New function.
1828 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1829 Improve bound cost estimation. Use different inv_expr_id for elim and
1832 2011-05-19 Tom de Vries <tom@codesourcery.com>
1835 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1836 cost_base.cost == 0.
1838 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
1841 * config/i386/sse.md
1842 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
1845 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1847 PR tree-optimization/49039
1848 * tree-vrp.c (extract_range_from_binary_expr): For
1849 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1850 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1852 2011-05-18 Tom de Vries <tom@codesourcery.com>
1855 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1857 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
1859 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1860 (*tls_global_dynamic_64): Ditto.
1861 (*tls_local_dynamic_base_32_gnu): Ditto.
1862 (*tls_local_dynamic_base_64): Ditto.
1863 (tls_initial_exec_64_sun): Ditto.
1865 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
1867 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1868 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1870 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1871 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1872 * config/bfin/bfin.c (bfin_cpus): Add bf592.
1873 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1874 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1875 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1876 * config/bfin/elf.h (LIB_SPEC): Add bf592.
1878 2011-05-18 Joseph Myers <joseph@codesourcery.com>
1880 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1881 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1882 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1883 target_thread_pointer, arm_structure_size_boundary, struct
1884 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1885 struct abi_name, arm_all_abis): Remove.
1886 (arm_option_override) Don't process most enumerated option values here.
1887 Don't process target_fpe_name here. Work with integer not string for
1888 structure size boundary; use separate diagnostics for each case.
1889 * config/arm/arm.h (enum float_abi_type, enum
1890 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1892 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1893 arm_structure_size_boundary): Remove.
1894 * config/arm/arm.opt (mabi=): Use Enum and Init.
1895 (arm_abi_type): New Enum and EnumValue entries.
1896 (mfloat-abi=): Use Enum and Init.
1897 (float_abi_type): New Enum and EnumValue entries.
1898 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1899 (mfp16-format=): Use Enum and Init.
1900 (arm_fp16_format_type): New Enum and EnumValue entries.
1901 (mstructure-size-boundary=): Use UInteger and Init.
1902 (mtp=): Use Enum and Init.
1903 (arm_tp_type): New Enum and EnumValue entries.
1905 2011-05-18 Richard Guenther <rguenther@suse.de>
1907 PR tree-optimization/49018
1908 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1909 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1910 gimple_has_side_effects.
1912 2011-05-18 Richard Guenther <rguenther@suse.de>
1914 * gimple.c (gimple_register_type_1): New function, split out from ...
1915 (gimple_register_type): ... here. Avoid infinite recursion.
1917 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1919 PR tree-optimization/41881
1920 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1921 reduction_chains along with a macro for its access.
1922 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1923 (destroy_loop_vec_info): Free reduction chains.
1924 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1925 (vect_is_slp_reduction): New function.
1926 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1927 (vect_create_epilog_for_reduction): Support SLP reduction chains.
1928 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1929 definition types for reduction chains.
1930 (vect_supported_load_permutation_p): Don't allow permutations for
1932 (vect_analyze_slp_instance): Support reduction chains.
1933 (vect_analyze_slp): Try to build SLP instance from reduction chains.
1934 (vect_get_constant_vectors): Handle reduction chains.
1935 (vect_schedule_slp_instance): Mark the first statement of the
1936 reduction chain as reduction.
1938 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
1940 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1941 names for group elements access.
1942 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1943 reduction chains as well. Remove data reference and interleaving
1944 related words from the fields names.
1945 * tree-vect-loop.c (vect_transform_loop): Use new names for group
1947 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1948 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1949 vect_update_interleaving_chain, vect_same_range_drs,
1950 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1951 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1952 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1953 vect_analyze_group_access, vect_analyze_data_ref_access,
1954 vect_create_data_ref_ptr, vect_transform_strided_load,
1955 vect_record_strided_load_vectors): Likewise.
1956 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1957 vect_model_load_cost, vectorizable_store, vectorizable_load,
1958 vect_remove_stores, new_stmt_vec_info): Likewise.
1959 * tree-vect-slp.c (vect_build_slp_tree,
1960 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1962 2011-05-18 Richard Guenther <rguenther@suse.de>
1965 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1966 operand verification.
1967 (verify_gimple_assign_binary): Likewise.
1968 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1969 to non-1-precision BOOLEAN_TYPEs.
1971 2011-05-18 Tom de Vries <tom@codesourcery.com>
1974 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1976 2011-05-18 Jakub Jelinek <jakub@redhat.com>
1978 PR tree-optimization/49000
1979 * tree-ssa.c (execute_update_addresses_taken): Call
1980 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
1981 be rewritten and decl has been marked for renaming, reset
1984 2011-05-17 Joseph Myers <joseph@codesourcery.com>
1986 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1987 enum_opts_set when testing if attributes have set -mfpmath=.
1989 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
1991 * config/mips/mips.c (mips_handle_option): Remove unused variable.
1993 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
1995 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1997 * tree-inline.c (maybe_inline_call_in_expr): Initialize
1998 id.transform_lang_insert_block with NULL.
2000 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2002 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2003 (output_fp_compare): Change args 3 and 4 to bool.
2004 (ix86_expand_call): Change arg 6 to bool.
2005 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2006 (ix86_attr_length_vex_default): Change arg 3 to bool.
2007 * config/i386/i386.md: Update all uses.
2008 * config/i386/i386.c: Ditto.
2009 (ix86_flags_dependent): Change return type to bool.
2011 2011-05-17 Richard Guenther <rguenther@suse.de>
2013 * gimple.c (type_hash_pair_compare): Fix comparison.
2015 2011-05-17 Richard Guenther <rguenther@suse.de>
2017 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2018 case some more, fix final hash value of the non-singleton case.
2020 2011-05-17 Richard Guenther <rguenther@suse.de>
2024 2011-05-16 Richard Guenther <rguenther@suse.de>
2026 * gimple.c (gimple_types_compatible_p_1): Use names of the
2027 type itself, not its main variant.
2028 (iterative_hash_gimple_type): Likewise.
2030 2011-05-17 Richard Guenther <rguenther@suse.de>
2032 * gimple.c (gimple_register_canonical_type): Use the main-variant
2033 leader for computing the canonical type.
2035 2011-05-17 Nick Clifton <nickc@redhat.com>
2037 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2040 * config/rx/rx.md: Add peephole to remove redundant extensions
2042 (bitset_in_memory): Use rx_restricted_mem_operand.
2043 (bitinvert_in_memory): Likewise.
2044 (bitclr_in_memory): Likewise.
2046 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2047 Nick Clifton <nickc@redhat.com>
2049 * config/rx/rx.md: Add peepholes to match a register move followed
2050 by a comparison of the moved register. Replace these with an
2051 addition of zero that does both actions in one instruction.
2053 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2056 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2057 predicate to allow CONST_INT.
2058 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2060 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2062 * opts-common.c (opt_enum_arg_to_value): New.
2063 * opts.h (opt_enum_arg_to_value): Declare.
2064 * config/i386/i386.opt (fpmath): Remove.
2065 (mfpmath=): Use Enum, Init and Save.
2066 (fpmath_unit): New Enum and EnumValue entries.
2067 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2068 name for function fpmath state.
2069 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2070 * config/i386/i386.c: Include diagnostic.h.
2071 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2072 (ix86_target_string): Take enum fpmath_unit value instead of string.
2073 (ix86_debug_options): Update call to ix86_target_string.
2074 (ix86_option_override_internal): Don't process fpmath strings here.
2075 (x86_function_specific_save, ix86_function_specific_restore):
2076 Don't handle fpmath state specially.
2077 (ix86_function_specific_print): Pass fpmath state to
2078 ix86_target_string instead of printing in this function.
2079 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2080 Handle enum attributes.
2081 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2082 (ix86_valid_target_attribute_tree): Update option_strings
2083 handling. Handle fpmath as enum option.
2084 (ix86_can_inline_p): Update field names for function fpmath state.
2085 (ix86_expand_builtin): Update call to ix86_target_string.
2086 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2087 (ix86_fpmath): Remove.
2088 * config/i386/t-i386 (i386.o): Update dependencies.
2090 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2092 PR preprocessor/48677
2093 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2094 from decoded_options[0], not from itself.
2096 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2098 * config/i386/constraints.md (z): New constraint.
2099 * config/i386/i386.c (c): New mode attribute.
2100 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2101 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2102 constraint for operand 0.
2103 (*call_vzeroupper): Ditto.
2104 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2105 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2106 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2107 Use "lzm" constraint for operand 0.
2108 (*call_pop_vzeroupper): Ditto.
2109 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2110 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2111 constraint for operand 0.
2112 (*sibcall_vzeroupper): Ditto.
2113 (*sibcall_rex64_ms_sysv): Ditto.
2114 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2115 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2116 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2117 (*sibcall_pop_vzeroupper): Ditto.
2118 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2119 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2120 mode iterator. Use "<c>zm" constraint for operand 1.
2121 (*call_value_vzeroupper): Ditto.
2122 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2124 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2125 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2126 *call_value_pop_1. Use "lzm" constraint for operand 1.
2127 (*call_value_pop_vzeroupper): Ditto.
2128 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2129 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2130 mode iterator. Use "Uz" constraint for operand 1.
2131 (*sibcall_value_vzeroupper): Ditto.
2132 (*sibcall_value_rex64_ms_sysv): Ditto.
2133 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2134 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2135 constraint for operand 1.
2136 (*sibcall_value_pop_vzeroupper): Ditto.
2137 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2138 and "z" constraint for operand 2.
2139 (*tls_global_dynamic_32_gnu): Ditto.
2140 (*tls_local_dynamic_base_32_gnu): Ditto.
2141 (*tls_local_dynamic_base_64): Ditto.
2142 (*tls_local_dynamic_32_once): Ditto.
2143 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2145 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2147 2011-05-16 Richard Guenther <rguenther@suse.de>
2149 * gimple.c (gimple_types_compatible_p_1): Use names of the
2150 type itself, not its main variant.
2151 (iterative_hash_gimple_type): Likewise.
2153 2011-05-16 Richard Guenther <rguenther@suse.de>
2155 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2156 always visit pointer target and function result and argument types.
2158 2011-05-16 Jason Merrill <jason@redhat.com>
2161 * tree-inline.c (copy_statement_list): Put back recursion.
2163 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2167 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2168 * config/avr/avr.md ("*ior<mode>qi.byte0",
2169 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2171 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2174 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2175 register is needed for a function argument.
2177 2011-05-16 Richard Guenther <rguenther@suse.de>
2179 * gimple.c (struct type_hash_pair): New type.
2180 (type_hash_pair_compare): New function.
2181 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2183 2011-05-16 Revital Eres <revital.eres@linaro.org>
2185 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2187 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2189 * config/i386/i386.md (floating point move splitters): Fix
2190 usage of standard_80387_constant_p.
2191 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2193 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2195 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2197 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2199 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2200 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2201 (tree_ssa_lim_finalize): Likewise.
2203 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2205 * config/i386/constraint.md (Yd, Yx): New register constraints.
2206 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2207 Yd conditional register constraint.
2208 (*movtf_internal): Use standard_sse_constant_opcode.
2209 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2210 Yx conditional register constraint.
2211 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2212 Yd conditional register constraint. Use standard_sse_constant_p to
2213 check for valid SSE constants and call standard_sse_constant_opcode to
2215 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2216 constants and call standard_sse_constant_opcode to output SSE insn.
2217 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2218 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2219 optimize_size is set.
2220 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2222 2011-05-14 Tobias Burnus <burnus@net-b.de>
2224 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2226 2011-05-13 Martin Jambor <mjambor@suse.cz>
2228 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2229 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2230 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2231 (evaluate_conditions_for_ipcp_clone): Removed.
2232 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2233 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2234 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2236 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2238 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2239 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2240 lieu of MAY_HAVE_DEBUG_STMTS.
2241 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2242 debug statements if !MAY_HAVE_DEBUG_STMTS.
2244 2011-05-13 Martin Thuresson <martint@google.com>
2246 PR gcov-profile/47793
2247 * libgcov.c (gcov_exit): Support relative profile paths.
2248 * doc/invoke.texi (-fprofile-dir): Update for above change.
2250 2011-05-13 Richard Guenther <rguenther@suse.de>
2252 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2253 type-pair caching, do not compare hashes.
2255 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2258 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2259 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2261 2011-05-13 Kai Tietz <ktietz@redhat.com>
2263 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2264 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2265 compatible type for TRUTH_NOT_EXPR.
2267 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2269 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2270 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2271 can_create_pseudo_p ().
2273 2011-05-13 Richard Guenther <rguenther@suse.de>
2276 * gimple.c (iterative_hash_gimple_type): Revert change in
2277 pointer target and function result and argument hashing.
2279 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2281 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2282 (*movxf_internal_nointeger): Ditto.
2283 (*movdf_internal_rex64): Ditto.
2284 (*movdf_internal): Ditto.
2285 (*movdf_internal_nointeger): Ditto.
2286 (*movsf_internal): Ditto.
2287 (sincos splitters): Use can_create_pseudo ().
2289 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2291 * config/i386/i386-opts.h: New.
2292 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2293 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2294 ix86_section_threshold): Remove.
2295 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2296 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2298 (ix86_option_override_internal): Don't decode strings for options
2299 other than -march=, -mtune= and -mfpmath=. Don't allow for
2300 __attribute__ uses in remaining diagnostics for options with
2301 string arguments. Don't check for integer arguments being negative.
2302 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2303 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2304 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2305 ix86_branch_cost, ix86_section_threshold): Remove.
2306 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2308 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2310 (masm=): Use Enum and Init.
2311 (asm_dialect): New Enum and EnumValue entries.
2312 (mbranch-cost=): Use UInteger.
2313 (mlarge-data-threshold=): Use UInteger and Init.
2314 (mcmodel=): Use Enum and Init.
2315 (cmodel): New Enum and EnumValue entries.
2316 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2317 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2318 mregparm=): Use UInteger.
2319 (mstringop-strategy=): Use Enum and Init.
2320 (stringop_alg): New Enum and EnumValue entries.
2321 (mtls-dialect=): Use Enum and Init.
2322 (tls_dialect): New Enum and EnumValue entries.
2323 (mabi=): Use Enum and Init.
2324 (calling_abi): New Enum and EnumValue entries.
2325 (mveclibabi=): Use Enum and Init.
2326 (ix86_veclibabi): New Enum and EnumValue entries.
2328 2011-05-13 Nick Clifton <nickc@redhat.com>
2330 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2331 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2333 2011-05-13 Kai Tietz <ktietz@redhat.com>
2336 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2337 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2338 (gimple_boolify): Check for cast for boolean_type_node instead for
2341 2011-05-13 Richard Guenther <rguenther@suse.de>
2343 PR tree-optimization/48172
2344 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2345 multiplying by number of iterations for equal step.
2346 (vect_create_cond_for_alias_checks): Likewise.
2348 2011-05-13 Andreas Schwab <schwab@redhat.com>
2350 * configure.ac: Use AS_HELP_STRING throughout.
2351 * configure: Regenerate.
2353 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2355 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2356 (ix86_emit_restore_regs_using_mov): Likewise.
2357 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2359 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2361 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2362 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2363 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2364 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2365 RTX_OK_FOR_OLO10_P): ...here.
2366 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2369 2011-05-12 Kai Tietz <ktietz@redhat.com>
2371 * gimplify.c (gimple_boolify): Re-boolify expression
2372 arguments even if expression type is of kind BOOLEAN_TYPE.
2373 (gimplify_boolean_expr): Removed.
2374 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2375 and XOR. Additional take care that we keep expression's type.
2376 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2377 of TRUTH_AND|OR|XOR_EXPR.
2379 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2381 PR tree-optimization/48975
2382 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2383 on all bbs here and free and clear ifc_bbs at the end.
2385 2011-05-12 Richard Guenther <rguenther@suse.de>
2387 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2388 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2389 until after simple checks.
2390 (gimple_types_compatible_p): Likewise.
2391 (iterative_hash_gimple_type): Always hash pointer targets
2392 and function return and argument types.
2393 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2394 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2395 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2396 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2397 completely in the simple compare section.
2398 (gimple_register_canonical_type): Query the cache again after
2401 2011-05-12 Richard Guenther <rguenther@suse.de>
2403 PR tree-optimization/48172
2404 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2405 the number of iterations from the segment size calculation.
2406 (vect_create_cond_for_alias_checks): Adjust.
2408 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2411 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2412 if validate_subreg fails.
2414 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2416 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2417 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2420 2011-05-12 DJ Delorie <dj@redhat.com>
2422 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2423 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2424 created builtin into rx_builtins array.
2425 (rx_builtin_decl): New function.
2426 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2428 2011-05-12 DJ Delorie <dj@redhat.com>
2429 Nick Clifton <nickc@redhat.com>
2431 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2432 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2433 (rx_is_legitimate_address): Add pre-decrement and post-increment
2434 addressing in HImode and QImode. Fix test for out of range
2436 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2437 (rx_align_for_label): Test label before extracting its usage count.
2438 (rx_adjust_insn_lengths): Fix selection of insn codes.
2439 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2441 2011-05-11 Jason Merrill <jason@redhat.com>
2443 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2445 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2447 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2448 reindent the subsequent block.
2450 2011-05-11 Satoru Takabayashi <satorux@google.com>
2451 Paul Pluzhnikov <ppluzhnikov@google.com>
2453 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2454 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2455 * config.in: Add LINKER_HASH_STYLE.
2456 * configure.ac: Add --with-linker-hash-style.
2457 * configure: Regenerate.
2459 2011-05-11 Richard Guenther <rguenther@suse.de>
2462 * gimple.c (iterative_hash_canonical_type): Fix typo.
2464 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2466 * config/i386/i386.c (legitimize_tls_address)
2467 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2468 expanders directly for TARGET_GNU2_TLS. Determine pic and
2469 __tls_get_addr symbol reference here. Update call to
2470 gen_tls_global_dynamic_{32,64} for added arguments.
2471 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2472 expanders directly for TARGET_GNU2_TLS. Determine
2473 __tls_get_addr symbol reference here. Update call to
2474 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2475 unique UNSPEC REG_EQUIV to libcall block.
2476 (ix86_tls_get_addr): Declare static.
2477 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
2478 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
2479 Do not determine pic and __tls_get_addr symbol reference here. Do not
2480 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
2481 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
2482 (tls_global_dynamic_64): Add operand 2. Do not determine
2483 __tls_get_addr symbol reference here. Do not call
2484 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
2485 (tls_local_dynamic_base64): Ditto for operand 1.
2487 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2489 * function.c (expand_function_start): Initialize stack_check_probe_note
2490 only if the generic stack checking mechanism is used.
2492 2011-05-11 Richard Guenther <rguenther@suse.de>
2494 PR tree-optimization/15256
2495 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
2496 (A & B) | C, combine (A op CST1) op CST2.
2497 (tree_ssa_forward_propagate_single_use_vars): Only bother to
2498 visit assigns that have uses.
2500 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
2502 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
2503 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
2504 (unpack_ts_type_common_value_fields): ...this. Update comment.
2505 (unpack_value_fields): Adjust for renaming.
2506 (lto_input_ts_type_tree_pointers): Split into...
2507 (lto_input_ts_type_common_tree_pointer): ...this and...
2508 (lto_input_ts_type_non_common_tree_pointers): ...this.
2509 (lto_input_tree_pointers): Adjust for above split.
2510 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
2511 (pack_ts_type_common_value_fields): ...this. Update comment.
2512 (lto_output_ts_type_tree_pointers): Split into...
2513 (lto_output_ts_type_common_tree_pointers): ...this and...
2514 (lto_output_ts_type_non_common_tree_pointers): ...this.
2515 (lto_output_tree_pointers): Adjust for above split.
2516 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
2517 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
2518 * stor-layout.c (vector_type_mode): Adjust location of mode field.
2519 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
2521 (struct tree_type): Split into...
2522 (struct tree_type_common: ...this and...
2523 (struct tree_type_with_lang_specific): ...this and...
2524 (struct tree_type_non_common): ...this. Adjust accessor macros
2526 (TYPE_VALUES_RAW): Define.
2527 (union tree_node): Update for above changes.
2528 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
2530 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
2531 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
2532 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
2533 * treestructu.def (TS_TYPE): Remove.
2534 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
2537 2011-05-11 Jakub Jelinek <jakub@redhat.com>
2540 * tree-ssa.c (reset_debug_uses): New function.
2541 * tree-flow.h (reset_debug_uses): New prototype.
2542 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
2543 * tree-loop-distribution.c (generate_loops_for_partition): Call
2544 reset_debug_uses on the stmts that will be removed. Keep around
2545 all debug stmts, don't count them as bits in partition bitmap.
2546 (generate_builtin): Don't count debug stmts or labels as bits in
2549 2011-05-11 Richard Guenther <rguenther@suse.de>
2551 * gimple.c (gimple_type_hash_1): Merge with ...
2552 (gimple_type_hash): ... this.
2553 (gtc_visit): Remove mode parameter and simplify accordingly.
2554 (gimple_types_compatible_p_1): Likewise.
2555 (gimple_types_compatible_p): Likewise.
2556 (iterative_hash_gimple_type): Likewise.
2558 (gimple_type_eq): Adjust.
2560 2011-05-11 Revital Eres <revital.eres@linaro.org>
2562 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
2563 enters the branch create an anti edge in the opposite direction
2564 to prevent the creation of reg-moves.
2565 * modulo-sched.c: Adjust comment to reflect the fact we are
2566 scheduling closing branch.
2567 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
2568 (stage_count): New field in struct partial_schedule.
2569 (calculate_stage_count): New function.
2570 (normalize_sched_times): Rename to reset_sched_times and handle
2571 incrementing the sched time of the nodes by a constant value
2572 passed as parameter.
2573 (duplicate_insns_of_cycles): Skip closing branch.
2574 (sms_schedule_by_order): Schedule closing branch.
2575 (ps_insn_find_column): Handle closing branch.
2576 (sms_schedule): Call reset_sched_times and adjust the code to
2577 support scheduling of the closing branch.
2578 (ps_insert_empty_row): Update calls to normalize_sched_times
2579 and rotate_partial_schedule functions.
2581 2011-05-11 Richard Guenther <rguenther@suse.de>
2584 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
2586 2011-05-11 Joseph Myers <joseph@codesourcery.com>
2588 * opts.c (finish_options): Move warning settings from process_options.
2589 * toplev.c (process_options): Move warning settings to finish_options.
2591 2011-05-11 Richard Guenther <rguenther@suse.de>
2593 PR tree-optimization/18041
2594 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
2595 (simplify_bitwise_binary): ... this. Handle operand conversions
2596 by applying them to the result instead.
2597 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
2599 2011-05-11 Richard Guenther <rguenther@suse.de>
2601 * gimple.c (gimple_canonical_types_compatible_p): Split out
2602 from gimple_types_compatible_p and friends. Do not recurse
2603 to pointed-to types.
2604 (gimple_canonical_type_eq): Use it.
2605 (iterative_hash_canonical_type): Split out from
2606 iterative_hash_gimple_type and friends. Do not recurse
2607 to pointed-to types.
2608 (gimple_canonical_type_hash): Use it, allocate the hash here.
2610 2011-05-11 Revital Eres <revital.eres@linaro.org>
2612 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
2615 2011-05-11 Revital Eres <revital.eres@linaro.org>
2617 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
2618 instead of PREV_INSN.
2620 2011-05-11 Revital Eres <revital.eres@linaro.org>
2622 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
2623 * loop-doloop.c (doloop_condition_get): Likewise.
2624 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
2626 * config/arm/arm.md (*addsi3_compare0): Remove "*".
2628 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2630 * tree.def (CASE_LABEL_EXPR): Add an operand.
2631 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
2633 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2635 * c-decl.c (c_override_global_bindings_to_false): Remove.
2636 (global_bindings_p): Don't check
2637 c_override_global_bindings_to_false.
2638 * c-tree.h (c_override_global_bindings_to_false): Remove.
2639 * c-typeck.c (composite_type): Don't set
2640 c_override_global_bindings_to_false.
2642 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2644 PR target/48857, 48495
2645 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
2647 (VSX_MOVE_MODE): Ditto.
2648 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
2649 VSX vector types. Add V2DImode.
2650 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
2651 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
2652 (MODES_TIEABLE_P): Ditto.
2654 * config/rs6000/rs6000.c (rs6000_emit_move): Use
2655 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
2657 (init_cumulative_args): Ditto.
2658 (rs6000_function_arg_boundary): Ditto.
2659 (rs6000_function_arg_advance_1): Ditto.
2660 (rs6000_function_arg): Ditto.
2661 (rs6000_function_ok_for_sibcall): Ditto.
2662 (emit_frame_save): Ditto.
2663 (rs6000_function_value): Ditto.
2664 (rs6000_libcall_value): Ditto.
2666 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2668 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
2669 i386/darwin-lib.h to $libgcc_tm_file.
2670 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
2672 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2674 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
2676 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2678 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
2679 * config/rs6000/rs6000-tables.opt: New file (generated).
2680 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
2681 rs6000/rs6000-tables.opt to extra_options.
2682 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
2683 * config/rs6000/rs6000.c (rs6000_select): Remove.
2684 (processor_target_table): Move contents to rs6000-cpus.def.
2685 (darwin_rs6000_override_options): Check
2686 global_options_set.x_rs6000_cpu_index instead of
2687 rs6000_select[1].string.
2688 (rs6000_option_override_internal): Likewise.
2689 (rs6000_handle_option): Don't assert that global structures are in
2690 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
2691 (rs6000_default_cpu): New variable.
2692 (rs6000_file_start): Set it instead of local default_cpu. Check
2693 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
2694 global_options_set.x_rs6000_tune_index instead of rs6000_select.
2695 (rs6000_darwin_file_start): Check rs6000_default_cpu and
2696 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
2697 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
2698 rs6000_select): Remove.
2699 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
2701 (mcpu=, mtune=): Use Var, Init, Enum and Save.
2702 * config/rs6000/t-rs6000
2703 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
2704 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2705 global_options_set.x_rs6000_cpu_index instead of
2706 rs6000_select[1].string.
2707 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
2708 global_options_set.x_rs6000_cpu_index instead of
2709 rs6000_select[1].string.
2711 2011-05-10 Joseph Myers <joseph@codesourcery.com>
2713 * config.gcc (libgcc_tm_file): Define instead of including files
2714 from ../../libgcc/config/ in tm_file.
2715 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
2716 * configure: Regenerate.
2717 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
2718 libgcc_tm.h, cs-libgcc_tm.h): New.
2719 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2720 (clean): Remove libgcc_tm.h.
2721 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2722 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2723 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2725 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
2728 * config/avr/avr.c (avr_ret_register): Return unsigned int
2730 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2731 it to avr_libcall_value.
2732 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2734 (avr_expand_binop_builtin): Ditto.
2735 (avr_expand_unop_builtin): Ditto.
2737 2011-05-10 DJ Delorie <dj@redhat.com>
2739 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2740 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2741 * config/rx/rx.c (rx_align_for_label): Add label and
2742 uses_threshold parameters. Do not align when the label is not
2744 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2746 2011-05-10 Richard Guenther <rguenther@suse.de>
2748 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2749 a series of conversions and apply foldings similar to what
2751 (tree_ssa_forward_propagate_single_use_vars): Call it.
2753 2011-05-10 Jakub Jelinek <jakub@redhat.com>
2755 PR tree-optimization/48611
2756 PR tree-optimization/48794
2757 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2758 referenced from RESX or EH_DISPATCH arguments.
2761 * dfp.c (decimal_to_decnumber): Handle conversion from
2762 dconst{1,2,m1,half}.
2764 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2766 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2767 for !flag_prefer_avx128.
2768 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2770 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2772 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2773 (fold_ternary_loc): Use expr_location_or.
2775 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
2778 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2779 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2780 Pmode and mem_mode is not VOIDmode.
2782 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
2784 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2785 TYPE_QUAL_RESTRICT): Convert to enum.
2787 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2789 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2790 (const_pow2_1_to_8_operand): Ditto.
2791 (const_pow2_1_to_128_operand): Ditto.
2792 (const_pow2_1_to_32768_operand): Ditto.
2793 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2794 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
2795 in insn constraint to check integer value of operand 3.
2796 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2798 (PINSR_MODE): New mode iterator.
2799 (sse2p4_1): New mode attribute.
2800 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2801 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2802 iterator. Use const_int_operand instead of
2803 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
2804 exact_log2 in insn constraint to check integer value of operand 3.
2806 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2808 * config/i386/sse.md (blendbits): Remove mode attribute.
2809 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2810 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2811 Check integer value of operand 3 in insn constraint.
2813 2011-05-09 Richard Guenther <rguenther@suse.de>
2815 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2817 (lto_symtab_merge): Likewise. Do not register types here.
2818 (lto_symtab_merge_decls_2): Likewise.
2819 (lto_symtab_merge_decls_1): Likewise.
2820 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2821 * gimple.c (enum gtc_mode): Declare.
2822 (gimple_types_compatible_p): Make static.
2824 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2826 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2827 temporary register to match Pmode.
2829 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2831 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2832 and *vec_concatv4si_1_avx.
2834 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2836 PR rtl-optimization/48927
2837 * ira-conflicts.c (commutative_constraint_p): Use
2838 recog_data.alternative_enabled_p to disable alternatives where
2839 "enabled" attribute is false.
2840 (get_dup_num): Ditto.
2841 * ira-lives.c (single_reg_class): Ditto.
2842 (ira_implicitly_set_insn_hard_regs): Ditto.
2844 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
2846 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2847 (dataflow_set_preserve_mem_locs): Likewise.
2849 2011-05-09 Philipp Thomas <pth@suse.de>
2851 * config/mep/mep.c (mep_validate_vliw): Syntax description
2852 should not be translated.
2854 2011-05-09 Joseph Myers <joseph@codesourcery.com>
2856 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2857 * config/mips/mips-tables.opt: New file (generated).
2858 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2859 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2860 MIPS_ARCH_OPTION_NATIVE): Define.
2861 * config/mips/mips.c (mips_cpu_info_table): Move contents to
2863 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2864 mips_parse_cpu): Remove.
2865 (mips_cpu_info_from_opt, mips_default_arch): New.
2866 (mips_handle_option): Don't assert that global structures are in
2867 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2868 (mips_option_override): Use new variables and functions to set
2869 state of these options. Use strcmp to check for individual CPU names.
2870 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2872 * config/mips/mips.opt (march=): Use ToLower and Enum.
2873 (mips): Use ToLower, Enum and Var.
2874 (mtune=): Use ToLower and Enum.
2875 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2877 2011-05-08 Jan Hubicka <jh@suse.cz>
2879 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2880 Arrange type pairs to be UID ordered.
2881 (gimple_lookup_type_leader): Make inline.
2883 2011-05-09 Nick Clifton <nickc@redhat.com>
2886 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2890 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2893 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
2895 * combine.c (simplify_comparison): Abstract out parts into...
2896 (simplify_compare_const): ... new function.
2897 (try_combine): Generalize parallel arithmetic/compare combining
2898 to call simplify_compare_const() and CANONICALIZE_COMPARE().
2900 2011-05-08 Jan Hubicka <jh@suse.cz>
2902 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2903 (cgraph_create_virtual_clone): Call hooks once virtual clone
2905 * cgraph.h (cgraph_clone_node): Update prototype.
2906 * ipa-cp.c (ipcp_estimate_growth): Use
2907 estimate_ipcp_clone_size_and_time.
2908 * ipa-inline-transform.c (clone_inlined_nodes): Update.
2909 * lto-cgraph.c (input_node): Update.
2910 * ipa-inline.c (recursive_inlining): Update.
2911 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2912 (evaluate_conditions_for_known_args): Break out from ...
2913 (evaluate_conditions_for_edge): ... here.
2914 (evaluate_conditions_for_ipcp_clone): New function.
2915 (inline_node_duplication_hook): Update clone summary based
2917 (estimate_callee_size_and_time): Rename to ...
2918 (estimate_node_size_and_time): take NODE instead of EDGE;
2919 take POSSIBLE_TRUTHS as argument.
2920 (estimate_callee_size_and_time): Update.
2921 (estimate_ipcp_clone_size_and_time): New function.
2922 (do_estimate_edge_time): Update.
2924 2011-05-08 Richard Guenther <rguenther@suse.de>
2928 * expmed.c (expand_shift_1): Compute adjusted constant shift
2931 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2933 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2935 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
2937 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2939 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2941 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2943 2011-05-07 Jan Hubicka <jh@suse.cz>
2945 * ipa-inline-transform.c (inline_call): Account when program size
2947 * ipa-inline.c (relative_time_benefit): New function.
2948 (edge_badness): Reorganize to be power 2 based; fix thinko when
2949 computing badness for negative growth; update comments to match
2950 reality; better dumps.
2952 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
2954 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2955 type to bool and adjust comment.
2956 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2957 (fold_mathfn_compare): Remove calls to global_bindings_p.
2958 (fold_inf_compare): Likewise.
2959 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2960 * c-tree.h (global_bindings_p): Adjust prototype.
2961 * c-decl.c (global_bindings_p): Return bool and simplify.
2963 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
2965 PR tree-optimization/48837
2966 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2967 when accumulator transformation is performed.
2969 2011-05-06 Jan Hubicka <jh@suse.cz>
2971 * i386.h (ix86_tune_indices): Add
2972 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2973 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2974 * i386.c (initial_ix86_tune_features): Add
2975 X86_SOFTARE_PREFETCHING_BENEFICIAL.
2976 (software_prefetching_beneficial_p): Remove predicate.
2977 (ix86_option_override_internal): Use new macro.
2979 2011-05-06 Jan Hubicka <jh@suse.cz>
2981 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2983 2011-05-06 Jan Hubicka <jh@suse.cz>
2985 * cgraph.c (cgraph_add_thunk): Create real function node instead
2986 of alias node; finalize it and mark needed/reachale; arrange visibility
2987 to be right and add it into the corresponding same comdat group list.
2988 (dump_cgraph_node): Dump thunks.
2989 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2990 cgraph_function_with_gimple_body_p,
2991 cgraph_first_function_with_gimple_body,
2992 cgraph_next_function_with_gimple_body): New functions.
2993 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2995 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2996 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2997 * cgraphunit.c (cgraph_finalize_function): Only look into possible
2998 devirtualization when optimizing.
2999 (verify_cgraph_node): Verify thunks.
3000 (cgraph_analyze_function): Analyze thunks.
3001 (cgraph_mark_functions_to_output): Output thunks only in combination
3002 with function they are assigned to.
3003 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3004 alias into normal node.
3005 (assemble_thunks): New functoin.
3006 (cgraph_expand_function): Use it.
3007 * lto-cgraph.c (lto_output_node): Stream thunks.
3008 (input_overwrite_node): Stream in thunks.
3009 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3010 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3011 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3012 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3013 (inline_analyze_function): Do not care about thunk jump functions.
3014 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3015 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3016 cgraph_function_with_gimple_body_p.
3017 * passes.c (do_per_function_toporder): Use
3018 cgraph_function_with_gimple_body_p.
3019 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3020 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3021 (function_called_by_processed_nodes_p): Likewise.
3023 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3025 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3026 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3028 (mabi=): Replace with separate entries for mabi=altivec,
3029 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3030 mabi=ieeelongdouble and mabi=ibmlongdouble.
3031 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3032 check for -mabi=spe without SPE ABI support here.
3033 (rs6000_handle_option): Replace OPT_mabi_ handling with
3034 OPT_mabi_altivec and OPT_mabi_spe handling.
3036 2011-05-06 Cary Coutant <ccoutant@google.com>
3038 * dwarf2out.c (contains_subprogram_definition): New function.
3039 (should_move_die_to_comdat): Call it.
3041 2011-05-06 Jeff Law <law@redhat.com>
3043 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3044 remove_ctrl_stmt_and_useless_edges.
3045 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3046 (fixup_template_block, thread_single_edge): Likewise.
3047 (mark_threaded_blocks): Use THREAD_TARGET.
3049 2011-05-06 Alan Modra <amodra@gmail.com>
3052 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3053 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3055 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3057 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3058 constraint modifier to "r".
3060 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3062 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3063 fall through for OPT_mcmodel_.
3065 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3067 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3069 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3071 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3074 * config/arm/arm.opt (marm): Document it.
3075 (mthumb): Reject negative variant.
3077 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3080 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3081 Fix typo in "ccvt" variable name.
3083 2011-05-06 Tristan Gingold <gingold@adacore.com>
3086 * config/vms/vms-ar.c (main): Remove cwd variable.
3088 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3091 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3093 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3095 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3096 * gimplify.c (gimplify_switch_expr): Likewise.
3097 * omp-low.c (expand_omp_sections): Likewise.
3098 * tree-eh.c (lower_try_finally_switch): Likewise.
3099 (lower_eh_dispatch): Likewise.
3100 * tree.h (build_case_label): Declare.
3101 * tree.c (build_case_label): Define.
3103 2011-05-05 Jason Merrill <jason@redhat.com>
3106 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3107 (copy_statement_list): Don't recurse.
3108 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3111 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3113 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3114 through from -mfpu= handling.
3115 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3117 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3119 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3122 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3124 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3126 (hppa[12]*-*-hpux11*): Ditto.
3127 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3128 * config/ia64/hpux-unix2003.h: New.
3129 * config/pa/pa-hpux1131.opt: New.
3130 * config/pa/pa-hpux1131.h: New.
3131 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3132 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3133 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3135 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3138 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3139 instead of mode as 3rd argument to recursive call.
3140 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3141 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3143 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3144 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3145 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3146 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3148 2011-05-05 Julian Brown <julian@codesourcery.com>
3150 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3151 parenthesis in D-register case.
3153 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3155 * opt-functions.awk (var_type_struct): Handle Enum options.
3156 * optc-gen.awk: Don't check range of variables of character type.
3157 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3158 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3159 rs6000_sdata_name, rs6000_explicit_options): Remove.
3160 (rs6000_option_override_internal): Check for -malign-power here.
3161 Use global_options_set instead of rs6000_explicit_options.
3162 (rs6000_parse_fpu_option): Remove.
3163 (rs6000_handle_option): Access variables via opts and opts_set
3164 pointers. Use error_at and warning_at. Add fall-through
3165 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3166 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3167 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3168 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3169 here. Don't use rs6000_parse_fpu_option.
3170 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3171 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3172 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3174 (mspe): Use Var and Save.
3175 (mtraceback=): Use Enum and Var.
3176 (rs6000_traceback_type): New Enum and EnumValue entries.
3177 (mfloat-gprs=): Use Enum, Var and Save.
3178 (rs6000_float_gprs): New Enum and EnumValue entries.
3179 (mlong-double-): use Var and Save.
3180 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3181 (malign-): Use Enum and Var.
3182 (rs6000_alignment_flags): New Enum and EnumValue entries.
3184 (fpu_type_t): New Enum and EnumValue entries.
3185 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3186 global_options_set instead of rs6000_explicit_options.
3187 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3188 global_options_set instead of rs6000_explicit_options.
3189 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3190 global_options_set instead of rs6000_explicit_options.
3191 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3192 global_options_set instead of rs6000_explicit_options.
3193 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3194 global_options_set instead of rs6000_explicit_options.
3195 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3196 global_options_set instead of rs6000_explicit_options.
3197 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3199 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3200 global_options_set instead of rs6000_explicit_options.
3201 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3202 (rs6000_cmodel): New Enum and EnumValue entries.
3203 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3204 global_options_set instead of rs6000_explicit_options.
3205 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3206 (mtls-size=): Use Enum and Var.
3207 (rs6000_tls_size): New Enum and EnumValue entries.
3209 2011-05-05 Michael Matz <matz@suse.de>
3211 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3212 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3213 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3214 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3215 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3216 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3217 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3218 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3219 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3220 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3221 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3222 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3223 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3224 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3225 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3226 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3228 2011-05-05 Richard Guenther <rguenther@suse.de>
3230 * expmed.c (expand_variable_shift): Rename to ...
3231 (expand_shift_1): ... this. Take an expanded shift amount.
3232 For rotates recurse directly not building trees for the shift amount.
3233 (expand_variable_shift): Wrap around expand_shift_1.
3234 (expand_shift): Adjust.
3236 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3238 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3240 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3242 * tree.h (get_pending_sizes): Remove prototype.
3243 (put_pending_size): Likewise.
3244 (put_pending_sizes): Likewise.
3245 * stor-layout.c (pending_sizes): Delete.
3246 (get_pending_sizes): Likewise.
3247 (put_pending_size): Likewise.
3248 (put_pending_sizes): Likewise.
3249 (variable_size): Do not call put_pending_size and tidy up.
3250 * function.h (struct function): Remove dont_save_pending_sizes_p.
3251 * lto-streamer-in.c (input_function): Do not stream it.
3252 * lto-streamer-out.c (output_function): Likewise.
3253 * tree-inline.c (initialize_cfun): Do not copy it.
3254 * c-decl.c (store_parm_decls): Do not set it.
3255 * omp-low.c (create_task_copyfn): Likewise.
3256 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3258 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3260 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3262 (*movdf_internal): Ditto.
3263 (*movdf_internal_nointeger): Ditto.
3264 (*movsf_internal): Ditto.
3266 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3268 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3269 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3270 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3271 (c_variable_size): Remove.
3272 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3273 call put_pending_sizes.
3274 (get_parm_info): Add parameter expr. Use it to set
3275 arg_info->pending_sizes.
3276 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3278 * c-parser.c (c_parser_parms_declarator): Update call to
3279 c_parser_parms_list_declarator.
3280 (c_parser_parms_list_declarator): Take parameter expr. Update
3281 call to push_parm_decl. Update recursive call. Don't call
3282 get_pending_sizes. Update calls to get_parm_info.
3283 (c_parser_objc_method_definition): Update calls to
3284 c_parser_objc_method_decl and objc_start_method_definition.
3285 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3286 (c_parser_objc_method_decl): Add parameter expr. Update call to
3288 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3289 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3290 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3292 2011-05-05 Michael Hope <michael.hope@linaro.org>
3295 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3298 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3300 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3301 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3302 (spu_output_mi_thunk): New function.
3304 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3306 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3307 targetm.asm_out.print_operand.
3308 * config/sol2.c: Include target.h.
3310 2011-05-04 Jan Hubicka <jh@suse.cz>
3312 * ipa-inline.c (reset_edge_caches): New function.
3313 (update_caller_keys): Add check_inlinablity_for; do not
3314 reset edge caches; remove now unnecesary loop.
3315 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3316 (update_all_callee_keys): Likewise.
3317 (inline_small_functions): Sanity check cache; update code
3320 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3322 PR rtl-optimization/47612
3323 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3324 as the last insn of the sequence to be moved.
3326 2011-05-04 Tobias Burnus <burnus@net-b.de>
3329 * doc/invoke.texi (Ofast): Document that it
3330 enables Fortran's -fno-protect-parens.
3332 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3334 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3336 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3338 * stor-layout.c (variable_size): Do not issue errors.
3340 2011-05-04 Richard Guenther <rguenther@suse.de>
3342 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3343 for array-ref indices.
3344 (tree_coverage_counter_addr): Likewise.
3345 (build_fn_info_type): Use size_int for index types.
3346 (build_gcov_info): Likewise.
3348 2011-05-04 Richard Guenther <rguenther@suse.de>
3350 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3352 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3353 for constructor indices.
3354 (push_init_level): Likewise.
3356 2011-05-04 Richard Guenther <rguenther@suse.de>
3358 * explow.c (promote_mode): Move variable declarations before code.
3360 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3362 * tree.h (build_function_type_array): Declare.
3363 (build_varargs_function_type_array): Declare.
3364 (build_function_type_vec, build_varargs_function_type_vec): Define.
3365 * tree.c (build_function_type_array_1): New function.
3366 (build_function_type_array): New function.
3367 (build_varargs_function_type_array): New function.
3369 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3371 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3372 before setting STMT_VINFO_TYPE.
3374 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3376 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3377 instead of spu_pass_by_reference.
3379 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3381 * calls.c (emit_library_call_value_1): Invoke
3382 promote_function_mode hook on libcall arguments.
3383 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3384 argument being NULL.
3385 * targhooks.c (default_promote_function_mode): Lisewise.
3386 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3387 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3389 * doc/tm.texi: Document that TYPE argument might be NULL.
3391 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3393 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3395 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3398 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3400 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3402 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3403 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3405 * mips-tfile.c: ... here.
3406 Don't include coretypes.h, tm.h, filenames.h.
3407 (saber_stop): Remove definition and all calls.
3408 [__SABER__]: Remove.
3409 (__LINE__): Remove default.
3410 (Size_t, Ptrdiff_t): Remove definitions.
3411 Replace by size_t, ptrdiff_t.
3412 [!MIPS_DEBUGGING_INFO]: Remove.
3413 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3414 (progname): Add const.
3416 Replace all uses by static.
3417 (ALIGN_SYMTABLE_OFFSET): Remove default.
3418 * mips-tdump.c: Don't include coretypes.h, tm.h.
3419 Remove !MIPS_IS_STAB guard.
3420 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3421 $(TM_H), filenames.h dependencies.
3422 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3424 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3427 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3428 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3430 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3433 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3434 account and save/restore RETS.
3435 (PROFILE_BEFORE_PROLOGUE): Define.
3436 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3437 the push insn to use predecrement.
3439 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3442 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3444 2011-05-04 Nick Clifton <nickc@redhat.com>
3446 * config/mn10300/mn10300.c: Include cfgloop.h.
3448 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3449 Lcc or a FLcc insn into the instruction stream.
3450 (mn10300_block_contains_call): New function. Returns true if the
3451 given basic block contains a CALL insn.
3452 (mn10300_loop_contains_call_insn): New function. Returns true if
3453 the given loop contains a CALL insn.
3454 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3455 to use the SETLB and Lcc or FLcc insns.
3456 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3457 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3458 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3459 disable the SETLB optimization.
3460 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3461 __SETLB__ or __NO_SETLB__.
3462 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3463 (movsf_internal): Handle MDR register.
3464 (cmpsi): Make visible.
3465 (setlb): New pattern.
3467 (FLcc): New pattern.
3469 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3472 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3473 for reg<->xmm moves.
3474 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3475 (vec_concatv2di_rex64_sse): Ditto.
3476 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
3477 (*vec_extractv2di_1_rex64): Ditto.
3480 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3482 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3484 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
3486 2011-05-04 Richard Guenther <rguenther@suse.de>
3488 * tree.h (int_const_binop): Remove notrunc argument.
3489 * fold-const.c (int_const_binop): Remove notrunc argument. Always
3490 create integer constants that are properly truncated.
3491 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
3492 (const_binop): Remove zero notrunc argument to int_const_binop.
3493 (size_binop_loc): Likewise.
3494 (fold_div_compare): Likewise.
3495 (maybe_canonicalize_comparison_1): Likewise.
3496 (fold_comparison): Likewise.
3497 (fold_binary_loc): Likewise.
3498 (multiple_of_p): Likewise.
3499 * expr.c (store_constructor): Likewise.
3500 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
3501 (maybe_fold_stmt_addition): Likewise.
3502 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3503 * stor-layout.c (layout_type): Likewise.
3504 * tree-data-ref.c (tree_fold_divides_p): Likewise.
3505 * tree-sra.c (build_ref_for_offset): Likewise.
3506 (build_user_friendly_ref_for_offset): Likewise.
3507 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
3508 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
3509 * tree-ssa-loop-niter.c (inverse): Likewise.
3510 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3511 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
3512 * tree-switch-conversion.c (check_range): Likewise.
3513 (build_constructors): Likewise.
3514 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
3515 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
3516 (extract_range_from_assert): Likewise.
3517 (vrp_int_const_binop): Likewise.
3518 (extract_range_from_binary_expr): Likewise.
3519 (extract_range_from_unary_expr): Likewise.
3520 (check_array_ref): Likewise.
3521 (find_case_label_range): Likewise.
3522 (simplify_div_or_mod_using_ranges): Likewise.
3523 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
3524 comparing case labels for merging.
3526 2011-05-03 Mark Wielaard <mjw@redhat.com>
3528 * dwarf2out.c (debug_str_hash_forced): Removed.
3529 (gen_label_for_indirect_string): Removed.
3530 (get_debug_string_label): Removed.
3531 (AT_string_form): Generate label directly.
3532 (output_indirect_string): Test indirect_string_node for
3533 DW_FORM_strp instead of checking label and refcount.
3534 (prune_indirect_string): Removed.
3535 (prune_unused_types): Don't check debug_str_hash_forced or
3536 call prune_indirect_string.
3538 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3541 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
3543 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
3547 * combine.c (try_combine): Skip debug insns at m_split tests.
3549 2011-04-26 Mark Wielaard <mjw@redhat.com>
3552 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
3553 when info_section_emitted.
3555 2011-05-03 Joseph Myers <joseph@codesourcery.com>
3557 * config/mips/mips-opts.h: New.
3558 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
3560 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
3561 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
3562 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
3564 * config/mips/mips.h (enum mips_code_readable_setting): Move to
3566 (mips_abi, mips_code_readable): Don't declare.
3567 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3568 (mabi=): Use Enum and Var.
3569 (mips_abi): New Enum and EnumValue entries.
3570 (mcode-readable=): Use Enum and Var.
3571 (mips_code_readable_setting): New Enum and EnumValue entries.
3572 (mr10k-cache-barrier=): Use Enum and Var.
3573 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
3575 2011-05-03 Jan Hubicka <jh@suse.cz>
3577 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
3578 replace hash by pointer map.
3579 (cgraph_node_set_element_def, cgraph_node_set_element,
3580 const_cgraph_node_set_element, varpool_node_set_element_def,
3581 varpool_node_set_element, const_varpool_node_set_element): Remove.
3582 (free_cgraph_node_set, free_varpool_node_set): New function.
3583 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
3584 * tree-emutls.c: Free varpool node set.
3585 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
3586 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3587 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
3588 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3589 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
3590 Move here from ipa.c; implement using pointer_map
3591 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
3592 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
3593 debug_cgraph_node_set, varpool_node_set_new,
3594 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
3595 dump_varpool_node_set, debug_varpool_node_set):
3596 Move to ipa-uitls.c.
3597 * passes.c (ipa_write_summaries): Update.
3599 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3601 From Mike Frysinger:
3602 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
3603 bf542/bf544/bf547/bf548/bf549.
3605 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3607 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
3609 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3612 * config/bfin/bfin.md (MOVCC): New mode_macro.
3613 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
3614 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
3615 comments from generated assembly.
3617 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3620 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
3621 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
3622 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
3623 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
3624 * config/bfin/lib1funcs.asm (___muldi3): New function.
3626 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3628 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
3629 build_function_type_list instead of build_function_type.
3630 Rearrange initialization of `args' to do so.
3632 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3634 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
3635 instead of build_function_type.
3637 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3639 * config/rs6000/rs6000.c (spe_init_builtins): Call
3640 build_function_type_list instead of build_function_type.
3641 (paired_init_builtins, altivec_init_builtins): Likewise.
3642 (builtin_function_type): Likewise.
3644 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3646 * config/sh/sh.c (sh_media_init_builtins): Call
3647 build_function_type_list instead of build_function_type.
3649 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3651 * config/sparc/sparc.c (sparc_file_end): Call
3652 build_function_type_list instead of build_function_type.
3654 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3656 * config/alpha/alpha.c (alpha_init_builtins): Call
3657 build_function_type_list instead of build_function_type.
3659 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3661 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
3662 build_function_type_list instead of build_function_type.
3664 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3666 * config/iq2000/i2000.c (iq2000_init_builtins): Call
3667 build_function_type_list instead of build_function_type.
3668 Delete `endlink' variable.
3670 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3672 * config/avr/avr.c (avr_init_builtins): Call
3673 build_function_type_list instead of build_function_type.
3675 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3677 * config/picochip/picochip.c (picochip_init_builtins): Call
3678 build_function_type_list instead of build_function_type.
3679 Delete `endlink' variable.
3681 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
3683 * config/bfin/bfin.c (bfin_init_builtins): Call
3684 build_function_type_list instead of build_function_type.
3686 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3689 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
3690 that's not CONST_INT. Seemingly redundant check is due to PR39768.
3692 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3695 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
3696 libbffastfp overrides libgcc when -mfast-fp.
3698 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3700 Originally from Bernd Schmidt
3701 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
3702 * config/bfin/bfin.c (override_options): Test it and error if
3705 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
3707 Originally From Bernd Schmidt
3708 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
3711 2011-05-03 Jeff Law <law@redhat.com>
3713 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
3714 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
3715 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
3716 than accessing AUX field directly. Free the AUX field before
3718 (thread_block, thread_through_loop_header): Likewise.
3719 (thread_single_edge, mark_threaded_blocks): Likewise.
3720 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
3721 (register_jump_thread): Do not attempt to thread to a NULL edge.
3723 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3725 * function.c (init_function_start): Call decide_function_section.
3726 * varasm.c (decide_function_section): New function.
3727 (assemble_start_function): When not using
3728 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3729 or first_function_block_is_cold.
3730 * rtl.h (decide_function_section): Declare.
3732 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
3733 Jakub Jelinek <jakub@redhat.com>
3736 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3737 only succeed if req_mode is the same as set_mode.
3739 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
3741 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3742 * genemit.c (gen_exp): Handle RETURN.
3743 * emit-rtl.c (verify_rtx_sharing): Likewise.
3744 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3745 * rtl.c (copy_rtx): RETURN is shared.
3746 * rtl.h (enum global_rtl_index): Add GR_RETURN.
3748 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3749 * config/s390/s390.c (s390_emit_epilogue): Likewise.
3750 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3751 * config/cris/cris.c (cris_expand_return): Likewise.
3752 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3753 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3754 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3755 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3756 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3758 * config/v850/v850.c (expand_epilogue): Likewise.
3759 * config/bfin/bfin.c (bfin_expand_call): Likewise.
3760 * config/arm/arm.md (epilogue): Likewise.
3761 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3762 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3763 variable to ret_reg.
3765 2011-05-03 Richard Guenther <rguenther@suse.de>
3768 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3769 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3770 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3772 2011-05-03 Richard Guenther <rguenther@suse.de>
3774 * c-decl.c (grokdeclarator): Instead of looking at
3775 TREE_OVERFLOW check if the constant fits in the index type.
3777 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3779 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3780 (vec_store_lanes<mode><mode>): Likewise.
3782 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3784 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3785 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3786 convert_optab_index values.
3787 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3788 * genopinit.c (optabs): Initialize the new optabs.
3789 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3790 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3791 (expand_STORE_LANES): New functions.
3792 * tree.h (build_array_type_nelts): Declare.
3793 * tree.c (build_array_type_nelts): New function.
3794 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3795 (vect_model_load_cost): Likewise.
3796 (vect_store_lanes_supported, vect_load_lanes_supported)
3797 (vect_record_strided_load_vectors): Declare.
3798 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3799 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3800 (vect_transform_strided_load): Split out statement recording into...
3801 (vect_record_strided_load_vectors): ...this new function.
3802 * tree-vect-stmts.c (create_vector_array, read_vector_array)
3803 (write_vector_array, create_array_ref): New functions.
3804 (vect_model_store_cost): Add store_lanes_p argument.
3805 (vect_model_load_cost): Add load_lanes_p argument.
3806 (vectorizable_store): Try to use store-lanes functions for
3808 (vectorizable_load): Likewise load-lanes and loads.
3809 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3810 to vect_model_store_cost.
3811 (vect_build_slp_tree): Likewise vect_model_load_cost.
3813 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
3815 * hooks.h (hook_bool_mode_uhwi_false): Declare.
3816 * hooks.c (hook_bool_mode_uhwi_false): New function.
3817 * target.def (array_mode_supported_p): New hook.
3818 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3819 * doc/tm.texi: Regenerate.
3820 * stor-layout.c (mode_for_array): New function.
3821 (layout_type): Use it.
3822 * config/arm/arm.c (arm_array_mode_supported_p): New function.
3823 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3825 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
3828 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3829 for -fstack-check if the size to allocate is negative.
3831 2011-05-02 Lawrence Crowl <crowl@google.com>
3833 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3834 (timevar_cond_start): New for starting a timer only when it is not
3836 (timevar_cond_stop): New for stopping a timer when it was not already
3839 * timevar.c (timevar_stop): Enable start/stop timers to start again.
3840 (timevar_cond_start): New as above.
3841 (timevar_cond_stop): New as above.
3843 * timevar.def: Add start/stop timers for compiler phases,
3844 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3845 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3846 and TV_PHASE_FINALIZE.
3847 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3848 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3849 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3850 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3851 Make unused TV_OVERLOAD into a start/stop timer.
3853 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3854 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3855 to indicate that they are start/stop timers.
3857 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3858 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3859 Move initialization to do_compile.
3860 (do_compile): Add initialization from above.
3861 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3863 * c-decl.c (c_write_global_declarations): Add start/stop of
3864 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3866 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3867 or TV_PARSE_INLINE, as appropriate.
3868 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3869 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3871 2011-05-02 Jason Merrill <jason@redhat.com>
3874 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3876 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
3879 * c-decl.c (finish_decl): Only create a composite if the types are
3882 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3884 * config/fr30/fr30-protos.h (Mmode): Don't define.
3885 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
3886 definition where used.
3887 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3888 define. Expand definitions where used.
3889 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3890 Expand definitions where used.
3891 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3892 rx_function_arg, rx_function_arg_advance,
3893 rx_function_arg_boundary): Expand definitions of those macros.
3894 * config/v850/v850-protos.h (Mmode): Don't define. Expand
3895 definition where used.
3897 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3899 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3901 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3902 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
3903 with *movv2sf_internal_rex64_avx.
3904 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3905 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3906 Use %v prefix in insn mnemonic to handle TARGET_AVX.
3907 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
3908 "vex" in "prefix" attribute calculation.
3909 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
3911 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
3914 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3915 inputs match the output.
3917 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
3920 * config/m68k/m68k.c (m68k_expand_prologue): Set
3921 current_function_static_stack_size.
3923 2011-05-02 Jan Hubicka <jh@suse.cz>
3925 * lto-streamer.c (lto_streamer_cache_insert_1,
3926 lto_streamer_cache_lookup, lto_streamer_cache_create,
3927 lto_streamer_cache_delete): Use pointer map instead of hashtable.
3928 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3930 2011-05-02 Joseph Myers <joseph@codesourcery.com>
3932 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3933 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3934 config/m68k/t-opts: New files.
3935 * config/m68k/m68k-tables.opt: New file (generated).
3936 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3937 extra_options and m68k/t-opts to tmake_file.
3938 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3939 (all_isas): Initialize using m68k-isas.def.
3940 (all_microarchs): Initialize using m68k-microarchs.def.
3941 (m68k_find_selection): Remove.
3942 (m68k_handle_option): Don't assert that global structures are in
3943 use. Use error_at. Access variables via opts pointer. Don't
3944 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
3945 directly for -m68020-40 and -m68020-60.
3946 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3947 m68k_tune_entry here.
3948 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3950 (m68k_library_id_string): Remove declaration.
3951 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3952 (m68k_library_id_string): New Variable.
3953 (march=, mcpu=, mtune=): Use Enum and Var.
3955 2011-05-02 Richard Guenther <rguenther@suse.de>
3957 * varasm.c (output_constructor_regular_field): Compute zero-based
3958 index with double-ints. Make sure to ICE instead of producing
3960 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3961 in asserts. Properly use a signed type.
3963 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
3965 * config/i386/sse.md (V): New mode iterator.
3966 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
3968 (V_256): Rename from AVX256MODE.
3969 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
3970 condition to all users.
3972 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
3973 condition to all users.
3974 (VF_128): Make V4SF mode unconditional.
3975 (VF_256): Rename from AVX256MODEF2P.
3976 (VI4F_128): Rename from SSEMODE4S.
3977 (VI8F_128): Rename from SSEMODE2D.
3978 (VI4F_256): Rename from AVX256MODE8P.
3979 (VI8F_256): Rename from AVX256MODE4P.
3980 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3981 (ssescalarmodesuffix): Remove SF and DF modes.
3982 (SSEMODE124): Remove.
3983 (SSEMODE1248): Ditto.
3984 (SSEMODEF2P): Ditto.
3985 (AVXMODEF2P): Ditto.
3986 (AVXMODEFDP): Ditto.
3987 (AVXMODEFSP): Ditto.
3988 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3990 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
3992 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3993 xop_pcmov_<mode>256. Use V mode iterator.
3995 Adjust RTX patterns globally for renamed mode attributes.
3997 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3999 * haifa-sched.c (sched_emit_insn): Emit insn before first
4000 non-scheduled insn. Inform back-end about new insn. Add
4001 new insn to scheduled_insns list.
4003 2011-05-02 Richard Guenther <rguenther@suse.de>
4005 PR tree-optimization/48822
4006 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4007 (process_scc): Indicate which iteration we start.
4009 2011-05-02 Jan Hubicka <jh@suse.cz>
4011 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4012 (lto_section_overrun): New.
4013 * lto-section-out.c (append_block): Rename to ...
4014 (lto_append_block): ... this one; export.
4015 (lto_output_1_stream): Move lto lto-streamer.h
4016 (lto_output_data_stream): Update.
4017 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4018 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4021 2011-05-02 Richard Guenther <rguenther@suse.de>
4023 * tree.c (tree_code_counts): New global array.
4024 (record_node_allocation_statistics): Count individual tree codes.
4025 (dump_tree_statistics): Dump individual code stats.
4027 2011-05-01 Jan Hubicka <jh@suse.cz>
4029 * ipa-inline.c (caller_growth_limits): Fix thinko when
4030 looking for largest stack frame.
4031 * ipa-inline.h (dump_inline_summary): Declare.
4032 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4034 (dump_inline_summary): Export.
4035 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4037 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4039 * reginfo.c (memory_move_cost): Change rclass argument type form
4040 'enum reg_class' to reg_class_t.
4041 * reload.h (memory_move_cost): Update prototype.
4042 * postreload.c reload_cse_simplify_set): Change type dclass var to
4044 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4046 (ira_allocate_and_set_costs): Change aclass argument type form
4047 'enum reg_class' to reg_class_t.
4048 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4049 Change aclass argument type to reg_class_t.
4050 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4052 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4053 memory_move_cost call.
4055 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4056 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4057 Change type tmp var to reg_class_t.
4059 2011-04-30 Jan Hubicka <jh@suse.cz>
4061 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4062 inlining into function with flatten attribute.
4063 (want_inline_small_function_p): Be more realistic about inlining
4064 cold calls where callee size grows.
4066 2011-04-30 Jan Hubicka <jh@suse.cz>
4068 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4071 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4073 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4074 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4075 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4076 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4077 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4078 (print_operand): Rename to...
4079 (sparc_print_operand): ...this. Make static. Adjust
4080 sparc_print_operand function call.
4081 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4084 2011-04-30 Jan Hubicka <jh@suse.cz>
4087 * ipa-inline.c (early_inliner): Disable when doing late
4088 addition of function.
4090 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4092 * dwarf2out.c (get_address_mode): New inline.
4093 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4094 if not dwarf_strict emit
4095 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4096 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4097 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4098 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4099 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4100 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4101 mem_loc_descriptor callers.
4102 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4103 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4104 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4105 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4106 (base_types): New variable.
4107 (get_base_type_offset, calc_base_type_die_sizes,
4108 base_type_for_mode, mark_base_types, base_type_cmp,
4109 move_marked_base_types): New functions.
4110 (calc_die_sizes): Assert that die_offset is 0 or equal to
4112 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4113 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4114 callers. If not dwarf_strict, call mem_loc_descriptor even for
4115 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4116 (gen_subprogram_die): Don't give up on call site parameters
4117 with non-integral or large integral modes. Adjust
4118 mem_loc_descriptor callers.
4119 (prune_unused_types): Call prune_unused_types_mark on base_types
4121 (resolve_addr): Call mark_base_types.
4122 (dwarf2out_finish): Call move_marked_base_types.
4124 PR tree-optimization/48809
4125 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4127 (gen_inbound_check): Don't compute index_expr - range_min in utype
4128 again, instead reuse SSA_NAME initialized in build_arrays.
4129 Remove two useless gsi_for_stmt calls.
4131 2011-04-29 Jeff Law <law@redhat.com>
4133 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4135 2011-04-29 Martin Jambor <mjambor@suse.cz>
4137 * cgraph.h (cgraph_postorder): Remove declaration.
4138 * ipa-utils.h (ipa_free_postorder_info): Declare.
4139 (ipa_reverse_postorder): Likewise.
4140 * cgraphunit.c: Include ipa-utils.h.
4141 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4142 * ipa-inline.c: Include ipa-utils.h.
4143 (ipa_inline): Update call to ipa_reverse_postorder.
4144 * ipa-pure-const.c (propagate_pure_const): Update call to
4145 ipa_reduced_postorder and ipa_print_order. Call
4146 ipa_free_postorder_info to clean up.
4147 (propagate_nothrow): Likewise.
4148 * ipa-reference.c (propagate): Removed a useless call to
4149 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4150 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4151 * ipa.c: Include ipa-utils.h.
4152 (ipa_profile): Update call to ipa_reverse_postorder.
4153 (cgraph_postorder): Moved to...
4154 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4155 (ipa_utils_print_order): Renamed to ipa_print_order.
4156 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4158 (ipa_free_postorder_info): New function.
4159 * passes.c: Include ipa-utils.h.
4160 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4161 (ipa_write_summaries): Likewise.
4162 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4163 (cgraphunit.o): Likewise.
4165 (ipa-inline.o): Likewise.
4167 2011-04-29 Jan Hubicka <jh@suse.cz>
4169 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4170 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4171 * ipa-inline.h (clause_t): Turn into unsigned int.
4172 * ipa-inline-analysis.c (add_clause): Do more simplification.
4173 (and_predicates): Shortcut more cases.
4174 (predicates_equal_p): Move forward; check that clauses are properly
4176 (or_predicates): Shortcut more cases.
4177 (edge_execution_predicate): Rewrite as...
4178 (set_cond_stmt_execution_predicate): ... this function; handle
4179 __builtin_constant_p.
4180 (set_switch_stmt_execution_predicate): New .
4181 (compute_bb_predicates): New.
4182 (will_be_nonconstant_predicate): Update TODO.
4183 (estimate_function_body_sizes): Use compute_bb_predicates
4184 and free them later, always try to estimate if stmt is constant.
4185 (estimate_time_after_inlining, estimate_size_after_inlining):
4186 Gracefully handle optimized out edges.
4187 (read_predicate): Fix off by one error.
4189 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4191 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4193 2011-04-27 Xinliang David Li <davidxl@google.com>
4195 * tree-profile.c (init_ic_make_global_vars): Set
4196 tls attribute on ic vars.
4197 * coverage.c (coverage_end_function): Initialize
4198 function_list with zero.
4200 2011-04-29 Richard Guenther <rguenther@suse.de>
4202 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4203 for the type of the result.
4204 (fold_builtin_isascii): Likewise.
4205 (fold_builtin_toascii): Use integer_type_node where appropriate.
4206 (fold_builtin_logb): Likewise.
4207 (fold_builtin_frexp): Likewise.
4208 (fold_builtin_strstr): Likewise.
4209 (fold_builtin_strpbrk): Likewise.
4210 (fold_builtin_fputs): Likewise.
4211 (fold_builtin_sprintf): Likewise.
4212 (fold_builtin_snprintf): Likewise.
4213 (fold_builtin_printf): Likewise.
4214 (do_mpfr_remquo): Use a proper type for the assigned constant.
4215 (do_mpfr_lgamma_r): Likewise.
4216 * dwarf2out.c (resolve_one_addr): Use size_int.
4217 * except.c (init_eh): Likewise.
4218 (assign_filter_values): Use integer_type_node for filter values.
4219 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4221 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4222 for EH region numbers.
4223 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4224 for the shift amount.
4226 2011-04-29 Richard Guenther <rguenther@suse.de>
4228 * expr.h (expand_shift): Rename to ...
4229 (expand_variable_shift): ... this.
4230 (expand_shift): Take a constant shift amount.
4231 * expmed.c (expand_shift): Rename to ...
4232 (expand_variable_shift): ... this.
4233 (expand_shift): New wrapper around expand_variable_shift.
4234 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4235 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4236 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4237 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4238 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4239 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4240 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4241 emit_store_flag_1, emit_store_flag): Likewise.
4242 * builtins.c (expand_builtin_signbit): Likewise.
4243 * calls.c (load_register_parameters): Likewise.
4244 * function.c (assign_parm_setup_block): Likewise.
4245 * lower-subreg.c (resolve_shift_zext): Likewise.
4246 * optabs.c (widen_bswap, expand_abs_nojump,
4247 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4248 * spu/spu.c (spu_expand_extv): Likewise.
4249 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4251 2011-04-29 Richard Guenther <rguenther@suse.de>
4253 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4254 for the remapped region number.
4255 * predict.c (build_predict_expr): Use integer_type_node for the
4257 * fold-const.c (fold_binary_loc): Use integer_type_node for
4258 the shift amount. Use a proper type for the PLUS_EXPR operand.
4260 2011-04-29 Michael Matz <matz@suse.de>
4262 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4263 other trees that just builtins.
4264 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4266 2011-04-29 Richard Guenther <rguenther@suse.de>
4268 * tree-nested.c (get_trampoline_type): Use size_int.
4269 (get_nl_goto_field): Likewise.
4270 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4272 (lower_eh_constructs_2): Likewise.
4273 (lower_resx): Likewise.
4274 (lower_eh_dispatch): Likewise.
4275 * tree-mudflap.c (mf_build_string): Use size_int.
4276 (mudflap_register_call): Use integer_type_node for the flag.
4277 (mudflap_enqueue_constant): Use size_int.
4278 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4279 instead of rebuilding it.
4281 2011-04-29 Richard Guenther <rguenther@suse.de>
4283 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4284 Handle OBJ_TYPE_REF.
4285 (find_func_aliases_for_call): Use it more consistently.
4287 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4289 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4290 (rank_for_schedule): Use it.
4291 (schedule_block): Set it.
4293 2011-04-28 David Li <davidxl@google.com>
4295 * tree.c (crc32_string): Use crc32_byte.
4296 (crc32_byte): New function.
4297 * tree.h (crc32_byte): New function.
4298 * gcov.c (read_graph_file): Handle new cfg_cksum.
4299 (read_count_file): Ditto.
4300 * profile.c (instrument_values): Ditto.
4301 (get_exec_counts): Ditto.
4302 (read_profile_edge_counts): Ditto.
4303 (compute_branch_probabilities): Ditto.
4304 (compute_value_histograms): Ditto.
4305 (branch_prob): Ditto.
4306 (end_branch_prob): Ditto.
4307 * coverage.c (read_counts_file): Ditto.
4308 (get_coverage_counts): Ditto.
4309 (tree_coverage_counter_addr): Ditto.
4310 (coverage_checksum_string): Ditto.
4311 (coverage_begin_output): Ditto.
4312 (coverage_end_function): Ditto.
4313 (build_fn_info_type): Ditto.
4314 (build_fn_info_value): Ditto.
4315 * libgcov.c (gcov_exit): Ditto.
4316 * gcov-dump.c (tag_function): Ditto.
4317 (compute_checksum): Remove.
4319 2011-04-29 Alan Modra <amodra@gmail.com>
4321 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4322 unspec plus offset. Tidy macho code.
4324 2011-04-29 Martin Jambor <mjambor@suse.cz>
4326 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4327 node instead of a decl. Update all callers.
4328 * cgraph.h: Update declaration.
4330 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4332 PR tree-optimization/48765
4333 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4334 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4335 to indicate if loop aware SLP is being used. Scan the statements
4336 and update the vectorization factor according to the type of
4337 vectorization before statement analysis.
4338 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4339 pass it to vect_analyze_loop_operations.
4340 (vectorizable_reduction): Set number of copies to 1 in case of pure
4342 * tree-vect-stmts.c (vectorizable_conversion,
4343 vectorizable_assignment, vectorizable_shift,
4344 vectorizable_operation, vectorizable_type_demotion,
4345 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4347 (vectorizable_condition): Move the check that it is not SLP
4348 vectorization before the number of copies check.
4349 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4350 to vectorize the loop using SLP.
4352 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4355 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4358 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4360 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4361 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4362 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4363 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4364 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4366 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4367 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4368 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4369 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4370 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4371 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4373 * config/i386/linux.h (REG_NAME): Don't define.
4374 * config/i386/linux64.h (REG_NAME): Don't define.
4375 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4376 Undefine before defining.
4378 2011-04-28 Jan Hubicka <jh@suse.cz>
4380 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4381 nonconstant_names array.
4382 (estimate_function_body_sizes): Build nonconstant_names array; handle
4383 BUILT_IN_CONSTANT_P.
4385 2011-04-28 Richard Guenther <rguenther@suse.de>
4389 2011-04-28 Richard Guenther <rguenther@suse.de>
4391 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4392 as late as possible.
4394 2011-04-28 Richard Guenther <rguenther@suse.de>
4396 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4397 (debug_constraint): Do it here.
4398 (dump_constraints): And here.
4399 (rewrite_constraints): And here.
4400 (dump_constraint_edge): Remove.
4401 (dump_constraint_graph): Rewrite to produce DOT output.
4402 (solve_constraints): Build succ graph as late as possible.
4403 Dump constraint graphs before and after solving.
4405 2011-04-28 Richard Guenther <rguenther@suse.de>
4407 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4408 New function split out from ...
4409 (find_func_aliases): ... here. Call it.
4410 (find_func_aliases_for_call): Likewise.
4412 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4414 * internal-fn.h (internal_fn_name_array): Declare.
4415 (internal_fn_flags_array): Likewise.
4417 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4419 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4420 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4422 (ssemodefsuffix): Remove.
4423 (ssevecmodesuffix): New mode attribute.
4424 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4425 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4426 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4427 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4428 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4429 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4430 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4431 ssemodesuffix mode attribute.
4432 (float splitters): Use ssevecmodesuffix mode attribute.
4433 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4434 (sseinsmode): Rename from avxvecmode.
4435 (avxsizesuffix): Rename from avxmodesuffix.
4436 (sseintvecmode): Rename from avxpermvecmode.
4437 (ssedoublevecmode): Rename from ssedoublesizemode.
4438 (ssehalfvecmode): Rename from avxhalfvecmode.
4439 (ssescalarmode): Rename from avxscalarmode.
4440 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4441 templates for ssemodesuffix mode attribute.
4442 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4445 Adjust RTX patterns globally for renamed mode attributes.
4447 2011-04-27 Jan Hubcika <jh@suse.cz>
4449 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4450 * ipa-inline-analysis.c: Include alloc-pool.h.
4451 (edge_predicate_pool): New.
4452 (trye_predicate_p): New function
4453 (false_predicate_p): New function.
4454 (add_clause): Sanity check that false clauses are "optimized";
4455 never add clauses to predicate that is already known to be false.
4456 (and_predicate): Use flase_predicate_p.
4457 (evaulate_predicate): Rename to ...
4458 (evaluate_predicate): ... this one; update all callers; assert
4459 that false is not listed among possible truths.
4460 (dump_predicate): Use true_predicate_p.
4461 (account_size_time): Use false_predicate_p.
4462 (evaulate_conditions_for_edge): Rename to ...
4463 (evaluate_conditions_for_edge) ... this one.
4464 (edge_set_predicate): New function.
4465 (inline_edge_duplication_hook): Duplicate edge predicates.
4466 (inline_edge_removal_hook): Free edge predicates.
4467 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4468 (dump_inline_summary): Update.
4469 (estimate_function_body_sizes): Set edge predicates.
4470 (estimate_calls_size_and_time): Handle predicates.
4471 (estimate_callee_size_and_time): Update.
4472 (remap_predicate): Add toplev_predicate; update comment.
4473 (remap_edge_predicates): New function.
4474 (inline_merge_summary): Compute toplev predicate; update.
4475 (read_predicate): New function.
4476 (read_inline_edge_summary): Use it.
4477 (inline_read_section): Likewise.
4478 (write_predicate): New function.
4479 (write_inline_edge_summary): Use it.
4480 (inline_write_summary): Likewise.
4481 (inline_free_summary): Free alloc pool and edge summary vec.
4483 2011-04-27 Richard Guenther <rguenther@suse.de>
4485 * tree-ssa-structalias.c (changed_count): Remove.
4486 (changed): Use a bitmap.
4487 (unify_nodes): Adjust.
4488 (do_sd_constraint): Likewise.
4489 (do_ds_constraint): Likewise.
4490 (do_complex_constraint): Likewise.
4491 (solve_graph): Likewise.
4493 2011-04-27 Jan Hubicka <jh@suse.cz>
4495 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
4497 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4499 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
4500 (avx_vperm2f128_*_operand): Ditto.
4501 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
4502 Use avx_vpermilp_parallel in insn condition.
4503 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
4504 Use avx_vperm2f128_parallel in insn condition.
4506 2011-04-27 Richard Guenther <rguenther@suse.de>
4508 * Makefile.in (tree-ssa-structalias.o): Remove
4509 gt-tree-ssa-structalias.h dependency.
4510 (GTFILES): Remove tree-ssa-structalias.c.
4511 * tree.c (allocate_decl_uid): New function.
4512 (make_node_stat): Use it.
4513 (copy_node_stat): Likewise.
4514 * tree.h (allocate_decl_uid): Declare.
4515 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
4516 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
4517 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
4518 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
4519 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
4520 (struct heapvar_map): Likewise.
4521 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
4522 heapvar_insert): Likewise.
4523 (make_heapvar_for): Rename to ...
4524 (make_heapvar): ... this. Simplify.
4525 (fake_var_decl_obstack): New global var.
4526 (build_fake_var_decl): New function.
4527 (make_constraint_from_heapvar): Adjust.
4528 (handle_lhs_call): Likewise.
4529 (create_function_info_for): Likewise.
4530 (intra_create_variable_infos): Likewise.
4531 (init_alias_vars): Allocate fake_var_decl_obstack.
4532 (init_alias_heapvars, delete_alias_heapvars): Remove.
4533 (compute_points_to_sets): Do not call init_alias_heapvars.
4534 (ipa_pta_execute): Likewise.
4535 (delete_points_to_sets): Free fake_var_decl_obstack.
4537 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4539 * config/spu/divmovti4.c (union qword_UTItype): New data type.
4540 (si_from_UTItype, si_to_UTItype): New functions.
4541 (__udivmodti4): Use them to implement type-punning.
4542 * config/spu/multi3.c (union qword_TItype): New data type.
4543 (si_from_TItype, si_to_TItype): New functions.
4544 (__multi3): Use them to implement type-punning.
4546 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4548 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
4550 2011-04-27 Jan Hubicka <jh@suse.cz>
4552 * ipa-prop.c (function_insertion_hook_holder): New holder.
4553 (ipa_add_new_function): New function.
4554 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
4555 Register/deregister holder.
4557 2011-04-27 Richard Guenther <rguenther@suse.de>
4559 PR tree-optimization/48772
4560 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
4562 2011-04-27 Richard Guenther <rguenther@suse.de>
4564 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
4565 TARGET_MEM_REF handling.
4567 2011-04-27 Nick Clifton <nickc@redhat.com>
4569 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
4570 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
4571 (REG_CLASS_NAMES): Likewise.
4572 (REG_CLASS_CONTENTS): Likewise.
4573 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4574 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
4575 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
4576 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
4577 (EVEN_REGS): New macro. Alias for QUAD_REGS.
4578 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
4579 duplicate register classes.
4580 (frv_class_likely_spilled_p): Likewise.
4581 (frv_register_move_cost): Likewise.
4583 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
4584 end of the regno_reg_class array.
4586 2011-04-27 Jakub Jelinek <jakub@redhat.com>
4589 * c-typeck.c (build_binary_op): Don't wrap arguments if
4590 int_operands is true.
4592 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
4595 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
4596 targetm.calls.must_pass_in_stack for void type.
4598 2011-04-26 Jan Hubicka <jh@suse.cz>
4600 * cgraphbuild.c (build_cgraph_edges): Update call
4601 of cgraph_create_edge and cgraph_create_indirect_edge.
4602 * cgraph.c (cgraph_create_edge_including_clones,
4603 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
4604 cgraph_update_edges_for_call_stmt_node): Do not take nest
4605 argument; do not initialize call_stmt_size/time.
4606 (dump_cgraph_node): Do not dump nest.
4607 (cgraph_clone_edge): Do not take loop_nest argument;
4608 do not propagate it; do not clone call_stmt_size/time.
4609 (cgraph_clone_node): Likewise.
4610 (cgraph_create_virtual_clone): Update.
4611 * cgraph.h (struct cgraph_edge): Remove
4612 call_stmt_size/call_stmt_time/loop_nest.
4613 (cgraph_create_edge, cgraph_create_indirect_edge,
4614 cgraph_create_edge_including_clones, cgraph_clone_node): Update
4616 * tree-emutls.c (gen_emutls_addr): Update.
4617 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
4618 loop_nest; handle indirect calls, too.
4619 (clone_inlined_nodes): Do not care about updating inline summaries.
4620 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
4621 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
4622 stream call_stmt_size/call_stmt_time/loop_nest.
4623 * ipa-inline.c (edge_badness): Update.
4624 (ipa_inline): dump summaries after inlining.
4625 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
4627 (inline_edge_summary): New function.
4628 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
4629 (inline_edge_removal_hook): Handle edge summaries.
4630 (inline_edge_duplication_hook): New hook.
4631 (inline_summary_alloc): Alloc hooks.
4632 (initialize_growth_caches): Do not register removal hooks.
4633 (free_growth_caches); Do not free removal hook.
4634 (dump_inline_edge_summary): New function.
4635 (dump_inline_summary): Use it.
4636 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
4637 (inline_update_callee_summaries): New function.
4638 (inline_merge_summary): Use it.
4639 (do_estimate_edge_time, do_estimate_edge_growth): Update.
4640 (read_inline_edge_summary): New function.
4641 (inline_read_section): Use it.
4642 (write_inline_edge_summary): New function.
4643 (inline_write_summary): Use it.
4644 (inline_free_summary): Free edge new holders.
4645 * tree-inline.c (copy_bb): Update.
4647 2011-04-26 Jason Merrill <jason@redhat.com>
4649 * tree-eh.c (lower_try_finally_switch): Create the label along with
4650 the CASE_LABEL_EXPR.
4652 2011-04-26 David S. Miller <davem@davemloft.net>
4653 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4655 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
4656 * configure: Regenerate.
4658 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
4661 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
4663 (VEC_reduc): New code iterator and splitters for vector reduction.
4664 (VEC_reduc_name): Ditto.
4665 (VEC_reduc_rtx): Ditto.
4666 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
4667 (reduc_<VEC_reduc_name>_v4sf): Ditto.
4669 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
4670 support for extracting SF on VSX.
4672 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
4673 generating xscvspdp.
4674 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
4675 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
4676 double add, minimum, maximum vector reduction.
4677 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
4678 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
4679 optimize double vector reduction.
4680 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
4682 2011-04-26 Joseph Myers <joseph@codesourcery.com>
4684 * config/fr30/fr30.h (inhibit_libc): Don't define.
4685 * config/m32r/m32r-protos.h: Correct comment.
4686 * config/v850/v850.h (GHS_default_section_names,
4687 GHS_current_section_names): Use tree, not union tree_node *.
4689 2011-04-26 Xinliang David Li <davidxl@google.com>
4691 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
4692 * c-family/c-opts.c (c_common_handle_option): Set
4693 warn_maybe_uninitialized.
4694 * opts.c (common_handle_option): Ditto.
4695 * common.opt: New option.
4696 * tree-ssa.c (warn_uninit): Add one more parameter.
4697 (warn_uninitialized_var): Pass warning code.
4698 * tree-flow.h: Interface change.
4700 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4702 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
4703 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
4704 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
4706 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4708 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
4709 * config/mips/mips.opt (mmips-tfile): Remove.
4711 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
4712 mips-tdump reference to ...
4713 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
4714 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
4715 reference by Tru64 UNIX.
4717 2011-04-26 Jakub Jelinek <jakub@redhat.com>
4720 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4721 is error_mark_node, set value to NULL.
4723 PR tree-optimization/48734
4724 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4725 if return value from maybe_fold_*_comparsions isn't something
4726 the code is prepared to handle.
4728 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
4730 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4732 (ext_QIreg_nomode_operands): Remove.
4733 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4737 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
4739 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4741 2011-04-26 Richard Guenther <rguenther@suse.de>
4743 * c-typeck.c (build_unary_op): Do not expand array-refs via
4744 pointer arithmetic. Only adjust qualifiers for function types.
4746 2011-04-26 Richard Guenther <rguenther@suse.de>
4749 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4750 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4751 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
4752 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4754 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4756 * doc/extend.texi: Document __underlying_type.
4758 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
4760 * config/rs6000/titan.md (automata_option "progress"): Remove.
4762 2011-04-25 Jeff Law <law@redhat.com>
4764 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4766 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4768 * system.h (ENUM_BITFIELD): Remove.
4770 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
4771 Eric Botcazou <ebotcazou@adacore.com>
4773 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4774 for STORE_FLAG_VALUE==-1 case.
4776 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
4779 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4780 LEGITIMATE_PIC_OPERAND_P.
4782 2011-04-24 Jan Hubicka <jh@suse.cz>
4784 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4786 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4787 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4788 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4789 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4790 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4791 Sanity check predicate length.
4792 (remap_predicate): Likewise; sanity check jump functions.
4793 (inline_read_section, inline_write_summary): Sanity check
4796 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4799 * doc/extend.texi (Type Traits): Document __is_standard_layout,
4800 __is_literal_type, and __is_trivial; update throughout about
4801 possibly cv-qualified void types.
4803 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
4805 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4806 testsuite and make it version agnostic.
4808 2011-04-22 Jan Hubicka <jh@suse.cz>
4810 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4812 2011-04-23 Jakub Jelinek <jakub@redhat.com>
4815 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4816 to VOID_TYPE even around MODIFY_EXPR.
4818 2011-04-22 Mike Stump <mikestump@comcast.net>
4820 * gensupport.c (read_md_rtx): Fix typo in comment.
4821 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4824 2011-04-22 Jan Hubicka <jh@suse.cz>
4826 * gengtype.c (open_base_files): Add ipa-inline.h include.
4827 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4828 ipa-prop.c; update all uses.
4829 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4830 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4831 merge summary of inlined function into former caller.
4832 * ipa-inline.c (max_benefit): Remove.
4833 (edge_badness): Compensate for removal of benefits.
4834 (update_caller_keys): Use
4835 reset_node_growth_cache/reset_edge_growth_cache.
4836 (update_callee_keys): Likewise.
4837 (update_all_callee_keys): Likewise.
4838 (inline_small_functions): Do not collect max_benefit; do not reset
4839 estimated_growth; call free_growth_caches and initialize_growth_caches.
4840 * ipa-inline.h (struct condition, type clause_t, struct predicate,
4841 struct size_time_entry): New structures.
4842 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4843 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4844 and estimated_growth.
4845 (edge_growth_cache_entry): New structure.
4846 (node_growth_cache, edge_growth_cache): New global vars.
4847 (estimate_growth): Turn into inline.
4848 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4849 initialize_growth_caches, free_growth_caches): Declare.
4850 (estimate_edge_growth): Rewrite.
4851 (estimate_edge_time): Implement as inline cache lookup.
4852 (reset_node_growth_cache, reset_edge_growth_cache): New inline
4854 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4855 (NUM_CONDITIONS): New constant.
4856 (predicate_conditions): New enum.
4857 (IS_NOT_CONSTANT): New constant.
4858 (edge_removal_hook_holder): New var.
4859 (node_growth_cache, edge_growth_cache): New global vars.
4860 (true_predicate, single_cond_predicate, false_predicate,
4861 not_inlined_predicate, add_condition, add_clause, and_predicates,
4862 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4863 dump_clause, dump_predicate, account_size_time,
4864 evaulate_conditions_for_edge): New functions.
4865 (inline_summary_alloc): Move to heap.
4866 (inline_node_removal_hook): Clear condition and entry vectors.
4867 (inline_edge_removal_hook): New function.
4868 (initialize_growth_caches, free_growth_caches): New function.
4869 (dump_inline_summary): Update.
4870 (edge_execution_predicate): New function.
4871 (will_be_nonconstant_predicate): New function.
4872 (estimate_function_body_sizes): Compute BB and constantness predicates.
4873 (compute_inline_parameters): Do not clear estimated_growth.
4874 (estimate_edge_size_and_time): New function.
4875 (estimate_calls_size_and_time): New function.
4876 (estimate_callee_size_and_time): New function.
4877 (remap_predicate): New function.
4878 (inline_merge_summary): New function.
4879 (do_estimate_edge_time): New function based on...
4880 (estimate_edge_time): ... this one.
4881 (do_estimate_edge_growth): New function.
4882 (do_estimate_growth): New function based on....
4883 (estimate_growth): ... this one.
4884 (inline_analyze_function): Analyze after deciding on jump functions.
4885 (inline_read_section): New function.
4886 (inline_read_summary): Use it.
4887 (inline_write_summary): Write all the new data.
4888 * ipa-prop.c (ipa_get_param_decl_index): Export.
4889 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4890 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4892 (ipa_get_lattice): Move here from ipa-cp.c
4893 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4894 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4895 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4896 cgraph_edge_inlinable_p): Remove.
4897 * cgraphunit.c: Include ipainline.h
4898 (cgraph_process_new_functions): Update call of
4899 compute_inline_parameters.
4901 2011-04-22 Richard Guenther <rguenther@suse.de>
4903 * tree.c (build_int_cst): Properly create canonicalized integer
4905 (build_int_cst_type): Remove scary comments.
4907 2011-04-22 Xinliang David Li <davidxl@google.com>
4909 * toplev.c (process_options): Enable -Werror=coverage-mismatch
4910 by default when -Wno-error is not specified.
4911 * opts-global.c (decode_options): Remove call to
4912 control_warning_options.
4914 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4916 PR tree-optimization/48717
4917 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4918 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4920 2011-04-22 Joseph Myers <joseph@codesourcery.com>
4922 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
4923 definition where used.
4925 2011-04-22 Jakub Jelinek <jakub@redhat.com>
4928 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4929 TREE_STATIC variables declared inside of some OpenMP construct.
4931 2011-04-22 Martin Jambor <mjambor@suse.cz>
4934 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4936 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
4939 * c-typeck.c (pop_init_level): Do not warn about initializing
4942 2011-04-22 Alan Modra <amodra@gmail.com>
4944 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4945 when returning call_cookie.
4946 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4947 pointers, to functions with no more vector args than the current
4948 function, and some non-local calls for ABI_V4.
4949 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4950 sibcall_nonlocal_aix64): Combine to ..
4951 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
4952 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4953 (sibcall_value_nonlocal_aix<mode>): ..likewise.
4954 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4955 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
4957 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4958 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4959 sibcall_value_symbolic_64): Delete.
4961 2011-04-21 Xinliang David Li <davidxl@google.com>
4963 * cgraph.h: Remove pid.
4964 * cgraph.c: Remove pid.
4965 * value-prof.c (init_node_map): New function.
4966 (del_node_map): New function.
4967 (find_func_by_funcdef_no): New function.
4968 (gimple_ic_transform): Call new function.
4969 * cgraphunit.c (cgraph_finalize_function): Remove pid.
4970 * function.c (get_last_funcdef_no): New function.
4971 * function.h (get_last_funcdef_no): New function.
4972 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4973 to libgcov function.
4974 (tree-profiling): Call node map init and delete function.
4976 2011-04-21 Ian Lance Taylor <iant@google.com>
4978 * godump.c (go_format_type): Use exported Go name for anonymous
4981 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4983 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4984 Call builtin_function_type_list instead of builtin_function_type.
4985 (UNARY, BINARY, TRINARY, QUAD): Likewise.
4987 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4989 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4990 build_function_type_list instead of build_function_type.
4991 Delete variable `endlink'.
4993 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
4995 * config/s390/s390.c (s390_init_builtins): Call
4996 build_function_type_list instead of build_function_type.
4998 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5000 * config/ia64/ia64.c (ia64_init_builtins): Call
5001 build_function_type_list instead of builtin_function_type.
5003 2011-04-21 Easwaran Raman <eraman@google.com>
5005 * cfgexpand.c (stack_var): Remove OFFSET...
5006 (add_stack_var): ...and its reference here...
5007 (expand_stack_vars): ...and here.
5008 (stack_var_cmp): Sort by descending order of size.
5009 (partition_stack_vars): Change heuristic.
5010 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5011 (dump_stack_var_partition): Add newline after each partition.
5013 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5014 Jeff Law <law@redhat.com>
5016 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5017 * gengtype.c (matching_file_name_substitute): Likewise.
5019 2011-04-21 Richard Guenther <rguenther@suse.de>
5022 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5024 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5026 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5028 2011-04-21 Richard Guenther <rguenther@suse.de>
5030 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5033 2011-04-21 Richard Guenther <rguenther@suse.de>
5035 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5036 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5037 Use DECL_P, not SSA_VAR_P.
5038 (ptr_derefs_may_alias_p): Likewise.
5039 (ptr_deref_may_alias_ref_p_1): Likewise.
5040 (decl_refs_may_alias_p): Likewise.
5041 (refs_may_alias_p_1): Likewise.
5042 (ref_maybe_used_by_call_p_1): Likewise.
5043 (call_may_clobber_ref_p_1): Likewise.
5044 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5045 are either MEM_REF or TARGET_MEM_REF.
5046 (indirect_refs_may_alias_p): Likewise.
5047 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5048 for MEM_EXPR of indirect calls.
5050 2011-04-21 Tristan Gingold <gingold@adacore.com>
5052 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5053 (dst_file_info_struct): Remove flen field.
5054 (lookup_filename): Remove code that set flen field.
5056 2011-04-21 Tristan Gingold <gingold@adacore.com>
5058 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5060 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5063 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5064 vec_extract and vec_concat for non-SSE4_1 targets.
5066 2011-04-21 Richard Guenther <rguenther@suse.de>
5068 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5071 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5073 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5075 (FILE): Don't undefine.
5077 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5079 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5081 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5083 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5084 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5085 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5087 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5088 definitions where used.
5089 * config/microblaze/microblaze.h (struct microblaze_args): Use
5090 rtx, not struct rtx_def *.
5091 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5093 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5094 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5095 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5096 not struct rtx_def *.
5097 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5099 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5101 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5103 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5105 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5106 operand_equal_p to compare DR_BASE_ADDRESSes.
5107 (vect_check_interleaving): Likewise.
5109 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5112 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5113 for all Neon struct constants.
5115 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5117 * target.def (legitimate_constant_p): New hook.
5118 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5119 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5120 * doc/tm.texi: Regenerate.
5121 * hooks.h (hook_bool_mode_rtx_true): Declare.
5122 * hooks.c (hook_bool_mode_rtx_true): Define.
5123 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5124 * calls.c (precompute_register_parameters): Replace uses of
5125 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5126 (emit_library_call_value_1): Likewise.
5127 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5128 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5129 * ira-costs.c (scan_one_insn): Likewise.
5130 * recog.c (general_operand, immediate_operand): Likewise.
5131 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5132 * reload1.c (init_eliminable_invariants): Likewise.
5134 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5136 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5137 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5139 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5140 * config/alpha/predicates.md (input_operand): Update call to
5141 alpha_legitimate_constant_p.
5143 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5144 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5145 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5146 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5147 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5148 (arm_legitimate_constant_p): New functions.
5149 (arm_cannot_force_const_mem): Make static.
5151 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5153 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5154 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5155 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5156 instead of bfin_legitimate_constant_p.
5157 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5158 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5160 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5162 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5164 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5165 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5166 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5167 (frv_legitimate_constant_p): Make static. Add a mode argument.
5169 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5170 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5171 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5173 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5174 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5175 * config/i386/i386.c (legitimate_constant_p): Rename to...
5176 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5178 (ix86_cannot_force_const_mem): Update accordingly.
5179 (ix86_legitimate_address_p): Likewise.
5180 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5181 * config/i386/i386.md: Update commentary.
5183 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5184 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5185 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5186 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5188 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5190 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5191 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5192 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5193 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5195 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5196 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5197 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5199 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5200 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5201 (m32r_legitimate_constant_p): New function.
5203 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5204 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5205 LEGITIMATE_CONSTANT_P.
5206 (LEGITIMATE_CONSTANT_P): Delete.
5207 * config/m68k/m68k.c (m68k_expand_prologue): Call
5208 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5209 (m68k_legitimate_constant_p): New function.
5210 * config/m68k/m68k.md: Update comments.
5212 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5213 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5214 (mcore_legitimate_constant_p): New function.
5216 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5217 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5218 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5219 Add a mode argument.
5220 (mep_legitimate_address): Update accordingly.
5221 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5223 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5225 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5226 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5227 static. Check OP's mode for VOIDmode.
5228 (microblaze_legitimate_constant_p): New function.
5229 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5231 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5232 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5233 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5234 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5235 * config/mips/predicates.md: Update comments.
5237 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5238 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5239 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5240 (mmix_legitimate_constant_p): Make static, return a bool, and take
5242 (mmix_print_operand_address): Update accordingly.
5244 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5246 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5247 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5248 static. Add a mode argument.
5249 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5251 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5253 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5254 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5255 (pa_legitimate_constant_p): New function.
5257 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5259 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5260 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5261 (pdp11_legitimate_constant_p): New function.
5263 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5264 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5265 (rs6000_legitimate_constant_p): New function.
5267 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5268 (rx_legitimate_constant_p): ...this.
5269 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5270 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5271 (rx_legitimate_constant_p): ...this.
5272 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5273 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5275 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5276 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5277 * config/s390/s390.c (legitimate_constant_p): Rename to...
5278 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5279 and add a mode argument.
5280 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5282 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5284 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5285 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5286 (sh_legitimate_constant_p): New function.
5288 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5289 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5290 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5291 (legitimate_constant_p): Rename to...
5292 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5294 (constant_address_p): Update accordingly.
5296 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5297 argument and return a bool.
5298 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5299 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5300 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5301 (spu_rtx_costs): Update accordingly.
5302 * config/spu/predicates.md (vec_imm_operand): Likewise.
5304 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5306 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5307 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5308 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5310 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5311 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5312 * config/vax/vax.c (legitimate_constant_p): Likewise.
5314 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5315 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5316 (xtensa_legitimate_constant_p): New function.
5318 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5320 * target.def (cannot_force_const_mem): Add a mode argument.
5321 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5322 * doc/tm.texi: Regenerate.
5323 * hooks.h (hook_bool_mode_rtx_false): Declare.
5324 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5325 (hook_bool_mode_const_rtx_true): Likewise.
5326 (hook_bool_mode_rtx_false): New function.
5327 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5328 to be non-VOID. Update call to cannot_force_const_mem.
5329 (find_reloads): Update accordingly.
5330 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5331 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5333 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5334 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5335 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5336 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5337 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5338 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5339 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5340 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5341 (m68k_cannot_force_const_mem): ...this new function.
5342 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5344 (mips_const_insns, mips_legitimize_const_move): Update calls.
5345 (mips_secondary_reload_class): Likewise.
5346 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5347 (pa_cannot_force_const_mem): ...this new function.
5348 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5349 (rs6000_cannot_force_const_mem): ...this new function.
5350 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5352 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5353 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5355 (xtensa_cannot_force_const_mem): ...this new function.
5357 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5359 * config/mips/mips.c (mips16_build_function_stub): Call
5360 build_function_type_list instead of build_function_type.
5361 (mips16_build_call_stub): Likewise.
5363 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5365 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5366 instead of build_function_type.
5368 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5370 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5371 instead of build_function_type.
5373 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5376 * config/i386/i386.md (insv): Change operand 0 constraint to
5377 "register_operand". Change operand 1 and 2 constraint to
5378 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5379 * config/i386/sse.md (sse4_1_pinsrb): Export.
5380 (sse2_pinsrw): Ditto.
5381 (sse4_1_pinsrd): Ditto.
5382 (sse4_1_pinsrq): Ditto.
5383 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5384 * config/i386/i386.c (ix86_expand_pinsr): New.
5386 2011-04-20 Easwaran Raman <eraman@google.com>
5388 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5389 containing union type only with -fstrict-aliasing.
5391 2011-04-20 Jim Meyering <meyering@redhat.com>
5393 Remove useless if-before-free tests.
5394 * calls.c (expand_call, save_area): Likewise.
5395 * cfgcleanup.c (try_forward_edges): Likewise.
5396 * collect2.c (collect_execute): Likewise.
5397 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5398 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5399 * coverage.c (coverage_checksum_string): Likewise.
5400 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5401 * cselib.c (cselib_init): Likewise.
5402 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5403 (df_set_clean_cfg): Likewise.
5404 * function.c (free_after_compilation): Likewise.
5405 * gcc.c (do_spec_1, main): Likewise.
5406 * gcov.c (create_file_names): Likewise.
5407 * gensupport.c (identify_predicable_attribute): Likewise.
5408 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5409 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5410 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5411 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5412 * ipa-pure-const.c (local_pure_const): Likewise.
5413 * ipa-reference.c (propagate): Likewise.
5414 * ira-costs.c (free_ira_costs): Likewise.
5415 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5416 * matrix-reorg.c (mat_free): Likewise.
5417 * prefix.c (get_key_value): Likewise.
5418 * profile.c (compute_value_histograms): Likewise.
5419 * reload1.c (free_reg_equiv): Likewise.
5420 * sched-deps.c (free_deps): Likewise.
5421 * sel-sched-ir.c (fence_clear): Likewise.
5422 * sese.c (set_rename, if_region_set_false_region): Likewise.
5423 * tree-data-ref.c (free_rdg): Likewise.
5424 * tree-eh.c (lower_try_finally): Likewise.
5425 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5426 * tree-ssa-live.c (delete_var_map): Likewise.
5427 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5428 * tree-ssa-pre.c (phi_trans_add): Likewise.
5430 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5432 PR tree-optimization/48611
5433 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5434 beyond ERT_MUST_NOT_THROW region.
5436 2011-04-20 Catherine Moore <clm@codesourcery.com>
5438 * config/mips/mips.opt (mfix-24k): New.
5439 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5440 * config/mips/mips.md (length): Increase by 4 for stores if
5442 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5443 all noreorder if fixing 24K errata.
5444 * doc/invoke.texi: Document mfix-24k.
5446 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5448 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5449 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5451 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5453 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5454 (const_ok_for_op): ... to here.
5456 2011-04-20 Kai Tietz <ktietz@redhat.com>
5458 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5459 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5461 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5463 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5465 2011-04-20 Richard Guenther <rguenther@suse.de>
5467 PR tree-optimization/47892
5468 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5471 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5473 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5475 2011-04-20 Tristan Gingold <gingold@adacore.com>
5477 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
5479 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
5483 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
5484 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
5485 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5486 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
5487 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
5489 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
5492 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
5493 (avr_asm_named_section, avr_asm_output_aligned_common,
5494 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
5495 New functions to update...
5496 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
5497 (avr_asm_init_sections): Overwrite section callbacks for
5498 data_section, bss_section.
5499 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
5501 (avr_file_end): ...here.
5503 2011-04-20 Richard Guenther <rguenther@suse.de>
5506 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
5507 objects and types here. Adjust for their offset before comparing.
5509 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5511 * tree-vect-stmts.c (vectorizable_store): Only chain one related
5514 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
5516 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
5517 (GIMPLE_H): Include $(INTERNAL_FN_H).
5518 (OBJS-common): Add internal-fn.o.
5519 (internal-fn.o): New rule.
5520 * internal-fn.def: New file.
5521 * internal-fn.h: Likewise.
5522 * internal-fn.c: Likewise.
5523 * gimple.h: Include internal-fn.h.
5524 (GF_CALL_INTERNAL): New gf_mask.
5525 (gimple_statement_call): Put fntype into a union with a new
5527 (gimple_build_call_internal): Declare.
5528 (gimple_build_call_internal_vec): Likewise.
5529 (gimple_call_same_target_p): Likewise.
5530 (gimple_call_internal_p): New function.
5531 (gimple_call_internal_fn): Likewise.
5532 (gimple_call_fntype): Return null for internal calls.
5533 (gimple_call_set_fntype): Assert that the function is not internal.
5534 (gimple_call_set_fn): Likewise.
5535 (gimple_call_set_fndecl): Likewise.
5536 (gimple_call_set_internal_fn): New function.
5537 (gimple_call_addr_fndecl): Handle null functions.
5538 (gimple_call_return_type): Likewise null types.
5539 * gimple.c (gimple_build_call_internal_1): New function.
5540 (gimple_build_call_internal): Likewise.
5541 (gimple_build_call_internal_vec): Likewise.
5542 (gimple_call_same_target_p): Likewise.
5543 (gimple_call_flags): Handle calls to internal functions.
5544 (gimple_call_fnspec): New function.
5545 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
5546 (gimple_has_side_effects): Handle null functions.
5547 (gimple_rhs_has_side_effects): Likewise.
5548 (gimple_call_copy_skip_args): Handle calls to internal functions.
5549 * cfgexpand.c (expand_call_stmt): Likewise.
5550 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
5551 * gimple-fold.c (gimple_fold_call): Handle null functions.
5552 (gimple_fold_stmt_to_constant_1): Don't fold
5553 calls to internal functions.
5554 * gimple-low.c (gimple_check_call_args): Handle calls to internal
5556 * gimple-pretty-print.c (dump_gimple_call): Likewise.
5557 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
5558 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
5559 (do_warn_unused_result): Likewise.
5560 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
5561 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
5562 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
5563 the target of a call.
5564 (initialize_hash_element): Update accordingly.
5565 (hashable_expr_equal_p): Use gimple_call_same_target_p.
5566 (iterative_hash_hashable_expr): Handle calls to internal functions.
5567 (print_expr_hash_elt): Likewise.
5568 * tree-ssa-pre.c (can_value_number_call): Likewise.
5569 (eliminate): Handle null functions.
5570 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
5571 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
5572 (find_func_aliases): Likewise.
5573 * value-prof.c (gimple_ic_transform): Likewise.
5574 (gimple_indirect_call_to_profile): Likewise.
5575 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5576 * lto-streamer-out.c (output_gimple_stmt): Likewise.
5578 2011-04-19 Jan Hubicka <jh@suse.cz>
5580 * ipa-inline-transform.c (save_inline_function_body): Add comments.
5581 * ipa-inline.c (inline_small_functions): Compute summaries first,
5582 populate heap later.
5584 2011-04-19 Jan Hubicka <jh@suse.cz>
5586 * cgraph.h (save_inline_function_body): Remove.
5587 * ipa-inline-transform.c: New file, broke out of...
5588 * ipa-inline.c: ... this one; Update toplevel comment.
5589 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
5591 (update_noncloned_frequencies): Move to ipa-inline-transform.c
5592 (cgraph_mark_inline_edge): Rename to inline_call; move to
5593 ipa-inline-transform.c.
5594 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
5595 move to ipa-inline-transform.c
5596 (recursive_inlining, inline_small_functions, flatten_function,
5597 ipa_inline, inline_always_inline_functions,
5598 early_inline_small_functions): Update.
5599 (inline_transform): Move to ipa-inline-transform.c.
5600 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
5602 * Makefile.in (ipa-inline-transform.o): New file.
5603 * cgraphunit.c (save_inline_function_body): Move to
5604 ipa-inline-transform.c
5606 2011-04-19 DJ Delorie <dj@redhat.com>
5608 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
5609 registers if we already know there aren't any.
5610 (m32c_emit_epilogue): Don't emit a barrier here.
5611 (m32c_emit_eh_epilogue): Likewise.
5612 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
5613 operands at expand time.
5614 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
5616 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
5617 duplicates. Provide aliases instead.
5618 * config/m32c/prologue.md (eh_return): Emit a barrier here.
5619 (eh_epilogue): Add a "(return)" here as a hint to other parts of
5622 2011-04-19 Anatoly Sokolov <aesok@post.ru>
5624 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
5625 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
5626 (general_or_i64_p, sparc_register_move_cost): New function.
5628 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5630 * doc/install.texi (Configuration, --enable-threads): Remove mach.
5631 Add lynx, mipssde. Sort table.
5633 2011-04-19 Xinliang David Li <davidxl@google.com>
5635 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
5638 2011-04-19 Jakub Jelinek <jakub@redhat.com>
5641 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
5642 is a SUBREG with non-MODE_INT mode inside of it.
5644 2011-04-19 Martin Jambor <mjambor@suse.cz>
5646 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
5647 also according to actual contants.
5648 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
5649 (gimple_fold_call): Use it.
5650 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
5652 2011-04-19 Martin Jambor <mjambor@suse.cz>
5654 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
5655 non-pointer assignments.
5657 2011-04-19 Martin Jambor <mjambor@suse.cz>
5659 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
5660 account anc_offset and otr_type from the indirect edge info.
5661 * ipa-prop.c (get_ancestor_addr_info): New function.
5662 (compute_complex_ancestor_jump_func): Assignment analysis moved to
5663 get_ancestor_addr_info, call it.
5664 (ipa_note_param_call): Do not initialize information about polymorphic
5665 calls, return the indirect call graph edge. Remove the last
5666 parameter, adjust all callers.
5667 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
5668 parameters. Initialize polymorphic information in the indirect edge.
5670 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5673 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
5674 the types if they have different enumeration identifiers.
5676 2011-04-19 Jan Hubicka <jh@suse.cz>
5678 * cgraph.h (cgraph_optimize_for_size_p): Declare.
5679 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
5680 * predict.c (cgraph_optimize_for_size_p): Break out from ...
5681 (optimize_function_for_size_p) ... here.
5683 2011-04-19 Richard Guenther <rguenther@suse.de>
5686 * tree.c (free_lang_data): Do not reset the decl-assembler-name
5689 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
5691 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
5692 if DECL_NO_INLINE_WARNING_P is set on the function.
5694 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
5697 * reload1.c (inc_for_reload): Return void. All callers changed.
5698 (emit_input_reload_insns): Don't try to delete previous output
5699 reloads to a register, or record spill_reg_store for autoincs.
5701 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
5703 * gengtype.h: Updated copyright year.
5704 (struct input_file_st): Add inpisplugin field.
5705 (type_fileloc): New function.
5707 (write_typed_struct_alloc_def): Add gcc_assert.
5708 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
5709 (write_typed_alloc_defns): Don't output for plugin files.
5710 (input_file_by_name): Clear inpisplugin field.
5711 (main): Set inpisplugin field for plugin files.
5713 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
5715 * gengtype-state.c (string_eq): New.
5716 (read_state): Use string_eq instead of strcmp when creating the
5719 2011-04-19 Wei Guozhi <carrot@google.com>
5722 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5723 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5725 * config/arm/constraints.md (Uu): New constraint.
5726 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5728 2011-04-19 Tristan Gingold <gingold@adacore.com>
5730 * config.gcc (-*-*-*vms): Added.
5731 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5733 * config/vms/vms-ld.c: New file.
5734 * config/vms/vms-ar.c: New file.
5735 * config/vms/t-vmsnative: New file.
5737 2011-04-18 Xinliang David Li <davidxl@google.com>
5739 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5741 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5744 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5745 if TREE_TYPE (v) is non-NULL.
5747 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5748 gimple_get_virt_mehtod_for_binfo.
5749 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5750 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5752 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5754 2011-04-18 Michael Matz <matz@suse.de>
5755 Steve Ellcey <sje@cup.hp.com>
5757 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5758 use its mode as source mode if it isn't VOIDmode.
5760 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
5762 * doc/passes.texi: Fill crossref nodes.
5764 2011-04-18 Jim Meyering <meyering@redhat.com>
5766 Fix doubled-word typos in comments and strings
5767 * config/alpha/vms-unwind.h: s/for for/for/
5768 * config/arm/unwind-arm.h: Likewise.
5769 * config/microblaze/microblaze.c: Likewise.
5770 * config/sh/constraints.md: s/in in/in/
5771 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5773 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
5775 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5776 (AVX_FLOAT_MODE_P): Ditto.
5777 (AVX128_VEC_FLOAT_MODE_P): Ditto.
5778 (AVX256_VEC_FLOAT_MODE_P): Ditto.
5779 (AVX_VEC_FLOAT_MODE_P): Ditto.
5780 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5781 (UNSPEC_MASKSTORE): Ditto.
5782 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5783 Merge from <sse>_movmsk<ssemodesuffix> and
5784 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
5785 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
5787 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5788 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5789 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5791 2011-04-18 Jan Hubicka <jh@suse.cz>
5793 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5795 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5796 (want_inline_function_called_once_p): Break out the logic from
5798 (edge_badness): Ensure that profile is not misupdated.
5799 (lookup_recursive_calls): Prioritize by call frequencies.
5800 (inline_small_functions): Move program size estimates here;
5801 actually process whole queue even when unit growth has been
5802 met. (to properly compute inline_failed reasons and for the
5803 case unit size decrease.) Revisit comments on recursive inlining.
5804 (ipa_inline): Remove unit summary code; first inline hot calls
5805 of functions called once, cold calls next.
5806 (order, nnodes): Remove unused variables.
5807 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5808 (GTFILES): Remove ipa-inline.c
5809 * sel-sched.c (fill_insns): Silence uninitialized var warning.
5811 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5813 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5815 2011-04-18 Jie Zhang <jie@codesourcery.com>
5816 Richard Earnshaw <rearnsha@arm.com>
5818 * arm.c (neon_builtin_type_bits): Remove.
5819 (typedef enum neon_builtin_mode): New.
5820 (T_MAX): Don't define.
5821 (typedef enum neon_builtin_datum): Remove bits, codes[],
5822 num_vars and base_fcode. Add mode, code and fcode.
5823 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5824 VAR10): Change accordingly.
5825 (neon_builtin_data[]): Change accordingly
5826 (arm_init_neon_builtins): Change accordingly.
5827 (neon_builtin_compare): Remove.
5828 (locate_neon_builtin_icode): Remove.
5829 (arm_expand_neon_builtin): Change accordingly.
5831 * arm.h (enum arm_builtins): Move to ...
5832 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5834 * arm.c (arm_builtin_decl): Declare.
5835 (TARGET_BUILTIN_DECL): Define.
5836 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5837 (arm_builtin_decls[]): New.
5838 (arm_init_neon_builtins): Store builtin declarations in
5839 arm_builtin_decls[].
5840 (arm_init_tls_builtins): Likewise.
5841 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
5842 (arm_builtin_decl): New.
5844 2011-04-18 Richard Guenther <rguenther@suse.de>
5846 * tree.c (upper_bound_in_type): Build properly canonicalized
5848 (lower_bound_in_type): Likewise.
5850 2011-04-18 Richard Guenther <rguenther@suse.de>
5852 * gimple.h (gimple_call_addr_fndecl): New function.
5853 (gimple_call_fndecl): Use it.
5854 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5856 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5857 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5859 2011-04-18 Richard Guenther <rguenther@suse.de>
5862 * tree.c (build_string): STRING_CST is now derived from tree_typed.
5864 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
5867 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5868 DECL_IN_CONSTANT_POOL without RTL.
5870 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
5871 Ira Rosen <ira.rosen@linaro.org>
5874 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5875 to match neon_vzip/vuzp/vtrn_internal.
5876 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5877 outputs explicitly dependent on both inputs.
5878 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5880 2011-04-18 Jakub Jelinek <jakub@redhat.com>
5882 PR tree-optimization/48616
5883 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5884 whether the shift is by scalar or vector based on whether all SLP
5885 scalar stmts have the same rhs.
5887 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
5889 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5892 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
5895 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5898 2011-04-17 Jan Hubicka <jh@suse.cz>
5900 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5901 * cgrpahunit.c (cgraph_finalize_function): Do not set
5902 finalized_by_frontend.
5903 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5904 finalized_by_frontend.
5906 2011-04-17 Jan Hubicka <jh@suse.cz>
5908 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5909 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5910 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5911 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5913 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5915 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5917 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
5920 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5921 is non-null before accessing it.
5922 (input_cgraph): Remove trailing spaces.
5924 2011-04-17 Revital Eres <revital.eres@linaro.org>
5926 * params.def (sms-min-sc): New param flag.
5927 * modulo-sched.c (sms_schedule): Use it.
5928 * doc/invoke.texi (sms-min-sc): Document it.
5930 2011-04-17 Jan Hubicka <jh@suse.cz>
5932 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5933 present, also set gimple_call_set_cannot_inline.
5934 * ipa-inline.c: Update toplevel comment.
5936 (cgraph_clone_inlined_nodes): Fix linebreaks.
5937 (cgraph_check_inline_limits): Restructure to ...
5938 (caller_growth_limits): ... this one; be more tolerant
5939 on growth in nested inline chains; add explanatory comment;
5940 fix stack accounting thinko introduced by previous patch.
5941 (cgraph_default_inline_p): Remove.
5942 (report_inline_failed_reason): New function.
5943 (can_inline_edge_p): New function.
5944 (can_early_inline_edge_p): New function.
5945 (leaf_node_p): Move upwards in file.
5946 (want_early_inline_function_p): New function.
5947 (want_inline_small_function_p): New function.
5948 (want_inline_self_recursive_call_p): New function.
5949 (cgraph_edge_badness): Rename to ...
5950 (edge_badness) ... this one; fix linebreaks.
5951 (update_edge_key): Update call of edge_baddness; add
5952 detailed dump about queue updates.
5953 (update_caller_keys): Use can_inline_edge_p and
5954 want_inline_small_function_p.
5955 (cgraph_decide_recursive_inlining): Rename to...
5956 (recursive_inlining): Use can_inline_edge_p and
5957 want_inline_self_recursive_call_p; simplify and remove no longer
5959 (cgraph_set_inline_failed): Remove.
5960 (add_new_edges_to_heap): Use can_inline_edge_p and
5961 want_inline_small_function_p.
5962 (cgraph_decide_inlining_of_small_functions): Rename to ...
5963 (inline_small_functions): ... this one; cleanup; use
5964 can/want predicates; cleanup debug ouput; work edges till fibheap
5965 is exhausted and do not stop once unit growth is reached; remove
5966 later loop processing remaining edges.
5967 (cgraph_flatten): Rename to ...
5968 (flatten_function): ... this one; use can_inline_edge_p
5969 and can_early_inline_edge_p predicates.
5970 (cgraph_decide_inlining): Rename to ...
5971 (ipa_inline): ... this one; remove unreachable nodes before
5972 inlining functions called once; simplify the pass.
5973 (cgraph_perform_always_inlining): Rename to ...
5974 (inline_always_inline_functions): ... this one; use
5975 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5976 (cgraph_decide_inlining_incrementally): Rename to ...
5977 (early_inline_small_functions): ... this one; simplify
5978 using new predicates; cleanup; make dumps prettier.
5979 (cgraph_early_inlining): Rename to ...
5980 (early_inliner): newer inline regular functions into always-inlines;
5981 fix updating of call stmt summaries.
5982 (pass_early_inline): Update for new names.
5983 (inline_transform): Fix formating.
5984 (gate_cgraph_decide_inlining): Rename to ...
5985 (pass_ipa_inline): ... this one.
5986 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5987 * ipa-inline-analysis.c (dump_inline_summary): Update.
5988 (compute_inline_parameters): Do not compute disregard_inline_limits;
5989 look for mismatching arguments.
5990 (estimate_growth): Fix handlig of non-trivial self recursion.
5991 (inline_read_summary): Do not read info->disregard_inline_limits.
5992 (inline_write_summary): Do not write info->disregard_inline_limits.
5993 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5994 and move all checks into can_inline_edge_p predicate; re-enable code
5995 comparing optimization levels.
5996 (expand_call_inline): Do not test inline_forbidden_into_p.
5997 * Makefile.in (ipa-inline.o): Update arguments.
5999 2011-04-17 Revital Eres <revital.eres@linaro.org>
6001 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6003 2011-04-17 Revital Eres <revital.eres@linaro.org>
6005 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6007 2011-04-17 Michael Matz <matz@suse.de>
6009 PR tree-optimization/48622
6011 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6012 in same order as they're written.
6014 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6016 * config/pa/predicates.md: Reorganize and simplify predicates.
6017 Eliminate duplicate code checks.
6018 (arith_operand): Rename to arith14_operand
6019 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6020 * config/pa/pa.md: Use renamed operands.
6021 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6022 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6023 arith11_operand, adddi3_operand, indexed_memory_operand,
6024 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6025 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6026 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6027 move_dest_operand, move_src_operand, prefetch_cc_operand,
6028 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6029 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6030 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6031 div_operand, int5_operand, movb_comparison_operator,
6032 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6033 arith_double_operand, ireg_operand, lhs_lshift_operand,
6034 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6035 integer_store_memory_operand): Likewise.
6036 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6037 (integer_store_memory_operand, read_only_operand,
6038 function_label_operand, borx_reg_operand,
6039 non_hard_reg_operand): Likewise.
6040 (eq_neq_comparison_operator): Delete unused operator.
6041 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6042 function_label_operand.
6043 (emit_move_sequence): Likewise.
6045 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6047 * config/i386/sse.md (sseunpackmode): New mode attribute.
6048 (ssepackmode): Ditto.
6049 (vec_pack_trunc_<mode>): Macroize expander from
6050 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6051 (vec_unpacks_lo_<mode>): Macroize expander from
6052 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6053 (vec_unpacks_hi_<mode>): Macroize expander from
6054 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6055 (vec_unpacku_lo_<mode>): Macroize expander from
6056 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6057 (vec_unpacku_hi_<mode>): Macroize expander from
6058 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6059 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6060 ix86_expand_sse4_unpack.
6061 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6063 2011-04-16 Jan Hubicka <jh@suse.cz>
6065 * cgraphbuild.c: Include ipa-inline.h.
6066 (reset_inline_failed): Use initialize_inline_failed.
6067 * cgraph.c: Include ipa-inline.h.
6068 (cgraph_create_node_1): Do not initialize estimated_growth.
6069 (initialize_inline_failed): More to ipa-inline-analysis.c
6070 (dump_cgraph_node): Do not dump inline flags.
6071 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6072 and disregard_inline_limits flags.
6073 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6074 time, size, estimated_growth.
6075 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6077 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6078 DECL_DISREGARD_INLINE_LIMITS.
6079 (cgraph_analyze_function): Do not initialize
6080 node->local.disregard_inline_limits.
6081 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6082 inlinable, versionable and disregard_inline_limits.
6083 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6084 cgraph_check_inline_limits, cgraph_default_inline_p,
6085 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6086 add_new_edges_to_heap): Update.
6087 (cgraph_decide_inlining_of_small_function): Update; set
6088 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6089 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6090 cgraph_decide_inlining_incrementally): Update.
6091 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6092 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6093 time, size and estimated_growth parameters.
6094 (estimate_edge_growth): Update.
6095 (initialize_inline_failed): Declare.
6096 * ipa-split.c: Include ipa-inline.h
6097 (execute_split_functions): Update.
6098 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6099 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6100 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6101 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6102 estimated_growth to INT_MIN.
6103 (inline_node_duplication_hook): Likewise.
6104 (dump_inline_summary): Dump new fields.
6105 (compute_inline_parameters): Update.
6106 (estimate_edge_time, estimate_time_after_inlining,
6107 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6108 inline_write_summary):
6109 (initialize_inline_failed): Move here from cgraph.c.
6110 * tree-sra.c: Include ipa-inline.h.
6111 (ipa_sra_preliminary_function_checks): Update.
6112 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6115 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6117 * config/i386/sse.md (V16): New mode iterator.
6119 (AVXMODEQI, AVXMODEDI): Remove.
6120 (sse2, sse3): New mode attribute.
6121 (mov<mode>): Use V16 mode iterator.
6122 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6123 (push<mode>1): Use V16 mode iterator.
6124 (movmisalign<mode>): Ditto.
6125 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6126 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6127 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6128 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6129 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6130 avx_movdqu<avxmodesuffix>.
6131 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6132 *avx_movdqu<avxmodesuffix>.
6133 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6134 avx_lddqu<avxmodesuffix>.
6135 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6136 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6137 avx_movnt<AVXMODEDI:mode>.
6138 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6139 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6141 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6144 * haifa-sched.c (prune_ready_list, schedule_block): Use
6145 sched_pressure_p rather than flag_sched_pressure.
6147 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6149 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6150 cgraph_get_node instead of cgraph_get_create_node.
6152 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6154 * cfgexpand.c (expand_debug_expr): Use
6155 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6157 2011-04-15 Michael Matz <matz@suse.de>
6159 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6160 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6161 * function.c (gimplify_parameters): Ditto.
6162 * gimplify.c (gimplify_vla_decl): Ditto.
6164 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6165 (gimple_call_set_alloca_for_var): New inline function.
6166 (gimple_call_alloca_for_var_p): Ditto.
6167 * gimple.c (gimple_build_call_from_tree): Remember
6168 CALL_ALLOCA_FOR_VAR_P state.
6169 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6171 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6172 calls if they were for VLA objects.
6174 2011-04-15 Martin Jambor <mjambor@suse.cz>
6176 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6179 2011-04-15 Martin Jambor <mjambor@suse.cz>
6182 * tree-emutls.c (lower_emutls_function_body): Call
6183 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6186 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6188 * c-decl.c (detect_field_duplicates): Call
6189 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6191 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6193 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6194 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6195 * ipa-pure-const.c (check_stmt): Call it.
6196 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6198 2011-04-15 Richard Guenther <rguenther@suse.de>
6200 PR tree-optimization/48290
6201 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6202 Properly decide inhibiting propagation based on the valueized
6203 operand. Do loop-closed SSA form preserving here ...
6204 (init_copy_prop): ... not here.
6206 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6209 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6210 (*ieee_smax<mode>3): Likewise.
6212 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6214 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6215 Replace match_operand with match_dup for the third operand in
6218 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6220 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6221 to track processing of conditionals. Update all callers.
6222 (try_combine, simplify_if_then_else): Update.
6224 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6226 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6229 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6231 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6232 instead of match_operand for operand 3.
6234 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6236 * recog.h (insn_operand_data): Add an "allows_mem" field.
6237 * genoutput.c (output_operand_data): Initialize it.
6238 * optabs.c (maybe_legitimize_operand_same_code): New function.
6239 (maybe_legitimize_operand): Use it when matching the original
6242 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6244 * gimplify.c: Fix issues in comments throughout.
6245 (voidify_wrapper_expr): Fix long line.
6246 (build_stack_save_restore): Likewise.
6247 (gimplify_loop_expr): Likewise.
6248 (gimplify_compound_lval): Likewise.
6249 (gimplify_init_ctor_eval): Likewise.
6250 (gimplify_modify_expr_rhs): Likewise.
6251 (omp_notice_threadprivate_variable): Likewise.
6253 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6255 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6256 original one if this is not a builtin function.
6258 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6261 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6262 offset it as needed based on top 2 bits in operands[3], change
6263 MEM mode to SFmode and mask those 2 bits away from operands[3].
6265 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6267 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6268 change from objc_declare_protocols() to objc_declare_protocol().
6270 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6272 * config/i386/sse.md (sse4_1): New mode attribute.
6273 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6274 avx_blend<ssemodesuffix><avxmodesuffix> and
6275 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6276 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6277 avx_blendv<ssemodesuffix><avxmodesuffix> and
6278 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6279 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6280 avx_dp<ssemodesuffix><avxmodesuffix> and
6281 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6282 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6283 (sse4_1_packusdw): Merge with *avx_packusdw.
6284 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6285 (sse4_1_pblendw): Merge with *avx_pblendw.
6286 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6287 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6288 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6290 (sse4_1_round<ssescalarmodesuffix>): Merge with
6291 *avx_round<ssescalarmodesuffix>.
6292 (aesenc): Merge with *avx_aesenc.
6293 (aesenclast): Merge with *avx_aesenclast.
6294 (aesdec): Merge with *avx_aesdec.
6295 (aesdeclast): Merge with *avx_aesdeclast.
6296 (pclmulqdq): Merge with *pclmulqdq.
6297 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6299 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6301 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6304 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6305 (align_local_variable): This. Update DECL_ALIGN.
6306 (add_stack_var): Updated.
6307 (expand_one_stack_var): Likewise.
6309 2011-04-14 Richard Guenther <rguenther@suse.de>
6311 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6313 (dse_initialize_block_local_data, dse_leave_block,
6314 record_voperand_set, get_stmt_uid): Likewise.
6315 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6316 (dse_optimize_stmt): Remove voperand set handling code.
6317 Simplify and improve to handle any kind of killing stmt.
6318 (dse_record_phi): Remove.
6319 (dse_enter_block): Simplify.
6320 (tree_ssa_dse): Likewise.
6321 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6323 2011-04-14 Jan Hubicka <jh@suse.cz>
6325 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6326 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6327 (cgraph_local_info): Remove inline_summary.
6328 * ipa-cp.c: Include ipa-inline.h.
6329 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6330 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6332 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6333 (input_overwrite_node): Do not set inline summary.
6334 (input_node): Do not stream inline summary.
6335 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6336 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6337 growth; we do not have inline parameters computed for that anyway.
6338 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6339 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6340 (inline_summary_t): New type and VECtor.
6341 (debug_inline_summary, dump_inline_summaries): Declare.
6342 (inline_summary): Use VOCtor.
6343 (estimate_edge_growth): Kill hack computing call stmt size directly.
6344 * lto-section-in.c (lto_section_name): Add inline section.
6345 * ipa-inline-analysis.c: Include lto-streamer.h
6346 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6347 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6348 (inline_summary_vec): Define.
6349 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6350 dump_inline_summaries): New functions.
6351 (estimate_function_body_sizes): Properly compute size/time of outgoing
6353 (compute_inline_parameters): Alloc inline_summary; do not compute
6354 size/time of incomming calls.
6355 (estimate_edge_time): Avoid missing time summary hack.
6356 (inline_read_summary): Read inline summary info.
6357 (inline_write_summary): Write inline summary info.
6358 (inline_free_summary): Free all hooks and inline summary vector.
6359 * lto-streamer.h: Add LTO_section_inline_summary section.
6360 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6361 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6363 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6365 * tree-vectorizer.h (vect_strided_store_supported): Add a
6366 HOST_WIDE_INT argument.
6367 (vect_strided_load_supported): Likewise.
6368 (vect_permute_store_chain): Return void.
6369 (vect_transform_strided_load): Likewise.
6370 (vect_permute_load_chain): Delete.
6371 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6372 count argument. Check that the count is a power of two.
6373 (vect_strided_load_supported): Likewise.
6374 (vect_permute_store_chain): Return void. Update after above changes.
6375 Assert that the access is supported.
6376 (vect_permute_load_chain): Likewise.
6377 (vect_transform_strided_load): Return void.
6378 * tree-vect-stmts.c (vectorizable_store): Update calls after
6379 above interface changes.
6380 (vectorizable_load): Likewise.
6381 (vect_analyze_stmt): Don't check for strided powers of two here.
6383 2011-04-14 Richard Guenther <rguenther@suse.de>
6385 PR tree-optimization/48590
6386 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6387 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6388 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6389 BUILT_IN_STACK_SAVE.
6390 * tree-ssa-dce.c (propagate_necessity): Handle
6391 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6393 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6395 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6398 2011-04-14 Richard Guenther <rguenther@suse.de>
6400 * tree.h (get_object_alignment_1): Declare.
6401 * builtins.c (get_object_alignment_1): Split out worker from ...
6402 (get_object_alignment): ... here.
6403 * fold-const.c (get_pointer_modulus_and_residue): Use
6404 get_object_alignment_1.
6406 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6408 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6410 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6411 parameter. Generalise code to handle arrays as well as vectors.
6412 (vect_setup_realignment): Update accordingly.
6413 * tree-vect-stmts.c (vectorizable_store): Likewise.
6414 (vectorizable_load): Likewise.
6416 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6418 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6419 within the per-copy loop.
6421 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6423 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6426 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6428 * doc/options.texi (Negative): Explicitly mention that the
6429 Negative chain must be circular.
6431 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6433 * function.h (block_chainon): Declare.
6434 * function.c (block_chainon): Define.
6436 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6437 Eric Weddington <eric.weddington@atmel.com>
6438 Georg-Johann Lay <avr@gjlay.de>
6440 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6442 (avr_init_builtins, avr_expand_builtin,
6443 avr_expand_delay_cycles, avr_expand_unop_builtin,
6444 avr_expand_binop_builtin ): New functions.
6445 (avr_builtin_id): New enum
6446 (struct avr_builtin_description): New struct
6447 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6448 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6450 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6451 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6452 UNSPECV_DELAY_CYCLES): new enumeration values
6453 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6454 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6455 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6456 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6457 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6458 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6459 "fmulsu"): New insns
6461 * config/avr/avr-c.c: fix line endings
6462 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6463 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6464 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6465 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6466 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6468 * doc/extend.texi (AVR Built-in Functions): New node
6469 (Target Builtins): Add documentation of AVR
6472 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6475 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
6476 alone. Error if non-const data has attribute progmem.
6478 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6480 * tree.h (struct tree_constructor): Include tree_typed instead of
6482 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
6483 TS_TYPED instead of TS_COMMON.
6485 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6487 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
6488 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
6489 (sse2_psadbw): Merge with *avx_psadbw.
6490 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
6491 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
6492 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
6493 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
6494 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
6495 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
6496 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
6497 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
6498 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
6499 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
6500 (ssse3_palignrti): Merge with *avx_palignrti.
6502 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6504 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
6505 * tree-ssanames.c (fini_ssanames): VEC_free it.
6506 (make_ssa_name_fn): Update for VECness of free_ssanames.
6507 (release_ssa_name, release_dead_ssa_names): Likewise.
6508 * tree.h (struct tree_ssa_name): Include tree_typed instead of
6510 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
6511 TS_TYPED instead of TS_COMMON.
6513 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6515 * postreload-gcse.c (gcse_after_reload_main): Add calls to
6516 statistics_counter_event.
6517 * tree-ssa-copyrename.c (stats): Define.
6518 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
6519 statistics_counter_event.
6520 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
6521 (bswap_stats, widen_mul_stats): Define.
6522 (insert_reciprocals): Increment rdivs_inserted.
6523 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
6524 rfuncs_inserted. Add calls to statistics_counter_event.
6525 (execute_cse_sincos_1): Increment inserted.
6526 (execute_cse_sincos): Zeroize sincos_stats. Add call to
6527 statistics_counter_event.
6528 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
6529 of bswap_stats. Add calls to statistics_counter_event.
6530 (convert_mult_to_widen): Increment widen_mults_inserted.
6531 (convert_plusminus_to_widen): Increment maccs_inserted.
6532 (convert_mult_to_fma): Increment fmas_inserted.
6533 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
6534 calls to statistics_counter_event.
6536 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
6538 PR rtl-optimization/48455
6539 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
6540 `temp_costs->mem_cost'.
6542 2011-04-13 Jan Hubicka <jh@suse.cz>
6544 * ipa-inline.h: New file.
6545 * ipa-inline-analysis.c: New file. Broken out of ...
6546 * ipa-inline.c: ... this file; update toplevel comment;
6547 include ipa-inline.h
6548 (inline_summary): Move to ipa-inline.h
6549 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
6550 ipa-inline-analysis.c.
6551 (cgraph_estimate_time_after_inlining): Rename to
6552 estiamte_time_after_inlining; move to ipa-inline-analysis.c
6553 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
6554 to estimate_edge_growth.
6555 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
6556 rename to estimate_size_after_inlining.
6557 (cgraph_mark_inline_edge): Update for new naming convention.
6558 (cgraph_check_inline_limits): Likewise.
6559 (cgraph_edge_badness): Likewise.
6560 (cgraph_decide_recursive_inlining): Likewise.
6561 (cgraph_decide_inlining_of_small_functions): Likewise.
6562 (cgraph_decide_inlining_incrementally): Likewise.
6563 (cgraph_estimate_growth): Rename to estimate_growth; move to
6564 ipa-inline-analysis.c.
6565 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
6566 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
6567 (compute_inline_parameters): Likewise.
6568 (compute_inline_parameters_for_current): Likewise.
6569 (pass_inline_parameters): Likewise.
6570 (inline_indirect_intraprocedural_analysis): Likewise.
6571 (analyze_function): Rename to inline_analyze_function; likewise.
6572 (add_new_function): Move to ipa-inline-analysis.c.
6573 (inline_generate_summary): Likewise.
6574 (inline_read_summary): Likewise.
6575 (inline_write_summary): Likewise.
6576 * Makefile.in (ipa-inline-analysis.c): New file.
6578 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6580 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
6581 * configure: Regenerate.
6583 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
6585 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
6586 instead of tree_common.
6587 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
6589 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
6590 TS_TYPED rather than TS_COMMON.
6591 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
6593 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
6596 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
6597 r20 around calls of __tablejump_elpm__
6599 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6602 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
6604 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
6606 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
6608 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
6609 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
6610 (cfi_vec): New typedef.
6611 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
6612 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
6613 (cie_cfi_vec): New static variable.
6614 (cie_cfi_head): Delete.
6615 (add_cfi): Accept a cfi_vec * as first argument. All callers and
6616 declaration changed. Use vector rather than list operations.
6617 (new_cfi): Don't initialize the dw_cfi_next field.
6618 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
6619 rather than list operations.
6620 (lookup_cfa): Use vector rather than list operations.
6621 (output_cfis): New argument upto. Accept a cfi_vec rather than
6622 a dw_cfi_ref list head as argument. All callers changed.
6623 Iterate over the vector using upto as a maximum index.
6624 (output_all_cfis): New static function.
6625 (output_fde): Use vector rather than list operations. Use the
6626 new upto argument for output_cfis rather than manipulating a
6628 (dwarf2out_begin_prologue): Change initializations to match
6630 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
6631 from the vector length rather than searching for the end of a list.
6632 Use output_all_cfis.
6633 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
6635 2011-04-13 Nick Clifton <nickc@redhat.com>
6637 * config/rx/rx.md (movmemsi): Do not use this pattern when
6638 volatile pointers are involved.
6640 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
6642 * config/i386/sse.md (pinsrbits): Remove.
6643 (sse2_packsswb): Merge with *avx_packsswb.
6644 (sse2_packssdw): Merge with *avx_packssdw.
6645 (sse2_packuswb): Merge with *avx_packuswb.
6646 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
6647 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
6648 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
6649 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
6650 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
6651 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
6652 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
6653 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
6654 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
6655 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
6656 (sse2_loadld): Merge with *avx_loadld.
6657 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
6658 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
6659 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
6660 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
6661 (vec_concatv2di): Merge with *vec_concatv2di_avx.
6663 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
6665 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
6667 * print-tree.c (print_node): Likewise.
6668 * tree-inline.c (copy_tree_r): Likewise.
6669 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
6670 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
6671 instead of TS_COMMON.
6672 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
6673 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
6674 (copy_node_stat): Zero TREE_CHAIN only if necessary.
6675 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
6676 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
6678 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
6680 (TREE_CHAIN): Check for a TS_COMMON structure.
6681 (TREE_TYPE): Check for a TS_TYPED structure.
6683 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
6685 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6686 cgraph_get_create_node instead of cgraph_node.
6688 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6690 * c-parser.c (c_parser_initelt): Updated call to
6691 objc_build_message_expr.
6692 (c_parser_postfix_expression): Likewise.
6694 2011-04-12 Kai Tietz <ktietz@redhat.com>
6696 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
6697 MASK_MS_BITFIELD_LAYOUT bit.
6699 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6701 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
6702 assert it is always true.
6703 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
6706 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
6708 * c-parser.c (c_lex_one_token): Rewritten conditional used when
6709 compiling Objective-C to be more efficient.
6711 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
6713 * opts-common.c (decode_cmdline_options_to_array): Remove variable
6716 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6718 * recog.h, genoutput.c, optabs.c: Revert last patch.
6720 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6723 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6725 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6727 * recog.h (insn_operand_data): Add an "allows_mem" field.
6728 * genoutput.c (output_operand_data): Initialize it.
6729 * optabs.c (maybe_legitimize_operand_same_code): New function.
6730 (maybe_legitimize_operand): Use it when matching the original
6733 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6735 * genpreds.c (process_define_predicate): Move most processing
6736 to gensupport.c. Continue to validate the expression.
6737 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6738 (process_define_predicate): Move processing to gensupport.c.
6739 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6740 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6741 (compute_predicate_codes): Moved from genrecog.c. Add lineno
6743 (valid_predicate_name_p): New function, split out from old
6744 genpreds.c:process_define_predicate.
6745 (process_define_predicate): New function, combining code from
6746 old genpreds.c and genrecog.c functions.
6747 (process_rtx): Call it for DEFINE_PREDICATE and
6748 DEFINE_SPECIAL_PREDICATE.
6750 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
6752 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6753 size of a '%A' memory reference.
6754 (T_DREG, T_QREG): New neon_builtin_type_bits.
6755 (arm_init_neon_builtins): Assert that the load and store operands
6756 are neon_struct_operands.
6757 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6758 (NEON_ARG_MEMORY): New builtin_arg.
6759 (neon_dereference_pointer): New function.
6760 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6761 Handle NEON_ARG_MEMORY.
6762 (arm_expand_neon_builtin): Update after above interface changes.
6763 Use NEON_ARG_MEMORY for loads and stores.
6764 * config/arm/predicates.md (neon_struct_operand): New predicate.
6765 * config/arm/iterators.md (V_two_elem): Tweak formatting.
6766 (V_three_elem): Use BLKmode for accesses that have no associated mode.
6767 (V_four_elem): Tweak formatting.
6768 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6769 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6770 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6771 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6772 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6773 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6774 (neon_vst4<mode>): Replace pointer operand with a memory operand.
6775 Use %A in the output template.
6776 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6777 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6778 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6779 the width of the memory access. Remove post-increment.
6780 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6782 2011-04-12 Nick Clifton <nickc@redhat.com>
6784 * config/v850/v850.c (expand_prologue): Do not use the CALLT
6785 instruction for interrupt handlers if the target is the basic V850
6787 (expand_epilogue): Likewise.
6789 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6791 PR rtl-optimization/48549
6792 * combine.c (propagate_for_debug): Also stop after BB_END of
6793 this_basic_block. Process LAST and just stop processing after it.
6794 (combine_instructions): If last_combined_insn has been deleted,
6795 set last_combined_insn to its PREV_INSN.
6797 2011-04-12 Richard Guenther <rguenther@suse.de>
6799 PR tree-optimization/46076
6800 * gimple.h (struct gimple_statement_call): Add fntype field.
6801 (gimple_call_fntype): Adjust.
6802 (gimple_call_set_fntype): New function.
6803 * gimple.c (gimple_build_call_1): Set the call function type.
6804 * gimplify.c (gimplify_call_expr): Preserve the function
6805 type the frontend used for the call.
6806 (gimplify_modify_expr): Likewise.
6807 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6809 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6811 * tree-ssa.c (useless_type_conversion_p): Function pointer
6812 conversions are useless.
6814 2011-04-12 Martin Jambor <mjambor@suse.cz>
6816 * cgraph.h (cgraph_node): Remove function declaration.
6817 (cgraph_create_node): Declare.
6818 (cgraph_get_create_node): Likewise.
6819 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6820 Updated all callers.
6821 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6822 the decl does not already exist. Call cgraph_get_create_node instead
6824 (cgraph_get_create_node): New function.
6825 (cgraph_same_body_alias): Update comment.
6826 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6827 assert it does not return NULL.
6828 (cgraph_update_edges_for_call_stmt): Likewise.
6829 (cgraph_clone_edge): Likewise.
6830 (cgraph_create_virtual_clone): Likewise.
6831 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6832 instead of cgraph_node.
6833 (cgraph_add_new_function): Call cgraph_create_node or
6834 cgraph_get_create_node instead of cgraph_node.
6835 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6836 instead of cgraph_node.
6837 (record_eh_tables): Likewise.
6838 (mark_address): Likewise.
6839 (mark_load): Likewise.
6840 (build_cgraph_edges): Call cgraph_get_create_node instead
6842 (rebuild_cgraph_edges): Likewise.
6843 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6844 instead of cgraph_node.
6845 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6847 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6848 cgraph_create_node instead of cgraph_node.
6849 * c-decl.c (finish_function): Call cgraph_get_create_node instead
6851 * lto-cgraph.c (input_node): Likewise.
6852 * lto-streamer-in.c (input_function): Likewise.
6853 * varasm.c (mark_decl_referenced): Likewise.
6854 (assemble_alias): Likewise.
6856 2011-04-12 Martin Jambor <mjambor@suse.cz>
6858 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6859 instead of cgraph_node and assert it does not return NULL.
6860 * lto-streamer-in.c (lto_read_body): Likewise.
6861 * omp-low.c (new_omp_context): Likewise.
6862 (create_task_copyfn): Likewise.
6863 * tree-emutls.c (lower_emutls_function_body): Likewise.
6864 * matrix-reorg.c (transform_allocation_sites): Likewise.
6866 2011-04-12 Jakub Jelinek <jakub@redhat.com>
6869 * c-typeck.c (build_asm_expr): Error out on attempts to use
6870 void type outputs or inputs for constraints that allow reg or
6873 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
6874 Richard Earnshaw <rearnsha@arm.com>
6877 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6878 to use sign-magnitude offsets. Reject unsupported unaligned
6879 cases. Add detailed description in comments.
6880 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6881 condition from TARGET_32BIT to TARGET_ARM.
6883 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
6885 * tree.h (struct typed_tree): New.
6886 (struct tree_common): Include it instead of tree_base.
6887 (TREE_TYPE): Update for new location of type field.
6888 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6889 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6890 (union tree_node): Add typed field.
6891 * treestruct.def (TS_TYPED): New.
6892 * lto-streamer.c (check_handled_ts_structures): Handle it.
6893 * tree.c (MARK_TS_TYPED): New macro.
6894 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6896 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
6898 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6899 (force_nonfallthru): Do not alter the loop nest if no basic block
6902 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
6904 * config/i386/sse.md (VI): New mode iterator.
6906 (AVX256MODEI): Ditto.
6907 (AVXMODEF4P): Ditto.
6908 (avxvecpsmode): Ditto.
6909 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
6910 (sse2_andnot<mode>3): New expander.
6911 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6912 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
6913 (<any_logic:code><mode>3): Use VI mode iterator.
6914 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6915 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
6916 (*andnottf3): Handle AVX three-operand constraints.
6917 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6919 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6920 Robert Millan <rmh@gnu.org>
6922 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6923 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6924 GNU_USER_DYNAMIC_LINKER64): Define.
6925 (REG_NAME): Don't undefine.
6926 (MD_UNWIND_SUPPORT): Undefine.
6927 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6928 (REG_NAME): Don't undefine.
6929 (MD_UNWIND_SUPPORT): Undefine.
6930 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6932 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6934 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6935 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6937 2011-04-11 Xinliang David Li <davidxl@google.com>
6939 * value-profile.c (check_ic_target): New function.
6940 (gimple_ic_transform): Sanity check indirect call target.
6941 * gimple-low.c (gimple_check_call_args): Interface change.
6942 (gimple_check_call_matching_types): New function.
6943 * tree-inline.c (tree_can_inline_p): Call new function.
6945 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
6947 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6948 tree-pretty-print.h & realmpfr.h.
6950 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
6953 * ira.c (setup_pressure_classes): Fix typo in loop condition.
6954 (setup_allocno_and_important_classes): Ditto.
6956 2011-04-11 Joseph Myers <joseph@codesourcery.com>
6958 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6959 GNU_USER_DYNAMIC_LINKER.
6960 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6961 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6962 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6963 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6964 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6965 GNU_USER_TARGET_OS_CPP_BUILTINS.
6966 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6967 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6968 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6969 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6970 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6971 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6972 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6973 GNU_USER_TARGET_OS_CPP_BUILTINS.
6974 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6975 GNU_USER_DYNAMIC_LINKER.
6976 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6977 GNU_USER_TARGET_OS_CPP_BUILTINS.
6978 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6979 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6980 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6981 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6982 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6983 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6984 GNU_USER_DYNAMIC_LINKER64): Remove.
6985 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6986 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6987 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6988 GNU_USER_DYNAMIC_LINKER.
6989 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6990 GNU_USER_TARGET_OS_CPP_BUILTINS.
6991 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6992 GNU_USER_TARGET_OS_CPP_BUILTINS.
6993 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6994 to GNU_USER_TARGET_OS_CPP_BUILTINS.
6995 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6996 GNU_USER_TARGET_OS_CPP_BUILTINS.
6997 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6998 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6999 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7000 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7001 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7002 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7003 GNU_USER_DYNAMIC_LINKER.
7004 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7005 GNU_USER_TARGET_OS_CPP_BUILTINS.
7006 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7007 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7008 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7009 GNU_USER_DYNAMIC_LINKER.
7010 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7011 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7012 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7013 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7014 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7015 GNU_USER_DYNAMIC_LINKER.
7016 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7017 GNU_USER_DYNAMIC_LINKERN32.
7018 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7019 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7020 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7021 GNU_USER_DYNAMIC_LINKER32.
7022 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7023 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7024 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7025 GNU_USER_DYNAMIC_LINKER.
7026 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7027 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7028 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7029 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7030 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7031 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7032 GNU_USER_DYNAMIC_LINKER32.
7033 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7034 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7035 GNU_USER_DYNAMIC_LINKER.
7036 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7037 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7038 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7039 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7040 GNU_USER_DYNAMIC_LINKER64.
7041 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7042 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7043 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7044 GNU_USER_DYNAMIC_LINKER.
7045 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7046 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7047 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7048 GNU_USER_DYNAMIC_LINKER.
7049 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7050 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7051 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7052 GNU_USER_DYNAMIC_LINKER32.
7053 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7054 GNU_USER_DYNAMIC_LINKER64.
7055 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7056 GNU_USER_DYNAMIC_LINKER64.
7057 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7058 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7059 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7060 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7061 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7063 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7065 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7066 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7067 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7068 GNU_USER_DYNAMIC_LINKER.
7069 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7070 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7071 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7072 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7073 GNU_USER_DYNAMIC_LINKER64.
7074 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7075 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7076 GNU_USER_LINK_EMULATION.
7077 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7078 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7079 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7080 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7081 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7082 CPP_SPEC, CC1_SPEC): Remove.
7083 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7084 (GNU_USER_DYNAMIC_LINKER): Define.
7085 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7086 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7087 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7088 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7089 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7090 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7091 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7092 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7093 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7094 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7095 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7096 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7097 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7098 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7099 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7100 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7101 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7102 GNU_USER_DYNAMIC_LINKER.
7103 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7104 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7105 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7106 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7107 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7108 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7109 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7110 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7111 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7112 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7114 2011-04-11 Kai Tietz <ktietz@redhat.com>
7118 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7119 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7121 (ix86_is_msabi_thiscall): Removed.
7122 (ix86_is_type_thiscall): Likewise.
7123 (ix86_get_callcvt): New function.
7124 (ix86_comp_type_attributes): Simplify check.
7125 (ix86_function_regparm): Use ix86_get_callcvt for calling
7126 convention attribute checks.
7127 (ix86_return_pops_args): Likewise.
7128 (ix86_static_chain): Likewise.
7129 (x86_this_parameter): Likewise.
7130 (x86_output_mi_thunk): Likewise.
7131 (ix86_function_type_abi): Optimize check for types without attributes.
7132 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7133 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7134 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7136 (IX86_BASE_CALLCVT): Helper macro.
7137 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7138 Use ix86_get_callcvt for calling convention attribute checks and avoid
7139 symbol-decoration for stdcall in TARGET_RTD case.
7140 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7142 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7145 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7147 * config/i386/sse.md (VI_128): New mode iterator.
7148 (VI12_128): Rename from SSEMODE12.
7149 (VI14_128): Rename from SSEMODE14.
7150 (VI124_128): New mode iterator.
7151 (VI24_128): Rename from SSEMODE248.
7152 (VI248_128): Rename from SSEMODE248.
7153 (SSEMODE124C8): Remove.
7154 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7155 (*sse2_<plusminus_insn><mode>3): Merge with
7156 *avx_<plusminus_insn><mode>3.
7157 (*mulv8hi3): Merge with *avx_mulv8hi3.
7158 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7159 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7160 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7161 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7162 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7163 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7164 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7165 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7166 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7167 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7168 (*<smaxmin:code>v8hi3): Ditto.
7169 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7170 (*<smaxmin:code>v16qi3): Ditto.
7171 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7172 (*sse2_eq<mode>3): Ditto.
7173 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7174 (*sse2_gt<mode>3): Ditto.
7175 (vcondv2di): Split out of vcond<mode>.
7176 (vconduv2di): Split out of vcondu<mode>.
7178 2011-04-11 Richard Guenther <rguenther@suse.de>
7180 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7181 before calling tree_low_cst.
7183 2011-04-11 Richard Guenther <rguenther@suse.de>
7185 * stor-layout.c (layout_type): Compute all array index size operations
7186 in the original type.
7187 (initialize_sizetypes): Add comment.
7188 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7190 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7192 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7194 2011-04-11 Martin Jambor <mjambor@suse.cz>
7196 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7197 of cgraph_node, handle NULL return value.
7198 (cgraph_global_info): Likewise.
7199 (cgraph_rtl_info): Likewise.
7200 * tree-inline.c (estimate_num_insns): Likewise.
7201 * gimplify.c (unshare_body): Likewise.
7202 (unvisit_body): Likewise.
7203 (gimplify_body): Likewise.
7204 * predict.c (optimize_function_for_size_p): Likewise.
7205 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7206 (call_may_clobber_ref_p_1): Likewise.
7207 * varasm.c (function_section_1): Likewise.
7208 (assemble_start_function): Likewise.
7210 2011-04-11 Martin Jambor <mjambor@suse.cz>
7212 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7214 * final.c (rest_of_clean_state): Likewise.
7215 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7216 * passes.c (pass_init_dump_file): Likewise.
7217 (execute_all_ipa_transforms): Likewise.
7218 (function_called_by_processed_nodes_p): Likewise.
7219 * predict.c (maybe_hot_frequency_p): Likewise.
7220 (probably_never_executed_bb_p): Likewise.
7221 (compute_function_frequency): Likewise.
7222 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7223 (unnest_nesting_tree_1): Likewise.
7224 (lower_nested_functions): Likewise.
7225 * tree-optimize.c (execute_fixup_cfg): Likewise.
7226 (tree_rest_of_compilation): Likewise.
7227 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7228 * tree-sra.c (ipa_early_sra): Likewise.
7229 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7230 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7231 * ipa.c (record_cdtor_fn): Likewise.
7232 * ipa-inline.c (cgraph_early_inlining): Likewise.
7233 (compute_inline_parameters_for_current): Likewise.
7234 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7235 * ipa-pure-const.c (local_pure_const): Likewise.
7236 * ipa-split.c (split_function): Likewise.
7237 (execute_split_functions): Likewise.
7238 * cgraphbuild.c (build_cgraph_edges): Likewise.
7239 (rebuild_cgraph_edges): Likewise.
7240 (cgraph_rebuild_references): Likewise.
7241 (remove_cgraph_callee_edges): Likewise.
7242 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7243 (verify_cgraph_node): Likewise.
7244 (cgraph_analyze_functions): Likewise.
7245 (cgraph_preserve_function_body_p): Likewise.
7246 (save_inline_function_body): Likewise.
7247 (save_inline_function_body): Likewise.
7248 * tree-inline.c (copy_bb): Likewise.
7249 (optimize_inline_calls): Likewise.
7251 2011-04-11 Martin Jambor <mjambor@suse.cz>
7253 PR tree-optimization/48195
7254 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7255 ipa_check_create_edge_args.
7256 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7257 ipa_check_create_edge_args.
7258 * ipa-inline.c (inline_generate_summary): Do not call
7259 ipa_check_create_node_params and ipa_check_create_edge_args.
7260 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7261 ipa_check_create_edge_args.
7263 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7265 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7267 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7268 * function.c (record_hard_reg_sets): Likewise.
7269 * ira.c (compute_regs_asm_clobbered): Likewise.
7270 * sched-deps.c (sched_analyze_1): Likewise.
7271 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7273 2011-04-09 Xinliang David Li <davidxl@google.com>
7275 PR tree-optimization/PR48484
7276 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7277 has_valid_pred lazily
7279 2011-04-09 Duncan Sands <baldrick@free.fr>
7281 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7283 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7285 * combine.c (combine_validate_cost): Adjust comments. Set registered
7286 cost of I0 to zero at the end, if any.
7288 2011-04-08 Xinliang David Li <davidxl@google.com>
7290 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7291 to insane profile data.
7293 2011-04-08 Xinliang David Li <davidxl@google.com>
7295 * ipa-cp.c (ipcp_update_profiling): Correct
7296 negative scale factor due to insane profile data.
7298 2011-04-08 Xinliang David Li <davidxl@google.com>
7300 * final.c (dump_basic_block_info): New function.
7301 (final): Dump basic block.
7302 (final_scan_insn): Remove old dump.
7304 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7307 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7310 2011-04-08 Michael Matz <matz@suse.de>
7313 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7315 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7316 * rtl.h (rebuild_jump_labels_chain): Declare.
7317 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7318 insns inserted on edges.
7320 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7322 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7323 * config/arm/arm-arches.def: New.
7324 * config/arm/arm-opts.h: New.
7325 * config/arm/genopt.sh: New.
7326 * config/arm/arm-tables.opt: New (generated).
7327 * config/arm/arm.c (arm_handle_option, arm_target_help,
7328 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7329 (all_architectures): Get most table contents from arm-arches.def.
7330 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7331 arm_selected_tune here.
7332 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7333 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7334 (march=, mcpu=, mtune=): Use Enum and Var.
7335 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7336 (arm.o): Update dependencies.
7338 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7340 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7342 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7343 (write_typed_alloc_defns): Likewise.
7344 (main): Calls write_typed_alloc_defns with output_header.
7346 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7349 * ira-color.c (setup_profitable_hard_regs): Add comments.
7350 Don't take prohibited hard regs into account.
7351 (setup_conflict_profitable_regs): Rename to
7352 get_conflict_profitable_regs.
7353 (check_hard_reg_p): Check prohibited hard regs.
7355 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7357 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7358 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7359 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7361 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7364 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7365 move from floating point to shift amount register.
7366 (emit_move_sequence): Remove secondary reload support for floating
7367 point to shift amount amount register copies.
7368 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7369 amount register copies.
7370 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7371 register, return false if mode isn't a scalar integer mode.
7372 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7374 2011-04-08 Richard Guenther <rguenther@suse.de>
7376 * gimple.c (gimple_call_flags): Remove kludge.
7378 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7380 * sel-sched.c (sel_region_init): Move call to
7381 sel_setup_region_sched_flags after setup_current_loop_nest.
7383 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7385 PR rtl-optimization/48272
7386 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7387 init_insn_reg_pressure_info. Adjust a caller.
7388 * sched-int.h (init_insn_reg_pressure_info): Declare.
7389 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7390 when sched-pressure is enabled.
7392 2011-04-08 Richard Guenther <rguenther@suse.de>
7394 * gimple.c (gimple_set_modified): Do not queue calls to
7395 MODIFIED_NORETURN_CALLS here ...
7396 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7398 2011-04-08 Richard Guenther <rguenther@suse.de>
7401 * toplev.c (lang_dependent_init): Do not open asm_out_file
7402 in WPA mode, nor perform debug machinery initialization.
7403 (finalize): Do not unlink asm_out_file in WPA mode.
7405 2011-04-08 Richard Guenther <rguenther@suse.de>
7407 * gimple.h (gimple_call_fntype): New function.
7408 (gimple_call_return_type): Use it.
7409 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7410 * gimple-low.c (gimple_check_call_args): Likewise.
7411 * gimple.c (gimple_call_flags): Likewise.
7412 (gimple_call_arg_flags): Likewise.
7413 (gimple_call_return_flags): Likewise.
7414 * tree-cfg.c (verify_gimple_call): Likewise.
7415 (do_warn_unused_result): Likewise.
7416 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7417 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7419 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7421 PR rtl-optimization/48235
7422 * sel-sched.c (code_motion_process_successors): Recompute the last
7423 insn in basic block if control flow changed.
7424 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7425 Update condition for ilist_remove.
7427 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7429 PR rtl-optimization/48302
7430 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7431 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7432 it to record added preheader blocks.
7433 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7434 on to sel_add_loop_preheaders.
7435 (sel_region_init): Move call to setup_current_loop_nest after
7438 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7441 * cfgloop.h (loop_has_exit_edges): New helper.
7442 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7444 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7445 that have no exit edges.
7447 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7449 PR rtl-optimization/48442
7450 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7451 all callers. Adjust assert.
7453 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7455 PR tree-optimization/48377
7456 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7457 is_packed to true even for types with smaller TYPE_ALIGN than
7460 2011-04-08 Richard Guenther <rguenther@suse.de>
7463 * doc/tm.texi: Re-generate.
7465 2011-04-08 Wei Guozhi <carrot@google.com>
7468 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7469 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7470 * config/arm/arm.md (*push_multi): Change the length computation to
7473 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7475 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
7476 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
7477 * doc/tm.texi: Regenerate.
7478 * system.h (ASM_OUTPUT_BSS): Poison.
7479 * varasm.c (asm_output_bss): Remove function.
7480 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
7482 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
7483 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
7484 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
7485 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7487 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7489 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
7491 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7493 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7495 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
7498 2011-04-07 Joseph Myers <joseph@codesourcery.com>
7500 * config/m68k/m68k.c (m68k_handle_option): Don't handle
7501 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
7502 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
7504 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7505 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
7506 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
7507 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
7508 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
7509 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
7510 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7511 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
7512 options. Don't map other m68k options manually. Don't handle
7513 old-style options as canonical.
7514 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
7515 * doc/install.texi (m68k-*-*): Document binutils version requirement.
7517 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
7519 * basic-block.h (force_nonfallthru): Move to...
7520 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
7521 (force_nonfallthru): ...here.
7522 * cfghooks.c (force_nonfallthru): New function.
7523 * cfgrtl.c (force_nonfallthru): Rename into...
7524 (rtl_force_nonfallthru): ...this.
7525 (commit_one_edge_insertion): Do not set AUX field.
7526 (commit_edge_insertions): Do not discover new basic blocks.
7527 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
7528 (cfg_layout_rtl_cfg_hooks): Likewise.
7529 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
7530 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
7531 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
7533 2011-04-07 Anatoly Sokolov <aesok@post.ru>
7535 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7538 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
7540 * config/i386/sse.md: Update copyright year.
7541 (avxcvtvecmode): Remove.
7542 (sse_movhlps): Merge with *avx_movhlps.
7543 (sse_movlhps): Merge with *avx_movlhps.
7544 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
7545 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
7546 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
7547 (sse_loadhps): Merge with *avx_loadhps.
7548 (sse_storelps): Merge with *avx_storelps.
7549 (sse_loadlps): Merge with *avx_loadlps.
7550 (sse_movss): Merge with *avx_movss.
7551 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
7552 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
7553 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
7554 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
7555 (vec_set<mode>_0): Ditto.
7556 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
7557 (sse4_1_insertps): Merge with *avx_insertps.
7558 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
7559 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
7560 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
7561 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
7562 (sse2_storehpd): Merge with *avx_storehpd.
7563 (sse2_loadhpd): Merge with *avx_loadhpd.
7564 (sse2_loadlpd): Merge with *avx_loadlpd.
7565 (sse2_movsd): Merge with *avx_movsd.
7566 (*vec_concatv2df): Merge with *vec_concatv2df.
7568 2011-04-07 Jakub Jelinek <jakub@redhat.com>
7571 * combine.c (combine_instructions): Add last_combined_insn,
7572 update it if insn is after it, pass it to all try_combine calls.
7573 (try_combine): Add last_combined_insn parameter, pass it instead of
7574 i3 to propagate_for_debug.
7576 2011-04-07 Nick Clifton <nickc@redhat.com>
7578 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
7579 to handle MDR <-> data register transfers.
7580 (movhi_internal): Likewise.
7582 2011-04-07 Alan Modra <amodra@gmail.com>
7584 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
7585 previous stack info.
7587 2011-04-07 Tom de Vries <tom@codesourcery.com>
7590 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
7591 flow_find_cross_jump. Swap variables to implement backward replacement.
7592 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
7594 2011-04-07 Tom de Vries <tom@codesourcery.com>
7597 * cfgcleanup.c (walk_to_nondebug_insn): New function.
7598 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
7600 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
7601 src1 or src2. Redirect edges to the last basic block. Update
7602 frequency and count on multiple basic blocks in case of fallthru.
7604 2011-04-07 Tom de Vries <tom@codesourcery.com>
7607 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
7609 (old_insns_match_p): Change return type. Replace return false/true
7610 with return dir_none/dir_both. Use can_replace_by.
7611 (flow_find_cross_jump): Add dir_p parameter. Init replacement
7612 direction from dir_p. Register replacement direction in dir, last_dir
7613 and afterlast_dir. Handle new return type of old_insns_match_p using
7614 merge_dir. Return replacement direction in dir_p.
7615 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
7616 return type of old_insns_match_p.
7617 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
7618 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
7619 flow_find_cross_jump.
7620 * basic-block.h (enum replace_direction): New type.
7621 (flow_find_cross_jump): Add parameter to declaration.
7623 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7625 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
7626 (AVXMODEDCVTPS2DQ): Ditto.
7627 (VEC_FLOAT_MODE): Ditto.
7628 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
7629 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7630 (<any_logic:code><mode>3): Use VF mode iterator.
7631 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
7632 Use VF mode iterator.
7633 (copysign<mode>3): Use VF mode iterator.
7634 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
7635 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
7636 (*<any_logic:code><MODEF:mode>3): Merge with
7637 *avx_<any_logic:code><MODEF:mode>3.
7638 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
7639 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
7640 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
7641 (avx_cvtdq2ps<avxmodesuffix>): Remove.
7642 (sse2_cvtdq2ps): Use %v modifier.
7643 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
7644 (avx_cvtps2dq<avxmodesuffix>): Remove.
7645 (sse2_cvtps2dq): Use %v modifier.
7646 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
7647 (avx_cvttps2dq<avxmodesuffix>): Remove.
7648 (sse2_cvttps2dq): Use %v modifier.
7649 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
7650 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
7651 (sse2_cvtsd2siq): Fix insn template.
7652 (sse2_cvtsd2siq_2): Ditto.
7653 (sse2_cvttsd2siq): Ditto.
7654 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
7655 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
7657 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7659 * gcov-io.c: Use GCC Runtime Library Exception.
7661 2011-04-06 Jakub Jelinek <jakub@redhat.com>
7664 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
7665 as base_reg whatever register reg has been eliminated to, instead
7666 of hardcoding STACK_POINTER_REGNUM.
7668 2011-04-06 Joseph Myers <joseph@codesourcery.com>
7670 * doc/tm.texi.in: Document C target hooks as separate from general
7672 * doc/tm.texi: Regenerate.
7673 * genhooks.c (struct hook_desc): Add docname field.
7674 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
7676 (hook_array): Include c-target.def.
7677 (emit_documentation): Use docname field in output.
7678 (emit_init_macros): Take docname argument. Only emit definitions
7679 for hooks matching docname.
7680 (main): Expect additional arguments in all cases. Pass argument
7681 to emit_init_macros.
7682 * target.def: Move initial macro definitions and comments to
7683 target-hooks-macros.h.
7684 (gcc_targetcm): Move to c-family/c-target.def.
7685 * target.h (targetcm): Move declaration to c-family/c-target.h.
7686 * targhooks.c (default_handle_c_option): Move to
7688 * targhooks.h (default_handle_c_option): Move declaration to
7689 c-family/c-common.h.
7690 * target-hooks-macros.h: New file.
7691 * config.gcc (target_has_targetcm): Define and use to add to
7692 c_target_objs and cxx_target_objs.
7693 * config/default-c.c: New file.
7694 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
7695 of target.h and target-def.h.
7696 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
7697 (darwin_objc_construct_string, darwin_cfstring_ref_p,
7698 darwin_check_cfstring_format_arg): Make static.
7699 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7700 TARGET_STRING_OBJECT_REF_TYPE_P,
7701 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
7702 * config/darwin-protos.h (darwin_objc_construct_string,
7703 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
7705 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
7706 TARGET_STRING_OBJECT_REF_TYPE_P,
7707 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
7708 * config/t-darwin (darwin-c.o): Update dependencies.
7709 * system.h (TARGET_HAS_TARGETCM): Poison.
7710 * Makefile.in (TARGET_H): Update.
7711 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
7712 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
7713 (default-c.o): New target.
7714 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
7715 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
7716 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
7718 (build/genhooks.o): Update dependencies.
7720 2011-04-06 Richard Guenther <rguenther@suse.de>
7722 * ipa-inline.c (enum inlining_mode): Remove.
7723 (cgraph_flatten): Use some other token.
7724 (cgraph_edge_early_inlinable_p): New function, split out from ...
7725 (cgraph_perform_always_inlining): New function, split out from ...
7726 (cgraph_decide_inlining_incrementally): ... here.
7727 (cgraph_mark_inline_edge): Adjust.
7728 (cgraph_early_inlining): Re-structure.
7729 (pass_early_inline): Require SSA form.
7731 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
7732 Julian Brown <julian@codesourcery.com>
7733 Mark Shinwell <shinwell@codesourcery.com>
7735 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7736 LO_REGS only for Thumb-1.
7737 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7738 be used in short instructions when optimising for size on Thumb-2.
7740 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7742 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7743 associated with user returns to be preserved.
7745 2011-04-06 Tristan Gingold <gingold@adacore.com>
7747 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7748 symbol_queue_size, DBXOUT_DECR_NESTING,
7749 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7750 if XCOFF_DEBUGGING_INFO.
7752 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
7754 * config/i386/i386.md (attribute isa): New.
7755 (attribute enabled): New.
7756 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7757 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7758 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7759 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7760 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7761 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7762 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7763 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7765 * config/i386/sse.md (VF): New mode iterator.
7769 (SSEMODEF4): Remove.
7770 (attribute sse): Handle V8SF and V4DF modes.
7771 (<absneg:code><mode>2): Use VF mode iterator.
7772 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
7774 (<plusminus_insn><mode>3): Use VF mode iterator.
7775 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7776 Use VF mode iterator.
7777 (<sse>_vm<plusminus_insn><mode>3): Merge with
7778 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
7779 (mul<mode>3): Use VF mode iterator.
7780 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
7781 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
7783 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7784 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7785 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
7786 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
7788 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7789 Use VF1 mode iterator.
7790 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7791 (sqrt<VF2:mode>2): New expander.
7792 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7793 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7794 and sqrtv2df2. Use VF mode iterator.
7795 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
7797 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7798 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7799 Use VF1 mode iterator.
7800 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7801 (<smaxmin:code><mode>3): Use VF mode iterator.
7802 (*<smaxmin:code><mode>3_finite): Merge with
7803 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
7804 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7805 (<sse>_vm<smaxmin:code><mode>2): Merge with
7806 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
7807 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
7809 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
7811 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7812 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7813 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7814 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7815 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
7817 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7818 Use VF_128 mode iterator.
7819 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
7821 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
7822 VF_128 mode iterator.
7823 (vcond<mode>): Use VF mode iterator.
7824 * config/i386/predicates.md (sse_comparison_operator): Merge with
7825 avx_comparison_float_operator. Do not declare as special_predicate.
7826 * config/i386/i386.c (struct builtin_description): Update for renamed
7828 (ix86_expand_args_builtin): Ditto.
7829 (ix86_expand_sse_compare_mask): Ditto.
7831 2011-04-06 Richard Guenther <rguenther@suse.de>
7833 * tree-inline.c (estimate_num_insns): For calls simply account
7834 for all passed arguments and a used return value.
7836 2011-04-06 Richard Guenther <rguenther@suse.de>
7838 PR tree-optimization/47663
7839 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7840 call_stmt_time fields.
7841 (cgraph_edge_inlinable_p): Declare.
7842 (cgraph_edge_recursive_p): New inline function.
7843 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7844 (cgraph_clone_edge): Copy it.
7845 * ipa-inline.c (cgraph_estimate_edge_time): New function.
7846 Account for call stmt time.
7847 (cgraph_estimate_time_after_inlining): Take edge argument.
7848 (cgraph_estimate_edge_growth): Account call stmt size.
7849 (cgraph_estimate_size_after_inlining): Take edge argument.
7850 (cgraph_mark_inline_edge): Adjust.
7851 (cgraph_check_inline_limits): Likewise.
7852 (cgraph_recursive_inlining_p): Remove.
7853 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7854 (cgraph_decide_recursive_inlining): Take edge argument and
7856 (cgraph_decide_inlining_of_small_functions): Do not avoid
7857 diags for recursive inlining here.
7858 (cgraph_flatten): Adjust.
7859 (cgraph_decide_inlining_incrementally): Likewise.
7860 (estimate_function_body_sizes): Remove call cost handling.
7861 (compute_inline_parameters): Initialize caller edge call costs.
7862 (cgraph_estimate_edge_growth): New function.
7863 (cgraph_estimate_growth): Use it.
7864 (cgraph_edge_badness): Likewise.
7865 (cgraph_check_inline_limits): Take an edge argument.
7866 (cgraph_decide_inlining_of_small_functions): Adjust.
7867 (cgraph_decide_inlining): Likewise.
7868 * tree-inline.c (estimate_num_insns): Only account for call
7869 return value if it is used.
7870 (expand_call_inline): Avoid diagnostics on recursive inline
7872 * lto-cgraph.c (lto_output_edge): Output edge call costs.
7873 (input_edge): Input edge call costs.
7875 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7877 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7879 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
7881 * doc/invoke.texi (Spec Files): Fix typo.
7883 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
7885 * profile.c (branch_prob): Move declaration of local variable. Remove
7886 obsolete ??? comment. Expand the location explicitly instead of using
7887 the LOCATION_FILE and LOCATION_LINE macros.
7889 2011-04-06 Wei Guozhi <carrot@google.com>
7892 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7893 (arm_cond_branch): Likewise.
7894 (arm_cond_branch_reversed): Likewise.
7895 (arm_jump): Likewise.
7896 (push_multi): Likewise.
7897 * config/arm/constraints.md (Py): New constraint.
7899 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7902 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7904 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7905 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7906 #ifdef DBX_DEBUGGING_INFO.
7908 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
7911 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7912 if old and new states differ.
7914 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7916 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7917 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7918 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7919 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7920 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7922 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7923 ColdFire options to -mcpu= options.
7925 2011-04-05 Jeff Law <law@redhat.com>
7927 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7928 check if BB is a successor of LOOP->header and return
7929 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7931 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7933 * cprop.c (struct reg_use): Remove.
7934 (reg_use_table): Make an array of RTX.
7935 (find_used_regs, constprop_register, local_cprop_pass,
7936 bypass_block): Simplify users of reg_use_table.
7937 (cprop_insn): Likewise. Iterate if copy propagation succeeded
7938 on one of the uses found by find_used_regs.
7940 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7943 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7946 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7948 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7950 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7952 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
7955 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7957 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7959 * combine.c: Include obstack.h.
7960 (struct insn_link): Define.
7961 (uid_log_links): Adjust type.
7962 (FOR_EACH_LOG_LINK): New macro.
7963 (insn_link_obstack): Declare.
7964 (alloc_insn_link): Define.
7965 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
7966 type of link variables.
7967 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7968 (try_combine, record_promoted_values, distribute_notes): Likewise.
7969 (distribute_links): Likewise. Tweak prototype.
7970 (clear_log_links): Delete.
7971 (adjust_for_new_dest): Call alloc_insn_link.
7972 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7974 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
7976 * gcse.c (modify_mem_list): Convert to an array of VECs.
7977 (canon_modify_mem_list, compute_transp): Tweak formatting.
7978 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
7979 (load_killed_in_block_p): Likewise.
7980 (record_last_mem_set_info): Likewise.
7981 (clear_modify_mem_tables): Likewise.
7983 2011-04-05 Tom de Vries <tom@codesourcery.com>
7986 * function.c (emit_use_return_register_into_block): Only define if
7989 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
7991 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7993 2011-04-05 Joseph Myers <joseph@codesourcery.com>
7995 * config/rx/rx-opts.h: New.
7996 * config/rx/rx.c (rx_cpu_type): Remove.
7997 (rx_handle_option): Don't assert that global structures are in
7998 use. Access variables via opts pointer. Defer most handling of
7999 OPT_mint_register_. Use error_at.
8000 (rx_option_override): Handle deferred OPT_mint_register_ here.
8001 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8002 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8003 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8004 (rx_cpu_types): New Enum and EnumValue entries.
8005 (mint-register=): Use Defer and use Var accordingly.
8007 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8009 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8010 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8011 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8013 (debug_free_queue, debug_nesting, symbol_queue_index):
8015 * dbxout.c: ...to here. Make static.
8017 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8019 * gcse.c (modify_pair): Define. Define a VEC of it.
8020 (canon_modify_mem_list): Convert to an array of VECs.
8021 (free_insn_expr_list_list): Delete.
8022 (clear_modify_mem_tables): Call VEC_free instead.
8023 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8024 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8025 (canon_list_insert, compute_transp): Likewise.
8027 2011-04-05 Tom de Vries <tom@codesourcery.com>
8030 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8033 2011-04-05 Tom de Vries <tom@codesourcery.com>
8036 * function.c (emit_use_return_register_into_block): New function.
8037 (thread_prologue_and_epilogue_insns): Use
8038 emit_use_return_register_into_block.
8040 2011-04-05 Tom de Vries <tom@codesourcery.com>
8043 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8046 2011-04-05 Tom de Vries <tom@codesourcery.com>
8048 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8050 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8052 * config/arm/arm.md (define_constants for unspec): Replace with
8054 (define_constants for unspecv): Replace with define_c_enum.
8055 * config/arm/neon.md (define_constants for unspec): Replace with
8058 2011-04-04 Richard Henderson <rth@redhat.com>
8061 * dwarf2out.c (output_line_info): Always emit line info from
8062 at least one section.
8063 (dwarf2out_init): Create text_section_line_info here ...
8064 (set_cur_line_info_table): ... not here.
8066 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8069 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8072 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8074 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8076 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8077 (expr_equiv_p): Remove.
8078 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8079 (hash_scan_set): Update call to insert_set_in_table.
8080 (dump_hash_table): Dump <dest, src> pair.
8081 (lookup_set): Simplify. Lookup <dest, src> pair.
8082 (compute_transp): Remove, fold heavily simplified code into...
8083 (compute_local_properties): ...here. Expect COMP and TRANSP
8085 (find_avail_set): Take set directly from struct expr.
8086 (find_bypass-set): Likewise.
8087 (bypass_block): Likewise.
8088 (cprop_insn): Likewise. Remove redundant INSN_P test.
8090 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8091 checks on form of COND from find_implicit_sets to here.
8092 (find_implicit_sets): Cleanup control flow. Split critical edges
8093 if it exposes implicit sets. Allocate/resize implicit_sets as
8095 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8096 changed something. Run df_analyze after find_implicit_sets if any
8097 edges were split. Do not allocate implicit_sets here.
8099 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8100 (gcse_obstack): Renamed to cprop_obstack.
8101 (GNEW, GNEWVEC, GNEWVAR): Remove.
8103 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8104 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8105 (gcse_alloc): Likewise, and rename to cprop_alloc.
8106 (alloc_gcse_men, free_gcse_mem): Remove.
8107 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8108 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8109 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8111 * cprop.c (oprs_not_set_p): Remove.
8112 (mark_set, mark_clobber): Remove.
8113 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8114 (reg_not_set_p): New function.
8115 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8116 (cprop_insn): Likewise.
8117 (cprop_jump): Use FOR_EACH_EDGE.
8119 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8122 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8123 (rank_for_schedule): Use scheduled_insns vector instead of
8124 last_scheduled_insn.
8125 (ok_for_early_queue_removal): Likewise.
8126 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8128 (choose_ready): Likewise.
8129 (commit_schedule): Use VEC_iterate.
8130 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8131 a dbg_cnt, use it and ensure the first insn is in the ready list.
8132 (haifa_sched_init): Allocate scheduled_insns.
8133 (sched_extend_ready_list): Don't allocate it; reserve space.
8134 (haifa_sched_finish): Free it.
8136 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8138 * optc-gen.awk: Always remove type from Variable entry before
8139 recording in var_seen.
8141 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8143 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8144 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8145 call to tidy_fallthru_edges.
8147 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8149 * doc/options.texi (ToLower): Document.
8150 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8151 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8152 * opts.h (cl_option): Add cl_tolower field.
8153 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8154 arguments with lowercase strings.
8155 * config/rx/rx.opt (mcpu=): Add ToLower.
8156 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8159 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8161 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8163 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8165 * config/vax/vax.c: Include reload.h.
8167 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8169 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8170 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8171 (sparc_preferred_reload_class): New function.
8173 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8176 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8177 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8179 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8181 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8182 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8184 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8186 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8187 (ASM_OUTPUT_ALIGNED_BSS): Define.
8189 2011-04-03 Michael Matz <matz@suse.de>
8191 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8192 and next_slot members.
8193 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8194 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8195 (lto_streamer_cache_append): Declare.
8196 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8197 unsigned index, remove offset parameter, ensure that we append
8198 or update existing entries.
8199 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8200 parameter, update next_slot for append.
8201 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8203 (lto_streamer_cache_insert_at): Likewise.
8204 (lto_streamer_cache_append): New function.
8205 (lto_streamer_cache_lookup): Use unsigned index.
8206 (lto_streamer_cache_get): Likewise.
8207 (lto_record_common_node): Don't test tree_node_can_be_shared.
8208 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8209 (lto_streamer_cache_delete): Don't free offsets member.
8210 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8211 (lto_output_string_with_length): Use lto_output_data_stream.
8212 (lto_output_tree_header): Remove ix parameter, don't write it.
8213 (lto_output_builtin_tree): Likewise.
8214 (lto_write_tree): Adjust callers to above, don't track and write
8215 offset, write unsigned index.
8216 (output_unreferenced_globals): Don't emit all global vars.
8217 (write_global_references): Use unsigned indices.
8218 (lto_output_decl_state_refs): Likewise.
8219 (write_symbol): Likewise.
8220 * lto-streamer-in.c (lto_input_chain): Move earlier.
8221 (input_function): Use unsigned index.
8222 (input_alias_pairs): Don't read and then ignore all global vars.
8223 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8224 don't pass it back, use lto_streamer_cache_append.
8225 (lto_register_var_decl_in_symtab): Use unsigned index.
8226 (lto_register_function_decl_in_symtab): Likewise.
8227 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8229 (lto_get_builtin_tree): Don't read index, use
8230 lto_streamer_cache_append.
8231 (lto_read_tree): Adjust call to lto_materialize_tree.
8233 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8234 don't use function calls in arguments to MIN.
8236 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8239 * gimple.c (gimple_type_leader_entry): Mark deletable.
8241 2011-04-03 Alan Modra <amodra@gmail.com>
8243 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8245 2011-04-03 Michael Matz <matz@suse.de>
8247 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8249 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8251 2011-04-03 Michael Matz <matz@suse.de>
8253 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8254 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8255 without function context.
8256 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8257 current_function_decl and cfun.
8259 2011-04-03 Michael Matz <matz@suse.de>
8261 * tree.c (decl_init_priority_insert): Don't create entry for
8263 (decl_fini_priority_insert): Ditto.
8264 (fields_compatible_p, find_compatible_field): Remove.
8265 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8266 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8268 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8270 * combine.c (try_combine): Remove useless local variable.
8272 2011-04-03 Richard Guenther <rguenther@suse.de>
8273 Ira Rosen <ira.rosen@linaro.org>
8275 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8276 non-variable offsets and compare the remaining bases of the two
8277 accesses instead of looking for exact same data-ref.
8279 2011-04-02 Kai Tietz <ktietz@redhat.com>
8282 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8284 * i386.c (ix86_is_msabi_thiscall): New helper function.
8285 (ix86_is_type_thiscall): New helper function.
8286 (ix86_comp_type_attributes): Handle thiscall for method-functions
8288 (init_cumulative_args): Likewise.
8289 (find_drap_reg): Likewise.
8290 (ix86_static_chain): Likewise.
8291 (x86_this_parameter): Likewise.
8292 (x86_output_mi_thunk): Likewise.
8294 2011-04-01 Olivier Hainque <hainque@adacore.com>
8295 Nicolas Setton <setton@adacore.com>
8296 Eric Botcazou <ebotcazou@adacore.com>
8298 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8299 (add_gnat_descriptive_type_attribute): New function.
8300 (gen_array_type_die): Call it.
8301 (gen_enumeration_type_die): Likewise.
8302 (gen_struct_or_union_type_die): Likewise.
8303 (modified_type_die): Likewise.
8304 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8305 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8306 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8308 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8311 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8312 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8315 2011-03-17 Richard Guenther <rguenther@suse.de>
8318 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8319 origin for decls in other ltrans units.
8320 (input_varpool_node): Likewise.
8322 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8325 * expr.c (expand_assignment): Handle all possibilities
8326 if TO_RTX is CONCAT.
8327 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8328 (store_split_bit_field): If SUBREG_REG (op0) or
8329 op0 itself has smaller mode than word, return it
8330 for offset 0 and const0_rtx for out-of-bounds stores.
8331 If word is const0_rtx, skip it.
8333 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8335 * config/h8300/h8300.c (print_operand_address): Rename to...
8336 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8337 Call h8300_print_operand and h8300_print_operand_address instead of
8338 print_operand and print_operand_address. Declare.
8339 (print_operand): Renake to...
8340 (h8300_print_operand): ...this. Make static. Adjust comments.
8341 Call h8300_print_operand instead of print_operand. Declare.
8342 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8343 (h8300_register_move_cost): Likewise.
8344 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8345 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8346 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8347 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8348 * config/h8300/h8300-protos.h (print_operand): Delete.
8349 (print_operand_address): Delete.
8351 2011-04-01 Richard Henderson <rth@redhat.com>
8354 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8355 in strict mode before dwarf4. Re-order tests to early out
8356 before switching sections.
8358 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8360 * config/h8300/constraints.md: New file.
8361 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8362 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8363 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8364 * config/h8300/predicates.md (bit_operand): Likewise.
8365 (incdec_operand): Use satisfies_constraint_M and
8366 satisfies_constraint_O. Don't use C code block.
8367 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8368 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8369 (compute_mov_length): Use satisfies_constraint_G.
8370 (fix_bit_operand): Use satisfies_constraint_U.
8371 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8372 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8373 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8374 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8375 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8376 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8377 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8378 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8379 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8380 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8381 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8382 (EXTRA_MEMORY_CONSTRAINT): Delete.
8384 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8385 Michael Meissner <meissner@linux.vnet.ibm.com>
8388 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8389 operands, as per the specifications.
8391 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8392 (vec_extract_evenv4sf): Ditto.
8393 (vec_extract_evenv8hi): Ditto.
8394 (vec_extract_evenv16qi): Ditto.
8395 (vec_extract_oddv4si): Ditto.
8397 2011-03-31 Mark Wielaard <mjw@redhat.com>
8399 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8400 high_pc attribute if the CU has no associated code. Only output
8401 DW_AT_entry_pc for CU if not generating strict dwarf and
8404 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8406 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8407 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8409 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8410 * final.c (final_start_function): Call the new function rather
8411 than using a NULL argument for dwarf2out_frame_debug.
8413 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8414 that contains the prologue.
8416 * haifa-sched.c (queue_insn): New arg REASON. All callers
8417 changed. Print it in debugging output.
8419 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8421 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8422 Split most of the code into...
8423 (begin_move_insn): ... here. New function.
8424 (ebb_sched_info): Add a pointer to it.
8425 * haifa-sched.c (scheduled_insns): New static variable.
8426 (sched_extend_ready_list): Allocate it.
8427 (schedule_block): Use it to record the order of scheduled insns.
8428 Perform RTL changes to move insns only after all scheduling
8429 decisions have been made.
8430 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8431 begin_move_insn field.
8432 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8433 * sched-int.h (struct haifa_sched_info): Remove second argument
8434 from begin_schedule_ready hook. Add new member begin_move_insn.
8435 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8436 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8438 * haifa-sched.c (prune_ready_list): New function, broken out of
8440 (schedule_block): Use it.
8442 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8444 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8446 2011-04-01 Kai Tietz <ktietz@redhat.com>
8448 * config.gcc (*-*-mingw*): Allow as option the
8449 posix threading model.
8450 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8451 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8453 (CPP_SPEC): Add pthread/no-pthread handling.
8454 (LIB_SPEC): Likewise.
8455 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8456 (LIB_SPEC): Likewise.
8457 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8458 flag to pass -pthread option for shared libgcc build.
8459 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8460 for shared libgcc build.
8461 * config/i386/t-mingw-pthread: New file.
8462 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8463 New define to enable use of library pthread by default.
8464 * config/i386/mingw.opt (pthread): New driver option.
8465 (no-pthread): New driver option.
8466 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8467 * config/i386/mingw-w64.opt: Likewise.
8469 2011-04-01 Gary Funck <gary@intrepid.com>
8471 * c-decl.c (grokdeclarator): Fix formatting.
8473 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8475 * expr.c (emit_block_move_via_movmem): Use n_generator_args
8476 instead of n_operands.
8477 (set_storage_via_setmem): Likewise.
8478 * optabs.c (maybe_gen_insn): Likewise.
8479 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
8480 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
8481 (mips_expand_builtin_direct): Likewise.
8482 * config/spu/spu.c (expand_builtin_args): Likewise.
8484 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8486 * recog.h (insn_data_d): Add n_generator_args.
8487 * genoutput.c (data): Likewise.
8488 (output_insn_data): Print it.
8489 (max_opno, num_dups): Delete.
8490 (scan_operands): Just fill in "d->operand[...]".
8491 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
8493 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8495 * gensupport.h (pattern_stats): New structure.
8496 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
8497 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
8498 (max_operand_1, max_operand_vec): Delete.
8499 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
8501 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
8503 * emit-rtl.c (emit_pattern_after_setloc): New function.
8504 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
8505 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
8506 (emit_pattern_after): New function.
8507 (emit_insn_after, emit_jump_insn_after): Call it.
8508 (emit_call_insn_after, emit_debug_insn_after): Likewise.
8509 (emit_pattern_before_setloc): New function.
8510 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
8511 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
8513 (emit_pattern_before): New function.
8514 (emit_insn_before, emit_jump_insn_before): Call it.
8515 (emit_call_insn_before, emit_debug_insn_before): Likewise.
8517 2011-03-31 Richard Henderson <rth@redhat.com>
8519 * dwarf2out.c (dw_separate_line_info_ref): Remove.
8520 (dw_separate_line_info_entry): Remove.
8521 (enum dw_line_info_opcode): New.
8522 (dw_line_info_entry): Use it.
8523 (dw_line_info_table, dw_line_info_table_p): New.
8524 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
8525 (line_info_table, line_info_label_num): Remove.
8526 (line_info_table_in_use): Remove.
8527 (separate_line_info_table): Remove.
8528 (separate_line_info_table_allocated): Remove.
8529 (separate_line_info_table_in_use): Remove.
8530 (LINE_INFO_TABLE_INCREMENT): Remove.
8531 (line_info_label_num): New.
8532 (cur_line_info_table): New.
8533 (text_section_line_info, cold_text_section_line_info): New.
8534 (separate_line_info): New.
8535 (SEPARATE_LINE_CODE_LABEL): Remove.
8536 (print_dwarf_line_table): Remove.
8537 (debug_dwarf): Don't dump it.
8538 (output_one_line_info_table): New.
8539 (output_line_info): Use it.
8540 (new_line_info_table): New.
8541 (set_cur_line_info_table): New.
8542 (dwarf2out_switch_text_section): Use it.
8543 (dwarf2out_begin_function): Likewise.
8544 (push_dw_line_info_entry): New.
8545 (dwarf2out_source_line): Rewrite for new line info tables.
8546 (dwarf2out_init): Remove dead initailizations.
8548 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8550 * opts.h (cl_option): Add comments to fields. Add bit-fields for
8552 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
8553 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
8554 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
8555 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
8556 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
8557 * opt-functions.awk (flag_init, switch_bit_fields): New.
8558 (switch_flags): Don't handle flags moved to bit-fields. Don't
8559 generate CL_MISSING_OK or CL_SAVE.
8560 * optc-gen.awk: Update to generate bit-field output as well as
8562 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
8563 bit-field instead of CL_REJECT_DRIVER flag.
8564 * opts-common.c (generate_canonical_option,
8565 decode_cmdline_option): Use bit-fields instead of CL_* flags.
8566 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
8567 instead of CL_REJECT_NEGATIVE flag.
8568 * toplev.c (print_switch_values): Use cl_report bit-field instead
8571 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8573 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
8574 a zero minimum index only if it is redundant.
8576 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
8578 PR rtl-optimization/48381
8579 * ira-color.c (assign_hard_reg): Use hard reg set intersection
8580 instead of ira_class_hard_reg_index for calculating conflicting
8583 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
8585 * cprop.c: Clean up hash table building.
8586 (reg_avail_info): Remove.
8587 (oprs_available_p): Remove.
8588 (record_last_reg_set_info): Remove.
8589 (record_last_set_info): Remove.
8590 (reg_available_p): New function.
8591 (gcse_constant_p): Do not treat unfolded conditions as constants.
8592 (make_set_regs_unavailable): New function.
8593 (hash_scan_set): Simplify with new reg_available_p.
8594 (compute_hash_table_work): Traverse insns stream only once.
8595 Do not compute reg_avail_info. Traverse insns in reverse order.
8596 Record implicit sets after recording explicit sets from the block.
8598 2011-03-31 Michael Matz <matz@suse.de>
8600 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
8602 2011-03-31 Anatoly Sokolov <aesok@post.ru>
8604 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
8605 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
8606 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8607 (h8300_mode_dependent_address_p): New function.
8608 (h8300_get_index): Make static.
8610 2011-03-31 Jeff Law <law@redhat.com>
8612 * reload1.c (elimination_effects): Fix typo in recent change.
8614 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
8615 typo potentially leading to null pointer dereference.
8617 * caller-save.c (new_saved_hard_reg): Eliminate return value.
8618 (setup_save_areas): Corresponding changes to avoid useless
8621 * jump.c (reversed_comparison_code_parts): Avoid successive return
8622 statements when REVERSE_CONDITION is defined.
8624 * expr.c (expand_assignment): Avoid useless assignments.
8625 (expand_expr_real_1): Likewise.
8626 (expand_expr_real_2): Avoid useless statements.
8628 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
8630 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8632 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
8635 * stmt.c (expand_expr_stmt): Avoid useless assignment.
8637 2011-03-31 Joseph Myers <joseph@codesourcery.com>
8640 * doc/tm.texi.in (TARGET_VERSION): Remove.
8641 * doc/tm.texi: Regenerate.
8642 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
8643 * collect2.c (main): Don't use TARGET_VERSION.
8644 * mips-tdump.c (main): Don't use TARGET_VERSION.
8645 * mips-tfile.c (main): Don't use TARGET_VERSION.
8646 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
8647 * config/rs6000/vxworksae.h: Remove.
8648 * config/alpha/alpha.h (TARGET_VERSION): Remove.
8649 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
8650 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
8651 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
8652 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8653 * config/arm/arm.h (TARGET_VERSION): Remove.
8654 * config/arm/coff.h (TARGET_VERSION): Remove.
8655 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
8656 * config/arm/elf.h (TARGET_VERSION): Remove.
8657 * config/arm/freebsd.h (TARGET_VERSION): Remove.
8658 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
8659 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
8660 * config/arm/pe.h (TARGET_VERSION): Remove.
8661 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
8662 * config/arm/semi.h (TARGET_VERSION): Remove.
8663 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
8664 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
8665 * config/arm/vxworks.h (TARGET_VERSION): Remove.
8666 * config/avr/avr.h (TARGET_VERSION): Remove.
8667 * config/bfin/bfin.h (TARGET_VERSION): Remove.
8668 * config/fr30/fr30.h (TARGET_VERSION): Remove.
8669 * config/frv/frv.h (TARGET_VERSION): Remove.
8670 * config/h8300/h8300.h (TARGET_VERSION): Remove.
8671 * config/i386/cygwin.h (TARGET_VERSION): Remove.
8672 * config/i386/darwin.h (TARGET_VERSION): Remove.
8673 * config/i386/darwin64.h (TARGET_VERSION): Remove.
8674 * config/i386/djgpp.h (TARGET_VERSION): Remove.
8675 * config/i386/freebsd.h (TARGET_VERSION): Remove.
8676 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
8677 * config/i386/gnu.h (TARGET_VERSION): Remove.
8678 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
8679 * config/i386/i386elf.h (TARGET_VERSION): Remove.
8680 * config/i386/linux.h (TARGET_VERSION): Remove.
8681 * config/i386/linux64.h (TARGET_VERSION): Remove.
8682 * config/i386/lynx.h (TARGET_VERSION): Remove.
8683 * config/i386/mingw32.h (TARGET_VERSION): Remove.
8684 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
8685 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
8686 * config/i386/netware.h (TARGET_VERSION): Remove.
8687 * config/i386/nto.h (TARGET_VERSION): Remove.
8688 * config/i386/openbsd.h (TARGET_VERSION): Remove.
8689 * config/i386/vxworks.h (TARGET_VERSION): Remove.
8690 * config/ia64/elf.h (TARGET_VERSION): Remove.
8691 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
8692 * config/ia64/hpux.h (TARGET_VERSION): Remove.
8693 * config/ia64/linux.h (TARGET_VERSION): Remove.
8694 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
8695 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
8696 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8697 * config/lm32/lm32.h (TARGET_VERSION): Remove.
8698 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
8699 * config/m32c/m32c.h (TARGET_VERSION): Remove.
8700 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
8701 * config/m32r/m32r.h (TARGET_VERSION): Remove.
8702 * config/m68k/linux.h (TARGET_VERSION): Remove.
8703 * config/m68k/m68k.h (TARGET_VERSION): Remove.
8704 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
8705 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
8706 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
8707 * config/mep/mep.h (TARGET_VERSION): Remove.
8708 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
8709 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
8710 * config/mips/iris6.h (MACHINE_TYPE): Remove.
8711 * config/mips/linux.h (TARGET_VERSION): Remove.
8712 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
8713 * config/mips/vxworks.h (TARGET_VERSION): Remove.
8714 * config/mmix/mmix.h (TARGET_VERSION): Remove.
8715 * config/mn10300/linux.h (TARGET_VERSION): Remove.
8716 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
8717 * config/pa/pa.h (TARGET_VERSION): Remove.
8718 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
8719 * config/picochip/picochip.h (TARGET_VERSION): Remove.
8720 * config/rs6000/aix.h (TARGET_VERSION): Remove.
8721 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8722 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8723 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8724 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8725 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8726 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8727 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8728 * config/rs6000/linux.h (TARGET_VERSION): Remove.
8729 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8730 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8731 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8732 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8733 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8734 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8735 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8736 * config/s390/linux.h (TARGET_VERSION): Remove.
8737 * config/s390/s390.h (TARGET_VERSION): Remove.
8738 * config/s390/tpf.h (TARGET_VERSION): Remove.
8739 * config/score/score.h (TARGET_VERSION): Remove.
8740 * config/sh/linux.h (TARGET_VERSION): Remove.
8741 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8742 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8743 * config/sh/sh.h (TARGET_VERSION): Remove.
8744 * config/sh/sh64.h (TARGET_VERSION): Remove.
8745 * config/sh/superh.h (TARGET_VERSION): Remove.
8746 * config/sh/vxworks.h (TARGET_VERSION): Remove.
8747 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8748 * config/sparc/linux.h (TARGET_VERSION): Remove.
8749 * config/sparc/linux64.h (TARGET_VERSION): Remove.
8750 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8751 TARGET_NAME32, TARGET_NAME): Remove.
8752 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8753 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8754 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8755 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8756 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8757 * config/spu/spu.h (TARGET_VERSION): Remove.
8758 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8759 * config/v850/v850.h (TARGET_VERSION): Remove.
8760 * config/vax/linux.h (TARGET_VERSION): Remove.
8761 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8762 * config/xtensa/elf.h (TARGET_VERSION): Remove.
8763 * config/xtensa/linux.h (TARGET_VERSION): Remove.
8765 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
8768 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8769 frame-related from frame-unrelated adjustments to the stack pointer.
8771 2011-03-31 Jakub Jelinek <jakub@redhat.com>
8773 * common.opt (fdebug-types-section): Move earlier.
8774 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8776 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
8778 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8781 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
8783 * tree.h (CASE_CHAIN): Define.
8784 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8785 (gimple_redirect_edge_and_branch): Likewise.
8787 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8790 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8793 2011-03-30 Jeff Law <law@redhat.com>
8795 * PR bootstrap/48371
8796 * reload1.c (reload): Fix botch in last change.
8798 * reload.h (struct reload): Fix typo introduced in last change.
8800 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8802 * config/arm/arm.opt (mhard-float, msoft-float): Mark
8803 Undocumented. Remove help text.
8804 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8807 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8809 * doc/options.texi (NegativeAlias): Document.
8810 (Alias): Mention NegativeAlias.
8811 * opt-functions.awk: Handle NegativeAlias.
8812 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8813 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8814 * opts.h (CL_NEGATIVE_ALIAS): Define.
8815 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8816 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8818 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8820 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8821 mno-spe and mno-isel instead of mspe=no and -misel=no.
8823 2011-03-29 Mark Wielaard <mjw@redhat.com>
8825 * common.opt (fdebug-types-section): New flag.
8826 * doc/invoke.texi: Document new -fno-debug-types-section flag.
8827 * dwarf2out.c (use_debug_types): New define.
8828 (struct die_struct): Mark die_id with GTY desc use_debug_types.
8829 (print_die): Guard output of type unit signatures using
8831 (build_abbrev_table): Replace assert of dwarf_version >= 4
8832 with assert on use_debug_types.
8833 (size_of_die): Likewise.
8834 (unmark_dies): Likewise.
8835 (value_format): Decide AT_ref_external form on use_debug_types.
8836 (output_die): Replace dwarf_version version check guard with
8837 use_debug_types where appropriate.
8838 (modified_type_die): Likewise.
8839 (gen_reference_type_die): Likewise.
8840 (dwarf2out_start_source_file): Likewise.
8841 (dwarf2out_end_source_file): Likewise.
8842 (prune_unused_types_walk_attribs): Likewise.
8843 (dwarf2out_finish): Likewise.
8845 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
8847 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8849 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8851 PR rtl-optimization/48332
8852 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8853 mode of input operand N and modeN to its actual mode.
8855 2011-03-30 Jeff Law <law@redhat.com>
8857 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8858 define accessor macro.
8859 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8860 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8861 (reg_equiv_init): Likewise.
8862 (reg_equivs_size): New variable.
8863 (reg_equiv_init_size): Remove.
8864 (allocate_initial_values): Move prototype to here from....
8865 * integrate.h (allocate_initial_values): Remove prototype.
8866 * integrate.c: Include reload.h.
8867 (allocate_initial_values): Corresponding changes.
8868 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8869 (fix_reg_equiv_init, no_equiv): Corresponding changes.
8870 (update_equiv_regs): Corresponding changes.
8871 (ira): Corresponding changes.
8872 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8873 (push_secondary_reload): Corresponding changes.
8874 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8875 (make_memloc, find_reloads_address): Corresponding changes.
8876 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8877 (find_reloads_address_1): Corresponding changes.
8878 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8879 (refers_to_regno_for_reload_p): Corresponding changes.
8880 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8881 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8882 * reload1.c: Include ggc.h.
8883 (grow_reg_equivs): New function.
8884 (replace_pseudos_in, reload): Corresponding changes.
8885 (calculate_needs_all_insns, alter_regs): Corresponding changes.
8886 (eliminate_regs_1, elimination_effects): Corresponding changes.
8887 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8888 (delete_output_reload): Likewise.
8889 * caller-save.c (mark_referenced_regs): Corresponding changes.
8890 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8891 * frv/predicates.md (frv_load_operand): Corresponding changes.
8892 * microblaze/microblaze.c (double_memory_operand): Corresponding
8894 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8895 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8896 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8897 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8898 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8900 * pa/pa.c (emit_move_sequence): Corresponding changes.
8901 * vax/vax.c (nonindexed_address_p): Corresponding changes.
8903 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8906 * config/arm/arm.c (coproc_secondary_reload_class): Handle
8907 structure modes. Don't check neon_vector_mem_operand for
8908 vector or structure modes.
8910 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
8911 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8914 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8915 operand 1 and reshuffle the operands to match.
8916 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8918 2011-03-30 Christian Schüler <cschueler@gmx.de>
8921 * config/c.opt (F): Added 'Driver' to -F option.
8924 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8926 * config/darwin.opt: Added '-arch' option.
8928 2011-03-30 Nick Clifton <nickc@redhat.com>
8930 * config/rx/rx.md: Add peepholes and patterns to combine
8931 extending loads and simple arithmetic instructions.
8932 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8933 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8934 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8935 modes to use pre-decrement and post-increment addressing.
8936 (rx_is_restricted_memory_address): Add range checking of REG+INT
8938 (rx_print_operand): Add support for %Q. Fix handling of %Q.
8939 (rx_memory_move_cost): Adjust cost of stores.
8940 (rx_adjust_insn_length): New function.
8942 2011-03-30 Jakub Jelinek <jakub@redhat.com>
8945 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8946 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8947 matching arg00/arg01 types.
8949 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
8951 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8952 last_location to UNKNOWN_LOCATION.
8954 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
8957 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8960 2011-03-30 Joseph Myers <joseph@codesourcery.com>
8961 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8964 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8966 (sparc_cpu): Likewise.
8967 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8970 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
8974 PR rtl-optimization/48345
8975 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8976 hard regs for given mode from profitable regs when doing secondary
8979 2011-03-29 Jeff Law <law@redhat.com>
8982 * tree-ssa-threadupdate.c (struct redirection_data): Remove
8983 do_not_duplicate field.
8984 (lookup_redirection_data): Corresponding changes.
8985 (create_duplicates): Always create a template block.
8986 (redirect_edges): Remove code which reused the original block
8987 when it was going to become unreachable code.
8988 (thread_block): Don't set do_not_duplicate field.
8990 2011-03-29 Joseph Myers <joseph@codesourcery.com>
8992 * lto-opts.c (register_user_option_p, lto_register_user_option):
8993 Make type argument unsigned.
8994 * lto-streamer.h (lto_register_user_option): Make type argument
8996 * opth-gen.awk: Make CL_* macros unsigned.
8997 * opts-common.c (find_opt): Make lang_mask argument unsigned.
8998 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8999 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9000 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9001 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9002 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9003 (find_opt): Make lang_mask argument unsigned.
9005 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9007 PR rtl-optimization/48331
9008 PR rtl-optimization/48334
9009 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9010 for any used algorithm.
9012 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9014 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9017 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9019 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9020 (alpha_option_override): Don't set alpha_sr_alias_set.
9021 (emit_frame_store_1): Use gen_frame_mem rather than calling
9023 (alpha_expand_epilogue): Ditto.
9025 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9027 PR tree-optimization/48290
9028 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9029 vectorization, check that relevant phis in the basic block after
9030 the inner loop are really inner loop's exit phis.
9032 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9035 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9036 (cached_dw_loc_list_def): New structure.
9037 (cached_dw_loc_list): New typedef.
9038 (cached_dw_loc_list_table): New variable.
9039 (cached_dw_loc_list_table_hash): New function.
9040 (cached_dw_loc_list_table_eq): Likewise.
9041 (add_location_or_const_value_attribute): Take a bool cache_p.
9042 Cache the list when the parameter is true.
9043 (gen_formal_parameter_die): Update caller.
9044 (gen_variable_die): Likewise.
9045 (dwarf2out_finish): Likewise.
9046 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9047 while generating debug info for the decl.
9048 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9049 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9050 (resolve_addr): Cache the result of resolving a chain of
9053 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9055 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9056 conflict object hard regset nodes have intersecting hard reg sets.
9058 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9059 after regstat_init_n_sets_and_refs.
9061 * ira.c: Add more comments at the top.
9062 (setup_stack_reg_pressure_class, setup_pressure_classes):
9063 Add comments how we compute the register pressure classes.
9064 (setup_allocno_and_important_classes): Add more comments.
9065 (setup_class_translate_array, reorder_important_classes)
9066 (setup_reg_class_relations): Add comments.
9068 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9071 * ira-color.c: Add 2011 to the Copyright line.
9072 (assign_hard_reg): Add more comments.
9073 (improve_allocation): Ditto.
9075 * ira-costs.c: Add 2011 to the Copyright line.
9076 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9078 (setup_regno_cost_classes_by_mode): Ditto.
9080 Initial patches from ira-improv branch:
9082 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9084 * ira-build.c (ira_create_object): Remove initialization of
9085 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9086 (ira_create_allocno): Remove initialization of
9087 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9088 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9089 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9090 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9091 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9092 Initialize ALLOCNO_ADD_DATA.
9093 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9094 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9096 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9097 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9099 * ira.c (ira_reallocate): Remove.
9100 (setup_pressure_classes): Call
9101 ira_init_register_move_cost_if_necessary. Use
9102 ira_register_move_cost instead of ira_get_register_move_cost.
9103 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9104 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9106 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9107 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9108 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9109 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9110 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9111 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9113 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9114 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9115 (struct allocno_color_data): New.
9116 (allocno_color_data_t): New typedef.
9117 (allocno_color_data): New definition.
9118 (ALLOCNO_COLOR_DATA): New macro.
9119 (struct object_color_data): New.
9120 (object_color_data_t): New typedef.
9121 (object_color_data): New definition.
9122 (OBJECT_COLOR_DATA): New macro.
9123 (update_copy_costs, calculate_allocno_spill_cost): Call
9124 ira_init_register_move_cost_if_necessary. Use
9125 ira_register_move_cost instead of ira_get_register_move_cost.
9126 (move_spill_restore, update_curr_costs): Ditto.
9127 (allocno_spill_priority): Make it inline.
9128 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9129 (struct coalesce_data, coalesce_data_t): New.
9130 (allocno_coalesce_data): New definition.
9131 (ALLOCNO_COALESCE_DATA): New macro.
9132 (merge_allocnos, coalesced_allocno_conflict_p): Use
9133 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9134 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9135 (coalesce_allocnos): Ditto.
9136 (setup_coalesced_allocno_costs_and_nums): Ditto.
9137 (collect_spilled_coalesced_allocnos): Ditto.
9138 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9139 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9140 (coalesce_spill_slots): Ditto.
9141 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9142 free allocno_coalesce_data.
9144 * ira-conflicts.c: Fix formatting.
9145 (process_regs_for_copy): Call
9146 ira_init_register_move_cost_if_necessary. Use
9147 ira_register_move_cost instead of ira_get_register_move_cost.
9148 (build_object_conflicts): Optimize.
9150 * ira-costs.c (record_reg_classes): Optimize. Call
9151 ira_init_register_move_cost_if_necessary. Use
9152 ira_register_move_cost, ira_may_move_in_cost, and
9153 ira_may_move_out_cost instead of ira_get_register_move_cost and
9154 ira_get_may_move_cost.
9155 (record_address_regs): Ditto.
9156 (scan_one_insn): Optimize.
9157 (find_costs_and_classes): Optimize.
9158 (process_bb_node_for_hard_reg_moves): Call
9159 ira_init_register_move_cost_if_necessary. Use
9160 ira_register_move_cost instead of ira_get_register_move_cost.
9162 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9163 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9164 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9165 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9167 (ira_initiate_emit_data, ira_finish_emit_data)
9168 (create_new_allocno): New functions.
9169 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9170 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9171 Use ira_register_move_cost instead of ira_get_register_move_cost.
9173 * ira-int.h: Fix some comments.
9174 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9175 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9176 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9177 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9179 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9180 bitfield after mode. Make hard_regno a short int. Make
9181 hard_regno short. Remove first_coalesced_allocno and
9182 next_coalesced_allocno. Move mem_optimized_dest_p,
9183 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9184 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9185 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9186 temp, colorable_p. Add new member add_data.
9187 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9188 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9189 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9190 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9191 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9192 (ALLOCNO_ADD_DATA): New macro.
9193 (ira_emit_data_t): New typedef.
9194 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9195 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9196 from struct ira_allocno.
9197 (ALLOCNO_EMIT_DATA): New macro.
9198 (ira_allocno_emit_data, allocno_emit_reg): New.
9199 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9200 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9201 (OBJECT_ADD_DATA): New macro.
9202 (ira_reallocate): Remove.
9203 (ira_initiate_emit_data, ira_finish_emit_data): New.
9204 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9205 (ira_init_register_move_cost_if_necessary): New.
9206 (ira_object_conflict_iter_next): Merge into
9207 ira_object_conflict_iter_cond.
9208 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9210 * ira-live.c (process_single_reg_class_operands): Call
9211 ira_init_register_move_cost_if_necessary. Use
9212 ira_register_move_cost instead of ira_get_register_move_cost.
9214 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9216 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9218 * ira-costs.c: Fix formatting.
9219 (cost_classes, cost_classes_num): Remove.
9220 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9221 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9222 (cost_classes_del, cost_classes_htab): New.
9223 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9224 (initiate_regno_cost_classes, setup_cost_classes): New.
9225 (setup_regno_cost_classes_by_aclass): New.
9226 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9227 (record_reg_classes): Use regno_cost_classes instead of
9228 cost_classes. Move checking opposite operand up.
9229 (record_address_regs): Use regno_cost_classes
9230 instead of cost_classes.
9231 (scan_one_insn): Ditto. Use always general register.
9232 (print_allocno_costs): Use regno_cost_classes instead of
9234 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9235 (find_costs_and_classes): Set up cost classes for each registers.
9236 Use also their mode for this. Use regno_cost_classes instead of
9238 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9240 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9241 (ira_costs, ira_set_pseudo_classes): Call
9242 initiate_regno_cost_classes and finish_regno_cost_classes.
9244 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9246 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9248 * target.def (ira_cover_classes): Remove.
9250 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9252 * doc/tm.texi.in: Ditto.
9254 * ira-conflicts.c: Remove mentioning cover classes from the file.
9255 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9256 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9258 * targhooks.c (default_ira_cover_classes): Remove.
9260 * targhooks.h (default_ira_cover_classes): Ditto.
9262 * haifa-sched.c: Remove mentioning cover classes from the file.
9263 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9264 ira_pressure_classes and ira_pressure_classes_num instead of
9265 ira_reg_class_cover_size and ira_reg_class_cover. Use
9266 sched_regno_pressure_class instead of sched_regno_cover_class.
9267 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9268 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9270 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9271 classes from the file.
9272 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9273 (struct object_hard_regs, struct object_hard_regs_node): New.
9274 (struct ira_object): New members profitable_hard_regs,
9275 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9276 (struct ira_allocno): Rename cover_class to aclass. Rename
9277 cover_class_cost and updated_cover_class_cost to class_cost and
9278 updated_class_cost. Remove splay_removed_p and
9279 left_conflict_size. Add new members colorable_p.
9280 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9281 (ALLOCNO_COLORABLE_P): New macro.
9282 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9283 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9284 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9285 (OBJECT_...): Rename parameter C to O.
9286 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9287 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9288 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9289 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9290 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9291 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9292 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9293 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9294 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9295 x_ira_reg_class_subunion.
9296 (ira_max_memory_move_cost, ira_max_register_move_cost)
9297 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9298 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9299 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9300 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9301 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9302 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9303 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9304 (ira_tune_allocno_costs_and_cover_classes): Rename to
9305 ira_tune_allocno_costs.
9306 (ira_debug_hard_regs_forest): New.
9307 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9308 (ira_object_conflict_iter_next): Fix comments.
9309 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9310 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9311 cover_class to aclass.
9312 (ira_allocate_and_accumulate_costs): Ditto.
9313 (ira_allocate_and_set_or_copy_costs): Ditto.
9315 * opts.c (decode_options): Remove ira_cover_class check.
9317 * ira-color.c: Remove mentioning cover classes from the file. Use
9318 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9319 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9320 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9321 (splay-tree.h): Remove include.
9322 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9323 before copy_freq_compare_func.
9324 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9325 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9327 (hard_regs_roots, hard_regs_node_vec): Ditto.
9328 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9329 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9330 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9331 (create_new_object_hard_regs_node): Ditto.
9332 (add_new_object_hard_regs_node_to_forest): Ditto.
9333 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9334 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9336 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9337 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9338 (remove_unused_object_hard_regs_nodes): Ditto.
9339 (enumerate_object_hard_regs_nodes): Ditto.
9340 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9341 (object_hard_regs_subnode_t): Ditto.
9342 (struct object_hard_regs_subnode): Ditto.
9343 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9344 (setup_object_hard_regs_subnode_index): Ditto.
9345 (get_object_hard_regs_subnodes_num): Ditto.
9346 (form_object_hard_regs_nodes_forest): Ditto.
9347 (finish_object_hard_regs_nodes_tree): Ditto.
9348 (finish_object_hard_regs_nodes_forest): Ditto.
9349 (allocnos_have_intersected_live_ranges_p): Rename to
9350 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9351 (pseudos_have_intersected_live_ranges_p): Rename to
9352 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9353 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9354 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9355 (update_copy_costs): Remove assert. Skip cost update if the hard
9356 reg does not belong the class.
9357 (assign_hard_reg): Process only profitable hard regs.
9358 (uncolorable_allocnos_num): Make it scalar.
9359 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9360 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9361 and ira_reg_class_max_nregs.
9362 (bucket_allocno_compare_func): Check frequency first.
9363 (sort_bucket): Add compare function as a parameter.
9364 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9365 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9366 (push_allocno_to_stack): Rewrite for checking new allocno
9368 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9369 (push_only_colorable): Pass new parameter to sort_bucket.
9370 (push_allocno_to_spill): Remove.
9371 (allocno_spill_priority_compare): Make it inline and rewrite.
9372 (splay_tree_allocate, splay_tree_free): Remove.
9373 (allocno_spill_sort_compare): New function.
9374 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9375 build and use splay tree. Choose first allocno in uncolorable
9376 allocno bucket to spill. Remove setting spill cost.
9377 (all_conflicting_hard_regs): Remove.
9378 (setup_allocno_available_regs_num): Check only profitable hard
9379 regs. Print info about hard regs nodes.
9380 (setup_allocno_left_conflicts_size): Remove.
9381 (put_allocno_into_bucket): Don't call
9382 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9383 (improve_allocation): New.
9384 (color_allocnos): Call setup_profitable_hard_regs,
9385 form_object_hard_regs_nodes_forest, improve_allocation,
9386 finish_object_hard_regs_nodes_forest. Setup spill cost.
9387 (print_loop_title): Use pressure classes.
9388 (color_allocnso): Ditto.
9389 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9390 and allocnos_for_spilling.
9391 (ira_sort_regnos_for_alter_reg): Don't setup members
9392 {first,next}_coalesced_allocno.
9393 (color): Remove allocating and freeing removed_splay_allocno_vec.
9394 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9395 prohibited_class_mode_regs.
9397 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9399 (update_allocno_pressure_excess_length): Use pressure classes.
9400 (inc_register_pressure, dec_register_pressure): Check for pressure
9402 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9403 pressure class. Use ira_reg_class_nregs instead of
9404 ira_reg_class_max_nregs.
9405 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9406 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9407 (single_reg_class): Use ira_reg_class_nregs instead of
9408 ira_reg_class_max_nregs.
9409 (process_bb_node_lives): Use pressure classes.
9411 * ira-emit.c: Remove mentioning cover classes from the file. Use
9412 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9413 (change_loop): Use pressure classes.
9414 (modify_move_list): Call ira_set_allocno_class instead of
9415 ira_set_allocno_cover_class.
9417 * ira-build.c: Remove mentioning cover classes from the file. Use
9418 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9419 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9420 ALLOCNO_UPDATED_CLASS_COST instead of
9421 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9422 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9423 (ira_create_allocno): Remove initialization of
9424 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9425 ALLOCNO_COLORABLE_P.
9426 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9427 Update conflict regs for the objects.
9428 (create_cap_allocno): Remove assert. Don't propagate
9429 ALLOCNO_AVAILABLE_REGS_NUM.
9430 (ira_free_allocno_costs): New function.
9431 (finish_allocno): Change a part of code into call of
9432 ira_free_allocno_costs.
9433 (low_pressure_loop_node_p): Use pressure classes.
9434 (object_range_compare_func): Don't compare classes.
9435 (setup_min_max_conflict_allocno_ids): Ditto.
9437 * loop-invariant.c: Remove mentioning cover classes from the file.
9438 Use ira_pressure_classes and ira_pressure_classes_num instead of
9439 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9440 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9441 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9442 Use reg_allocno_class instead of reg_cover_class.
9443 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9444 STACK_REG_COVER_CLASS.
9445 (get_regno_cover_class): Rename to get_regno_pressure_class.
9446 (move_loop_invariants): Initialize and finalize regstat.
9448 * ira.c: Remove mentioning cover classes from the file. Add
9449 comments about coloring without cover classes. Use ALLOCNO_CLASS
9450 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9451 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9452 setup_class_subset_and_memory_move_costs.
9453 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9454 (setup_cover_and_important_classes): Rename to
9455 setup_allocno_and_important_classes.
9456 (setup_class_translate_array): New.
9457 (setup_class_translate): Call it for allocno and pressure classes.
9458 (cover_class_order): Rename to allocno_class_order.
9459 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9460 of ira_class_translate.
9461 (reorder_important_classes): Set up ira_important_class_nums.
9462 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9463 (print_class_cover): Rename to print_classes. Add parameter.
9464 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9465 Print pressure classes too.
9466 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9467 setup_reg_subclasses.
9468 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9469 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9470 (setup_prohibited_class_mode_regs): Use
9471 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9472 (clarify_prohibited_class_mode_regs): New function.
9473 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9474 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9475 (ira_init_once): Initialize them.
9476 (free_register_move_costs): Process them.
9477 (ira_init): Move calls of find_reg_classes and
9478 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
9479 Call clarify_prohibited_class_mode_regs.
9480 (ira_no_alloc_reg): Remove.
9481 (too_high_register_pressure_p): Use pressure classes.
9483 * sched-deps.c: Remove mentioning cover classes from the file.
9484 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9485 ira_pressure_classes and ira_pressure_classes_num instead of
9486 ira_reg_class_cover_size and ira_reg_class_cover.
9487 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
9488 sched_regno_pressure_class instead of sched_regno_cover_class.
9489 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
9490 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9492 * ira.h: Add 2010 to Copyright.
9493 (ira_no_alloc_reg): Remove external.
9494 (struct target_ira): Rename x_ira_hard_regno_cover_class,
9495 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
9496 x_ira_class_translate to x_ira_hard_regno_allocno_class,
9497 x_ira_allocno_classes_num, x_ira_allocno_classes, and
9498 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
9499 x_ira_pressure_classes, x_ira_pressure_class_translate, and
9500 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
9501 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
9502 x_ira_no_alloc_regs.
9503 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9504 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
9505 ira_allocno_classes_num and ira_allocno_classes.
9506 (ira_class_translate): Rename to ira_allocno_class_translate.
9507 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
9508 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
9509 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9510 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
9511 (ira_no_alloc_regs): New.
9513 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
9514 classes from the file. Use ALLOCNO_CLASS instead of
9515 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
9516 ALLOCNO_COVER_CLASS_COST.
9517 (regno_cover_class): Rename to regno_aclass.
9518 (record_reg_classes): Use ira_reg_class_subunion instead of
9519 ira_reg_class_union.
9520 (record_address_regs): Check overflow.
9521 (scan_one_insn): Ditto.
9522 (print_allocno_costs): Print total mem cost fore regional allocation.
9523 (print_pseudo_costs): Use REG_N_REFS.
9524 (find_costs_and_classes): Use classes intersected with them on the
9525 1st pass. Check overflow. Use ira_reg_class_subunion instead of
9526 ira_reg_class_union. Use ira_allocno_class_translate and
9527 regno_aclass instead of ira_class_translate and regno_cover_class.
9528 Modify code for finding regno_aclass. Setup preferred classes for
9530 (setup_allocno_cover_class_and_costs): Rename to
9531 setup_allocno_class_and_costs. Use regno_aclass instead of
9532 regno_cover_class. Use ira_set_allocno_class instead of
9533 ira_set_allocno_cover_class.
9534 (init_costs, finish_costs): Use regno_aclass instead of
9536 (ira_costs): Use setup_allocno_class_and_costs instead of
9537 setup_allocno_cover_class_and_costs.
9538 (ira_tune_allocno_costs_and_cover_classes): Rename to
9539 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
9540 by processing objects. Use ira_reg_class_max_nregs instead of
9541 ira_reg_class_nregs.
9543 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
9545 * sched-int.h: Remove mentioning cover classes from the file.
9546 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
9548 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
9549 classes from the file.
9550 (struct reg_pref): Rename coverclass into allocnoclass.
9551 (reg_cover_class): Rename to reg_allocno_class.
9553 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
9555 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
9557 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
9559 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
9561 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
9563 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
9565 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
9567 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
9569 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
9571 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
9573 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
9574 (i386_ira_cover_classes): Ditto.
9576 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
9578 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
9580 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
9582 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
9584 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
9586 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
9588 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
9589 (mips_ira_cover_classes): Ditto.
9591 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
9593 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
9595 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
9597 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
9599 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
9601 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
9602 (IRA_COVER_CLASSES_VSX): Ditto.
9604 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
9605 (rs6000_ira_cover_classes): Ditto.
9607 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
9609 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
9611 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
9613 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
9615 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
9617 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
9619 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
9621 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
9623 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
9625 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
9627 2011-03-29 Jakub Jelinek <jakub@redhat.com>
9630 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
9631 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
9632 dw_fde_unlikely_section_end_label, cold_in_std_section,
9633 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
9634 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
9636 (output_fde): Use dw_fde_second_{begin,end} if second is
9637 true, otherwise dw_fde_{begin,end}.
9638 (output_call_frame_info): Test dw_fde_second_begin != NULL
9639 instead of dw_fde_switched_sections.
9640 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
9641 fields, initialize new fields. Initialize in_std_section
9642 unconditionally from the first partition.
9643 (dwarf2out_end_epilogue): Don't override dw_fde_end when
9644 dw_fde_second_begin is non-NULL.
9645 (dwarf2out_switch_text_section): Stop initializing removed
9646 dw_fde_struct fields, initialize new fields, initialize
9647 also dw_fde_end here. Set dw_fde_switch_cfi even when
9648 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
9649 (struct var_loc_list_def): Add last_before_switch field.
9650 (arange_table, arange_table_allocated, arange_table_in_use,
9651 ARANGE_TABLE_INCREMENT, add_arange): Removed.
9652 (size_of_aranges): Count !in_std_section and !second_in_std_section
9653 hunks in fdes, instead of looking at arange_table_in_use.
9654 (output_aranges): Add aranges_length argument, don't call
9655 size_of_aranges here. Instead of using aranges_table*
9656 emit ranges for fdes when !in_std_section resp.
9657 !second_in_std_section.
9658 (dw_loc_list): Break ranges crossing section switch.
9659 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
9660 use dw_fde_second_end instead of dw_fde_end as end of last range.
9661 (gen_subprogram_die): Don't call add_arange. Use
9662 dw_fde_{begin,end} for first partition and if switched
9663 section dw_fde_second_{begin,end} for the second.
9664 (var_location_switch_text_section_1,
9665 var_location_switch_text_section): New functions.
9666 (dwarf2out_begin_function): Initialize cold_text_section even
9667 when function_section () isn't text_section.
9668 (prune_unused_types): Don't walk arange_table.
9669 (dwarf2out_finish): Don't needlessly test
9670 flag_reorder_blocks_and_partition when testing cold_text_section_used.
9671 If info_section_emitted, call size_of_aranges and if it indicates
9672 non-empty .debug_aranges, call output_aranges with the computed
9673 size. Stop using removed dw_fde_struct fields, use
9674 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
9678 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
9679 create ENTRY_VALUE if incoming or address of incoming's MEM
9681 * dwarf2out.c (mem_loc_descriptor): Don't emit
9682 DW_OP_GNU_entry_value of DW_OP_fbreg.
9683 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
9684 on ENTRY_VALUE is able to find the canonical parameter VALUE.
9685 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
9686 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
9688 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
9689 is a REG_P or MEM_P with REG_P address, compute hash directly
9690 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
9691 (preserve_only_constants): Don't clear VALUES forwaring
9692 ENTRY_VALUE to some other VALUE.
9694 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
9696 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
9699 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9701 * cfgexpand.c (expand_gimple_cond): Always set the source location and
9702 block before expanding the statement.
9703 (expand_gimple_stmt_1): Likewise. Set them here...
9704 (expand_gimple_stmt): ...and not here. Tidy.
9705 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
9708 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9710 * Makefile.in: New rule for cprop.o.
9711 * gcse.c: Move constant/copy propagation to cprop.c.
9712 (compute_local_properties): Only handle expression tables.
9713 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
9714 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
9715 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
9716 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
9717 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
9718 compute_cprop_data, find_used_regs, try_replace_reg,
9719 find_avail_set, cprop_jump, constprop_register, cprop_insn,
9720 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9721 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9722 find_bypass_set, reg_killed_on_edge, bypass_block,
9723 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9724 execute_rtl_cprop, pass_rtl_cprop): Move to...
9725 * cprop.c: ...here. New file, constant/copy propagation for RTL
9726 moved from gcse.c to here with minor cleanups in duplicated code.
9728 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
9730 * config/i386/i386.c (flag_opts): Fix a typo in
9731 -mavx256-split-unaligned-store.
9733 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9735 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9736 LIBCALL_VALUE): Remove macros.
9737 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9738 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9739 (h8300_function_value, h8300_libcall_value,
9740 h8300_function_value_regno_p): New functions.
9742 2011-03-28 Anatoly Sokolov <aesok@post.ru>
9744 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9746 2011-03-28 Jeff Law <law@redhat.com>
9748 * tree-ssa-threadupdate.c (redirect_edges): Call
9749 create_edge_and_update_destination_phis as needed.
9750 (create_edge_and_update_destination_phis): Accept new BB argument.
9751 All callers updated.
9752 (thread_block): Do not update the profile when threading around
9753 intermediate blocks.
9754 (thread_single_edge): Likewise.
9755 (determine_bb_domination_status): If BB is not a successor of the
9756 loop header, return NONDOMINATING.
9757 (register_jump_thread): Note when we register a jump thread around
9758 an intermediate block.
9759 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9760 (thread_across_edge): Use it.
9762 2011-03-28 Tristan Gingold <gingold@adacore.com>
9764 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9765 when for_return is 2.
9767 2011-03-28 Jeff Law <law@redhat.com>
9769 * var-tracking.c (canonicalize_values_mark): Delete unused
9771 (canonicalize_values_star, set_variable_part): Likewise.
9772 (clobber_variable_part, delete_variable_part): Likewise.
9774 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
9776 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9778 2011-03-28 Martin Jambor <mjambor@suse.cz>
9780 * tree-inline.c (expand_call_inline): Do not check that destination
9782 (optimize_inline_calls): Assert that destination node is analyzed.
9783 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9784 not call tree_lowering_passes.
9785 * cgraph.h (cgraph_analyze_function): Declare.
9786 * cgraphunit.c (cgraph_analyze_function): Make public.
9788 2011-03-28 Joseph Myers <joseph@codesourcery.com>
9790 * config/sparc/sparc-opts.h: New.
9791 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9792 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9793 (sparc_option_override): Store processor_type enumeration rather
9794 than string in cpu_default. Remove name and enumeration from
9795 cpu_table. Directly default -mcpu then default -mtune from -mcpu
9796 without using sparc_select. Use target_flags_explicit instead of
9798 * config/sparc/sparc.h (enum processor_type): Move to
9800 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9801 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9802 HeaderInclude entry.
9803 (mcpu=, mtune=): Use Var and Enum.
9804 (sparc_processor_type): New Enum and EnumValue entries.
9806 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9807 Iain Sandoe <iains@gcc.gnu.org>
9810 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9812 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
9814 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9815 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9816 Insert new statements at it in lieu of STMT.
9817 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9818 * tree-vect-stmts.c (vectorizable_store): Likewise.
9819 (vectorizable_load): Likewise.
9821 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
9823 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9828 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9830 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9831 unaligned 256bit load/store.
9832 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9833 (*avx_movdqu<avxmodesuffix>): Likewise.
9835 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9838 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9839 * config/pa/pa.md (iordi3): Use new predicate in expander.
9842 2011-03-27 Anatoly Sokolov <aesok@post.ru>
9844 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9845 FUNCTION_VALUE_REGNO_P): Remove macros.
9846 * config/mips/mips-protos.h (mips_function_value): Remove.
9847 * config/mips/mips.c (mips_function_value): Rename to...
9848 (mips_function_value_1): ... this. Make static. Handle receiving
9849 the function type in 'fn_decl_or_type' argument.
9850 (mips_function_value, mips_libcall_value,
9851 mips_function_value_regno_p): New function.
9852 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9853 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9855 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
9857 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9858 and -mavx256-split-unaligned-store.
9859 (ix86_option_override_internal): Split 32-byte AVX unaligned
9860 load/store by default.
9861 (ix86_avx256_split_vector_move_misalign): New.
9862 (ix86_expand_vector_move_misalign): Use it.
9864 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9865 -mavx256-split-unaligned-store.
9867 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9868 256bit load/store. Generate unaligned store on misaligned memory
9870 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9872 (*avx_movdqu<avxmodesuffix>): Likewise.
9874 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9875 -mavx256-split-unaligned-store.
9877 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9880 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9883 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
9885 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9886 opno arguments with an expand_operand. Use create_input_operand.
9887 (mips_prepare_builtin_target): Delete.
9888 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9890 (mips_expand_builtin_direct): Use create_output_operand and
9891 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
9892 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
9893 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9895 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
9897 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9899 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9901 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
9903 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9904 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
9905 basic blocks and call commit_edge_insertions directly.
9906 (fixup_abnormal_edges): Move from here to...
9907 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
9908 on the edges and return whether some have actually been inserted.
9909 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9912 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
9914 PR rtl-optimization/48144
9915 * sel-sched-ir.c (merge_history_vect): Factor out from ...
9916 (merge_expr_data): ... here.
9917 (av_set_intersect): Rename to av_set_code_motion_filter.
9918 Update all callers. Call merge_history_vect when an expression
9919 is found in both sets.
9920 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9922 2011-03-26 Alan Modra <amodra@gmail.com>
9924 * config/rs6000/predicates.md (word_offset_memref_op): Handle
9925 cmodel medium addresses.
9926 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9927 64-bit gpr loads and stores.
9928 (rs6000_secondary_reload_ppc64): New function.
9929 * config/rs6000/rs6000-protos.h: Declare it.
9930 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9932 2011-03-26 Alan Modra <amodra@gmail.com>
9935 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9936 GNU Go in traceback table.
9938 2011-03-25 Richard Henderson <rth@redhat.com>
9940 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9941 if there are exactly 6 operands.
9942 (set_storage_via_setmem): Similarly.
9944 2011-03-25 Kai Tietz <ktietz@redhat.com>
9946 * collect2.c (write_c_file_stat): Handle backslash
9947 as right-hand directory separator.
9948 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9949 checking just for slash.
9950 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9951 instead of checking for trailing slash.
9952 * gcc.c (record_temp_file): Use filename_cmp instead
9954 (do_spec_1): Likewise.
9955 (replace_outfile_spec_function): Likewise.
9956 (is_directory): Use filename_ncmp instead of strncmp.
9957 (print_multilib_info): Likewise.
9958 * gcov.c (find_source): Use filename_cmp instead
9960 (make_gcov_file_name): Fix order of slash/backslash
9962 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9963 (add_standard_paths): Likewise.
9964 * mips-tfile.c (saber_stop): Handle backslash.
9965 * prefix.c (update_path): Use filename_ncmp instead of
9967 * profile.c (output_location): Use filename_cmp instead
9969 * read-md.c (handle_toplevel_file): Handle backslash.
9970 * tlink.c (frob_extension): Likewise.
9971 * tree-cfg.c (same_line_p): Use filename_cmp instead of
9973 * tree-dump.c (dequeue_and_dump): Handle backslash.
9974 * tree.c (get_file_function_name): Likewise.
9975 * gengtype.c (read_input_list): Likewise.
9976 (get_file_realbasename): Likewise.
9977 (get_output_file_with_visibility): Use filename_cmp
9980 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
9982 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9985 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
9987 * fold-const.c (expr_location_or): New function.
9988 (fold_truth_not_expr): Call it.
9990 2011-03-25 Jeff Law <law@redhat.com>
9992 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9994 * c-family/c-common.c (def_fn_type): Likewise.
9995 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9996 * emit-rtl.c (gen_rtvec): Likewise.
9997 * lto/lto-lang.c (def_fn_type): Likewise.
9999 2011-03-25 Richard Guenther <rguenther@suse.de>
10001 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10002 also generate copies.
10003 (fini_copy_prop): Handle constant values properly.
10005 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10007 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10008 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10009 (hash_loc_operands, compare_loc_operands): Handle
10010 DW_OP_GNU_entry_value.
10012 2011-03-25 Kai Tietz <ktietz@redhat.com>
10014 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10015 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10016 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10017 comment and use macro TARGET_64BIT_MS_ABI instead.
10018 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10019 and change default behavior for 32-bit MS_ABI.
10020 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10021 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10023 (ix86_cfun_abi): Likewise.
10024 (ix86_maybe_switch_abi): Adjust comment.
10025 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10026 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10027 instead of checking for SYSV_ABI.
10028 (ix86_nsaved_sseregs): Likewise.
10029 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10031 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10032 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10033 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10034 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10035 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10037 2011-03-25 Richard Guenther <rguenther@suse.de>
10039 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10040 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10041 (verify_gimple): Remove.
10042 * tree-cfg.c (verify_gimple_call): Merge verification
10044 (verify_gimple_phi): Merge verification from verify_stmts.
10045 (verify_gimple_label): New function.
10046 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10047 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10048 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10049 (verify_stmts): Rename to verify_gimple_in_cfg.
10050 (verify_gimple_in_cfg): New function.
10051 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10052 * tree-ssa.c (verify_ssa): Likewise.
10053 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10055 2011-03-25 Richard Guenther <rguenther@suse.de>
10057 * passes.c (init_optimization_passes): Add FRE pass after
10060 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10061 Andrew Stubbs <ams@codesourcery.com>
10063 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10065 (arm_movdi_vfp_cortexa8): New pattern.
10066 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10067 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10068 instructions when tuning for Cortex-A8. Set attribute "arch".
10069 * config/arm/arm.md: Move include arm-tune.md up a bit.
10070 (define_attr "arch"): Add "onlya8" and "nota8" values.
10071 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10073 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10077 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10079 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10080 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10081 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10082 * passes.c (init_optimization_passes): Move
10083 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10085 2011-03-25 Kai Tietz <ktietz@redhat.com>
10087 * c-typeck.c (comptypes_internal): Replace target
10088 hook call of comp_type_attributes by version in tree.c file.
10089 * gimple.c (gimple_types_compatible_p_1): Likewise.
10090 * tree-ssa.c (useless_type_conversion_p): Likewise.
10091 * tree.c (build_type_attribute_qual_variant): Likewise.
10092 (attribute_value_equal): New static helper function.
10093 (comp_type_attributes): New function.
10094 (merge_attributes): Use attribute_value_equal for comparison.
10095 (attribute_list_contained): Likewise.
10096 * tree.h (comp_type_attributes): New prototype.
10098 2011-03-25 Richard Guenther <rguenther@suse.de>
10100 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10101 of complex types at -O0.
10102 (verify_gimple_assign_binary): Likewise.
10103 (verify_gimple_assign_ternary): Likewise.
10105 2011-03-24 Mark Wielaard <mjw@redhat.com>
10107 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10108 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10110 2011-03-24 Mark Wielaard <mjw@redhat.com>
10113 * dwarf2out.c (output_abbrev_section): Only write table when
10114 abbrev_die_table_in_use > 1.
10116 2011-02-24 Richard Henderson <rth@redhat.com>
10118 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10119 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10120 (alpha_expand_unaligned_load_words): Use extql.
10121 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10122 (emit_insxl): Handle all modes for consistency.
10124 2011-02-24 Richard Henderson <rth@redhat.com>
10126 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10127 (alpha_expand_unaligned_load): Likewise.
10128 (alpha_expand_unaligned_store): Likewise.
10129 (alpha_expand_unaligned_load_words): Likewise.
10130 (alpha_expand_unaligned_store_words): Likewise.
10131 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10132 (alpha_split_lock_test_and_set_12): Likewise.
10133 (print_operand, alpha_fold_builtin_extxx): Likewise.
10134 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10135 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10136 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10137 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10138 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10139 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10140 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10141 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10142 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10143 (extwl, extll, extql): Similarly.
10144 (inswh, inslh, insqh): Similarly.
10145 (mskbl, mskwl, mskll, mskql): Similarly.
10146 (mskwh, msklh, mskqh): Similarly.
10148 2011-02-24 Richard Henderson <rth@redhat.com>
10150 * config/alpha/alpha.md (attribute isa): Add er, ner.
10151 (attribute enabled): Handle them.
10152 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10154 2011-02-24 Richard Henderson <rth@redhat.com>
10156 * config/alpha/alpha.md (attribute isa): Add vms.
10157 (attribute enabled): Handle it.
10158 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10159 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10160 (*movtf): Rename from *movtf_internal for consistency.
10161 (*movsi): Merge with *movsi_nt_vms.
10162 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10163 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10164 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10165 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10167 2011-02-24 Richard Henderson <rth@redhat.com>
10169 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10170 (extendqisi2, extendhisi2): Likewise.
10171 (extendqidi2): Simplify BWX/non-BWX expansions.
10172 (extendhidi2): Similarly.
10174 2011-02-24 Richard Henderson <rth@redhat.com>
10176 * config/alpha/alpha.md (attribute isa): New.
10177 (attribute enabled): New.
10178 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10179 (zero_extendqisi2, zero_extendqidi2): Similarly.
10180 (zero_extendhisi2, zero_extendhidi2): Similarly.
10181 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10183 2011-02-24 Richard Henderson <rth@redhat.com>
10185 * config/alpha/predicates.md (input_operand): Revert last change;
10186 update comment to mention 32-bit VMS rather than Windows.
10188 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10190 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10191 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10192 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10193 * passes.c (init_optimization_passes): Move
10194 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10196 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10198 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10200 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10202 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10205 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10208 * simplify-rtx.c (simplify_const_unary_operation): Call
10209 real_convert when changing mode class with FLOAT_EXTEND.
10211 2011-03-24 Nick Clifton <nickc@redhat.com>
10213 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10214 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10215 * config/rx/rx.c (rx_option_override): Set align_jumps,
10216 align_loops and align_labels if not set by the user.
10217 (rx_align_for_label): New function.
10218 (rx_max_skip_for_label): New function.
10219 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10220 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10221 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10222 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10223 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10225 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10227 PR rtl-optimization/48263
10228 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10229 and original commutative_p handling. Use maybe_gen_insn.
10231 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10233 * reload.c (find_reloads_subreg_address): Add address_reloaded
10234 parameter and return true there if the full address has been
10236 (find_reloads_toplev): Pass address_reloaded flag.
10237 (find_reloads_address_1): Don't use address_reloaded parameter.
10239 2011-03-24 Jeff Law <law@redhat.com>
10241 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10242 unused variable "ann".
10243 (remove_unused_locals): Likewise.
10245 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10248 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10251 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10253 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10254 for invalid symbolic addresses.
10255 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10258 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10260 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10261 the argument in calls to fold_truth_not_expr.
10263 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10265 * tree.c (record_node_allocation_statistics): New function.
10266 (make_node_stat, copy_node_stat, build_string): Call it.
10267 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10268 (build1_stat, build_omp_clause): Likewise.
10270 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10272 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10275 2011-03-24 Richard Guenther <rguenther@suse.de>
10277 PR tree-optimization/48271
10278 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10279 blocks that still exist.
10281 2011-03-24 Richard Guenther <rguenther@suse.de>
10283 PR tree-optimization/48270
10284 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10285 not free datarefs before ddrs.
10287 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10289 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10290 from the address built for a reference with variable offset.
10292 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10295 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10296 alternatives that can be handled with movq or movabsq insn.
10297 (*movdf_internal): Disable for !TARGET_64BIT.
10298 (*movdf_internal_nointeger): Ditto.
10299 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10301 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10303 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10304 (FUNCTION_ARG_ADVANCE): Likewise.
10305 * tm.texi.in: Change references to them to hook references.
10306 * tm.texi: Regenerate.
10307 * targhooks.c (default_function_arg): Eliminate check for target macro.
10308 (default_function_incoming_arg): Likewise.
10309 (default_function_arg_advance): Likewise.
10310 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10311 (function_arg_advance): Likewise.
10312 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10314 2011-03-24 Richard Guenther <rguenther@suse.de>
10316 PR middle-end/48269
10317 * tree-object-size.c (addr_object_size): Do not double-account
10318 for MEM_REF offsets.
10320 2011-03-24 Diego Novillo <dnovillo@google.com>
10322 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10323 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10324 (lto_input_data_block): Move from lto-opts.c. Make extern.
10326 (lto_input_string): Rename from input_string. Make extern.
10328 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10329 output_string_with_length.
10330 Output 0 to indicate a non-NULL string. Update all callers to
10332 (lto_output_string): Rename from output_string. Make extern.
10334 (lto_output_decl_state_streams): Make extern.
10335 (lto_output_decl_state_refs): Make extern.
10336 * lto-streamer.h (lto_input_string): Declare.
10337 (lto_input_data_block): Declare.
10338 (lto_output_string): Declare.
10339 (lto_output_string_with_length): Declare.
10340 (lto_output_decl_state_streams): Declare.
10341 (lto_output_decl_state_refs): Declare.
10343 2011-03-24 Richard Guenther <rguenther@suse.de>
10345 PR tree-optimization/46562
10346 * tree.c (build_invariant_address): New function.
10347 * tree.h (build_invariant_address): Declare.
10348 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10349 a renamed function moved ...
10350 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10351 Take valueization callback parameter.
10352 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10353 * gimple-fold.h: New file.
10354 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10355 (ccp_fold, fold_const_aggregate_ref,
10356 fold_ctor_reference, fold_nonarray_ctor_reference,
10357 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10358 get_base_constructor): Move ...
10359 * gimple-fold.c: ... here.
10360 (gimple_fold_stmt_to_constant_1): New function
10361 split out from ccp_fold. Take a valueization callback parameter.
10362 Valueize all operands.
10363 (gimple_fold_stmt_to_constant): New wrapper function.
10364 (fold_const_aggregate_ref_1): New function split out from
10365 fold_const_aggregate_ref. Take a valueization callback parameter.
10366 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10367 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10368 invariant POINTER_PLUS_EXPRs to invariant form.
10369 (vn_valueize): New function.
10370 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10371 * tree-vrp.c (vrp_valueize): New function.
10372 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10373 to fold statements to constants.
10374 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10375 function declarations.
10376 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10377 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10379 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10381 * config/h8300/predicates.md (jump_address_operand): Fix register
10384 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10386 * doc/invoke.texi (max-stores-to-sink): Document.
10387 * params.h (MAX_STORES_TO_SINK): Define.
10388 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10389 if either vectorization or if-conversion is disabled.
10390 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10391 tree-vect-data-refs.c vect_equal_offsets.
10392 (dr_equal_offsets_p): New function.
10393 (find_data_references_in_bb): Remove static.
10394 * tree-data-ref.h (find_data_references_in_bb): Declare.
10395 (dr_equal_offsets_p): Likewise.
10396 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10397 (vect_drs_dependent_in_basic_block): Update calls to
10398 vect_equal_offsets.
10399 (vect_check_interleaving): Likewise.
10400 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10401 (cond_if_else_store_replacement): Rename to...
10402 (cond_if_else_store_replacement_1): ... this. Change arguments and
10404 (cond_if_else_store_replacement): New function.
10405 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10406 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10408 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10411 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10412 to subtract lower bound instead of GEN_INT().
10414 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10419 * doc/extend.texi (Alignment): Move section to match order in TOC.
10420 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10421 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10423 2011-03-23 Jeff Law <law@redhat.com>
10425 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10426 before removing the edge.
10428 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10429 it may have been freed by redirect_branch_edge or
10430 redirect_edge_succ_nodup.
10432 2011-03-23 Richard Guenther <rguenther@suse.de>
10434 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10435 (check_va_list_escapes): Likewise.
10436 (check_all_va_list_escapes): Likewise.
10438 2011-03-23 Richard Guenther <rguenther@suse.de>
10440 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10441 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10442 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10443 (alias.o): Likewise.
10444 (ipa-type-escape.o): Remove.
10445 (ipa-struct-reorg.o): Likewise.
10446 (GTFILES): Remove ipa-struct-reorg.c.
10447 * alias.c: Do not include ipa-type-escape.h.
10448 * tree-ssa-alias.c: Likewise.
10449 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10450 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10451 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10452 and ipa-type-escape passes.
10453 * tree-pass.h (pass_ipa_type_escape): Remove.
10454 (pass_ipa_struct_reorg): Likewise.
10455 * ipa-struct-reorg.h: Remove.
10456 * ipa-struct-reorg.c: Likewise.
10457 * ipa-type-escape.h: Likewise.
10458 * ipa-type-escape.c: Likewise.
10459 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10460 (--param struct-reorg-cold-struct-ratio): Likewise.
10461 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10462 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10463 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10465 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10467 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10468 cpu attribute value.
10469 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10470 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10471 * config/s390/s390.c (processor_flags_table): New constant array.
10472 (s390_handle_arch_option): Remove.
10473 (s390_handle_option): Remove s390_handle_arch_option invocations
10474 and OPT_mwarn_framesize_ handling.
10475 (s390_option_override): Remove s390_handle_arch_option invocation.
10476 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
10478 * config/s390/s390.md (cpu attribute): Add z9_ec value.
10479 * config/s390/s390.opt (s390_tune, s390_arch)
10480 (march=): Replace s390_arch_option enum and values with
10481 processor_type. Set variable name to s390_arch. Set
10482 initialization value.
10483 (mtune=): Replace s390_arch_option with processor_type. Set
10484 variable name to s390_tune. Set initialization value.
10486 2011-03-23 Julian Brown <julian@codesourcery.com>
10488 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
10489 accesses which are not naturally aligned.
10491 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10494 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
10496 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
10498 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
10499 parameter from "int" to "enum insn_code".
10500 (expand_operand_type): New enum.
10501 (expand_operand): New structure.
10502 (create_expand_operand): New function.
10503 (create_fixed_operand, create_output_operand): Likewise
10504 (create_input_operand, create_convert_operand_to): Likewise.
10505 (create_convert_operand_from, create_address_operand): Likewise.
10506 (create_integer_operand): Likewise.
10507 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
10508 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10509 (expand_insn, expand_jump_insn): Likewise.
10510 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
10511 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
10512 (expand_movstr, expand_builtin___clear_cache): Likewise.
10513 (expand_builtin_lock_release): Likewise.
10514 * explow.c (allocate_dynamic_stack_space): Likewise.
10515 (probe_stack_range): Likewise. Allow check_stack to FAIL,
10516 and use the default handling in that case.
10517 * expmed.c (check_predicate_volatile_ok): Delete.
10518 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
10519 (emit_cstore): Likewise.
10520 * expr.c (emit_block_move_via_movmem): Likewise.
10521 (set_storage_via_setmem, expand_assignment): Likewise.
10522 (emit_storent_insn, try_casesi): Likewise.
10523 (emit_single_push_insn): Likewise. Allow the expansion to fail.
10524 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
10525 (expand_vec_shift_expr, expand_binop_directly): Likewise.
10526 (expand_twoval_unop, expand_twoval_binop): Likewise.
10527 (expand_unop_direct, emit_indirect_jump): Likewise.
10528 (emit_conditional_move, vector_compare_rtx): Likewise.
10529 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
10530 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
10531 (expand_sync_lock_test_and_set): Likewise.
10532 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
10533 (emit_unop_insn): Likewise.
10534 (expand_copysign_absneg): Change icode to an insn_code.
10535 (create_convert_operand_from_type): New function.
10536 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
10537 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
10538 (expand_insn, expand_jump_insn): Likewise.
10539 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
10540 than const_int_operand for operand 2.
10542 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10544 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
10547 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10549 * emit-rtl.c (emit_pattern_before_noloc): New function.
10550 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
10551 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
10552 (emit_pattern_after_noloc): New function.
10553 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
10554 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
10556 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
10558 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
10559 (__ffsDI2): Likewise.
10561 2011-03-22 Richard Henderson <rth@redhat.com>
10563 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
10564 of !TARGET_ABI_OPEN_VMS.
10565 (alpha_trampoline_init, alpha_start_function): Likewise.
10566 (alpha_expand_epilogue, alpha_file_start): Likewise.
10567 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
10568 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
10569 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
10570 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
10571 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
10573 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10575 * config/s390/s390-opts.h: New.
10576 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
10577 s390_arch_flags, s390_warn_framesize, s390_stack_size,
10578 s390_stack_guard): Remove.
10579 (s390_handle_arch_option): Return void. Take enum
10580 s390_arch_option value instead of string and searching array.
10581 (s390_handle_option): Don't assert that global structures are in
10582 use. Access variables via opts pointer. Use error_at. Don't use
10583 sscanf for -mstack-guard= or -mstack-size=. Update call to
10584 s390_handle_arch_option.
10585 (s390_option_override): Update call to s390_handle_arch_option.
10586 (s390_emit_prologue): Use %d format for s390_stack_size in
10587 diagnostic. Use %wd for HOST_WIDE_INT.
10588 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
10589 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
10590 * config/s390/s390.opt (config/s390/s390-opts.h): New
10591 HeaderInclude entry.
10592 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
10593 s390_arch_flags, s390_warn_framesize): New Variable entries.
10594 (s390_arch_option): New Enum and EnumValue entries.
10595 (march=): Use Enum instead of Var.
10596 (mstack-guard=, mstack-size=): Use UInteger and Var.
10597 (mtune=): Use Enum.
10599 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10601 * config/score/score.c (score_handle_option): Don't assert that
10602 global structures are in use. Access target_flags via opts
10603 pointer. Use value of -march= option to determine target_flags
10605 * config/score/score.opt (march=): Use Enum.
10606 (score_arch): New Enum and EnumValue entries.
10608 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10610 * config/mep/mep.c (option_mtiny_specified): Remove.
10611 (mep_option_override): Move register handling for -mivc2 from
10612 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
10613 instead of option_mtiny_specified.
10614 (mep_handle_option): Access target_flags via opts pointer. Don't
10615 assert that global structures are in use. Defer part of -mivc2
10616 handling and move it to mep_option_override.
10617 * config/mep/mep.opt (IVC2): New Mask entry.
10618 (mivc2): Use Var and Defer instead of Mask.
10620 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10622 * config/v850/v850-opts.h: New.
10623 * config/v850/v850.c (small_memory): Replace with
10624 small_memory_physical_max array. Make that array static const.
10625 (v850_handle_memory_option): Take integer value of argument. Take
10626 gcc_options pointer, option text and location. Return void.
10627 Update for changes to small memory structures.
10628 (v850_handle_option): Access target_flags via opts pointer. Don't
10629 assert that global structures are in use. Update calls to
10630 v850_handle_memory_option.
10631 (v850_encode_data_area): Update references to small memory settings.
10632 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
10633 (enum small_memory_type): Move to v850-opts.h.
10634 * config/v850/v850.opt (config/v850/v850-opts.h): New
10635 HeaderInclude entry.
10636 (small_memory_max): New Variable entry.
10637 (msda): Replace by pair of options msda= and msda-. Use UInteger.
10638 (mtda, mzda): Likewise.
10640 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10642 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
10643 pointer. Don't assert that global structures are in use.
10645 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10647 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
10648 via opts pointer. Don't assert that global structures are in use.
10650 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10652 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
10653 (munix=93): Use Var.
10654 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
10655 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
10656 * config/pa/pa-opts.h: New.
10657 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
10658 (pa_handle_option): Don't assert that global structures are in
10659 use. Access target_flags via opts pointer. Don't handle
10660 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
10662 (pa_option_override): Handle deferred OPT_mfixed_range_.
10664 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10666 * config/mn10300/mn10300-opts.h: New.
10667 * config/mn10300/mn10300.c (mn10300_processor,
10668 mn10300_tune_string): Remove.
10669 (mn10300_handle_option): Don't assert that global structures are
10670 in use. Access mn10300_processor via opts pointer. Don't handle
10672 * config/mn10300/mn10300.h (enum processor_type): Move to
10674 (mn10300_processor): Remove.
10675 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
10676 HeaderInclude entry.
10677 (mn10300_processor): New Variable entry.
10680 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10682 * config/microblaze/microblaze.c: Don't include opts.h.
10683 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
10684 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
10685 (mno-clearbss): Use Var and Warn.
10687 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10689 * config/m32r/m32r-opts.h: New.
10690 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
10691 (m32r_handle_option): Don't assert that global structures are in
10692 use. Access target_flags and m32r_cache_flush_func via opts
10693 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
10694 OPT_mno_flush_trap here.
10695 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
10696 include of m32r-opts.h.
10697 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
10698 HeaderInclude entry.
10699 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
10700 (mmodel=): Use Enum and Var.
10701 (m32r_model): New Enum and EnumValue entries.
10702 (mno-flush-trap): Use Var.
10703 (msdata=): Use Enum and Var.
10704 (m32r_sdata): New Enum and EnumValue entries.
10706 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10708 * config/m32c/m32c.c: Don't include opts.h.
10709 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
10710 m32c_handle_option): Remove.
10711 (m32c_option_override): Check global_options_set.x_target_memregs
10712 instead of target_memregs_set.
10713 * config/m32c/m32c.h (target_memregs): Remove.
10714 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
10717 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10719 * config/iq2000/iq2000-opts.h: New.
10720 * config/iq2000/iq2000.c: Don't include opts.h.
10721 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10722 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10723 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10724 HeaderInclude entry.
10725 (iq2000_tune): New Variable entry.
10726 (march=): Add comment. Use Enum.
10727 (iq2000_arch): New Enum and EnumValue entries.
10728 (mcpu=): Use Enum and Var.
10729 (iq2000_tune): New Enum and EnumValue entries.
10731 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10733 * config/ia64/ia64-opts.h: New.
10734 * config/ia64/ia64.c (ia64_tune): Remove.
10735 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10736 here. Use error_at.
10737 (ia64_option_override): Handle deferred OPT_mfixed_range_.
10738 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10739 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10740 HeaderInclude entry.
10741 (ia64_tune): New Variable entry.
10742 (mfixed-range=): Use Defer and Var.
10743 (mtune=): Use Enum and Var.
10744 (ia64_tune): New Enum and EnumValue entries.
10746 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10748 * config/frv/frv-opts.h: New.
10749 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10751 (frv_cpu_type): Remove.
10752 * config/frv/frv.c: Don't include opts.h.
10753 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10754 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10755 (frv_cpu_type): New Variable entry.
10756 (frv_cpu): New Enum and EnumValue entries.
10758 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10760 * config/cris/cris.c (cris_handle_option): Access target_flags via
10761 opts pointer. Don't assert that global structures are in use.
10762 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10763 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10765 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10767 * config/bfin/bfin-opts.h: New.
10768 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10769 bfin_si_revision, bfin_workarounds): Remove.
10770 (bfin_cpus): Make static const.
10771 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10772 not bfin_lib_id_given.
10773 (bfin_handle_option): Don't set bfin_lib_id_given. Access
10774 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10775 pointer. Use error_at. Don't assert that global structures are in use.
10776 * config/bfin/bfin.h: Include bfin-opts.h.
10777 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10778 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10779 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10780 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10783 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10785 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10786 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10787 or -msoft-float here.
10788 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10789 -msoft-float and -mhard-float.
10790 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10791 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10793 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10795 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10796 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10798 (LIBGCC_SPEC): Don't handle -msoft-float.
10799 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10801 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10803 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10804 -mfloat-abi=*, not -msoft-float and -mhard-float.
10805 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10807 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10808 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10809 mhard-float and msoft-float.
10810 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10811 mfloat-abi=soft in comments, not mhard-float and msoft-float.
10812 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10813 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10815 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10816 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10818 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10820 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10823 2011-03-22 Richard Henderson <rth@redhat.com>
10825 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10826 TARGET_ABI_WINDOWS_NT.
10827 (alpha_output_function_end_prologue): Likewise.
10828 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10829 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10830 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10831 (trap, *movsi_nt_vms): Likewise.
10832 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10833 (*tablejump_osf_nt_internal): Remove.
10834 * config/alpha/predicates.md (input_operand): Only test Pmode.
10836 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10838 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10839 via opts pointer. Use error_at. Don't assert that global
10840 structures are in use.
10842 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10844 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10845 (ix86_handle_option): Access ix86_isa_flags and
10846 ix86_isa_flags_explicit via opts pointer. Don't assert that
10847 global structures are in use.
10848 (ix86_function_specific_save, ix86_function_specific_restore):
10849 Update ix86_isa_flags_explicit field name.
10850 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10851 (ix86_isa_flags_explicit): Rename TargetSave entry to
10852 x_ix86_isa_flags_explicit.
10854 2011-03-22 Richard Henderson <rth@redhat.com>
10856 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10857 (alpha_option_override, direct_return): Likewise.
10858 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10859 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10860 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10861 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10862 (alpha_expand_epilogue, alpha_end_function): Likewise.
10863 (alpha_init_libfuncs): Likewise.
10864 (struct machine_function): Remove unicosmk members.
10865 (print_operand) ['t']: Remove.
10866 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10867 unicosmk_output_module_name, unicosmk_output_common,
10868 current_section_align, unicosmk_output_text_section_asm_op,
10869 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10870 unicosmk_section_type_flags, unicosmk_unique_section,
10871 unicosmk_asm_named_section, unicosmk_insert_attributes,
10872 unicosmk_output_align, unicosmk_defer_case_vector,
10873 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10874 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10875 unicosmk_output_ssib, unicosmk_add_call_info_word,
10876 unicosmk_extern_head, unicosmk_output_default_externs,
10877 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10878 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10879 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10880 * config/alpha/alpha-protos.h: Update.
10881 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10882 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10883 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10884 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10885 (*mulsi_se, mulvsi3): Likewise.
10886 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10887 (*divmodsi_internal, call, call_value, realign): Likewise.
10888 (moddi3, umoddi3): Likewise; remove duplicate expander.
10889 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10890 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10891 (*movdi_nofix): Remove r/U alternative.
10892 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10893 * config/alpha/constraints.md ("U"): Remove.
10894 * config/alpha/predicates.md (call_operand"): Don't test
10895 TARGET_ABI_UNICOSMK.
10897 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10899 * target.def (handle_option): Take gcc_options and
10900 cl_decoded_option pointers and location_t.
10901 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10902 * doc/tm.texi: Regenerate.
10903 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10904 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10905 * lto-opts.c (lto_reissue_options): Generate option structure for
10906 targetm.handle_option call.
10907 * opts.c (target_handle_option): Update call to
10908 targetm.handle_option. Remove assertions about values now passed
10910 * targhooks.c (default_target_handle_option): New.
10911 * targhooks.h (default_target_handle_option): Declare.
10912 * config/alpha/alpha.c: Include opts.h.
10913 (alpha_handle_option): Update to new hook interface.
10914 * config/arm/arm.c: Include opts.h.
10915 (arm_handle_option): Update to new hook interface.
10916 * config/arm/t-arm (arm.o): Update dependencies.
10917 * config/bfin/bfin.c: Include opts.h.
10918 (bfin_handle_option): Update to new hook interface.
10919 * config/cris/cris.c: Include opts.h.
10920 (cris_handle_option): Update to new hook interface.
10921 * config/frv/frv.c: Include opts.h.
10922 (frv_handle_option): Update to new hook interface.
10923 * config/i386/i386.c: Include opts.h.
10924 (ix86_handle_option): Update to new hook interface.
10925 (ix86_valid_target_attribute_inner_p): Generate option structure
10926 for call to ix86_handle_option.
10927 * config/i386/t-i386 (i386.o): Update dependencies.
10928 * config/ia64/ia64.c: Include opts.h.
10929 (ia64_handle_option): Update to new hook interface.
10930 * config/ia64/t-ia64 (ia64.o): Update dependencies.
10931 * config/iq2000/iq2000.c: Include opts.h.
10932 (iq2000_handle_option): Update to new hook interface.
10933 * config/m32c/m32c.c: Include opts.h.
10934 (m32c_handle_option): Update to new hook interface.
10935 * config/m32r/m32r.c: Include opts.h.
10936 (m32r_handle_option): Update to new hook interface.
10937 * config/m68k/m68k.c: Include opts.h.
10938 (m68k_handle_option): Update to new hook interface.
10939 * config/mep/mep.c: Include opts.h.
10940 (mep_handle_option): Update to new hook interface.
10941 * config/microblaze/microblaze.c: Include opts.h.
10942 (microblaze_handle_option): Update to new hook interface.
10943 * config/mips/mips.c: Include opts.h.
10944 (mips_handle_option): Update to new hook interface.
10945 * config/mn10300/mn10300.c: Include opts.h.
10946 (mn10300_handle_option): Update to new hook interface.
10947 * config/pa/pa.c: Include opts.h.
10948 (pa_handle_option): Update to new hook interface.
10949 * config/pdp11/pdp11.c: Include opts.h.
10950 (pdp11_handle_option): Update to new hook interface.
10951 * config/rs6000/rs6000.c: Include opts.h.
10952 (rs6000_handle_option): Update to new hook interface.
10953 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10954 * config/rx/rx.c: Include opts.h.
10955 (rx_handle_option): Update to new hook interface.
10956 * config/s390/s390.c: Include opts.h.
10957 (s390_handle_option): Update to new hook interface.
10958 * config/score/score.c: Include opts.h.
10959 (score_handle_option): Update to new hook interface.
10960 * config/sh/sh.c: Include opts.h.
10961 (sh_handle_option): Update to new hook interface.
10962 * config/sparc/sparc.c: Include opts.h.
10963 (sparc_handle_option): Update to new hook interface.
10964 * config/v850/v850.c: Include opts.h.
10965 (v850_handle_option): Update to new hook interface.
10967 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10969 * gcc.c (driver_unknown_option_callback): Only permit and save
10970 unknown -Wno- options.
10971 (driver_wrong_lang_callback): Save options directly instead of via
10972 driver_unknown_option_callback.
10974 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
10976 * combine.c (simplify_set): Try harder to find the best CC mode when
10977 simplifying a nested COMPARE on the RHS.
10979 2011-03-22 Joseph Myers <joseph@codesourcery.com>
10981 * config/alpha/gnu.h: Remove.
10982 * config/arc: Remove directory.
10983 * config/arm/netbsd.h: Remove.
10984 * config/arm/t-pe: Remove.
10985 * config/crx: Remove directory.
10986 * config/i386/netbsd.h: Remove.
10987 * config/m68hc11: Remove directory.
10988 * config/m68k/uclinux-oldabi.h: Remove.
10989 * config/mcore/mcore-pe.h: Remove.
10990 * config/mcore/t-mcore-pe: Remove.
10991 * config/netbsd-aout.h: Remove.
10992 * config/rs6000/gnu.h: Remove.
10993 * config/sh/sh-symbian.h: Remove.
10994 * config/sh/symbian-base.c: Remove.
10995 * config/sh/symbian-c.c: Remove.
10996 * config/sh/symbian-cxx.c: Remove.
10997 * config/sh/symbian-post.h: Remove.
10998 * config/sh/symbian-pre.h: Remove.
10999 * config/sh/t-symbian: Remove.
11000 * config/svr3.h: Remove.
11001 * config/vax/netbsd.h: Remove.
11002 * config.build: Don't handle i[34567]86-*-pe.
11003 * config.gcc: Remove handling of deprecations for most deprecated
11005 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11006 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11007 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11008 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11009 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11010 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11012 * config.host: Don't handle i[34567]86-*-pe.
11013 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11014 (ASM_SPEC32): Don't handle -mcall-gnu.
11015 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11017 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11018 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11019 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11020 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11021 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11022 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11023 conditional on SYMBIAN.
11024 * configure.ac: Don't handle powerpc*-*-gnu*.
11025 * configure: Regenerate.
11026 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11027 * doc/install-old.texi (m6811, m6812): Don't mention.
11028 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11029 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11030 (m68k-uclinuxoldabi): Don't mention.
11031 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11033 (-mcall-gnu): Remove.
11034 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11035 families): Remove constraint documentation.
11037 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11039 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11040 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11041 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11043 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11046 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11047 vector when peeking at the next token for vector, don't expand the
11050 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11052 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11053 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11054 * config/avr/avr.c (init_cumulative_args)
11055 (avr_function_arg_advance): Use it.
11056 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11058 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11059 (avr_function_ok_for_sibcall): ...this new function.
11060 (avr_lookup_function_attribute1): New static Function.
11061 (avr_naked_function_p, interrupt_function_p)
11062 (signal_function_p, avr_OS_task_function_p)
11063 (avr_OS_main_function_p): Use it.
11064 * config/avr/avr.md ("sibcall", "sibcall_value")
11065 ("sibcall_epilogue"): New expander.
11066 ("*call_insn", "*call_value_insn"): New insn.
11067 ("call_insn", "call_value_insn"): Remove
11068 ("call", "call_value", "epilogue"): Change expander to handle
11071 2011-03-21 Nick Clifton <nickc@redhat.com>
11073 * doc/invoke.texi (Overall Options): Move closing brace to end of
11075 (Optimization Options): Add missing @gol.
11076 (Directory Options): Likewise.
11077 (i386 and x86-64 Options): Likewise.
11078 (RS6000 and PowerPC Options): Likewise.
11079 (i386 and x86-64 Windows Options): Likewise.
11080 (V850 Options): Add text missing from descriptions.
11082 2011-03-22 Richard Henderson <rth@redhat.com>
11084 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11085 (avr_incoming_return_addr_rtx): New.
11086 (emit_push_byte): New.
11087 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11088 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11089 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11090 (emit_pop_byte): New.
11091 (expand_epilogue): Use it. Pop frame pointer by bytes.
11092 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11093 (INCOMING_RETURN_ADDR_RTX): New.
11094 (INCOMING_FRAME_SP_OFFSET): New.
11095 (ARG_POINTER_CFA_OFFSET): New.
11096 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11097 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11100 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11102 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11104 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11105 (FUNCTION_ARG_ADVANCE): Likewise.
11106 * tm.texi.in: Change references to them to hook references.
11107 * tm.texi: Regenerate.
11108 * targhooks.c (default_function_arg): Eliminate check for target
11110 (default_function_incoming_arg): Likewise.
11111 (default_function_arg_advance): Likewise.
11112 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11113 (function_arg_advance): Likewise.
11114 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11116 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11118 * tree.c (build_call_1): New function.
11119 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11121 2011-03-22 Richard Guenther <rguenther@suse.de>
11123 PR tree-optimization/48228
11124 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11125 for single-arg PHIs.
11127 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11129 PR rtl-optimization/48143
11130 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11131 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11132 sse2_cvtps2pd): Likewise.
11134 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11136 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11138 2011-03-22 Richard Guenther <rguenther@suse.de>
11140 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11141 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11142 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11143 and REALIGN_LOAD_EXPR.
11144 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11145 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11146 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11147 DOT_PROD_EXPR case ...
11148 (expand_expr_real_2): ... here.
11149 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11150 and REALIGN_LOAD_EXPR.
11151 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11152 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11153 (vect_create_epilog_for_reduction): Likewise.
11154 (vectorizable_reduction): Likewise.
11155 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11156 * tree-vect-stmts.c (vectorizable_load): Likewise.
11158 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11160 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11162 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11164 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11165 handling for PLTOFF/GOTOFF.
11167 2011-03-22 Nick Clifton <nickc@redhat.com>
11169 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11170 trailing backslash from the end of the macro definition.
11172 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11174 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11177 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11179 * expr.h (prepare_operand): Move to...
11180 * optabs.h (prepare_operand): ...here and change the insn code
11181 parameter from "int" to "enum insn_code".
11182 (insn_operand_matches): Declare.
11183 * expr.c (init_expr_target): Use insn_operand_matches.
11184 (compress_float_constant): Likewise.
11185 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11186 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11187 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11188 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11190 (gen_cond_trap): Likewise.
11191 (prepare_operand): Likewise. Change icode to an insn_code.
11192 (insn_operand_matches): New function.
11193 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11194 * reload1.c (gen_reload): Likewise.
11195 * targhooks.c (default_secondary_reload): Likewise.
11197 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11199 * config/alpha/alpha.md (unspec): New define_c_enum.
11202 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11205 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11206 between a call and its CALL_ARG_LOCATION note.
11208 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11210 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11212 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11216 * c-common.c (shorten_compare): If primopN is first sign-extended
11217 to opN and then zero-extended to result type, set primopN to opN.
11219 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11221 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11222 for barrier handlers.
11224 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11226 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11227 UNSPEC constants to be in the unspec enumeration, and redefine
11228 all UNSPECV constants to be in the unspecv enumeration, so that
11229 dumps print which unspec/unspec_volatile this is.
11230 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11231 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11232 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11233 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11234 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11236 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11237 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11238 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11239 * config/rs6000/sync.md (isync, lwsync): Ditto.
11241 2011-03-21 Richard Guenther <rguenther@suse.de>
11243 * params.def (lto-min-partition): Fix typo.
11245 2011-03-21 Richard Guenther <rguenther@suse.de>
11248 * c-decl.c (grokdeclarator): Drop to the main variant only
11249 for array types. Drop flag_gen_aux_info check.
11251 2011-03-21 Richard Guenther <rguenther@suse.de>
11253 PR translation/47911
11254 * params.def (lto-partitions): Fix typo.
11255 (lto-min-partition): Fix wording.
11257 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11259 * config/rs6000/t-freebsd: Remove duplication from file.
11261 2011-03-21 Richard Guenther <rguenther@suse.de>
11263 PR middle-end/47661
11264 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11266 2011-03-21 Richard Guenther <rguenther@suse.de>
11269 * params.def (lto-partitions): Require at least 1 partition.
11271 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11273 * gthr-solaris.h: Remove.
11274 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11275 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11276 (LIB_SPEC): Likewise.
11277 * config/sol2.opt (threads): Remove.
11278 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11279 (sparc*-*-solaris2*): Likewise.
11280 * configure.ac (enable_threads): Enable solaris support.
11281 * configure: Regenerate.
11282 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11283 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11286 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11288 * config.gcc: Obsolete *-*-solaris2.8*.
11289 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11291 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11294 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11295 reference. Solaris 8 perl works.
11297 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11300 * doc/install.texi (Prerequisites): Move jar etc. up.
11301 Explain support library version requirements.
11303 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11306 * doc/install.texi (Prerequisites): Move Perl to build
11307 requirements. Always necessary on Solaris 2 with Sun ld.
11309 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11311 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11313 (Specific, i?86-*-solaris2.[89]): Likewise.
11314 (Specific, i?86-*-solaris2.10): Likewise.
11315 (Specific, mips-sgi-irix6): Likewise.
11316 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11317 Update for binutils 2.21.
11319 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11321 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11322 Allow -fuse-linker-plugin for non-default plugin linker.
11323 * configure: Regenerate.
11325 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11328 * gengtype.c (files_rules): Added rule for cp/parser.h.
11330 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11333 * config/s390/s390.c (s390_delegitimize_address): Don't call
11334 lowpart_subreg if orig_x has BLKmode.
11336 2011-03-21 Kai Tietz <ktietz@redhat.com>
11339 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11340 * tree.h (attribute_spec): Add new member affects_type_identity.
11341 * attribs.c (empty_attribute_table): Adjust attribute_spec
11343 * config/alpha/alpha.c: Likewise.
11344 * config/arc/arc.c: Likewise.
11345 * config/arm/arm.c: Likewise.
11346 * config/avr/avr.c: Likewise.
11347 * config/bfin/bfin.c: Likewise.
11348 * config/crx/crx.c: Likewise.
11349 * config/darwin.h: Likewise.
11350 * config/h8300/h8300.c: Likewise.
11351 * config/i386/cygming.h: Likewise.
11352 * config/i386/i386.c: Likewise.
11353 * config/ia64/ia64.c: Likewise.
11354 * config/m32c/m32c.c: Likewise.
11355 * config/m32r/m32r.c: Likewise.
11356 * config/m68hc11/m68hc11.c: Likewise.
11357 * config/m68k/m68k.c: Likewise.
11358 * config/mcore/mcore.c: Likewise.
11359 * config/mep/mep.c: Likewise.
11360 * config/microblaze/microblaze.c: Likewise.
11361 * config/mips/mips.c: Likewise.
11362 * config/rs6000/rs6000.c: Likewise.
11363 * config/rx/rx.c: Likewise.
11364 * config/sh/sh.c: Likewise.
11365 * config/sol2.h: Likewise.
11366 * config/sparc/sparc.c: Likewise.
11367 * config/spu/spu.c: Likewise.
11368 * config/stormy16/stormy16.c: Likewise.
11369 * config/v850/v850.c: Likewise.
11371 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11373 * simplify-rtx.c (simplify_binary_operation_1): Handle
11374 (xor (and A B) C) case when B and C are both constants.
11376 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11378 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11380 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11383 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11385 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11387 PR rtl-optimization/48156
11388 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11389 assume df and df_lr are not NULL.
11391 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11394 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11395 between a call and its CALL_ARG_LOCATION note.
11397 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11400 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11401 between a call and its corresponding CALL_ARG_LOCATION note.
11403 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11405 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11406 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11407 * haifa-sched.c (setup_ref_regs): Ditto.
11408 * caller-save.c (add_used_regs_1): Ditto.
11409 * dse.c (look_for_hardregs): Ditto.
11410 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11411 * sched-rgn.c (check_live_1): Ditto.
11413 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11415 * c-decl.c (diagnose_mismatched_decls): Give an error for
11416 redefining a typedef with variably modified type.
11418 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11420 * c-decl.c (grokfield): Don't allow typedefs for structures or
11421 unions with no tag by default.
11422 * doc/extend.texi (Unnamed Fields): Update.
11424 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11426 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11427 Rewrite using indirect functions.
11428 (lwp_slwpcb): Ditto.
11429 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11430 (avx_vinsertf128<mode>): Ditto.
11432 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11434 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11437 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11439 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11440 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11442 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11444 PR rtl-optimization/48170
11445 * gcse.c (hoist_code): Remove bogus asserts.
11447 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11449 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11450 computation for prologue/epilogue.
11452 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11454 * Makefile.in (check-consistency): Remove.
11456 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11459 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11460 arange_table_in_use is 0, but either text_section_used or
11461 cold_text_section_used is true. Don't call it if
11462 !info_section_emitted.
11464 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11466 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11467 FUNCTION_VALUE_REGNO_P): Remove.
11468 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11470 * config/avr/avr.c (avr_ret_register): Make static inline.
11471 (avr_function_value_regno_p): New function.
11472 (avr_libcall_value): Make static. Add 'func' argument.
11473 (avr_function_value): Make static. Rename 'func' argument to
11474 'fn_decl_or_type', forward it to avr_libcall_value. Call
11475 avr_ret_register function instead of RET_REGISTER macro.
11476 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
11478 2011-03-18 Jason Merrill <jason@redhat.com>
11481 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
11483 2011-03-18 Richard Guenther <rguenther@suse.de>
11485 * doc/install.texi (--enable-gold): Remove.
11486 (--with-plugin-ld): Document.
11487 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
11489 2011-03-18 Andrew Pinski <pinskia@gmail.com>
11491 PR middle-end/47790
11492 * expr.c (optimize_bitfield_assignment_op): Revamp to work
11493 again after expansion changes.
11495 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
11497 * combine.c (try_combine): Do simplification only call of
11498 subst() on i2 even when i1 is present. Update comments.
11500 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
11502 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
11503 and UNSPEC_PCREL_SYMOFF.
11505 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11507 * config/s390/s390.md: Use define_c_enum for the unspec constant
11510 2011-03-18 Richard Henderson <rth@redhat.com>
11511 Jakub Jelinek <jakub@redhat.com>
11514 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
11515 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
11517 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11519 PR middle-end/47725
11520 * combine.c (cant_combine_insn_p): Don't check zero/sign
11521 extended hard registers.
11523 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11525 PR middle-end/47725
11526 * combine.c (cant_combine_insn_p): Check zero/sign extended
11529 2011-03-17 Anatoly Sokolov <aesok@post.ru>
11531 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11532 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
11533 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
11534 Change return type to bool.
11535 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11537 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11540 * var-tracking.c (prepare_call_arguments): If CALL target
11541 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
11542 pc instead of looking it up using cselib_lookup and use
11543 Pmode for it if x has VOIDmode.
11544 * dwarf2out.c (gen_subprogram_die): If also both first and
11545 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
11548 * function.c (assign_parms): For data.passed_pointer parms
11549 use MEM of data.entry_parm instead of data.entry_parm itself
11550 as DECL_INCOMING_RTL.
11551 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
11552 also when passed and declared mode is the same, DECL_RTL
11553 is a MEM with pseudo as address and DECL_INCOMING_RTL is
11556 2011-03-16 Jeff Law <law@redhat.com>
11558 PR rtl-optimization/37273
11559 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11560 handle them like argument loads from stack slots. Do not double
11561 count memory for memory constants and argument loads from stack slots.
11563 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11566 * var-tracking.c (prepare_call_arguments): Check SUBREG.
11568 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
11571 * config/i386/i386.opt: Add Save to -mavx and -mfma.
11573 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11576 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
11578 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
11579 Clear call_arg_locations and call_arg_loc_last always.
11581 PR middle-end/48152
11582 * var-tracking.c (prepare_call_arguments): If argument needs to be
11583 passed by reference, adjust argtype and mode.
11585 2011-03-17 Richard Guenther <rguenther@suse.de>
11587 PR middle-end/48134
11588 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
11589 a value make sure to fold the statement.
11591 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
11594 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
11595 return condition with !cfun->calls_alloca.
11597 2011-03-17 Richard Guenther <rguenther@suse.de>
11600 * lto-cgraph.c (input_overwrite_node): Clear the abstract
11601 origin for decls in other ltrans units.
11602 (input_varpool_node): Likewise.
11604 2011-03-17 Richard Guenther <rguenther@suse.de>
11606 PR middle-end/48165
11607 * tree-object-size.c (compute_object_offset): Properly return
11608 the offset operand of MEM_REFs as sizetype.
11610 2011-03-17 Jakub Jelinek <jakub@redhat.com>
11612 PR rtl-optimization/48141
11613 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
11614 * dse.c: Include params.h.
11615 (active_local_stores_len): New variable.
11616 (add_wild_read, dse_step1): Clear it when setting active_local_stores
11618 (record_store, check_mem_read_rtx): Decrease it when removing
11620 (scan_insn): Likewise. Increase it when adding to chain, if it
11621 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
11622 set active_local_stores to NULL before the addition.
11623 * Makefile.in (dse.o): Depend on $(PARAMS_H).
11625 PR rtl-optimization/48141
11626 * dse.c (record_store): If no positions are needed in an insn
11627 that cannot be deleted, at least unchain it from active_local_stores.
11629 2011-03-16 Dodji Seketeli <dodji@redhat.com>
11632 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
11633 (lookup_type_die_strip_naming_typedef): ... here.
11634 (get_context_die): Use it.
11635 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
11636 the anonymous struct named by the naming typedef.
11638 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
11641 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
11642 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11644 2011-03-16 Jeff Law <law@redhat.com>
11646 * tree-vrp.c (identify_jump_threads): Slightly simplify type
11647 check for operands of conditional. Allow type to be a pointer.
11649 2011-03-16 Richard Guenther <rguenther@suse.de>
11651 PR tree-optimization/48149
11652 * fold-const.c (fold_binary_loc): Fold
11653 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
11655 2011-03-16 Richard Guenther <rguenther@suse.de>
11657 PR tree-optimization/26134
11658 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
11659 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
11660 (non_rewritable_mem_ref_base): Handle complex type component
11661 accesses, constrain offsets for vector and complex extracts
11664 2011-03-16 Richard Guenther <rguenther@suse.de>
11666 PR tree-optimization/48146
11667 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
11668 operands avoiding the need for renaming.
11670 2011-03-16 Richard Guenther <rguenther@suse.de>
11672 * gimple-fold.c (maybe_fold_reference): Open-code relevant
11673 constant folding. Move MEM_REF canonicalization first.
11674 Rely on fold_const_aggregate_ref for initializer folding.
11675 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
11677 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11679 PR middle-end/48136
11680 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
11681 arg0/arg1 or their arguments are always fold converted to matching
11684 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
11687 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11690 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
11691 Handle in-tree gold.
11692 (ld_vers): Extract binutils version for gold.
11693 (gcc_cv_ld_hidden): Handle gold here.
11694 (gcc_cv_lto_plugin): Determine level of linker plugin support.
11695 * configure: Regenerate.
11696 * config.in: Regenerate.
11697 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
11698 -fuse-linker-plugin otherwise.
11699 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
11700 (LINK_COMMAND_SPEC): Use it.
11701 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
11703 2011-03-16 Jakub Jelinek <jakub@redhat.com>
11705 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
11706 * calls.c: Remove debug.h include.
11707 (emit_call_1): Don't call virtual_call_token debug hook.
11708 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
11709 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
11710 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
11711 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
11712 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
11713 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
11714 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
11715 dwarf2out_virtual_call): Remove.
11716 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
11717 copy_call_info and virtual_call hooks.
11718 (dwarf2out_init): Don't initialize vcall_insn_table,
11719 debug_dcall_section and debug_vcall_section.
11720 (prune_unused_types): Don't mark nodes from dcall_table.
11721 (dwarf2out_finish): Don't output dcall or vcall tables.
11722 * final.c (final_scan_insn): Don't call direct_call or
11723 virtual_call debug hooks.
11724 * debug.h (struct gcc_debug_hooks): Remove direct_call,
11725 virtual_call_token, copy_call_info and virtual_call hooks.
11726 (debug_nothing_uid): Remove prototype.
11727 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11728 copy_call_info and virtual_call hooks.
11729 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11730 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11731 * debug.c (do_nothing_debug_hooks): Likewise.
11732 (debug_nothing_uid): Remove.
11733 * doc/invoke.texi (-fenable-icf-debug): Remove.
11734 * common.opt (-fenable-icf-debug): Likewise.
11736 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11737 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11738 call's MEM. Handle functions returning aggregate through a hidden
11739 first pointer. For virtual calls add clobbered pc to call arguments
11741 * dwarf2out.c (gen_subprogram_die): Emit
11742 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11746 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11747 * rtl.h (ENTRY_VALUE_EXP): Define.
11748 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11749 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11750 * print-rtl.c (print_rtx): Likewise.
11751 * gengtype.c (adjust_field_rtx_def): Likewise.
11752 * var-tracking.c (vt_add_function_parameter): Adjust
11753 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11754 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11755 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11756 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11757 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11759 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11760 Call var_location debug hook even on CALL_INSNs.
11761 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11762 * rtl.def (ENTRY_VALUE): New.
11763 * dwarf2out.c: Include cfglayout.h.
11764 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11765 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11766 (struct call_arg_loc_node): New type.
11767 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11768 tail_call_site_count): New variables.
11769 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11770 DW_TAG_GNU_call_site_parameter.
11771 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11772 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11773 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11774 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11775 and DW_AT_GNU_all_source_call_sites.
11776 (mem_loc_descriptor): Handle ENTRY_VALUE.
11777 (add_src_coords_attributes): Don't add enything if
11778 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11779 (dwarf2out_abstract_function): Save and clear call_arg_location,
11780 call_site_count and tail_call_site_count around dwarf2out_decl call.
11781 (gen_call_site_die): New function.
11782 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11783 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11784 (dwarf2out_function_decl): Clear call_arg_locations,
11785 call_arg_loc_last, set call_site_count and tail_call_site_count
11786 to -1 and free block_map.
11787 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11788 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
11789 followed by any real instructions.
11790 (dwarf2out_begin_function): Set call_site_count and
11791 tail_call_site_count to 0.
11792 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11793 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11794 attempt to force a DIE for it and worst case remove the attribute.
11795 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11796 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11798 * var-tracking.c: Include tm_p.h.
11799 (vt_stack_adjustments): For calls call note_register_arguments.
11800 (argument_reg_set): New variable.
11801 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11802 ensure the VALUE is resolved.
11803 (call_arguments): New variable.
11804 (prepare_call_arguments): New function.
11805 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11806 (struct expand_loc_callback_data): Add ignore_cur_loc field.
11807 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11808 always use the best expression.
11809 (vt_expand_loc): Add ignore_cur_loc argument.
11810 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11811 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11812 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11813 note for all calls.
11814 (vt_add_function_parameter): Use cselib_lookup_from_insn.
11815 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11816 argument. Don't call cselib_preserve_only_values and
11817 cselib_reset_table.
11818 (note_register_arguments): New function.
11819 (vt_initialize): Compute argument_reg_set. Call
11820 vt_add_function_parameters before processing basic blocks instead of
11821 afterwards. For calls call prepare_call_arguments before calling
11822 cselib_process_insn.
11823 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11824 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11825 (var-tracking.o): Depend on $(TM_P_H).
11826 * cfglayout.h (insn_scope): New prototype.
11827 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11828 * cfglayout.c (insn_scope): No longer static.
11829 * insn-notes.def (CALL_ARG_LOCATION): New.
11830 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11831 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11832 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11833 nothing for DECL_EXTERNAL BLOCK_VARS.
11835 2011-03-16 Alan Modra <amodra@gmail.com>
11838 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11839 create invalid offset address for vsx splat insn.
11840 * config/rs6000/predicates.md (splat_input_operand): New.
11841 * config/rs6000/vsx.md (vsx_splat_*): Use it.
11843 2011-03-15 Xinliang David Li <davidxl@google.com>
11846 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11847 (normalize_preds): New function.
11848 (is_use_properly_guarded): Normalize def predicates.
11850 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11853 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11854 in the output template.
11856 2011-03-15 Richard Guenther <rguenther@suse.de>
11858 PR middle-end/47650
11859 * tree-pretty-print.c (dump_function_declaration): Properly
11860 dump unprototyped and varargs function types.
11862 2011-03-15 Richard Guenther <rguenther@suse.de>
11864 PR tree-optimization/13954
11865 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11868 2011-03-15 Richard Guenther <rguenther@suse.de>
11870 PR tree-optimization/48037
11871 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11872 selects into BIT_FIELD_REFs.
11873 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11876 2011-03-15 Jakub Jelinek <jakub@redhat.com>
11878 PR tree-optimization/48129
11879 * builtins.c (fold_builtin_snprintf): Convert to type of
11880 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11881 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11883 2011-03-15 Richard Guenther <rguenther@suse.de>
11885 PR tree-optimization/41490
11886 * tree-ssa-dce.c (propagate_necessity): Handle returns without
11887 value but with VUSE.
11888 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11890 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11891 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11892 * tree-tailcall.c (find_tail_calls): Ignore returns.
11894 2011-03-15 Richard Guenther <rguenther@suse.de>
11896 PR middle-end/48031
11897 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11898 or variable-indexed array accesses when in gimple form.
11900 2011-03-15 Richard Guenther <rguenther@suse.de>
11902 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11904 2011-03-15 Alan Modra <amodra@gmail.com>
11907 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11908 presume symbol_refs without a symbol_ref_decl are suitably
11909 aligned, nor other trees we may see here. Handle anchor symbols.
11910 (legitimate_constant_pool_address_p): Comment. Add mode param.
11911 Check cmodel=medium addresses. Adjust all calls.
11912 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11913 creating cmodel=medium optimized access to locals.
11914 * config/rs6000/constraints.md (R): Pass QImode to
11915 legitimate_constant_pool_address_p.
11916 * config/rs6000/predicates.md (input_operand): Pass mode to
11917 legitimate_constant_pool_address_p.
11918 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11921 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11924 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11925 64-bit constants being loaded into registers other than GPRs such
11926 as loading 0 into a VSX register.
11928 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11930 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11932 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11934 PR middle-end/47917
11935 * builtins.c (fold_builtin_snprintf): New function.
11936 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11937 (fold_builtin_4): Likewise.
11939 PR middle-end/38878
11940 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11941 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
11942 and C - X == X also strip nops from +/-/p+ operand.
11943 When optimizing -X == C, fold C to arg0's type.
11946 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11947 emit it as add_AT_int instead of add_AT_unsigned.
11949 2011-03-14 Tom Tromey <tromey@redhat.com>
11951 * unwind-dw2.c: Include sys/sdt.h if it exists.
11952 (_Unwind_DebugHook): Use STAP_PROBE2.
11953 * config.in, configure: Rebuild.
11954 * configure.ac: Check for sys/sdt.h.
11956 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
11958 * config/i386/i386.md (ROUND_FLOOR): New constant.
11959 (ROUND_CEIL): Ditto.
11960 (ROUND_TRUNC): Ditto.
11961 (ROUND_MXCSR): Ditto.
11962 (ROUND_NO_EXC): Ditto.
11963 (rint<mode>2): Use new defines instead of numerical constants.
11964 (floor<mode>2): Ditto.
11965 (ceil<mode>2): Ditto.
11966 (btrunc<mode>2): Ditto.
11967 * config/i386/i386-builtin-types.def: Define ROUND function type
11969 * config/i386/i386.c (enum ix86_builtins): Add
11970 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11971 (struct builtin_description): Add
11972 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11973 (ix86_expand_sse_round): New static function.
11974 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11976 (ix86_builtin_vectorized_function): Handle
11977 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11979 2011-03-14 Tom Tromey <tromey@redhat.com>
11981 * c-parser.c (c_parser_asm_string_literal): Clear
11982 warn_overlength_strings.
11984 2011-03-14 Tom Tromey <tromey@redhat.com>
11986 * c-parser.c (disable_extension_diagnostics): Save
11987 warn_overlength_strings.
11988 (restore_extension_diagnostics): Restore warn_overlength_strings.
11990 2011-03-14 Jakub Jelinek <jakub@redhat.com>
11992 * BASE-VER: Change to 4.7.0.
11994 2011-03-14 Richard Guenther <rguenther@suse.de>
11996 PR middle-end/48098
11997 * tree.c (build_vector_from_val): Adjust assert to requirements
12000 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12003 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12005 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12007 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12008 terms of target_flags_explicit. Adjust copyright year.
12010 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12011 * config/rs6000/t-freebsd: New file. Add override for
12014 2011-03-13 Chris Demetriou <cgd@google.com>
12016 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12017 (-fno-diagnostics-show-option): this, to reflect current default.
12018 (-Werror=): Update text about -fno-diagnostics-show-option.
12020 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12023 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12024 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12025 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12026 mode is not V2DImode or V2DFmode.
12027 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12028 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12029 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12031 (movdi_internal64): Likewise.
12033 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12035 PR tree-optimization/47127
12036 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12038 (set_cloog_options): Same.
12039 (scop_to_clast): Same.
12040 (print_clast_stmt): Do not call cloog_state_malloc and
12042 (print_generated_program): Same.
12044 * graphite-clast-to-gimple.h (cloog_state): Declared.
12045 (scop_to_clast): Adjust declaration.
12046 * graphite.c (cloog_state): Defined here.
12047 (graphite_initialize): Call cloog_state_malloc.
12048 (graphite_finalize): Call cloog_state_free.
12050 2011-03-11 Jason Merrill <jason@redhat.com>
12052 * attribs.c (lookup_attribute_spec): Take const_tree.
12055 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12057 * config/sparc/sparc.c (sparc_option_override): Use
12058 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12060 2011-03-11 Richard Guenther <rguenther@suse.de>
12062 PR tree-optimization/48067
12063 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12064 multiplication result will be only used once on the target
12067 2011-03-11 Richard Guenther <rguenther@suse.de>
12069 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12071 2011-03-11 Richard Guenther <rguenther@suse.de>
12074 * tree.c (find_decls_types_r): Do not walk types only reachable
12075 from IDENTIFIER_NODEs.
12077 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12079 PR middle-end/48044
12080 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12081 all vnode->force_output nodes as needed.
12083 2011-03-11 Jason Merrill <jason@redhat.com>
12086 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12087 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12089 2011-03-11 Martin Jambor <mjambor@suse.cz>
12091 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12094 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12096 PR tree-optimization/48063
12097 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12098 inline functions called once if !tree_can_inline_p (node->callers).
12100 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12102 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12104 * config/score/score3.c: Delete.
12105 * config/score/score3.h: Delete.
12106 * config/score/mul-div.S: Delete.
12107 * config/score/sfp-machine.h: Add new file.
12108 * config/score/constraints.md: Add new file.
12109 * config/score/t-score-softfp: Add new file.
12110 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12111 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12112 (score7_extra_constraint): Delete.
12113 (score7_option_override): Remove unused code.
12114 * config/score/score.c: Remove score3 and score5 define and code.
12115 * config/score/score.h: Remove score3 and score5 define and code.
12116 * config/score/score.md: Remove score3 template and unusual insn.
12117 * config/score/score.opt: Remove score3 and score5 options.
12119 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12121 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12122 when _HPUX_SOURCE is defined.
12123 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12125 2011-03-10 Jason Merrill <jason@redhat.com>
12128 * stor-layout.c (layout_type): Don't set structural equality
12129 on arrays of incomplete type.
12130 * tree.c (type_hash_eq): Handle comparing them properly.
12132 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12135 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12136 result mode matches original rtl mode.
12138 2011-03-10 Nick Clifton <nickc@redhat.com>
12140 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12141 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12143 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12145 PR rtl-optimization/47866
12146 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12147 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12148 if target wasn't scalar.
12149 * function.c (assign_stack_temp_for_type): Assert that neither
12150 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12151 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12153 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12155 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12157 * config/s390/s390-protos.h (s390_label_align): New prototype.
12158 * config/s390/s390.c (s390_label_align): New function.
12159 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12161 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12164 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12165 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12166 (output_vec_const_move): Ditto.
12168 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12170 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12171 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12172 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12173 Change 'rclass' argument and result type to reg_class_t.
12174 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12176 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12178 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12179 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12180 (TARGET_MEMORY_MOVE_COST): Define.
12181 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12183 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12186 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12189 PR tree-optimization/48022
12190 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12193 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12196 * var-tracking.c (find_use_val): Return NULL for
12197 cui->sets && cui->store_p BLKmode MEMs.
12199 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12201 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12203 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12204 xstormy16_print_operand_address): Remove.
12205 * config/stormy16/stormy16.c (xstormy16_print_operand,
12206 xstormy16_print_operand_address): Make static.
12207 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12209 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12212 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12213 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12216 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12219 * cfgloopmanip.c (fix_bb_placements): Return immediately
12220 if FROM is BASE_LOOP's header.
12222 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12224 * gimplify.c (gimplify_function_tree): Fix building calls
12225 to __builtin_return_address.
12227 2011-03-07 Alan Modra <amodra@gmail.com>
12229 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12230 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12231 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12232 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12234 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12235 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12236 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12237 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12238 * config/rs6000/rs6000.c
12239 (rs6000_elf_end_indicate_exec_stack): Rename to..
12240 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12241 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12242 (rs6000_file_start): ..here.
12243 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12244 file scope variables.
12245 (call_ABI_of_interest): New function.
12246 (init_cumulative_args): Set above vars when function return value
12247 is a float, vector, or small struct.
12248 (rs6000_function_arg_advance_1): Likewise for function args.
12249 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12250 references float args.
12252 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12254 * doc/cfg.texi: Remove "See" before @ref.
12255 * doc/invoke.texi: Likewise.
12257 2011-03-05 Jason Merrill <jason@redhat.com>
12259 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12261 2011-03-05 Anthony Green <green@moxielogic.com>
12263 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12265 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12267 PR rtl-optimization/47899
12268 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12269 to flow_loop_nested_p when moving the loop upward.
12271 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12274 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12276 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12278 PR tree-optimization/47967
12279 * ipa-cp.c (build_const_val): Return NULL instead of creating
12280 VIEW_CONVERT_EXPR for mismatching sizes.
12281 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12282 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12283 give up on versioning.
12285 2011-03-05 Alan Modra <amodra@gmail.com>
12288 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12289 full cmodel medium/large lo_sum + high addresses.
12291 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12293 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12294 pool references in UNSPEC_LTREL_OFFSET.
12296 2011-03-04 Jan Hubicka <jh@suse.cz>
12299 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12300 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12301 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12303 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12304 cgraph_add_thunk): Add node pointers.
12305 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12306 associated to right node.
12307 (input_node): Update use of cgraph_same_body_alias
12308 and cgraph_add_thunk.
12310 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12312 * config/i386/i386.opt (mprefer-avx128): New flag.
12313 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12314 modes when the flag -mprefer-avx128 is on.
12316 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12318 * dwarf2out.c (compare_loc_operands): Fix address handling.
12320 2011-03-04 Alan Modra <amodra@gmail.com>
12322 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12324 2011-03-04 Richard Guenther <rguenther@suse.de>
12326 PR middle-end/47968
12327 * expmed.c (extract_bit_field_1): Prefer vector modes that
12328 vec_extract patterns can handle.
12330 2011-03-04 Richard Guenther <rguenther@suse.de>
12332 PR middle-end/47975
12333 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12335 2011-03-04 Richard Henderson <rth@redhat.com>
12337 * explow.c (emit_stack_save): Remove 'after' parameter.
12338 (emit_stack_restore): Likewise.
12339 * expr.h: Update to match.
12340 * builtins.c, calls.c, stmt.c: Likewise.
12341 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12342 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12343 * function.c (expand_function_end): Insert the emit_stack_save
12344 sequence before parm_birth_insn instead of after.
12346 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12348 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12349 (ssse3_pmaddubsw128): Ditto.
12350 (ssse3_pmaddubsw): Ditto.
12352 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12354 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12356 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12359 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12360 on TYPE_SIZE_UNIT if it is a DECL.
12363 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12364 first operand is not is_gimple_mem_ref_addr, try to fold it.
12365 If the operand still isn't is_gimple_mem_ref_addr, clear
12368 2011-03-03 Richard Guenther <rguenther@suse.de>
12370 PR middle-end/47283
12371 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12373 (refs_may_alias_p_1): For release branches return true if
12374 we are confused by our input.
12376 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12378 * config/s390/s390.c (s390_function_value): Rename to ...
12379 (s390_function_and_libcall_value): ... this.
12380 (s390_function_value): New function.
12381 (s390_libcall_value): New function.
12382 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12383 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12384 target macro definitions.
12385 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12387 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12389 * config/i386/freebsd64.h (CC1_SPEC): Define.
12390 * config/i386/linux64.h (CC1_SPEC): Define.
12391 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12393 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12395 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12397 * config/stormy16/stormy16.c: Include reload.h.
12398 (xstormy16_memory_move_cost): New function.
12399 (TARGET_MEMORY_MOVE_COST): Define.
12401 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12403 PR rtl-optimization/47925
12404 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12405 with side effects. Remove the more-specific check for volatile asms.
12407 2011-03-02 Alan Modra <amodra@gmail.com>
12410 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12411 toc relative addresses for valid offsets.
12413 2011-03-01 Richard Guenther <rguenther@suse.de>
12415 PR tree-optimization/47890
12416 * tree-vect-loop.c (get_initial_def_for_induction): Set
12417 related stmt properly.
12419 2011-03-01 Richard Guenther <rguenther@suse.de>
12422 * lto-streamer.c (lto_record_common_node): Also register
12423 the canonical type.
12425 2011-03-01 Richard Guenther <rguenther@suse.de>
12428 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12429 Do not stream DECL_ABSTRACT_ORIGIN.
12430 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12431 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12432 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12433 Do not stream DECL_ABSTRACT_ORIGIN.
12434 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12435 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12437 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12439 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12440 FUNCTION_VALUE_REGNO_P): Remove.
12441 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12442 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12443 Add 'outgoing' argument.
12444 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12446 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12447 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12449 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12452 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12453 (lookup_filename): Likewise.
12454 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12456 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12457 Jakub Jelinek <jakub@redhat.com>
12459 PR middle-end/47893
12460 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12461 (assign_stack_local_1): Change last argument type to int.
12462 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12463 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12464 don't record padding space into frame_space_list nor use those areas.
12465 (assign_stack_local): Adjust caller.
12466 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12467 of assign_stack_local, pass 0 as last argument.
12468 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12471 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12474 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12475 Use target address_mode and pointer_mode hooks instead of hardcoded
12476 Pmode and ptr_mode. Handle some simple cases of extending if
12477 POINTERS_EXTEND_UNSIGNED < 0.
12478 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
12479 Call convert_debug_memory_address.
12480 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
12481 convert_debug_memory_address.
12483 PR middle-end/46790
12484 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
12485 * configure: Regenerated.
12486 * config.in: Regenerated.
12487 * varasm.c (default_function_section): Return NULL
12488 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
12490 2011-02-28 Martin Jambor <mjambor@suse.cz>
12492 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
12493 the description to match the printed values.
12495 2011-02-28 Richard Guenther <rguenther@suse.de>
12497 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
12498 of the copied scope tree.
12500 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12502 * doc/extend.texi (Function Attributes): Avoid deeply (and
12503 wrongly) nested tables.
12505 2011-02-27 Jakub Jelinek <jakub@redhat.com>
12507 PR middle-end/47903
12508 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
12509 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
12510 r isn't op0 nor op1.
12512 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12514 * config/avr/avr.md: Remove magic comment for emacs.
12516 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
12519 * config/avr/avr.c (avr_option_override): Use error on bad options.
12520 (avr_help): New function.
12521 (TARGET_HELP): Define.
12523 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
12526 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
12527 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
12529 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
12531 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
12532 (ARM Options): Ditto.
12533 (i386 and x86-64 Options): Ditto.
12534 (RX Options): Ditto.
12535 (SPARC Options): Ditto.
12537 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
12539 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
12540 FreeBSD 6 and later. Generally use cpu generic.
12542 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
12544 * doc/cpp.texi: Update copyright years.
12546 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
12549 * config/lm32/lm32.md (ashrsi3): Added needed variable.
12551 2011-02-25 Jon Beniston <jon@beniston.com>
12554 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
12555 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
12556 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
12557 (lm32_block_move_inline): Add type cast to remove warning.
12558 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
12559 (gen_int_relational): Move declarations to start of function.
12561 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
12563 PR tree-optimization/45470
12564 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12565 can throw internally only.
12566 * tree-vect-stmts.c (vectorizable_call): Likewise.
12568 2011-02-24 Anatoly Sokolov <aesok@post.ru>
12570 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
12571 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12572 * config/stormy16/stormy16-protos.h
12573 (xstormy16_preferred_reload_class): Remove.
12574 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
12575 static. Change 'rclass' argument and return type to reg_class_t.
12576 (TARGET_PREFERRED_RELOAD_CLASS,
12577 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12579 2011-02-24 Richard Guenther <rguenther@suse.de>
12581 * lto-streamer-in.c (input_bb): Do not find referenced vars
12582 in debug statements.
12584 2011-02-23 Jason Merrill <jason@redhat.com>
12586 * common.opt (fabi-version): Document v5 and v6.
12588 2011-02-23 Richard Guenther <rguenther@suse.de>
12590 PR tree-optimization/47849
12591 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
12593 2011-02-23 Jie Zhang <jie@codesourcery.com>
12595 * opts-common.c (decode_cmdline_option): Print empty string
12596 argument as "" in decoded->orig_option_with_args_text.
12597 * gcc.c (execute): Print empty string argument as ""
12598 in the verbose output.
12599 (do_spec_1): Keep empty string argument.
12601 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
12603 * config.gcc: Declare score-* and crx-* obsolete.
12605 2011-02-23 Jie Zhang <jie@codesourcery.com>
12607 PR rtl-optimization/47763
12608 * web.c (web_main): Ignore naked clobber when replacing register.
12610 2011-02-22 Anatoly Sokolov <aesok@post.ru>
12612 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12615 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
12618 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
12620 2011-02-22 Mike Stump <mikestump@comcast.net>
12622 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
12624 * configure: Regenerate.
12626 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
12628 PR rtl-optimization/46002
12629 * ira-color.c (update_copy_costs): Change class intersection
12630 test to reg_class_contents[] test of 'hard_regno'.
12632 2011-02-21 Joseph Myers <joseph@codesourcery.com>
12634 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
12635 than Driver option.
12636 * config/hpux11.opt (mt): Likewise.
12637 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
12638 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
12639 * config/vax/elf.opt (mno-asm-pic): Likewise.
12640 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
12642 2011-02-21 Mike Stump <mikestump@comcast.net>
12645 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
12646 tree so we can get save the type.
12647 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
12648 for CFString instead of trying to use past the end of the builtins.
12649 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
12650 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
12651 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
12652 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
12653 Rename to darwin_builtin_cfstring.
12654 (darwin_init_cfstring_builtins): Return the built type.
12656 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
12659 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
12660 (_mm256_insert_epi64): Use _mm_insert_epi64.
12662 2011-02-21 Anatoly Sokolov <aesok@post.ru>
12664 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12665 * config/stormy16/stormy16-protos.h
12666 (xstormy16_mode_dependent_address_p): Remove.
12667 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
12668 Make static. Change return type to bool. Change argument type to
12669 const_rtx. Remove dead code.
12670 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12672 2011-02-21 Richard Guenther <rguenther@suse.de>
12675 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12676 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12677 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
12679 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12680 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
12682 2011-02-20 Richard Guenther <rguenther@suse.de>
12685 * tree.c (free_lang_data_in_decl): Clean builtins from
12686 the TU decl BLOCK_VARS.
12688 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
12692 * haifa-sched.c (fix_tick_ready): Skip tick computation
12695 2011-02-19 Richard Guenther <rguenther@suse.de>
12698 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
12699 Remove lazy BLOCK_VARS streaming.
12700 (lto_input_ts_block_tree_pointers): Likewise.
12701 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
12703 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12705 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
12707 2011-02-19 Joseph Myers <joseph@codesourcery.com>
12709 * config/i386/biarch32.h, config/i386/mach.h,
12710 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
12712 2011-02-19 Jakub Jelinek <jakub@redhat.com>
12715 * config/i386/i386.md (peephole2 for shift and plus): Use
12716 operands[1] original mode in the first insn.
12718 2011-02-18 Mike Stump <mikestump@comcast.net>
12720 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12722 2011-02-18 Jan Hubicka <jh@suse.cz>
12724 PR middle-end/47788
12725 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12726 to zero when the function is not inlinable at all.
12728 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12730 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12731 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12732 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12733 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12734 * config/pa/t-pa64: Likewise.
12735 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12737 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12740 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12742 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12745 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12747 2011-02-18 Anatoly Sokolov <aesok@post.ru>
12749 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12750 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12751 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12752 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12753 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12754 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12755 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12756 m32r_load_postinc_p, m32r_store_preinc_predec_p,
12757 m32r_legitimate_address_p): New functions.
12758 * config/m32r/constraints.md (constraint "S"): Don't use
12759 STORE_PREINC_PREDEC_P.
12760 (constraint "U"): Don't use LOAD_POSTINC_P.
12762 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
12764 PR rtl-optimization/46178
12765 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12766 compute ira_hard_regno_cover_class[].
12768 2011-02-18 Richard Guenther <rguenther@suse.de>
12771 * lto-streamer.h (lto_global_var_decls): Declare.
12772 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12773 statics for global var processing.
12775 2011-02-18 Richard Guenther <rguenther@suse.de>
12777 PR tree-optimization/47737
12778 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12779 edge dominance check.
12781 2011-02-18 Jakub Jelinek <jakub@redhat.com>
12784 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12785 avoid invalid rtx sharing.
12787 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
12789 * doc/cpp.texi (Obsolete Features): Add background on the
12790 origin of assertions.
12792 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
12794 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12796 * config/darwin.c (output_objc_section_asm_op): Added support for
12798 (is_objc_metadata): New.
12799 (darwin_objc2_section): New.
12800 (darwin_objc1_section): New.
12801 (machopic_select_section): Added support for ABI v1 and v2.
12802 (darwin_emit_objc_zeroed): New.
12803 (darwin_output_aligned_bss): Detect objc metadata and treat it
12805 (darwin_asm_output_aligned_decl_common): Same.
12806 (darwin_asm_output_aligned_decl_local): Same.
12807 * config/darwin-sections.def: Updated for ABI v1 and v2.
12808 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12809 compiling Objective-C code for the NeXT runtime, default to using
12810 ABI version 0 for 32-bit, and version 2 for 64-bit.
12812 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12814 * common.opt (optimize_fast): New Variable.
12815 * opts.c (default_options_optimization): Use opts->x_optimize_fast
12816 instead of local variable ofast.
12818 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
12820 * doc/invoke.texi (fobjc-abi-version): Documented.
12821 (fobjc-nilcheck): Documented.
12822 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12825 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12828 * common.opt (export-dynamic): New Driver option.
12829 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12831 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12833 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12835 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
12836 Jan Hubicka <jh@suse.cz>
12840 * cfgexpand.c (account_used_vars_for_block): Remove.
12841 (estimated_stack_frame_size): Use referenced vars.
12842 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12843 that were referenced in the original function. Test src_fn
12844 rather than cfun. Drop redundant get_var_ann.
12845 (setup_one_parameter): Drop redundant get_var_ann.
12846 (declare_return_variable): Likewise.
12847 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12848 (copy_arguments_for_versioning): Drop redundant get_var_ann.
12849 * ipa-inline.c (compute_inline_parameters): Do not compute
12850 disregard_inline_limits here.
12851 (compute_inlinable_for_current, pass_inlinable): New.
12852 (pass_inline_parameters): Require PROP_referenced_vars.
12853 * cgraphunit.c (cgraph_process_new_functions): Don't run
12854 compute_inline_parameters explicitly unless function is in SSA form.
12855 (cgraph_analyze_function): Set .disregard_inline_limits.
12856 * tree-sra.c (convert_callers): Compute inliner parameters
12857 only for functions already in SSA form.
12859 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12861 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12862 -mlittle-endian-data.
12864 2011-02-17 Joseph Myers <joseph@codesourcery.com>
12866 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12867 -mno-fpu, not -fpu and -no-fpu.
12868 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12869 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12871 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
12874 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12875 input reload with PLUS RTX.
12877 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12879 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12880 of InverseVar(MDMX).
12882 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12884 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12887 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12889 * config/mn10300/mn10300.opt (mno-crt0): New.
12891 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12893 * config/m68k/uclinux.opt (static-libc): New Driver option.
12895 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12897 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12899 2011-02-16 Joseph Myers <joseph@codesourcery.com>
12901 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12902 %{muser-extend-enabled}.
12904 2011-02-16 Richard Guenther <rguenther@suse.de>
12906 PR tree-optimization/47738
12907 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12908 the TODO from tree_predictive_commoning.
12910 2011-02-15 Jeff Law <law@redhat.com>
12913 2011-01-25 Jeff Law <law@redhat.com>
12915 PR rtl-optimization/37273
12916 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12917 handle them like argument loads from stack slots. Do not double
12918 count memory for memory constants and argument loads from stack slots.
12920 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
12922 PR middle-end/47725
12923 * combine.c (cant_combine_insn_p): Revert the last change.
12925 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12928 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12929 mode for vector constants. Remove code that checks for TImode.
12931 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12935 * cgraph.h (compute_inline_parameters): Return void.
12936 * ipa-inline.c (compute_inline_parameters): Adjust.
12938 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12942 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12944 * cfgexpand.c (estimated_stack_frame_size): Likewise.
12945 * ipa-inline.c (compute_inline_parameters): Adjust.
12947 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12951 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12952 Adjust all users. Pass FN to...
12953 * tree-flow-inline.h (first_referenced_var): ... this. Add
12955 * ipa-struct-reorg.c: Adjust.
12956 * tree-dfa.c: Adjust.
12957 * tree-into-ssa.c: Adjust.
12958 * tree-sra.c: Adjust.
12959 * tree-ssa-alias.c: Adjust.
12960 * tree-ssa-live.c: Adjust.
12961 * tree-ssa.c: Adjust.
12962 * tree-ssanames.c: Adjust.
12963 * tree-tailcall.c: Adjust.
12965 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
12969 * tree-flow.h (referenced_var_lookup): Add fn parameter.
12970 Adjust all callers.
12971 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12972 * tree-flow-inline.h: Adjust.
12973 * gimple-pretty-print.c: Adjust.
12974 * tree-into-ssa.c: Adjust.
12975 * tree-ssa.c: Adjust.
12976 * cfgexpand.c: Adjust.
12978 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
12980 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12981 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12982 (EXTRA_CONSTRAINT): Delete.
12983 * config/iq2000/constraints.md: New file.
12984 * config/iq2000/iq2000.md: Include it.
12985 (define_insn ""): Delete.
12986 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12987 unsupported constraint letters from patterns.
12988 (call_value, call_value_internal1): Likewise.
12989 (call_value_multiple_internal1): Likewise.
12991 2011-02-15 Nick Clifton <nickc@redhat.com>
12993 * config/mn10300/mn10300.c: Include tm-constrs.h.
12994 (struct liw_data): New data structure describing an LIW candidate
12996 (extract_bundle): Use struct liw_data. Allow small integer
12997 operands for some instructions.
12998 (check_liw_constraints): Use struct liw_data. Remove swapped
12999 parameter. Add comments describing the checks. Fix bug when
13000 assigning the source of liw1 to the source of liw2.
13001 (liw_candidate): Delete. Code moved into extract_bundle.
13002 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13004 * config/mn10300/predicates.md (liw_operand): New predicate.
13005 Allows registers and small integer constants.
13006 * config/mn10300/constraints.md (O): New constraint. Accetps
13007 integers in the range -8 to +7 inclusive.
13008 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13009 for moving a small integer into a register. Give this alternative
13011 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13012 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13013 using the J,K,L and M constraints,
13014 (liw): Remove SI mode on second operands to allow for HI and QI
13016 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13019 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13021 PR middle-end/47725
13022 * combine.c (cant_combine_insn_p): Check zero/sign extended
13025 2011-02-15 Richard Guenther <rguenther@suse.de>
13027 PR tree-optimization/47743
13028 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13029 for a non-type-compatible VN lookup bail out.
13031 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13033 * config/fr30/constraints.md: New file.
13034 * config/fr30/fr30.md: Include it.
13035 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13036 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13037 (EXTRA_CONSTRAINT): Delete.
13039 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13041 * config/frv/constraints.md: New file.
13042 * config/frv/predicates.md: Include it.
13043 * config/frv/frv.c (reg_class_from_letter): Delete.
13044 (frv_option_override): Don't initialize it.
13045 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13046 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13047 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13048 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13049 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13050 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13051 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13052 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13053 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13054 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13055 (REG_CLASS_FROM_CONSTRAINT): Delete.
13057 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13059 PR middle-end/47581
13060 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13061 if frame size is 0 in a leaf function.
13063 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13066 * config/alpha/host-osf.c: New file.
13067 * config/alpha/x-osf: New file.
13068 * config.host (alpha*-dec-osf*): Use it.
13070 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13072 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13073 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13074 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13075 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13077 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13079 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13081 * config/stormy16/constraints.md: New file.
13082 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13083 Use satisfies_constraint_Q and satisfies_constraint_R.
13084 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13086 (xstormy16_legitiamte_address_p): Declare.
13087 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13088 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13089 (EXTRA_CONSTRAINT): Delete.
13090 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13092 (xstormy16_extra_constraint_p): Delete.
13094 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13096 PR tree-optimization/46494
13097 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13098 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13099 (pass_rtl_loop_done): Add TODO_verify_flow.
13100 * fwprop.c (pass_rtl_fwprop): Likewise.
13101 * modulo-sched.c (pass_sms): Likewise.
13102 * tree-ssa-dom.c (pass_dominator): Likewise.
13103 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13104 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13105 (pass_tree_loop_done): Likewise.
13106 * tree-ssa-pre.c (execute_pre): Likewise.
13107 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13108 * tree-ssa-sink.c (pass_sink_code): Likewise.
13109 * tree-vrp.c (pass_vrp): Likewise.
13111 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13113 * config/v850/constraints.md: New file.
13114 * config/v850/v850.md: Include it.
13115 * config/v850/predicates.md (reg_or_0_operand): Use
13116 satisfies_constraint_G.
13117 (special_symbolref_operand): Use satisfies_constraint_K.
13118 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13119 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13120 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13121 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13122 (EXTRA_CONSTRAINT): Delete.
13123 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13124 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13125 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13127 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13130 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13133 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13135 * config/mcore/constraints.md: New file.
13136 * config/mcore/mcore.md: Include it.
13137 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13138 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13139 (REG_CLASS_FROM_LETTER): Delete.
13140 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13141 insn_const_int_ok_for_constraint.
13142 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13143 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13144 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13145 (EXTRA_CONSTRAINT): Delete.
13147 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13150 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13151 (IS_SIGHANDLER): Define.
13152 (sparc64_is_sighandler): New function, split off from
13153 sparc64_fallback_frame_state.
13154 (sparc_is_sighandler): New function, split off from
13155 sparc_fallback_frame_state.
13156 (sparc64_fallback_frame_state): Merge with ...
13157 (sparc_fallback_frame_state): ... this into ...
13158 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13159 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13160 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13161 stack instead of hardcoded offsets.
13163 2011-02-14 Andriy Gapon <avg@freebsd.org>
13166 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13168 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13170 * configure: Regenerate.
13172 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13175 * gcc.c (asm_options): Correct spec matching --target-help.
13177 2011-02-12 Martin Jambor <mjambor@suse.cz>
13179 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13180 to gimple call error.
13182 2011-02-12 Mike Stump <mikestump@comcast.net>
13184 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13185 comments in backslash regions.
13187 2011-02-12 Mike Stump <mikestump@comcast.net>
13188 Jakub Jelinek <jakub@redhat.com>
13189 Iain Sandoe <iains@gcc.gnu.org>
13192 * dwarf2out.c (output_cfa_loc): When required, apply the
13193 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13194 (output_loc_sequence): Likewise.
13195 (output_loc_operands_raw): Likewise.
13196 (output_loc_sequence_raw): Likewise.
13197 (output_cfa_loc): Likewise.
13198 (output_loc_list): Suppress register number adjustment when
13199 calling output_loc_sequence()
13200 (output_die): Likewise.
13202 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13204 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13206 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13207 xtensa_memory_move_cost): New functions.
13208 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13210 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13213 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13214 in the current directory.
13215 * configure: Rebuilt.
13217 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13219 * config/darwin.c (darwin_override_options): Add a hunk missed
13220 from the commit of r168571. Trim comment line lengths and
13221 correct indents of the preceding block.
13223 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13225 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13228 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13230 * common.opt (nostartfiles): New Driver option.
13232 2011-02-11 Xinliang David Li <davidxl@google.com>
13234 PR tree-optimization/47707
13235 * tree-chrec.c (convert_affine_scev): Keep type precision.
13237 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13239 PR tree-optimization/47420
13240 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13242 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13244 PR rtl-optimization/47614
13245 * rtl.h (check_for_inc_dec): Declare.
13246 * dse.c (check_for_inc_dec): Externalize...
13247 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13248 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13250 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13253 * gcc.c (main): Do not compile inputs if there were errors in
13255 * opts-common.c (read_cmdline_option): Check for wrong language
13256 after other error checks.
13258 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13260 * cgraph.c: Fix comment typos.
13261 * cgraph.h: Likewise.
13262 * cgraphunit.c: Likewise.
13263 * ipa-cp.c: Likewise.
13264 * ipa-inline.c: Likewise.
13265 * ipa-prop.c: Likewise.
13266 * ipa-pure-const.c: Likewise.
13267 * ipa-ref.c: Likewise.
13268 * ipa-reference.c: Likewise.
13270 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13273 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13275 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13278 * doc/sourcebuild.texi (Require Support): Document
13279 dg-require-ascii-locale.
13281 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13283 * doc/lto.texi (Write summary): Fix missing parentheses.
13285 2011-02-10 DJ Delorie <dj@redhat.com>
13287 * config/m32c/m32c.c (m32c_option_override): Disable
13288 -fcombine-stack-adjustments until flag value tracking and compare
13289 optimization can be rewritten.
13291 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13293 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13295 (PROCESSOR_DEFAULT64): Likewise.
13297 2011-02-10 Richard Henderson <rth@redhat.com>
13299 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13300 change from 2011-02-03.
13301 * config/rx/rx.c (flags_from_code): Likewise.
13302 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13303 is valid, n/pz otherwise.
13304 (rx_select_cc_mode): Return CCmode if Y is not zero.
13306 2011-02-10 Richard Guenther <rguenther@suse.de>
13308 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13310 2011-02-10 Richard Guenther <rguenther@suse.de>
13312 PR tree-optimization/47677
13313 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13315 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13318 * combine.c (make_compound_operation): Only change shifts into
13319 multiplication for SCALAR_INT_MODE_P.
13321 2011-02-10 Jie Zhang <jie@codesourcery.com>
13325 2011-02-05 Jie Zhang <jie@codesourcery.com>
13327 * web.c (entry_register): Don't clobber the number of the
13328 first uninitialized reference in used[].
13330 2011-02-09 Richard Guenther <rguenther@suse.de>
13332 PR tree-optimization/47664
13333 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13336 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13340 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13342 (PROCESSOR_DEFAULT64): Same.
13343 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13345 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13347 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13349 2011-02-09 Martin Jambor <mjambor@suse.cz>
13351 PR middle-end/45505
13352 * tree-sra.c (struct access): New flags grp_scalar_read and
13353 grp_scalar_write. Changed description of assignment read and write
13355 (dump_access): Dump new flags, reorder all of them.
13356 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13357 to detect multiple scalar reads.
13358 (analyze_access_subtree): Use the new scalar read write flags instead
13359 of the old flags. Adjusted comments.
13361 2011-02-08 DJ Delorie <dj@redhat.com>
13364 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13367 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13369 * config/m68k/uclinux.opt: New.
13370 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13372 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13374 * config/cris/elf.opt (sim): New Driver option.
13376 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13378 * config/xtensa/elf.opt: New.
13379 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13381 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13383 * config/vax/elf.opt: New.
13384 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13386 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13388 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13390 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13392 * config/gnu-user.opt: New.
13393 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13394 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13395 *-*-uclinux*): Use gnu-user.opt.
13397 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13399 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13400 * config/i386/gnu.h (CPP_SPEC): Likewise.
13402 2011-02-08 Ian Lance Taylor <iant@google.com>
13404 * common.opt (fcx-limited-range): Add SetByCombined flag.
13405 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13406 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13407 (fassociative-math, freciprocal-math): Likewise.
13408 (funsafe-math-optimizations): Likewise.
13409 * opth-gen.awk: Handle SetByCombined.
13410 * optc-gen.awk: Likewise.
13411 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13412 (set_unsafe_math_optimizations_flags): Likewise.
13413 * doc/options.texi (Option properties): Document SetByCombined.
13415 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13417 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13418 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13419 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13420 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13421 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13423 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13425 PR tree-optimization/46834
13426 PR tree-optimization/46994
13427 PR tree-optimization/46995
13428 * graphite-sese-to-poly.c (used_outside_reduction): New.
13429 (detect_commutative_reduction): Call used_outside_reduction.
13430 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13431 translate_scalar_reduction_to_array only when at least one
13432 loop-phi/close-phi tuple has been detected.
13434 2011-02-08 Richard Guenther <rguenther@suse.de>
13436 PR middle-end/47639
13437 * tree-vect-generic.c (expand_vector_operations_1): Update
13439 (expand_vector_operations): ... not here. Cleanup EH info
13440 and the CFG if required.
13442 2011-02-08 Richard Guenther <rguenther@suse.de>
13444 PR tree-optimization/47641
13445 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13446 require type compatibility.
13448 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13450 * gimple-low.c (lower_function_body): Don't remove the location of
13451 the return statement here.
13452 (lower_gimple_return): Do it here instead but only if the return
13453 statement is actually used twice.
13455 2011-02-08 Richard Guenther <rguenther@suse.de>
13457 PR tree-optimization/47632
13458 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13459 unused up_to_stmt parameter, return whether cfg-cleanup is
13460 necessary, remove EH info properly.
13461 (forward_propagate_into_gimple_cond): Adjust caller.
13462 (forward_propagate_into_cond): Likewise.
13463 (forward_propagate_comparison): Likewise.
13464 (tree_ssa_forward_propagate_single_use_vars): Make
13465 forward_propagate_comparison case similar to the two others.
13467 2011-02-08 Nick Clifton <nickc@redhat.com>
13469 * config/mn10300/mn10300.opt (mliw): New command line option.
13470 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13471 (liw_bundling): New automaton.
13472 (liw): New attribute.
13473 (liw_op): New attribute.
13474 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13475 (movsi_internal): Add LIW attributes.
13476 (andsi3): Likewise.
13477 (iorsi3): Likewise.
13478 (xorsi3): Likewise.
13479 (addsi3): Separate register and immediate alternatives.
13480 Add LIW attributes.
13481 (subsi3): Likewise.
13483 (aslsi3): Likewise.
13484 (lshrsi3): Likewise.
13485 (ashrsi3): Likewise.
13486 (liw): New pattern.
13487 * config/mn10300/mn10300.c (liw_op_names): New
13488 (mn10300_print_operand): Handle 'W' operand descriptor.
13489 (extract_bundle): New function.
13490 (check_liw_constraints): New function.
13491 (liw_candidate): New function.
13492 (mn10300_bundle_liw): New function.
13493 (mn10300_reorg): New function.
13494 (TARGET_MACHINE_DEPENDENT_REORG): Define.
13495 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
13496 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
13497 __LIW__ or __NO_LIW__.
13498 * doc/invoke.texi: Describe the -mliw command line option.
13500 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13502 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
13503 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13504 pthread_mutex_unlock): Remove.
13505 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
13506 * config/pa/t-pa64: Likewise.
13507 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
13508 shared libc if not linking against libpthread.
13509 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
13511 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
13514 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
13515 on 10.6 and later to ensure that we always use the unwinder from
13516 the system. Only add -no_compact_unwind when tarteting darwin
13519 2011-02-07 Steve Ellcey <sje@cup.hp.com>
13522 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
13523 (vec_interleave_lowv2sf): Ditto.
13524 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
13525 (vec_extract_oddv2sf): Ditto.
13527 2011-02-07 Mike Stump <mikestump@comcast.net>
13530 Add __ieee_divdc3 entry point.
13531 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
13533 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
13534 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
13535 * config/darwin.c (darwin_rename_builtins): Add.
13536 * config/darwin-protos.h (darwin_rename_builtins): Add.
13538 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
13541 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
13544 2011-02-07 Mike Stump <mikestump@comcast.net>
13546 * config/darwin.opt (mmacosx-version-min): Update default OS version.
13548 2011-02-07 Denis Chertykov <chertykov@gmail.com>
13551 * config/avr/libgcc.S (exit): Move .endfunc
13553 2011-02-07 Richard Guenther <rguenther@suse.de>
13555 PR tree-optimization/47615
13556 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
13557 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
13558 (run_scc_vn): Initialize it.
13559 (visit_reference_op_load): Use it.
13560 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
13562 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13564 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
13565 DImode trapping arithmetic libfuncs.
13567 2011-02-07 Richard Guenther <rguenther@suse.de>
13569 PR tree-optimization/47621
13570 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
13572 (execute_update_addresses_taken): ... here. Make it more
13573 conservative in what we accept.
13575 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13577 * config/sparc/freebsd.h (ASM_SPEC): Define.
13578 * config/sparc/vxworks.h (ASM_SPEC): Define.
13580 2011-02-06 Joseph Myers <joseph@codesourcery.com>
13582 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13584 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
13586 * doc/invoke.texi: Remove reference to compiler internals from
13587 user documentation.
13589 * reg-notes.def: Remove REG_VALUE_PROFILE.
13590 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
13592 2011-02-05 Jakub Jelinek <jakub@redhat.com>
13594 PR middle-end/47610
13595 * varasm.c (default_section_type_flags): If decl is NULL,
13596 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
13598 2011-02-05 Jie Zhang <jie@codesourcery.com>
13601 * web.c (entry_register): Don't clobber the number of the
13602 first uninitialized reference in used[].
13604 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
13606 PR tree-optimization/46194
13607 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
13608 (build_classic_dist_vector_1): Do not represent classic distance
13609 vectors when the access functions are variating in different loops.
13611 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13613 * config/mips/iris6.opt: New.
13614 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
13616 2011-02-04 Richard Henderson <rth@redhat.com>
13617 Steve Ellcey <sje@cup.hp.com>
13620 * config/ia64/predicates.md (mux1_brcst_element): New.
13621 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
13622 * config/ia64/ia64.c (ia64_unpack_assemble): New.
13623 (ia64_unpack_sign): New.
13624 (ia64_expand_unpack): Rewrite using new routines.
13625 (ia64_expand_widen_sum): Ditto.
13626 (ia64_expand_dot_prod_v8qi): Ditto.
13627 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
13628 routines, add endian check.
13629 (pmpy2_even): Rename from pmpy2_r, add endian check.
13630 (pmpy2_odd): Rename from pmpy2_l, add endian check.
13631 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
13632 (vec_widen_smult_hi_v4hi): Ditto.
13633 (vec_widen_umult_lo_v4hi): Ditto.
13634 (vec_widen_umult_hi_v4hi): Ditto.
13635 (mulv2si3): Change endian checks.
13636 (sdot_prodv4hi): Rewrite with new calls.
13637 (udot_prodv4hi): New.
13638 (vec_pack_ssat_v4hi): Add endian check.
13639 (vec_pack_usat_v4hi): Ditto.
13640 (vec_pack_ssat_v2si): Ditto.
13641 (max1_even): Rename from max1_r, add endian check.
13642 (max1_odd): Rename from max1_l, add endian check.
13643 (*mux1_rev): Format change.
13644 (*mux1_mix): Ditto.
13645 (*mux1_shuf): Ditto.
13646 (*mux1_alt): Ditto.
13647 (*mux1_brcst_v8qi): Use new predicate.
13648 (vec_extract_evenv8qi): Remove endian check.
13649 (vec_extract_oddv8qi): Ditto.
13650 (vec_interleave_lowv4hi): Format change.
13651 (vec_interleave_highv4hi): Ditto.
13652 (mix2_even): Rename from mix2_r, add endian check.
13653 (mix2_odd): Rename from mux2_l, add endian check.
13654 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
13655 (vec_extract_evenodd_helper): Format change.
13656 (vec_extract_evenv4hi): Remove endian check.
13657 (vec_extract_oddv4hi): Remove endian check.
13658 (vec_interleave_lowv2si): Format change.
13659 (vec_interleave_highv2si): Format change.
13660 (vec_initv2si): Remove endian check.
13661 (vecinit_v2si): Add endian check.
13662 (reduc_splus_v2sf): Add endian check.
13663 (reduc_smax_v2sf): Ditto.
13664 (reduc_smin_v2sf): Ditto.
13665 (vec_initv2sf): Remove endian check.
13666 (fpack): Add endian check.
13667 (fswap): Add endian check.
13668 (vec_interleave_highv2sf): Add endian check.
13669 (vec_interleave_lowv2sf): Add endian check.
13670 (fmix_lr): Add endian check.
13671 (vec_setv2sf): Format change.
13672 (*vec_extractv2sf_0_be): Use shift to extract operand.
13673 (*vec_extractv2sf_1_be): New.
13674 (vec_pack_trunc_v4hi): Add endian check.
13675 (vec_pack_trunc_v2si): Format change.
13677 2011-02-04 Jakub Jelinek <jakub@redhat.com>
13679 PR inline-asm/23200
13680 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
13681 do bb, locus and block comparison and disallow loads if it is not set.
13682 (stmt_is_replaceable_p): New function.
13683 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
13685 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
13686 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
13688 * tree-flow.h (stmt_is_replaceable_p): New prototype.
13690 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13692 * config/rs6000/xilinx.opt: New.
13693 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
13695 2011-02-04 Joseph Myers <joseph@codesourcery.com>
13697 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
13699 2011-02-03 Anatoly Sokolov <aesok@post.ru>
13701 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
13702 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13703 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
13704 secondary_reload_info, xtensa_secondary_reload): Remove.
13705 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
13706 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13707 (xtensa_preferred_reload_class): Make static. Change return and
13708 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
13709 Use CONST_DOUBLE_P predicate.
13710 (xtensa_preferred_output_reload_class): New function.
13711 (xtensa_secondary_reload): Make static.
13713 2011-02-03 Joseph Myers <joseph@codesourcery.com>
13715 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
13716 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
13717 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
13719 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13721 PR middle-end/31490
13722 * output.h (SECTION_RELRO): Define.
13723 (SECTION_MACH_DEP): Adjust.
13724 (get_variable_section): New prototype.
13725 * varpool.c (varpool_finalize_named_section_flags): New function.
13726 (varpool_assemble_pending_decls): Call it.
13727 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13728 * cgraphunit.c (cgraph_output_in_order): Call
13729 varpool_finalize_named_section_flags.
13730 * varasm.c (get_section): Allow section flags conflicts between
13731 relro and read-only sections if the section hasn't been declared yet.
13732 Set SECTION_OVERRIDE after diagnosing section type conflict.
13733 (get_variable_section): No longer static.
13734 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13735 readonly sections that need relocations.
13736 (decl_readonly_section_1): New function.
13737 (decl_readonly_section): Use it.
13740 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
13741 Steve Ellcey <sje@cup.hp.com>
13743 PR middle-end/31490
13744 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13745 if section attribute used.
13747 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13749 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13750 * config/darwin.c (SECTION_NO_ANCHOR): Define.
13751 (darwin_init_sections): Remove assertion.
13753 2011-02-03 Nick Clifton <nickc@redhat.com>
13755 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13757 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13758 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13759 instead of "n" and "pz".
13760 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13763 2011-02-03 Jakub Jelinek <jakub@redhat.com>
13766 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13767 fma, expand FMA_EXPR as fma{,f,l} call.
13770 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13771 copy them into a unsigned char variable and pass address of it to
13772 lto_output_data_stream.
13775 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13776 around backend_init_target and lang_dependent_init_target calls.
13777 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13778 (verify_cgraph_node): Don't call set_cfun here. Use
13779 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13780 Set error_found for incorrectly represented calls to thunks.
13782 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13785 PR rtl-optimization/43494
13786 * rtl.h (for_each_inc_dec_fn): New type.
13787 (for_each_inc_dec): Declare.
13788 * rtlanal.c (struct for_each_inc_dec_ops): New type.
13789 (for_each_inc_dec_find_inc_dec): New fn.
13790 (for_each_inc_dec_find_mem): New fn.
13791 (for_each_inc_dec): New fn.
13792 * dse.c (struct insn_size): Remove.
13793 (replace_inc_dec, replace_inc_dec_mem): Remove.
13794 (emit_inc_dec_insn_before): New fn.
13795 (check_for_inc_dec): Use it, along with for_each_inc_dec.
13796 (canon_address): Pass mem modes to cselib_lookup.
13797 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
13798 (cselib_lookup_from_insn): Likewise.
13799 (cselib_subst_to_values): Likewise.
13800 * cselib.c (find_slot_memmode): New var.
13801 (cselib_find_slot): New fn. Use it instead of
13802 htab_find_slot_with_hash everywhere.
13803 (entry_and_rtx_equal_p): Use find_slot_memmode.
13804 (autoinc_split): New fn.
13805 (rtx_equal_for_cselib_p): Rename and implement in terms of...
13806 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
13807 Deal with autoinc. Special-case recursion into MEMs.
13808 (cselib_hash_rtx): Likewise.
13809 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
13810 address and MEM modes.
13811 (cselib_subst_to_values): Add memmode, pass it on.
13813 (cselib_lookup): Add memmode argument, pass it on.
13814 (cselib_lookup_from_insn): Add memmode.
13815 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13816 (struct cselib_record_autoinc_data): New.
13817 (cselib_record_autoinc_cb): New fn.
13818 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
13819 mode to cselib_lookup. Reset autoinced REGs here instead of...
13820 (cselib_process_insn): ... here.
13821 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13823 (add_uses): Likewise, also to cselib_subst_to_values.
13824 (add_stores): Likewise.
13825 * sched-deps.c (add_insn_mem_dependence): Pass mode to
13826 cselib_subst_to_values.
13827 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
13828 * gcse.c (do_local_cprop): Adjusted.
13829 * postreload.c (reload_cse_simplify_set): Adjusted.
13830 (reload_cse_simplify_operands): Adjusted.
13831 * sel-sched-dump (debug_mem_addr_value): Pass mode.
13833 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
13835 PR tree-optimization/45122
13836 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13837 unsafe assumptions when there's more than one loop exit.
13839 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
13842 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13843 Document using vector double with the load/store builtins, and
13844 that the load/store builtins always use Altivec instructions.
13846 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13847 to use altivec memory instructions, even on VSX.
13848 (vector_altivec_store_<mode>): Ditto.
13850 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13853 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13854 V2DF, V2DI support to load/store overloaded builtins.
13856 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13857 altivec load/store builtins for V2DF/V2DI types.
13859 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13860 set avoid indexed addresses on power6 if -maltivec.
13861 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13862 vector_altivec_load/vector_altivec_store builtins.
13863 (altivec_expand_st_builtin): Ditto.
13864 (altivec_expand_builtin): Add VSX memory builtins.
13865 (rs6000_init_builtins): Add V2DI types to internal types.
13866 (altivec_init_builtins): Add support for V2DF/V2DI altivec
13867 load/store builtins.
13868 (rs6000_address_for_altivec): Insure memory address is appropriate
13871 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13872 vec_vsx_ld and vec_vsx_st.
13873 (vsx_store_<mode>): Ditto.
13875 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13876 variables to hold long long types for VSX vector memory builtins.
13877 (RS6000_BTI_unsigned_long_long): Ditto.
13878 (long_long_integer_type_internal_node): Ditti.
13879 (long_long_unsigned_type_internal_node): Ditti.
13881 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13882 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13883 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13885 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13887 (vec_vsx_st): Ditto.
13889 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13891 * config/pa/pa-hpux10.opt: New.
13892 * config/hpux11.opt (pthread): New Driver option.
13893 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13894 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13896 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13898 * config/ia64/vms.opt: New.
13899 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13901 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
13904 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13905 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13906 generator functions.
13907 (vsx_floatuns<VSi><mode>2): Ditto.
13908 (vsx_fix_trunc<mode><VSi>2): Ditto.
13909 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13911 2011-02-02 Joseph Myers <joseph@codesourcery.com>
13913 * config/i386/djgpp.opt (posix): New Driver option.
13915 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
13917 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13918 Move to the unsupported targets list.
13920 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
13922 PR rtl-optimization/47525
13923 * df-scan.c: Update copyright years.
13924 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13925 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13927 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13929 * config/i386/sysv4.h (TARGET_VERSION): Remove.
13930 (SUBTARGET_RETURN_IN_MEMORY): Remove.
13931 (ASM_OUTPUT_ASCII): Remove.
13932 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13934 2011-02-02 Jeff Law <law@redhat.com>
13936 PR middle-end/47543
13937 * reload.c (find_reloads_address): Handle reg+d address where both
13938 components are invalid by reloading the entire address.
13940 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13941 Richard Guenther <rguenther@suse.de>
13943 PR tree-optimization/40979
13945 * passes.c (init_optimization_passes): After LIM call copy_prop
13946 and DCE to clean up.
13947 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13949 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
13951 PR tree-optimization/47576
13952 PR tree-optimization/47555
13953 * doc/invoke.texi (scev-max-expr-complexity): Documented.
13954 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13955 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13956 * tree-scalar-evolution.c (follow_ssa_edge): Use
13957 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13959 2011-02-02 Richard Guenther <rguenther@suse.de>
13961 PR tree-optimization/47566
13962 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13964 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13968 * tree-inline.c (declare_return_variable): Remove unused caller
13973 * tree-flow-inline.h (clear_is_used, is_used_p): New.
13974 * cfgexpand.c (account_used_vars_for_block): Use them.
13975 * tree-nrv.c (tree_nrv): Likewise.
13976 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13977 (dump_scope_block): Likewise.
13978 (remove_unused_locals): Likewise.
13982 * tree-inline.c (declare_return_variable): Add result decl to
13983 local decls only once.
13984 * gimple-low.c (record_vars_into): Mark newly-created variables
13987 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
13993 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13995 (no_real_insns_p, schedule_block, set_priorities): Drop special
13996 treatment of boundary debug insns.
13997 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13998 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13999 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14000 (BOUNDARY_DEBUG_INSN_P): Likewise.
14001 (SCHEDULE_DEBUG_INSN_P): Likewise.
14002 * sched-rgn.c (init_ready_list): Drop special treatment of
14003 boundary debug insns.
14004 * final.c (rest_of_clean_state): Clear notes' BB.
14006 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14008 * config/openbsd.opt (assert=): New Driver option.
14010 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14012 * config/i386/nto.opt: New.
14013 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14015 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14017 * config/i386/netware.opt: New.
14018 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14020 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14022 * config/interix.opt (posix): New Driver option.
14024 2011-02-01 DJ Delorie <dj@redhat.com>
14026 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14028 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14031 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14033 PR tree-optimization/47561
14034 * toplev.c (process_options): Print the Graphite flags. Add
14035 flag_loop_flatten to the list of options requiring Graphite.
14037 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14039 * config/i386/cygming.opt (posix): New Driver option.
14041 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14043 * config/arm/vxworks.opt: New.
14044 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14046 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14048 * config/alpha/elf.opt: New.
14049 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14050 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14052 2011-02-01 Richard Guenther <rguenther@suse.de>
14054 PR tree-optimization/47559
14055 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14056 store-motion on references that can throw.
14058 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14060 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14061 * tree-pass.h (TDF_CSELIB): New macro.
14062 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14063 cselib_lookup): Check for it rather than for TDF_DETAILS.
14065 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14068 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14069 is HOST_BIT_BUCKET.
14071 * opts.c (finish_options): Don't add x_aux_base_name if it is
14074 2011-02-01 Richard Guenther <rguenther@suse.de>
14076 PR tree-optimization/47555
14078 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14080 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14082 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14085 * config/lm32/t-lm32: Add multilib for all CPU options.
14087 2011-02-01 Richard Guenther <rguenther@suse.de>
14089 PR tree-optimization/47541
14090 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14091 sure to have a field at offset zero.
14093 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14095 * config/arc/arc.opt (EB, EL): New Driver options.
14097 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14099 * config/alpha/osf5.opt: New.
14100 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14102 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14104 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14106 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14108 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14109 -floop-interchange.
14110 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14111 is an alias of -floop-interchange and that it requires the
14112 Graphite infrastructure.
14113 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14114 flag_loop_interchange based on the value of flag_tree_loop_linear.
14116 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14117 Richard Guenther <rguenther@suse.de>
14119 PR tree-optimization/47538
14120 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14121 type instead of r1type, except for comparisons. For right
14122 shifts and comparisons punt if there are mismatches in
14123 sizetype vs. non-sizetype types.
14125 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14127 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14130 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14132 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14134 * configure: Regenerate.
14136 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14138 * configure.ac (gcc_cv_ld_static_option): Define.
14139 (gcc_cv_ld_dynamic_option): Define.
14140 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14142 (HAVE_LD_STATIC_DYNAMIC): Update message.
14143 (LD_STATIC_OPTION): Define.
14144 (LD_DYNAMIC_OPTION): Define.
14145 * configure: Regenerate.
14146 * config.in: Regenerate.
14147 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14148 HAVE_LD_STATIC_DYNAMIC]: Use them.
14150 2011-01-31 Nick Clifton <nickc@redhat.com>
14152 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14153 registers inside interrupt handlers if the handler is not a leaf
14156 2011-01-31 Nick Clifton <nickc@redhat.com>
14158 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14159 reg_renumber returning an INVALID_REGNUM.
14161 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14164 * doc/install.texi: Document host options discarded when cross
14165 configuring target libraries.
14167 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14170 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14173 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14175 (no_real_insns_p, schedule_block, set_priorities): Drop special
14176 treatment of boundary debug insns.
14177 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14178 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14179 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14180 (BOUNDARY_DEBUG_INSN_P): Likewise.
14181 (SCHEDULE_DEBUG_INSN_P): Likewise.
14182 * sched-rgn.c (init_ready_list): Drop special treatment of
14183 boundary debug insns.
14184 * final.c (rest_of_clean-state): Clear notes' BB.
14186 2011-01-31 Alan Modra <amodra@gmail.com>
14188 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14189 toc relative expressions as we do in print_operand_address.
14191 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14193 * doc/extend.texi: Follow spelling conventions.
14194 * doc/invoke.texi: Fix a typo.
14196 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14198 * config/hpux11.opt: New.
14199 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14200 ia64*-*-hpux*): Use hpux11.opt.
14202 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14204 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14207 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14209 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14212 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14214 * doc/install.texi (Binaries): Remove outdated reference for
14215 Motorola 68HC11/68HC12 downloads.
14217 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14219 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14222 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14225 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14228 2011-01-28 Ahmad Sharif <asharif@google.com>
14230 * value-prof.c (check_counter): Corrected error message.
14232 2011-01-29 Jie Zhang <jie@codesourcery.com>
14234 * config/arm/arm.c (arm_legitimize_reload_address): New.
14235 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14236 arm_legitimize_reload_address.
14237 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14239 2011-01-28 Ian Lance Taylor <iant@google.com>
14241 * godump.c (go_define): Ignore macros whose definitions include
14242 two adjacent operands.
14244 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14247 * varasm.c (force_const_mem): Store copy of x in desc->constant
14248 instead of x itself.
14249 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14250 itself into REG_EQUAL note.
14252 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14254 * config/freebsd.opt (posix, rdynamic): New Driver options.
14256 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14258 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14259 -Bstatic/-Bdynamic.
14260 * configure: Regenerate.
14262 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14264 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14265 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14267 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14269 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14270 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14271 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14272 (s390_preferred_reload_class): Make static. Change return and
14273 'rclass' argument type to reg_class_t.
14275 2011-01-27 Jan Hubicka <jh@suse.cz>
14277 PR middle-end/46949
14278 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14279 (process_function_and_variable_attributes): Check defined weakrefs.
14281 2011-01-27 Martin Jambor <mjambor@suse.cz>
14283 PR tree-optimization/47228
14284 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14285 build_ref_for_offset.
14287 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14289 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14291 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14293 PR rtl-optimization/46856
14294 * postreload.c (reload_combine_recognize_const_pattern): Do not
14295 separate cc0 setter and user on cc0 targets.
14297 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14300 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14301 passed a VOID_TYPE expression, immediately emit an error and
14302 return error_mark_node.
14304 2011-01-26 Jeff Law <law@redhat.com>
14306 PR rtl-optimization/47464
14307 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14308 rather than may_trap_p as needed.
14310 2011-01-26 DJ Delorie <dj@redhat.com>
14312 PR rtl-optimization/46878
14313 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14314 setter/user dependency as well.
14316 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14318 PR rtl-optimization/44469
14319 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14320 after removing trivially dead basic blocks.
14322 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14324 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14325 * config/frv/frv.h (LINK_SPEC): Likewise.
14326 * config/i386/netware.h (LINK_SPEC): Likewise.
14327 * config/m68k/linux.h (ASM_SPEC): Likewise.
14328 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14329 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14330 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14331 * config/sparc/linux.h (ASM_SPEC): Likewise.
14332 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14333 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14335 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14337 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14338 * config/frv/frv.h (ASM_SPEC): Likewise.
14339 * config/m68k/linux.h (ASM_SPEC): Likewise.
14340 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14341 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14342 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14343 * config/sparc/linux.h (ASM_SPEC): Likewise.
14344 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14345 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14347 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14349 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14350 * config/frv/frv.h (LINK_SPEC): Likewise.
14351 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14353 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14355 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14356 * config/frv/frv.h (ASM_SPEC): Likewise.
14357 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14358 * config/m68k/linux.h (ASM_SPEC): Likewise.
14359 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14360 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14361 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14362 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14363 * config/sparc/linux.h (ASM_SPEC): Likewise.
14364 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14365 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14366 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14368 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14371 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14373 (vec_extract_evenodd_help): Ditto.
14374 (vec_extract_evenv4hi): Ditto.
14375 (vec_extract_oddv4hi): Ditto.
14376 (vec_interleave_lowv2si): Ditto.
14377 (vec_interleave_highv2si): Ditto.
14378 (vec_extract_evenv2si): Ditto.
14379 (vec_extract_oddv2si: Ditto.
14380 (vec_pack_trunc_v2si): Ditto.
14382 2011-01-22 Jan Hubicka <jh@suse.cz>
14385 * cgraph.h (cgraph_local_info): New field can_change_signature.
14386 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14387 signature can change.
14388 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14390 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14391 (cgraph_function_versioning): We can not change signature of functions
14392 that don't allow that.
14393 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14394 (lto_input_node): Likewise.
14395 * ipa-inline.c (compute_inline_parameters): Compute
14396 local.can_change_signature.
14397 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14398 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14399 functions that can not change signature.
14400 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14401 init_cumulative_args): Do not use local calling conventions
14402 for functions that can not change signature.
14404 2011-01-22 Jan Hubicka <jh@suse.cz>
14406 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14408 2011-01-26 Richard Guenther <rguenther@suse.de>
14410 PR tree-optimization/47190
14411 * cgraphunit.c (process_common_attributes): New function.
14412 (process_function_and_variable_attributes): Use it.
14414 2011-01-26 Richard Guenther <rguenther@suse.de>
14417 * cgraphbuild.c (record_eh_tables): Record reference to personality
14420 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14423 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14424 non-debug insns from moving up.
14426 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14429 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14430 t-dlldir{,-x} fragment for build and add it to tmake_file.
14431 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14432 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14433 * config/i386/t-dlldir: New file.
14434 (SHLIB_DLLDIR): Define.
14435 * config/i386/t-dlldir-x: New file.
14436 (SHLIB_DLLDIR): Define.
14437 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14438 (SHLIB_INSTALL): Use it.
14440 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14443 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14444 lower bound of the allowed Thumb-2 coprocessor load/store
14445 index range to -256. Add explaining comment.
14447 2011-01-25 Ian Lance Taylor <iant@google.com>
14449 * godump.c (go_define): Improve lexing of macro expansion to only
14450 accept expressions which match Go spec.
14452 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14455 * tree.c (handle_dll_attribute): Handle it.
14456 * doc/extend.texi (@item dllexport): Mention it.
14457 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14459 2011-01-25 Ian Lance Taylor <iant@google.com>
14461 PR tree-optimization/26854
14462 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14463 (decl_jump_unsafe): Move higher in file, with no other change.
14464 (bind): Set has_jump_unsafe_decl if appropriate.
14465 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14466 (check_earlier_gotos): Likewise.
14467 (c_check_switch_jump_warnings): Likewise.
14469 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14471 * doc/invoke.texi (Warning Options): Add missing hyphen.
14472 (-fprofile-dir): Minor grammatical fixes.
14473 (-fbranch-probabilities): Likewise.
14475 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14479 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14481 (no_real_insns_p, schedule_block, set_priorities): Drop special
14482 treatment of boundary debug insns.
14483 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14484 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14485 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14486 (BOUNDARY_DEBUG_INSN_P): Likewise.
14487 (SCHEDULE_DEBUG_INSN_P): Likewise.
14488 * sched-rgn.c (init_ready_list): Drop special treatment of
14489 boundary debug insns.
14490 * final.c (rest_of_clean-state): Clear notes' BB.
14492 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14494 * Makefile.in (LAMBDA_H): Removed.
14495 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
14496 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
14497 lambda-trans.o, and tree-loop-linear.o.
14498 (lto-symtab.o): Remove dependence on LAMBDA_H.
14499 (tree-loop-linear.o): Remove rule.
14500 (lambda-mat.o): Same.
14501 (lambda-trans.o): Same.
14502 (lambda-code.o): Same.
14503 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
14504 (tree-vect-slp.o): Same.
14505 * hwint.h (gcd): Moved here.
14506 (least_common_multiple): Same.
14507 * lambda-code.c: Removed.
14508 * lambda-mat.c: Removed.
14509 * lambda-trans.c: Removed.
14510 * lambda.h: Removed.
14511 * tree-loop-linear.c: Removed.
14512 * lto-symtab.c: Do not include lambda.h.
14513 * omega.c (gcd): Removed.
14514 * passes.c (init_optimization_passes): Remove pass_linear_transform.
14515 * tree-data-ref.c (print_lambda_vector): Moved here.
14516 (lambda_vector_copy): Same.
14517 (lambda_matrix_copy): Same.
14518 (lambda_matrix_id): Same.
14519 (lambda_vector_first_nz): Same.
14520 (lambda_matrix_row_add): Same.
14521 (lambda_matrix_row_exchange): Same.
14522 (lambda_vector_mult_const): Same.
14523 (lambda_vector_negate): Same.
14524 (lambda_matrix_row_negate): Same.
14525 (lambda_vector_equal): Same.
14526 (lambda_matrix_right_hermite): Same.
14527 * tree-data-ref.h: Do not include lambda.h.
14528 (lambda_vector): Moved here.
14529 (lambda_matrix): Same.
14530 (dependence_level): Same.
14531 (lambda_transform_legal_p): Removed declaration.
14532 (lambda_collect_parameters): Same.
14533 (lambda_compute_access_matrices): Same.
14534 (lambda_vector_gcd): Same.
14535 (lambda_vector_new): Same.
14536 (lambda_vector_clear): Same.
14537 (lambda_vector_lexico_pos): Same.
14538 (lambda_vector_zerop): Same.
14539 (lambda_matrix_new): Same.
14540 * tree-flow.h (least_common_multiple): Removed declaration.
14541 * tree-parloops.c (lambda_trans_matrix): Moved here.
14542 (LTM_MATRIX): Same.
14543 (LTM_ROWSIZE): Same.
14544 (LTM_COLSIZE): Same.
14545 (LTM_DENOMINATOR): Same.
14546 (lambda_trans_matrix_new): Same.
14547 (lambda_matrix_vector_mult): Same.
14548 (lambda_transform_legal_p): Same.
14549 * tree-pass.h (pass_linear_transform): Removed declaration.
14550 * tree-ssa-loop.c (tree_linear_transform): Removed.
14551 (gate_tree_linear_transform): Removed.
14552 (pass_linear_transform): Removed.
14553 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
14554 flag_loop_interchange.
14556 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14558 PR tree-optimization/47265
14559 PR tree-optimization/47443
14560 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
14561 if name still has some uses.
14563 2011-01-25 Martin Jambor <mjambor@suse.cz>
14565 PR tree-optimization/47382
14566 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
14567 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
14569 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
14571 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
14572 sjlj_except_unwind_info.
14574 2011-01-25 Richard Guenther <rguenther@suse.de>
14576 PR tree-optimization/47426
14577 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
14578 visible functions results escape.
14580 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14583 * config/arm/arm.c (any_sibcall_uses_r3): New function.
14584 (arm_get_frame_offsets): Use it.
14586 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14587 Jakub Jelinek <jakub@redhat.com>
14589 PR tree-optimization/47271
14590 * tree-if-conv.c (bb_postdominates_preds): New.
14591 (if_convertible_bb_p): Call bb_postdominates_preds.
14592 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
14593 (predicate_scalar_phi): Call bb_postdominates_preds.
14595 2011-01-25 Nick Clifton <nickc@redhat.com>
14597 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
14598 * config/rx/rx.c (rx_function_value): Likewise.
14599 (rx_promote_function_mode): Likewise.
14600 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
14601 in order to make it legitimate.
14602 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
14603 make sure that the first operand is the same as the result register.
14604 (addsi3_unspec): Delete.
14605 (subdi3): Do not accept immediate operands.
14606 (subdi3_internal): Likewise.
14608 2011-01-25 Jeff Law <law@redhat.com>
14610 PR rtl-optimization/37273
14611 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14612 handle them like argument loads from stack slots. Do not double
14613 count memory for memory constants and argument loads from stack slots.
14615 2011-01-25 Jakub Jelinek <jakub@redhat.com>
14617 PR tree-optimization/47427
14618 PR tree-optimization/47428
14619 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
14620 coalesce if the new root var would be TREE_READONLY.
14622 2011-01-25 Richard Guenther <rguenther@suse.de>
14624 PR middle-end/47414
14625 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
14626 correct type for TBAA.
14628 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14630 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
14631 (close_phi_written_to_memory): Call for_each_index with
14632 dr_indices_valid_in_loop.
14634 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14636 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
14637 when it is initialized.
14639 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14641 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
14642 call to graphite_find_data_references_in_stmt.
14643 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
14644 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
14645 call to graphite_find_data_references_in_stmt.
14646 (analyze_drs_in_stmts): Same.
14647 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
14648 in which the scalar analysis of indices is performed.
14649 (create_data_ref): Same. Update call to dr_analyze_indices.
14650 (find_data_references_in_stmt): Update call to create_data_ref.
14651 (graphite_find_data_references_in_stmt): Same.
14652 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
14654 (create_data_ref): Same.
14655 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
14656 call to create_data_ref.
14658 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14660 * graphite-sese-to-poly.c (build_poly_scop): Move
14661 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
14663 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14665 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
14666 VAR_DECL, PARM_DECL, and RESULT_DECL.
14668 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14670 * graphite-dependences.c (reduction_dr_1): Allow several reductions
14671 in a reduction PBB.
14672 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
14673 that have already been marked as PBB_IS_REDUCTION.
14675 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14677 * graphite-scop-detection.c (same_close_phi_node): New.
14678 (remove_duplicate_close_phi): New.
14679 (make_close_phi_nodes_unique): New.
14680 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
14682 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14684 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
14685 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
14686 of both data references to be the same.
14688 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14690 * graphite-dependences.c (build_lexicographical_constraint): Remove
14691 the gdim parameter.
14692 (build_lexicographical_constraint): Adjust call to
14693 ppl_powerset_is_empty.
14694 (dependence_polyhedron): Same.
14695 (graphite_legal_transform_dr): Same.
14696 (graphite_carried_dependence_level_k): Same.
14697 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
14699 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
14701 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14703 * graphite-sese-to-poly.c
14704 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
14705 (close_phi_written_to_memory): New.
14706 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
14709 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14711 * doc/install.texi: Update the expected version number of PPL to 0.11.
14712 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
14713 #if PPL_VERSION_MINOR < 11.
14715 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14717 * graphite-dependences.c: Include graphite-cloog-util.h.
14718 (new_poly_ddr): Inlined into dependence_polyhedron.
14719 (free_poly_ddr): Moved close by new_poly_ddr.
14720 (dependence_polyhedron_1): Renamed dependence_polyhedron.
14721 Early return NULL when ppl_powerset_is_empty returns true.
14722 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
14723 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
14724 (graphite_legal_transform_dr): Call new_poly_ddr.
14725 (graphite_carried_dependence_level_k): Same.
14726 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
14727 (dot_transformed_deps_stmt_1): Removed.
14728 (dot_deps_stmt_1): Call dot_deps_stmt_2.
14729 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
14730 (dot_deps_1): Call dot_deps_2.
14731 * Makefile.in (graphite-dependences.o): Add missing dependence on
14732 graphite-cloog-util.h.
14734 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14736 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14737 (build_lexicographical_constraint): Same.
14738 (dependence_polyhedron_1): Same.
14739 (graphite_legal_transform_dr): Same.
14740 (graphite_carried_dependence_level_k): Same.
14741 * graphite-ppl.c (ppl_powerset_is_empty): New.
14742 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14743 * tree-data-ref.c (dump_data_reference): Print the basic block index.
14745 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14747 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14748 the "a followed by b" relation and document it.
14750 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14752 * graphite-dependences.c (build_lexicographical_constraint): Stop the
14753 iteration when the bag of constraints is empty.
14755 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14757 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14759 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14761 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14762 nest and two loop depths as parameters.
14763 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14764 lst_perfect_nestify.
14766 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14768 * graphite-dependences.c (print_pddr): Call
14769 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14771 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
14773 * graphite-ppl.c (debug_gmp_value): New.
14774 * graphite-ppl.h (debug_gmp_value): Declared.
14776 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
14778 * doc/install.texi: Document availability of cloog-0.16.
14780 2011-01-25 Vladimir Kargov <kargov@gmail.com>
14782 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14783 invalid postdominance info.
14785 2011-01-24 Jan Hubicka <jh@suse.cz>
14788 * doc/extend.texi (weak pragma): Drop claim that it must
14789 appear before definition.
14790 * varasm.c (merge_weak, declare_weak): Only sanity check
14791 that DECL is not output at a time it is declared weak.
14793 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
14795 * machmode.def: Fixed comments.
14797 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
14799 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14801 2011-01-24 Paul Koning <ni1d@arrl.net>
14803 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14806 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
14809 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14810 (block_info): Add scanned and prev.
14811 (move_or_delete_vzeroupper_2): Return if the basic block
14812 has been scanned and the upper 128bit state is unchanged
14813 from the last scan.
14814 (move_or_delete_vzeroupper_1): Return true if the exit
14816 (move_or_delete_vzeroupper): Visit basic blocks using the
14817 work-list based algorithm based on vt_find_locations in
14820 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14822 2011-01-24 Nick Clifton <nickc@redhat.com>
14824 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14825 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14826 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
14827 then define __v850e1__.
14828 * doc/invoke.texi: Document -mv850es.
14830 2011-01-24 Richard Henderson <rth@redhat.com>
14832 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14833 compound unordered comparisons.
14834 * config/rx/rx.c (rx_split_fp_compare): Remove.
14835 * config/rx/rx-protos.h: Update.
14836 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14837 (cbranchsf4): Don't call rx_split_fp_compare.
14838 (*cbranchsf4): Use rx_split_cbranch.
14839 (*cmpsf): Don't accept "i" constraint.
14840 (*conditional_branch): Only valid after reload.
14841 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
14843 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14846 * config/rs6000/altivec.md (vector constant splitters): Add
14847 support for creating vector single precision constants if -mvsx is
14848 used and we would create the constant using Altivec primitives.
14850 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
14851 Richard Sandiford <rdsandiford@googlemail.com>
14853 PR rtl-optimization/47166
14854 * reload1.c (emit_reload_insns): Disable the spill_reg_store
14855 mechanism for PRE_MODIFY and POST_MODIFY.
14856 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14859 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
14861 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14863 2011-01-22 Jan Hubicka <jh@suse.cz>
14866 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14868 2011-01-22 Jan Hubicka <jh@suse.cz>
14870 PR tree-optimization/43884
14872 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14873 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14875 2011-01-22 Anatoly Sokolov <aesok@post.ru>
14877 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14878 * config/s390/s390.c (s390_register_move_cost,
14879 s390_memory_move_cost): New.
14880 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14882 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14884 PR middle-end/47401
14885 * except.c (sjlj_assign_call_site_values): Move setting the
14886 crtl->uses_eh_lsda flag to ...
14887 (sjlj_mark_call_sites): ... here.
14888 (sjlj_emit_function_enter): Support NULL dispatch label.
14889 (sjlj_build_landing_pads): In a function with no landing pads
14890 that still has must-not-throw regions, generate code to register
14891 a personality function with empty LSDA.
14893 2011-01-21 Richard Henderson <rth@redhat.com>
14895 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14897 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14899 * compare-elim.c: New file.
14900 * Makefile.in (OBJS-common): Add it.
14901 (compare-elim.o): New.
14902 * common.opt (fcompare-elim): New.
14903 * opts.c (default_options_table): Add OPT_fcompare_elim.
14904 * tree-pass.h (pass_compare_elim_after_reload): New.
14905 * passes.c (init_optimization_passes): Add it.
14906 * recog.h: Protect against re-inclusion.
14907 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14908 * doc/invoke.texi (-fcompare-elim): Document it.
14909 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14910 * doc/tm.texi: Rebuild.
14912 2011-01-22 Nick Clifton <nickc@redhat.com>
14914 * config/rx/rx.md (cstoresf4): Pass comparison operator to
14915 rx_split_fp_compare.
14917 2011-01-22 Nick Clifton <nickc@redhat.com>
14919 * config/rx/rx.md (UNSPEC_CONST): New.
14920 (deallocate_and_return): Wrap the amount popped off the stack in
14921 an UNSPEC_CONST in order to stop it being rejected by
14922 -mmax-constant-size.
14923 (pop_and_return): Add a "(return)" rtx.
14924 (call): Drop the immediate operand.
14925 (call_internal): Likewise.
14926 (call_value): Likewise.
14927 (call_value_internal): Likewise.
14928 (sibcall_internal): Likewise.
14929 (sibcall_value_internal): Likewise.
14930 (sibcall): Likewise. Generate an explicit call using
14932 (sibcall_value): Likewise.
14933 (mov<>): FAIL if a constant operand is not legitimate.
14934 (addsi3_unpsec): New pattern.
14936 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14937 (ok_for_max_constant): New function.
14938 (gen_safe_add): New function.
14939 (rx_expand_prologue): Use gen_safe_add.
14940 (rx_expand_epilogue): Likewise.
14941 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
14944 2011-01-21 Jeff Law <law@redhat.com>
14946 PR tree-optimization/47053
14947 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14948 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14949 statements are deleted.
14950 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
14951 is nonempty, then purge dead edges and cleanup the CFG.
14953 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14956 Temporarily revert:
14957 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14959 * tree-dfa.c (create_var_ann): Mark variable as used.
14961 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14963 PR middle-end/45566
14964 * except.c (convert_to_eh_region_ranges): Emit queued no-region
14965 notes from other section in hot/cold partitioning even if
14966 last_action is -3. Increment call_site_base.
14968 PR rtl-optimization/47366
14969 * fwprop.c (forward_propagate_into): Return bool. If
14970 any changes are made, -fnon-call-exceptions is used and
14971 REG_EH_REGION note is present, call purge_dead_edges
14972 and return true if it purged anything.
14973 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14974 any EH edges were purged.
14976 2011-01-21 Jeff Law <law@redhat.com>
14978 PR rtl-optimization/41619
14979 * caller-save.c (setup_save_areas): Break out code to determine
14980 which hard regs are live across calls by examining the reload chains
14981 so that it is always used.
14982 Eliminate code which checked REG_N_CALLS_CROSSED.
14984 2011-01-21 Jakub Jelinek <jakub@redhat.com>
14986 PR tree-optimization/47355
14987 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14988 NOP has non-debug uses beyond PHIs in new_bb.
14990 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
14993 * cfgexpand.c (account_used_vars_for_block): Only account vars
14994 that are annotated as used.
14995 (estimated_stack_frame_size): Don't set TREE_USED.
14996 * tree-dfa.c (create_var_ann): Mark variable as used.
14998 2011-01-21 Richard Guenther <rguenther@suse.de>
15000 PR middle-end/47395
15001 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15003 2011-01-21 Richard Guenther <rguenther@suse.de>
15005 PR tree-optimization/47365
15006 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15007 (vn_reference_lookup_pieces): Adjust.
15008 (vn_reference_lookup): Likewise.
15009 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15010 (vn_reference_lookup_3): Only look through kills if in
15011 VN_WALKREWRITE mode.
15012 (vn_reference_lookup_pieces): Adjust.
15013 (vn_reference_lookup): Likewise.
15014 (visit_reference_op_load): Likewise.
15015 (visit_reference_op_store): Likewise.
15016 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15017 (compute_avail): Likewise.
15018 (eliminate): Likewise.
15020 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15022 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15023 DECL_IGNORED_P non-reg vars if they are used.
15025 PR tree-optimization/47391
15026 * varpool.c (const_value_known_p): Return false if
15029 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15032 * config/i386/i386.c (ix86_local_alignment): Handle
15033 case for va_list_type_node is nil.
15034 (ix86_canonical_va_list_type): Likewise.
15036 2011-01-21 Alan Modra <amodra@gmail.com>
15038 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15039 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15041 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15043 * config/arm/arm.md (define_attr type): Rename f_load
15044 and f_store to f_fpa_load and f_fpa_store. Update.
15045 (write_conflict): Deal with rename fallout.
15046 (*push_fp_multi): Likewise.
15047 * config/arm/fpa.md (f_load): Use f_fpa_load.
15048 (f_store): Use f_fpa_store.
15049 (*movsf_fpa): Likewise.
15050 (*movdf_fpa): Likewise.
15051 (*movxf_fpa): Likewise.
15052 (*thumb2_movsf_fpa): Likewise.
15053 (*thumb2_movdf_fpa): Likewise.
15054 (*thumb2_movxf_fpa): Likewise.
15055 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15056 f_loadd and f_stored.
15057 (*thumb2_movdi_vfp): Likewise.
15058 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15059 (*thumb2_movsi_vfp): Likewise.
15060 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15061 Use f_loads instead of f_load.
15062 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15064 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15066 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15067 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15068 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15069 (xtensa_mode_dependent_address_p): New function.
15070 (constantpool_address_p): Make static. Change return type to bool.
15071 Change argument type to const_rtx. Use CONST_INT_P predicate.
15073 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15076 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15078 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15081 * cfgexpand.c (expand_debug_expr): Instead of generating
15082 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15085 2011-01-20 Richard Guenther <rguenther@suse.de>
15087 PR middle-end/47370
15088 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15089 the pointer operand of MEM_REFs.
15091 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15093 PR tree-optimization/46130
15094 * ipa-split.c (consider_split): If return_bb contains non-virtual
15095 PHIs other than for retval or if split_function would not adjust it,
15098 2011-01-20 Richard Guenther <rguenther@suse.de>
15100 PR tree-optimization/47167
15101 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15102 Revert previous change, only avoid enumeral type changes.
15104 2011-01-19 Mike Stump <mikestump@comcast.net>
15106 * doc/tm.texi.in (BRANCH_COST): Englishify.
15107 * doc/tm.texi (BRANCH_COST): Likewise.
15109 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15112 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15113 (gen_scheduled_generic_parms_dies): New functions.
15114 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15115 generation for the end of CU compilation.
15116 (dwarf2out_finish): Generate template parameters DIEs here.
15118 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15121 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15122 debug bind stmt on merge edges.
15124 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15128 * function.c (instantiate_expr): Instantiate incoming rtl of
15129 implicit arguments, and recurse on VALUE_EXPRs.
15130 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15131 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15133 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15135 * c-parser.c (c_parser_for_statement): Initialize
15136 collection_expression.
15138 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15140 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15142 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15144 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15145 (LINK_SHLIB_SPEC): Don't use %(link_path).
15146 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15148 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15150 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15151 (NO_SHARED_LIB_SUPPORT): Remove.
15152 (LINK_SHLIB_SPEC): Remove one conditional definition.
15154 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15156 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15158 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15159 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15160 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15161 %{call_shared} and conditionals on these options not being passed.
15162 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15165 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15167 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15170 * ipa-split.c: Spelling fixes.
15172 2011-01-19 Richard Henderson <rth@redhat.com>
15174 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15175 (*mulsi3): Likewise.
15177 * longlong.h [__mn10300__] (count_leading_zeros): New.
15178 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15179 [__mn10300__] (add_ssaaaa, subddmmss): New.
15180 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15181 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15183 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15185 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15187 2011-01-19 Richard Henderson <rth@redhat.com>
15189 * config/mn10300/mn10300.md (addsi3_flags): New.
15190 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15191 (subsi3_flags, subc_internal, subdi3): New.
15192 (subdi3_internal, *subdi3_degenerate): New.
15193 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15195 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15196 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15197 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15198 * config/mn10300/mn10300-protos.h: Update.
15199 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15200 (return_ret): Likewise. Rename from return_internal_regs.
15201 (return_internal): Remove.
15203 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15204 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15205 (mn10300_legitimate_constant_p): Likewise.
15206 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15207 (mn10300_frame_size): New.
15208 (mn10300_expand_prologue): Use it.
15209 (mn10300_expand_epilogue): Likewise.
15210 (mn10300_initial_offset): Likewise.
15211 * config/mn10300/mn10300-protos.h: Update.
15212 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15213 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15214 (prologue, epilogue, return_internal): Tidy output code.
15215 (mn10300_store_multiple_operation, return): Likewise.
15216 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15217 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15218 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15219 (load_pic, am33_load_pic): New.
15220 (mn10300_load_pic0, mn10300_load_pic1): New.
15222 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15223 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15224 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15225 (cc_flags_for_mode, cc_flags_for_code): New.
15226 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15227 overflow flag is not valid. Validate that the flags we need
15228 for the comparison are valid.
15229 (mn10300_output_cmp): Remove.
15230 (mn10300_output_add): New.
15231 (mn10300_select_cc_mode): Use cc_flags_for_code.
15232 (mn10300_split_cbranch): New.
15233 (mn10300_match_ccmode): New.
15234 (mn10300_split_and_operand_count): New.
15235 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15237 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15238 (addsi3): ... here. Use mn10300_output_add.
15239 (*addsi3_flags): New.
15240 (*am33_subsi3, *mn10300_subsi3): Merge...
15241 (subsi3): ... here. Use attribute isa.
15242 (*subsi3_flags): New.
15243 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15245 (*am33_andsi3, *mn10300_andsi3): Merge...
15246 (andsi3): ... here.
15247 (*andsi3_flags): New.
15248 (andsi3 splitters): New.
15249 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15250 (iorsi3): ... here.
15251 (*iorsi3_flags): New.
15252 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15253 (xorsi3): ... here.
15254 (*xorsi3_flags): New.
15255 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15256 (one_cmplsi2): ... here.
15257 (*one_cmplsi2_flags): New.
15258 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15259 instead of "dax" in constraints. Use mn10300_split_cbranch.
15260 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15261 use matching constraints to eliminate a self-comparison.
15262 (*integer_conditional_branch): Rename from integer_conditional_branch.
15263 Use int_mode_flags to match CC_REG.
15264 (*cbranchsi4_btst, *btstsi): New.
15265 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15266 mn10300_split_cbranch.
15267 (*am33_cmpsf): Rename from am33_cmpsf.
15268 (*float_conditional_branch): Rename from float_conditional_branch.
15269 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15270 (zero_extendqisi2): ... here.
15271 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15272 (zero_extendhisi2): ... here.
15273 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15274 (extendqisi2): ... here.
15275 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15276 (extendhisi2): ... here.
15277 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15278 (ashlsi3): ... here.
15279 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15280 (lshrsi3): ... here.
15281 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15282 (ashrsi3): ... here.
15283 (consecutive add peephole): Remove.
15284 * config/mn10300/predicates.md (label_ref_operand): New.
15285 (int_mode_flags): New.
15286 (CCZN_comparison_operator): New.
15288 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15289 (throughput_42_latency_43): New reservation.
15290 (mulsidi3, umulsidi3): New expanders.
15291 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15292 the MDR register to allocation; separately allocate the low and
15293 high parts of the DImode result.
15294 (umulsidi3_internal): Similarly.
15295 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15296 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15297 (udivsi3, umodsi3): Remove.
15298 (udivmodsi4, divmodsi4): New expanders.
15299 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15300 (*divmodsi4): Simiarly.
15301 (ext_internal): New.
15303 * config/mn10300/constraints.md ("z"): New constraint.
15304 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15305 (FIXED_REGISTERS): Don't fix MDR.
15306 (CALL_USED_REGSITERS): Reformat nicely.
15307 (REG_ALLOC_ORDER): Add MDR.
15308 (enum regclass): Add MDR_REGS.
15309 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15310 (IRA_COVER_CLASSES): Add MDR_REGS.
15311 (REGNO_REG_CLASS): Handle MDR_REG.
15312 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15313 (mn10300_register_move_cost): Likewise.
15314 * config/mn10300/mn10300.md (MDR_REG): New.
15315 (*movsi_internal): Handle moves to/from MDR_REGS.
15317 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15319 (mn10300_secondary_reload): Tidy combination reload classes.
15320 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15321 addresses for AM33. Allow symbolic offsets for reg+imm.
15322 (mn10300_regno_in_class_p): New.
15323 (mn10300_legitimize_reload_address): New.
15324 * config/mn10300/mn10300.h (enum reg_class): Remove
15325 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15326 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15327 SP_OR_GENERAL_REGS.
15328 (REG_CLASS_NAMES): Update to match.
15329 (REG_CLASS_CONTENTS): Likewise.
15330 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15331 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15332 (REGNO_IN_RANGE_P): Remove.
15333 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15334 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15335 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15336 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15337 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15338 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15339 (REGNO_GENERAL_P): New.
15340 (HAVE_POST_MODIFY_DISP): New.
15341 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15342 (LEGITIMIZE_RELOAD_ADDRESS): New.
15343 * config/mn10300/mn10300-protos.h: Update.
15345 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15346 DATA_REGS for AM33 stack-pointer destination.
15347 (mn10300_preferred_output_reload_class): Likewise.
15348 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15349 into a form appropriate for ...
15350 (TARGET_SECONDARY_RELOAD): New.
15351 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15352 * config/mn10300/mn10300-protos.h: Update.
15353 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15354 reload_insi; use the "A" constraint for the scratch; handle AM33
15355 moves of sp to non-address registers.
15357 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15358 (*movqi_internal): ... here.
15359 (*am33_movhi, *mn10300_movhi): Merge into...
15360 (*movhi_internal): ... here.
15361 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15362 as the source/destination of moves from/to SP.
15363 (movsf): Only allow for AM33-2.
15364 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15365 any integer constant constraint. Only allow for AM33-2. Tidy
15366 all of the alternative outputs.
15367 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15368 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15370 (udivsi3, umodsi3): New patterns for MN103 only.
15372 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15374 * doc/tm.texi.in: Spell out that a lack of register class unions
15376 * doc/tm.texi: Regenerate.
15378 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15380 PR rtl-optimization/47337
15381 * dce.c (check_argument_store): New function.
15382 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15384 PR tree-optimization/47290
15385 * tree-eh.c (infinite_empty_loop_p): New function.
15386 (cleanup_empty_eh): Use it.
15388 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15391 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15392 (a64_expand_widen_sum): Ditto.
15393 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15394 (vec_extract_evenodd_help): Ditto.
15395 (vec_extract_evenv4hi): Ditto.
15396 (vec_extract_oddv4hi): Ditto.
15397 (vec_extract_evenv2si): Ditto.
15398 (vec_extract_oddv2si): Ditto.
15399 (vec_extract_evenv2sf): Ditto.
15400 (vec_extract_oddv2sf): Ditto.
15401 (vec_pack_trunc_v4hi: Ditto.
15402 (vec_pack_trunc_v2si): Ditto.
15403 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15404 (vec_interleave_highv8qi): Ditto.
15406 (vec_extract_oddv8qi): Ditto.
15407 (vec_interleave_lowv4hi): Ditto.
15408 (vec_interleave_highv4hi): Ditto.
15409 (vec_interleave_lowv2si): Ditto.
15410 (vec_interleave_highv2si): Ditto.
15412 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15414 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15415 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15416 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15417 (pa_c_mode_for_suffix): New.
15418 (TARGET_EXPAND_BUILTIN): Define.
15419 (TARGET_C_MODE_FOR_SUFFIX): Define.
15420 (pa_builtins): Define.
15421 (pa_init_builtins): Register __float128 type and init new support
15423 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15424 * config/pa/quadlib.c (_U_Qfcopysign): New.
15426 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15428 PR middle-end/46894
15429 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15430 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15433 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15435 PR tree-optimization/47179
15436 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15437 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15439 2011-01-18 Richard Guenther <rguenther@suse.de>
15441 PR rtl-optimization/47216
15442 * emit-rtl.c: Include tree-flow.h.
15443 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15444 of replicating it with different semantics.
15445 * Makefile.in (emit-rtl.o): Adjust.
15447 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15449 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15450 (cortex_a9_dp): Handle neon types correctly.
15452 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15454 PR rtl-optimization/47299
15455 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15456 subtarget. Use normal multiplication if both operands are constants.
15457 * expmed.c (expand_widening_mult): Don't try to optimize constant
15458 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15461 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15463 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15464 spacing after 'e.g.', typos, comma, hyphenation.
15466 2011-01-17 Richard Henderson <rth@redhat.com>
15468 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15469 (rx_restricted_mem_operand): New.
15470 (rx_shift_operand): Use register_operand.
15471 (rx_source_operand, rx_compare_operand): Likewise.
15472 * config/rx/rx.md (addsi3_flags): New expander.
15473 (adddi3): Rewrite as expander.
15474 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15475 (subsi3_flags): New expander.
15476 (subdi3): Rewrite as expander.
15477 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
15479 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
15480 (rx_init_builtins): Remove sat builtin.
15481 (rx_expand_builtin): Likewise.
15482 * config/rx/rx.md (ssaddsi3): New.
15483 (*sat): Rename from sat. Represent the CC_REG input.
15485 * config/rx/predicates.md (rshift_operator): New.
15486 * config/rx/rx.c (rx_expand_insv): Remove.
15487 * config/rx/rx-protos.h: Update.
15488 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
15489 operand to the canonical position.
15490 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
15491 (*bitclr, *bitclr_in_memory): Similarly.
15492 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
15493 (insv): Retain the zero_extract in the expansion.
15495 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
15496 (bswaphi2, bitinvert, revw): Likewise.
15498 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
15499 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
15500 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
15501 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
15502 (bitset, bitset_in_memory): Likewise.
15503 (bitinvert, bitinvert_in_memory): Likewise.
15504 (bitclr, bitclr_in_memory): Likewise.
15505 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
15506 (rx_strend, rx_cmpstrn): Likewise.
15507 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
15508 (bitop peep2 patterns): Remove.
15510 * config/rx/rx.c (rx_match_ccmode): New.
15511 * config/rx/rx-protos.h: Update.
15512 * config/rx/rx.md (abssi2): Clobber, don't set flags.
15513 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
15514 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
15515 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
15516 (fix_truncsfsi2, floatsisf2): Likewise.
15517 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
15518 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
15519 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
15520 (*subsi3_flags, *xorsi3_flags): New.
15522 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
15524 * config/rx/rx.c (rx_print_operand): Remove workaround for
15525 unsplit comparison operations.
15527 * config/rx/rx.md (movsicc): Split after reload.
15528 (*movsicc): Merge *movsieq and *movsine via match_operator.
15529 (*stcc): New pattern.
15531 * config/rx/rx.c (rx_float_compare_mode): Remove.
15532 * config/rx/rx.h (rx_float_compare_mode): Remove.
15533 * config/rx/rx.md (cstoresi4): Split after reload.
15534 (*sccc): New pattern.
15536 * config/rx/predicates.md (label_ref_operand): New.
15537 (rx_z_comparison_operator): New.
15538 (rx_zs_comparison_operator): New.
15539 (rx_fp_comparison_operator): New.
15540 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
15541 Validate that the flags are set properly for the comparison.
15542 (rx_gen_cond_branch_template): Remove.
15543 (rx_cc_modes_compatible): Remove.
15544 (mode_from_flags): New.
15545 (flags_from_code): Rename from flags_needed_for_conditional.
15546 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
15547 (rx_select_cc_mode): Likewise.
15548 (rx_split_fp_compare): New.
15549 (rx_split_cbranch): New.
15550 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
15551 (*cbranchsi4): Use match_operator and rx_split_cbranch.
15552 (*cbranchsf4): Similarly.
15553 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
15554 match_operator and rx_split_cbranch.
15555 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
15556 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
15557 (*cmpsi): Rename from cmpsi.
15558 (*tstsi): Rename from tstsi.
15559 (*cmpsf): Rename from cmpsf; use CC_Fmode.
15560 (*conditional_branch): Rename from conditional_branch.
15561 (*reveresed_conditional_branch): Remove.
15562 (b<code>): Remove expander.
15563 * config/rx/rx-protos.h: Update.
15565 * config/rx/rx.c (rx_compare_redundant): Remove.
15566 * config/rx/rx.md (cmpsi): Don't use it.
15567 * config/rx/rx-protos.h: Update.
15569 * config/rx/rx-modes.def (CC_F): New mode.
15570 * config/rx/rx.c (rx_select_cc_mode): New.
15571 * config/rx/rx.h (SELECT_CC_MODE): Use it.
15572 * config/rx/rx-protos.h: Update.
15574 2011-01-17 Richard Henderson <rth@redhat.com>
15576 * except.c (dump_eh_tree): Fix stray ; after for statement.
15578 2011-01-17 Richard Guenther <rguenther@suse.de>
15580 PR tree-optimization/47313
15581 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
15582 handling before copying the body. Properly deal with
15583 by-reference result in SSA form.
15585 2011-01-17 Ian Lance Taylor <iant@google.com>
15588 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
15589 (struct_value_alias_set): Don't define.
15590 (sparc_option_override): Don't set sparc_sr_alias_set and
15591 struct_value_alias_set.
15592 (save_or_restore_regs): Use gen_frame_mem rather than calling
15594 (sparc_struct_value_rtx): Likewise.
15596 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
15599 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
15600 (_mm_maskstore_pd): Likewise.
15601 (_mm_maskload_ps): Likewise.
15602 (_mm_maskstore_ps): Likewise.
15603 (_mm256_maskload_pd): Change mask to __m256i.
15604 (_mm256_maskstore_pd): Likewise.
15605 (_mm256_maskload_ps): Likewise.
15606 (_mm256_maskstore_ps): Likewise.
15608 * config/i386/i386-builtin-types.def: Updated.
15609 (ix86_expand_special_args_builtin): Likewise.
15611 * config/i386/i386.c (bdesc_special_args): Update
15612 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
15613 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
15614 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
15615 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
15617 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
15618 Use <avxpermvecmode> on mask register.
15619 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
15621 2011-01-17 Olivier Hainque <hainque@adacore.com>
15622 Michael Haubenwallner <michael.haubenwallner@salomon.at>
15623 Eric Botcazou <ebotcazou@adacore.com>
15626 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
15627 if <= USHRT_MAX in 32-bit mode.
15629 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15631 * doc/install.texi (Configuration, Specific): Wrap long
15632 lines in examples. Allow line wrapping in long options
15633 and URLs where beneficial for PDF output.
15635 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
15637 * config/mips/mips.c (mips_classify_symbol): Don't return
15638 SYMBOL_PC_RELATIVE for nonlocal labels.
15640 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
15642 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
15644 2011-01-15 Jan Hubicka <jh@suse.cz>
15646 PR tree-optimization/47276
15647 * ipa.c (function_and_variable_visibility): Do not try to mark alias
15648 declarations as needed.
15650 2011-01-15 Martin Jambor <mjambor@suse.cz>
15652 * common.opt (fdevirtualize): New flag.
15653 * doc/invoke.texi (Option Summary): Document it.
15654 * opts.c (default_options_table): Add devirtualize flag.
15655 * ipa-prop.c (detect_type_change): Return immediately if
15656 devirtualize flag is not set.
15657 (detect_type_change_ssa): Likewise.
15658 (compute_known_type_jump_func): Likewise.
15659 (ipa_analyze_virtual_call_uses): Likewise.
15661 2011-01-14 Martin Jambor <mjambor@suse.cz>
15663 PR tree-optimization/45934
15664 PR tree-optimization/46302
15665 * ipa-prop.c (type_change_info): New type.
15666 (stmt_may_be_vtbl_ptr_store): New function.
15667 (check_stmt_for_type_change): Likewise.
15668 (detect_type_change): Likewise.
15669 (detect_type_change_ssa): Likewise.
15670 (compute_complex_assign_jump_func): Check for dynamic type change.
15671 (compute_complex_ancestor_jump_func): Likewise.
15672 (compute_known_type_jump_func): Likewise.
15673 (compute_scalar_jump_functions): Likewise.
15674 (ipa_analyze_virtual_call_uses): Likewise.
15675 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
15677 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15679 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
15680 * config/i386/i386.opt (msse5): New Alias.
15682 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15684 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
15685 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15686 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15687 * config/sparc/sparc.h (CC1_SPEC): Likewise.
15689 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15691 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
15693 * config/sparc/linux64.h (CC1_SPEC): Likewise.
15694 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15695 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
15696 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
15698 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
15700 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15702 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
15704 2011-01-14 Mike Stump <mikestump@comcast.net>
15706 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
15707 * config/fr30/fr30.md: Likweise
15708 (movsi_push): Likewise.
15709 (movsi_pop): Likewise.
15710 (enter_func): Likewise.
15711 * config/moxie/moxie.md (movsi_push): Likewise.
15712 (movsi_pop): Likewise.
15714 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15716 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
15717 %{no_archive} %{exact_version}.
15718 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
15719 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15720 %{no_archive} %{exact_version}.
15721 * config/mips/openbsd.h (LINK_SPEC): Likewise.
15722 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15723 * config/mips/vxworks.h: Likewise.
15725 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15727 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15729 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15731 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15732 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15734 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15736 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15739 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15741 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15743 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15744 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15746 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15747 Don't handle -shlib.
15749 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15751 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15752 (CC1_SPEC): Don't handle -profile.
15754 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15756 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15757 * config/mips/mips.h (CC1_SPEC): Likewise.
15759 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15761 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15762 * config/mips/mips.h (CC1_SPEC): Likewise.
15764 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15766 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15767 * config/m32r/linux.h (LINK_SPEC): Likewise.
15768 * config/mips/linux.h (LINK_SPEC): Likewise.
15769 * config/mips/linux64.h (LINK_SPEC): Likewise.
15770 * config/sparc/linux.h (LINK_SPEC): Likewise.
15771 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15772 LINK_SPEC): Likewise.
15773 * config/xtensa/linux.h (LINK_SPEC): Likewise.
15775 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15777 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15779 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15781 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15783 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15784 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15786 2011-01-14 Joseph Myers <joseph@codesourcery.com>
15788 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15790 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15792 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15793 supports -Bstatic/-Bdynamic.
15794 * configure: Regenerate.
15796 2011-01-14 Jan Hubicka <jh@suse.cz>
15797 Jack Howarth <howarth@bromo.med.uc.edu>
15800 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15801 when checking debug_info_level. Test write_symbols instead of
15802 debug_hooks->var_location when setting flag_var_tracking_uninit.
15804 2011-01-14 Richard Guenther <rguenther@suse.de>
15806 PR tree-optimization/47179
15807 * target.def (ref_may_alias_errno): New target hook.
15808 * targhooks.h (default_ref_may_alias_errno): Declare.
15809 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15810 (default_ref_may_alias_errno): New function.
15811 * target.h (struct ao_ref_s): Declare.
15812 * tree-ssa-alias.c: Include target.h.
15813 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15814 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15815 (targhooks.o): Likewise.
15816 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15817 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15819 2011-01-14 Richard Guenther <rguenther@suse.de>
15821 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
15823 2011-01-14 Richard Guenther <rguenther@suse.de>
15825 PR tree-optimization/47280
15826 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15827 return CFG changes.
15828 (tree_ssa_forward_propagate_single_use_vars): Deal with
15829 CFG changes from associate_plusminus.
15831 2011-01-14 Richard Guenther <rguenther@suse.de>
15833 PR middle-end/47281
15835 2011-01-11 Richard Guenther <rguenther@suse.de>
15837 PR tree-optimization/46076
15838 * tree-ssa.c (useless_type_conversion_p): Conversions from
15839 unprototyped to empty argument list function types are useless.
15841 2011-01-14 Richard Guenther <rguenther@suse.de>
15843 PR tree-optimization/47286
15844 * tree-ssa-structalias.c (new_var_info): Register variables are global.
15846 2011-01-14 Martin Jambor <mjambor@suse.cz>
15848 PR middle-end/46823
15849 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15851 2011-01-13 Anatoly Sokolov <aesok@post.ru>
15853 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15854 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15855 * config/xtensa/xtensa.c (xtensa_libcall_value,
15856 xtensa_function_value_regno_p): New functions.
15857 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15859 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
15862 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15864 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15865 New function prototype.
15866 * config/i386/winnt.c (i386_pe_assemble_visibility):
15867 Warn only if attribute was specified by user.
15869 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
15872 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15874 (floatunsdidf2_fcfidu): Ditto.
15876 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15878 * config/s390/s390.c (print_operand_address): Replace 'error' with
15879 'output_operand_lossage'.
15880 (print_operand): Likewise.
15882 2011-01-13 Jeff Law <law@redhat.com>
15884 PR rtl-optimization/39077
15885 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15886 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15887 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15888 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15889 * gcse.c (prune_insertions_deletions): New function.
15890 (compute_pre_data): Use it.
15892 2011-01-13 Dodji Seketeli <dodji@redhat.com>
15895 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15897 (prune_unused_types_mark): Use it.
15899 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
15901 PR rtl-optimization/45352
15902 * sel-sched.c: Update copyright years.
15903 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15904 in the advancing loop when we have issued issue_rate insns.
15906 2011-01-12 Richard Henderson <rth@redhat.com>
15908 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15909 (TARGET_MD_ASM_CLOBBERS): New.
15911 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15912 (TARGET_DELEGITIMIZE_ADDRESS): New.
15914 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15915 (clzsi2, *bsch): New patterns.
15917 * config/mn10300/mn10300.md (INT): New mode iterator.
15918 (*mov<INT>_clr): New pattern, and peep2 to generate it.
15920 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15921 flag_split_wide_types.
15923 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15924 (mn10300_trampoline_init): Rewrite without a template, an immediate
15925 load and a direct branch.
15926 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15928 2011-01-12 Anatoly Sokolov <aesok@post.ru>
15930 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15931 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15932 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15933 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15935 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
15938 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15941 2011-01-12 Jan Hubicka <jh@suse.cz>
15944 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15945 (PLUGIN_COND_CLOSE): New macro.
15946 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15948 2011-01-12 Richard Guenther <rguenther@suse.de>
15951 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15952 register variables in a MEM_REF.
15954 2011-01-12 Joseph Myers <joseph@codesourcery.com>
15956 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15957 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15958 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15959 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15960 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15961 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15962 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15963 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15964 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15965 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15966 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15967 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15968 * config/gnu-user.h: New. Copied from linux.h.
15969 (LINUX_TARGET_STARTFILE_SPEC): Rename to
15970 GNU_USER_TARGET_STARTFILE_SPEC.
15971 (LINUX_TARGET_ENDFILE_SPEC): Rename to
15972 GNU_USER_TARGET_ENDFILE_SPEC.
15973 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15974 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15975 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15976 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15977 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15978 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15979 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15980 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15981 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15982 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15983 * config/arm/linux-eabi.h (CC1_SPEC): Use
15984 GNU_USER_TARGET_CC1_SPEC.
15985 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15986 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15987 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15988 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15989 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15990 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15991 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15992 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15994 2011-01-12 Richard Guenther <rguenther@suse.de>
15997 * doc/invoke.texi (ffast-math): Document it is turned on
16000 2011-01-12 Jan Hubicka <jh@suse.cz>
16002 PR tree-optimization/47233
16003 * opts.c (common_handle_option): Disable ipa-reference with profile
16006 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16008 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16011 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16013 * c-parser.c (c_lex_one_token): Updated and reindented some
16014 comments. No changes in code.
16016 2011-01-11 Ian Lance Taylor <iant@google.com>
16018 * godump.c (go_output_var): Don't output the variable if there is
16019 already a type with the same name.
16021 2011-01-11 Ian Lance Taylor <iant@google.com>
16023 * godump.c (go_format_type): Don't generate float80.
16025 2011-01-11 Richard Henderson <rth@redhat.com>
16027 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16028 declaration. Rewrite for both speed and size.
16029 (mn10300_address_cost_1): Remove.
16030 (mn10300_register_move_cost): New.
16031 (mn10300_memory_move_cost): New.
16032 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16033 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16034 extensions, shifts, BSWAP, CLZ.
16035 (mn10300_wide_const_load_uses_clr): Remove.
16036 (TARGET_REGISTER_MOVE_COST): New.
16037 (TARGET_MEMORY_MOVE_COST): New.
16038 * config/mn10300/mn10300-protos.h: Update.
16039 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16041 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16042 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16043 * config/mn10300/mn10300-protos.h: Update.
16044 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16045 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16046 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16047 (*test_int_bitfield, *test_byte_bitfield): Remove.
16048 (*bit_test, *subreg_bit_test): Remove.
16049 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16051 * config/mn10300/constraints.md ("c"): Rename from "A".
16052 ("A", "D"): New constraint letters.
16053 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16054 (fmssf4, fnmasf4, fnmssf4): Likewise.
16056 * config/mn10300/mn10300.md (isa): New attribute.
16057 (enabled): New attribute.
16059 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16060 (abssf2, negsf2): Define only for hardware fp.
16061 (sqrtsf2): Reformat.
16062 (addsf3, subsf3, mulsf3): Merge expander and insn.
16064 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16065 (DEBUGGER_AUTO_OFFSET): Remove.
16066 (DEBUGGER_ARG_OFFSET): Remove.
16068 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16069 Emit register stores with the same offsets as the hardware.
16070 (mn10300_store_multiple_operation): Don't check that the register
16071 save offsets are monotonic.
16072 * config/mn10300/mn10300-protos.h: Update.
16074 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16076 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16077 in terms of the value on the stack, not the MDR register.
16079 2011-01-11 Jan Hubicka <jh@suse.cz>
16083 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16084 (symbol_alias_set_destroy, symbol_alias_set_contains,
16085 propagate_aliases_backward): Declare.
16086 * lto-streamer-out.c (struct sets): New sturcture.
16087 (trivally_defined_alias): New function.
16088 (output_alias_pair_p): Rewrite.
16089 (output_unreferenced_globals): Fix output of alias pairs.
16090 (produce_symtab): Likewise.
16091 * ipa.c (function_and_variable_visibility): Set weak alias destination
16093 * varasm.c (symbol_alias_set_t): Remove.
16094 (symbol_alias_set_destroy): Export.
16095 (propagate_aliases_forward, propagate_aliases_backward): New functions
16097 (compute_visible_aliases): ... this one; remove.
16098 (trivially_visible_alias): New
16099 (trivially_defined_alias): New.
16100 (remove_unreachable_alias_pairs): Rewrite.
16101 (finish_aliases_1): Reorganize code checking if alias is defined.
16102 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16105 2011-01-11 Richard Guenther <rguenther@suse.de>
16107 PR tree-optimization/46076
16108 * tree-ssa.c (useless_type_conversion_p): Conversions from
16109 unprototyped to empty argument list function types are useless.
16111 2011-01-11 Richard Guenther <rguenther@suse.de>
16113 PR middle-end/45235
16114 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16115 volatile MEMs as MEM_READONLY_P.
16117 2011-01-11 Richard Guenther <rguenther@suse.de>
16119 PR tree-optimization/47239
16120 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16122 2011-01-11 Jeff Law <law@redhat.com>
16124 PR tree-optimization/47086
16125 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16126 IVs from statements that might throw.
16128 2011-01-10 Jan Hubicka <jh@suse.cz>
16131 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16133 2011-01-10 Jan Hubicka <jh@suse.cz>
16136 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16137 when correcting profile.
16139 2011-01-10 Jan Hubicka <jh@suse.cz>
16142 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16143 DECL_FINI_PRIORITY.
16144 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16145 Restore DECL_FINI_PRIORITY.
16147 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16149 * doc/gimple.texi: Fix quoting of multi-word return values in
16150 @deftypefn statements. Ensure presence of return value. Wrap
16151 overlong @deftypefn lines.
16152 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16153 descriptions of removed functions.
16154 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16155 of multi-word return value in @deftypefn statement.
16157 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16159 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16160 (Conditional Expressions, Logical Operators)
16161 (Statement and operand traversals): Do not indent smallexample
16162 code. Fix duplicate function argument in example.
16164 2011-01-10 Jeff Law <law@redhat.com>
16166 PR tree-optimization/47141
16167 * ipa-split.c (split_function): Handle case where we are
16168 returning a value and the return block has a virtual operand phi.
16170 2011-01-10 Jan Hubicka <jh@suse.cz>
16172 PR tree-optimization/47234
16173 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16174 (pass_feedback_split_functions): Declare.
16175 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16177 * ipa-split.c (gate_split_functions): Update comments; disable
16178 split-functions for profile_arc_flag and branch_probabilities.
16179 (gate_feedback_split_functions): New function.
16180 (execute_feedback_split_functions): New function.
16181 (pass_feedback_split_functions): New global var.
16183 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16186 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16187 calling gimple_call_set_cannot_inline.
16189 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16191 * config/darwin-sections.def: Remove unused section.
16193 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16196 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16198 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16201 * c-parser.c (c_parser_declaration_or_fndef): Improved
16204 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16206 * config/i386/winnt.c (i386_pe_start_function): Make sure
16207 to switch back to function's section.
16209 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16213 * plugin.c: Move include of dlfcn.h from here...
16214 * system.h: ... to here.
16216 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16218 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16220 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16221 two extra empty pages in PDF output.
16223 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16226 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16227 for error recovery purposes behave as if it was not specified so
16228 that the default type is usd.
16230 2011-01-07 Jan Hubicka <jh@suse.cz>
16232 PR tree-optmization/46469
16233 * ipa.c (function_and_variable_visibility): Clear needed flags on
16234 nodes with external decls; handle weakrefs merging correctly.
16236 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16238 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16241 2011-01-07 Jan Hubicka <jh@suse.cz>
16243 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16244 and no longer claim that gold is required for linker plugin.
16245 * configure: Regenerate.
16246 * gcc.c (PLUGIN_COND): New macro.
16247 (LINK_COMMAND_SPEC): Use it.
16248 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16249 * config.in (HAVE_LTO_PLUGIN): New.
16250 * configure.ac (--with-lto-plugin): New parameter; autodetect
16253 2011-01-07 Jan Hubicka <jh@suse.cz>
16255 PR tree-optimization/46367
16256 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16257 when we can update original.
16258 (cgraph_mark_inline_edge): Sanity check.
16259 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16261 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16263 * config/spu/spu.h (ASM_COMMENT_START): Define.
16265 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16268 * gcc.c (%>S): New.
16269 (SWITCH_KEEP_FOR_GCC): Likewise.
16270 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16271 (do_spec_1): Handle "%>".
16273 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16275 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16278 * config/i386/i386.c (ix86_delegitimize_address): If
16279 simplify_gen_subreg fails, return orig_x.
16282 * value-prof.c (gimple_stringop_fixed_value): Handle
16283 lhs of the call properly.
16285 2011-01-07 Jan Hubicka <jh@suse.cz>
16288 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16290 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16292 * target.def (function_switched_text_sections): New hook.
16293 * doc/tm.texi: Regenerated.
16294 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16295 * final.c (default_function_switched_text_sections): New.
16296 (final_scan_insn): Call function_switched_text_sections when a
16297 mid-function section change occurs.
16298 * output.h (default_function_switched_text_sections): Declare.
16299 * config/darwin-protos.h (darwin_function_switched_text_sections):
16301 * config/darwin.c (darwin_function_switched_text_sections): New.
16302 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16304 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16306 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16307 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16308 the secondary code fragment when outputting for DWARF == 2.
16310 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16312 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16313 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16315 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16316 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16318 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16321 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16322 when it is not empty.
16324 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16327 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16328 (case ${target}): Add btver1.
16329 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16330 -march=native recognize btver1 processors.
16331 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16332 btver1 def_and_undef
16333 * config/i386/i386.c (struct processor_costs btver1_cost): New
16335 (m_BTVER1): New definition.
16336 (m_AMD_MULTIPLE): Includes m_BTVER1.
16337 (initial_ix86_tune_features): Add btver1 tune.
16338 (processor_target_table): Add btver1 entry.
16339 (static const char *const cpu_names): Add btver1 entry.
16340 (software_prefetching_beneficial_p): Add btver1.
16341 (ix86_option_override_internal): Add btver1 instruction sets.
16342 (ix86_issue_rate): Add btver1.
16343 (ix86_adjust_cost): Add btver1.
16344 * config/i386/i386.h (TARGET_BTVER1): New definition.
16345 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16346 (enum processor_type): Add PROCESSOR_BTVER1.
16347 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16349 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16352 * config/i386/i386.c (legitimize_tls_address)
16353 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16354 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16355 (tls_initial_exec_64_sun): New pattern.
16357 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16359 * doc/invoke.texi (Overall Options): Improve wording and markup
16360 of the description of -wrapper.
16362 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16364 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16365 rdynamic, threads): New Driver options.
16367 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16370 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16371 if coming from .tdata.
16372 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16374 2011-01-06 Jan Hubicka <jh@suse.cz>
16377 * collect2.c (main): Do not enable LTOmode when plugin is active.
16379 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16382 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16383 --version output if supported.
16384 * configure: Regenerate.
16386 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16388 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16391 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16394 * c-convert.c (convert): When converting a complex expression
16395 other than COMPLEX_EXPR to a different complex type, ensure
16396 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16397 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16398 when converting COMPLEX_TYPE.
16400 2011-01-06 Ira Rosen <irar@il.ibm.com>
16402 PR tree-optimization/47139
16403 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16404 only the last reduction value is used outside the loop. Update
16407 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16409 * config/rtems.opt: New.
16410 * config.gcc (*-*-rtems*): Use rtems.opt.
16412 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16414 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16415 processors do not support 3DNow instructions.
16417 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16419 * config/spu/spu.c (spu_option_override): Set parameter
16420 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16422 2011-01-05 Jan Hubicka <jh@suse.cz>
16424 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16425 at the command line.
16427 2011-01-05 Martin Jambor <mjambor@suse.cz>
16430 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16431 deltas on streamed outgoing edges.
16432 (output_node_opt_summary): Output info for outgoing edges only when
16433 the node is in new parameter set.
16434 (output_cgraph_opt_summary): New parameter set, passed to the two
16435 aforementioned functions. Update its forward declaration and its
16438 2011-01-05 Tom Tromey <tromey@redhat.com>
16440 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16441 operator to c_finish_omp_atomic.
16442 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16443 (build_unary_op): Update.
16444 (build_modify_expr): Update.
16445 (build_asm_expr): Update.
16447 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16449 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16450 newly inserted insns.
16451 (pad_bb): Likewise.
16452 (spu_emit_branch_hint): Likewise.
16453 (insert_hbrp_for_ilb_runout): Likewise.
16454 (spu_machine_dependent_reorg): Call df_finish_pass after
16455 schedule_insns returns.
16457 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16459 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16461 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16463 PR tree-optimization/47005
16464 * tree-sra.c (struct access): Add 'non_addressable' bit.
16465 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16466 (decide_one_param_reduction): Return 0 if the parameter is passed by
16467 reference and one of the accesses in the group is non_addressable.
16469 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16471 PR tree-optimization/47056
16472 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16473 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16474 (mark_store): Likewise. Pass STMT to ipa_record_reference.
16476 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16478 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
16479 initializer. Skip view conversions from aggregate types.
16481 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
16484 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
16486 2011-01-04 Philipp Thomas <pth@suse.de>
16488 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
16491 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16493 * function.c (thread_prologue_and_epilogue_insns): Do not crash
16494 on empty epilogue sequences.
16496 2011-01-04 Joseph Myers <joseph@codesourcery.com>
16498 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
16499 non-static): New Driver options.
16501 2011-01-04 Jie Zhang <jie@codesourcery.com>
16504 * gcc.c (default_compilers[]): Set combinable field to 0
16505 for all assembly languages.
16507 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
16509 * config/mips/loongson3a.md: New file.
16510 * config/mips/mips.md: Include loongson3a.md.
16511 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
16514 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
16516 PR middle-end/47017
16517 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
16518 instead of convert_memory_address_addr_space on the base expression.
16520 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16522 * config/spu/spu.c (spu_option_override): Update error text
16523 for bad -march= / -mtune= values.
16525 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16527 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
16528 if branch-hint optimization will be performed.
16530 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16532 PR tree-optimization/47148
16533 * ipa-split.c (split_function): Convert arguments to
16534 DECL_ARG_TYPE if possible.
16536 PR tree-optimization/47155
16537 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
16538 when computing uns.
16540 PR rtl-optimization/47157
16541 * combine.c (try_combine): If undobuf.other_insn becomes
16542 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
16543 and set *new_direct_jump_p too.
16545 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
16547 PR tree-optimization/47021
16548 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
16550 2011-01-03 Jakub Jelinek <jakub@redhat.com>
16552 * gcc.c (process_command): Update copyright notice dates.
16553 * gcov.c (print_version): Likewise.
16554 * gcov-dump.c (print_version): Likewise.
16555 * mips-tfile.c (main): Likewise.
16556 * mips-tdump.c (main): Likewise.
16558 2011-01-03 Martin Jambor <mjambor@suse.cz>
16560 PR tree-optimization/46801
16561 * tree-sra.c (type_internals_preclude_sra_p): Check whether
16562 aggregate fields start at byte boundary instead of the bit-field flag.
16564 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
16567 * gcc.c (main): Revert revision 168407.
16569 2011-01-03 Martin Jambor <mjambor@suse.cz>
16571 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
16573 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16575 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
16576 vector optab to expand vector/scalar shift, update gimple to vector.
16578 2011-01-03 Martin Jambor <mjambor@suse.cz>
16580 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
16583 2011-01-03 Martin Jambor <mjambor@suse.cz>
16585 PR tree-optimization/46984
16586 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
16588 (cgraph_create_indirect_edge): Fixed line length.
16589 (cgraph_indirect_call_info): Declare.
16590 (cgraph_make_edge_direct) Update declaration.
16591 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
16592 (cgraph_create_indirect_edge): Use it.
16593 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
16595 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
16596 the new thunk_delta representation.
16597 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
16599 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
16600 (ipa_read_indirect_edge_info): Likewise.
16601 * lto-cgraph.c (output_edge_opt_summary): New function.
16602 (output_node_opt_summary): Call it on all outgoing edges.
16603 (input_edge_opt_summary): New function.
16604 (input_node_opt_summary): Call it on all outgoing edges.
16606 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
16609 * gcc.c (main): Don't check have_o when settting combine_inputs.
16611 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
16613 * regrename.c: Add general comment describing the pass.
16614 (struct du_head): Remove 'length' field.
16615 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
16616 (regrename_optimize): Do not sort chains. Rework comments, add others.
16617 Force renaming to the preferred class (if any) in the first pass and do
16618 not consider registers that belong to it in the second pass.
16619 (create_new_chain): Do not set 'length' field.
16620 (scan_rtx_reg): Likewise.
16622 2011-01-02 Jakub Jelinek <jakub@redhat.com>
16624 PR tree-optimization/47140
16625 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
16626 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
16627 to bit_value_binop.
16629 PR rtl-optimization/47028
16630 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
16631 parm_birth_insn instead of at the beginning of first bb.
16633 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
16635 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
16636 Remove the word "see" before "@pxref".
16637 * doc/rtl.texi: Remove the word "see" before "@pxref".
16639 2011-01-01 Jan Hubicka <jh@suse.cz>
16641 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
16644 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
16647 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
16650 Copyright (C) 2011 Free Software Foundation, Inc.
16652 Copying and distribution of this file, with or without modification,
16653 are permitted in any medium without royalty provided the copyright
16654 notice and this notice are preserved.